diff --git a/API_NetFramework/Controllers/MailController.cs b/API_NetFramework/Controllers/MailController.cs index f79ea382..a7d65dcf 100644 --- a/API_NetFramework/Controllers/MailController.cs +++ b/API_NetFramework/Controllers/MailController.cs @@ -14,6 +14,7 @@ using System.Web.Http; using System.Web.Management; using System.Configuration; using SecuringWebApiUsingApiKey.Middleware; +using System.Text; namespace OnDocAPI_NetFramework.Controllers { @@ -23,7 +24,7 @@ namespace OnDocAPI_NetFramework.Controllers [HttpGet] [Route("API/SendMail")] - public IHttpActionResult SendMail(string MailID, string empfaenger, string betreff, string message, string dokumentid, string ondoclink) + public IHttpActionResult SendMail(string MailID, string empfaenger, string betreff, string message, string dokumentid, string ondoclink, string absender, string bewilligungid) { string connectionstring = StringCipher.Decrypt(ConfigurationManager.ConnectionStrings["EDOKAConnectionstring"].ConnectionString, "i%!k!7pab%bNLdA5hE4pkR4XaB%E^jB3d9tHuQ4pbF&BZjF7SB#WBWit5#HrbJiLrLVm"); string URI = ""; @@ -46,6 +47,8 @@ namespace OnDocAPI_NetFramework.Controllers db.add_parameter("@mailid", MailID.ToString()); db.add_parameter("@empf",empfaenger); db.add_parameter("@dokid",dokumentid); + db.add_parameter("@absender", absender); + db.add_parameter("@bewilligungid", bewilligungid); db.Get_Tabledata("sp_ondoc_maildaten", true, false); if (message == null) { message = ""; } if (betreff == null) { betreff = ""; } @@ -91,7 +94,7 @@ namespace OnDocAPI_NetFramework.Controllers s = s.Replace("$$body$$", message); string debugdir = System.Configuration.ConfigurationManager.AppSettings["DebugDir"]; string tmpfile = debugdir + @"\Mail_" + DateTime.Now.ToString("yyyyMMdd_hhmmss") + ".ps1"; - System.IO.File.WriteAllText(tmpfile, s); + System.IO.File.WriteAllText(tmpfile, s,new UTF8Encoding(true)); //StreamWriter writer = new StreamWriter(tmpfile); //writer.Write(s); //writer.Close(); diff --git a/API_NetFramework/Properties/PublishProfiles/FolderProfile1.pubxml.user b/API_NetFramework/Properties/PublishProfiles/FolderProfile1.pubxml.user index 6b28f7d0..61300bec 100644 --- a/API_NetFramework/Properties/PublishProfiles/FolderProfile1.pubxml.user +++ b/API_NetFramework/Properties/PublishProfiles/FolderProfile1.pubxml.user @@ -5,7 +5,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. <_PublishTargetUrl>E:\Software-Projekte\OnDoc\PubServices\OnDoc - True|2025-02-05T13:41:27.6196364Z||;True|2025-02-04T22:19:44.0470841+01:00||;True|2025-02-04T21:33:03.4165210+01:00||;True|2025-02-02T20:06:51.6815543+01:00||;True|2025-01-20T10:17:24.5425008+01:00||;True|2025-01-19T16:20:16.1036874+01:00||;True|2025-01-19T16:19:11.5720999+01:00||;True|2025-01-12T14:24:46.2550852+01:00||;True|2025-01-12T14:00:23.9205001+01:00||;True|2025-01-07T15:08:24.2722613+01:00||;True|2025-01-06T09:25:16.5522864+01:00||;True|2024-12-22T16:49:54.0855447+01:00||;True|2024-12-08T09:59:39.7127943+01:00||;True|2024-12-08T09:26:52.1924006+01:00||;True|2024-12-02T09:50:13.5426444+01:00||;True|2024-12-01T18:53:55.8128003+01:00||;True|2024-11-26T19:32:44.7379810+01:00||;True|2024-11-25T16:02:25.7013060+01:00||;True|2024-11-24T18:56:32.4321643+01:00||;True|2024-11-24T18:48:11.3494435+01:00||;True|2024-11-24T17:50:10.7679996+01:00||;True|2024-11-22T08:35:58.1296657+01:00||;True|2024-11-13T17:47:13.0183160+01:00||;True|2024-11-13T17:46:36.5183689+01:00||;True|2024-11-11T13:42:23.6578245+01:00||;True|2024-11-09T12:11:00.0777236+01:00||;True|2024-11-09T11:54:51.8503924+01:00||; + True|2025-02-09T13:47:25.8660147Z||;True|2025-02-09T12:40:23.8730229+01:00||;True|2025-02-05T14:41:27.6196364+01:00||;True|2025-02-04T22:19:44.0470841+01:00||;True|2025-02-04T21:33:03.4165210+01:00||;True|2025-02-02T20:06:51.6815543+01:00||;True|2025-01-20T10:17:24.5425008+01:00||;True|2025-01-19T16:20:16.1036874+01:00||;True|2025-01-19T16:19:11.5720999+01:00||;True|2025-01-12T14:24:46.2550852+01:00||;True|2025-01-12T14:00:23.9205001+01:00||;True|2025-01-07T15:08:24.2722613+01:00||;True|2025-01-06T09:25:16.5522864+01:00||;True|2024-12-22T16:49:54.0855447+01:00||;True|2024-12-08T09:59:39.7127943+01:00||;True|2024-12-08T09:26:52.1924006+01:00||;True|2024-12-02T09:50:13.5426444+01:00||;True|2024-12-01T18:53:55.8128003+01:00||;True|2024-11-26T19:32:44.7379810+01:00||;True|2024-11-25T16:02:25.7013060+01:00||;True|2024-11-24T18:56:32.4321643+01:00||;True|2024-11-24T18:48:11.3494435+01:00||;True|2024-11-24T17:50:10.7679996+01:00||;True|2024-11-22T08:35:58.1296657+01:00||;True|2024-11-13T17:47:13.0183160+01:00||;True|2024-11-13T17:46:36.5183689+01:00||;True|2024-11-11T13:42:23.6578245+01:00||;True|2024-11-09T12:11:00.0777236+01:00||;True|2024-11-09T11:54:51.8503924+01:00||; @@ -82,10 +82,10 @@ https://go.microsoft.com/fwlink/?LinkID=208121. 09/04/2024 19:25:14 - 02/05/2025 10:44:23 + 02/07/2025 21:09:44 - 02/05/2025 10:44:23 + 02/07/2025 21:09:44 12/26/2024 14:12:09 @@ -94,10 +94,10 @@ https://go.microsoft.com/fwlink/?LinkID=208121. 12/26/2024 14:12:09 - 02/05/2025 10:19:09 + 02/09/2025 12:40:08 - 02/05/2025 10:19:09 + 02/09/2025 12:40:08 10/20/2023 22:35:02 @@ -130,13 +130,13 @@ https://go.microsoft.com/fwlink/?LinkID=208121. 10/20/2023 22:35:04 - 02/05/2025 10:44:23 + 02/09/2025 12:40:22 12/23/2024 22:17:43 - 02/05/2025 10:44:23 + 02/09/2025 12:40:22 11/27/2023 09:49:58 @@ -244,16 +244,16 @@ https://go.microsoft.com/fwlink/?LinkID=208121. 01/28/2025 08:37:54 - 02/05/2025 10:44:23 + 02/09/2025 12:40:21 - 02/05/2025 10:44:23 + 02/09/2025 12:40:21 - 02/05/2025 14:32:03 + 02/09/2025 14:41:45 - 02/05/2025 14:32:03 + 02/09/2025 14:41:45 11/13/2012 13:19:34 @@ -442,10 +442,10 @@ https://go.microsoft.com/fwlink/?LinkID=208121. 10/20/2023 22:33:58 - 02/04/2025 20:25:44 + 02/09/2025 07:54:24 - 02/04/2025 20:25:44 + 02/09/2025 07:54:24 01/24/2025 09:01:41 diff --git a/API_NetFramework/bin/Database.dll b/API_NetFramework/bin/Database.dll index fef1f8bf..bf2dd661 100644 Binary files a/API_NetFramework/bin/Database.dll and b/API_NetFramework/bin/Database.dll differ diff --git a/API_NetFramework/bin/Database.pdb b/API_NetFramework/bin/Database.pdb index 5c2d9153..eb46c762 100644 Binary files a/API_NetFramework/bin/Database.pdb and b/API_NetFramework/bin/Database.pdb differ diff --git a/API_NetFramework/bin/OnDocOffice.dll b/API_NetFramework/bin/OnDocOffice.dll index 90e447a0..ebafee9e 100644 Binary files a/API_NetFramework/bin/OnDocOffice.dll and b/API_NetFramework/bin/OnDocOffice.dll differ diff --git a/API_NetFramework/bin/OnDocOffice.pdb b/API_NetFramework/bin/OnDocOffice.pdb index c4b3995d..d0c62156 100644 Binary files a/API_NetFramework/bin/OnDocOffice.pdb and b/API_NetFramework/bin/OnDocOffice.pdb differ diff --git a/API_NetFramework/bin/OnDoc_NetFramework.dll b/API_NetFramework/bin/OnDoc_NetFramework.dll index a50524f2..ae259e47 100644 Binary files a/API_NetFramework/bin/OnDoc_NetFramework.dll and b/API_NetFramework/bin/OnDoc_NetFramework.dll differ diff --git a/API_NetFramework/bin/OnDoc_NetFramework.pdb b/API_NetFramework/bin/OnDoc_NetFramework.pdb index 521482ea..d2ed01cb 100644 Binary files a/API_NetFramework/bin/OnDoc_NetFramework.pdb and b/API_NetFramework/bin/OnDoc_NetFramework.pdb differ diff --git a/API_NetFramework/log.txt b/API_NetFramework/log.txt index dbad13a5..df1e96d4 100644 --- a/API_NetFramework/log.txt +++ b/API_NetFramework/log.txt @@ -4647,3 +4647,438 @@ Die FOR JSON-Klausel ist in einer UPDATE-Anweisung nicht zulässig. 2025-02-06 19:34:41.0153|DEBUG|OnDoc| 2025-02-06 19:34:41.0153|DEBUG|OnDoc| 2025-02-06 19:34:41.0933|DEBUG|OnDoc|Ende GetDocument DokumentID:% +2025-02-07 15:27:23.4271|DEBUG|OnDoc|Start Adresse GetByID ID:' OR 1=1--' +2025-02-07 15:27:23.4697|DEBUG|OnDoc| +2025-02-07 15:27:23.5069|ERROR|OnDoc|Fehler beim Konvertieren des varchar-Werts " OR 1=1--" in den int-Datentyp. +2025-02-07 15:27:23.5069|DEBUG|OnDoc|Ende Adresse GetByID ID:' OR 1=1--' +2025-02-07 15:41:59.7286|DEBUG|OnDoc| +2025-02-07 15:41:59.7656|DEBUG|OnDoc| +2025-02-07 15:41:59.8185|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: Stefan Hutter lokal +2025-02-07 15:41:59.8185|INFO|OnDoc|Unterschrift-Bezug: Stefan Hutter lokal +2025-02-07 15:41:59.8907|DEBUG|OnDoc| +2025-02-07 15:41:59.8953|DEBUG|OnDoc| +2025-02-07 15:41:59.9118|DEBUG|OnDoc|TGNummer für Mitarbeiter nicht vorhanden Mitarbeiternr: -1 +2025-02-07 15:43:07.0359|DEBUG|OnDoc| +2025-02-07 15:43:07.0725|DEBUG|OnDoc| +2025-02-07 15:43:07.0995|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: Stefan Hutter lokal +2025-02-07 15:43:07.0995|INFO|OnDoc|Unterschrift-Bezug: Stefan Hutter lokal +2025-02-07 15:52:12.1422|DEBUG|OnDoc| +2025-02-07 15:52:12.2029|DEBUG|OnDoc| +2025-02-07 15:52:12.2327|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: Stefan Hutter lokal +2025-02-07 15:52:12.2327|INFO|OnDoc|Unterschrift-Bezug: Stefan Hutter lokal +2025-02-07 16:13:27.7687|DEBUG|OnDoc| +2025-02-07 16:13:27.8090|DEBUG|OnDoc| +2025-02-07 16:13:27.8433|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234 +2025-02-07 16:13:27.8433|INFO|OnDoc|Unterschrift-Bezug - nicht vorhanden: 1234 DEMO-Unterschrfit verwendet +2025-02-07 16:13:27.8488|INFO|OnDoc|Unterschrift-Bezug: 1234 +2025-02-07 16:13:38.3718|INFO|OnDoc|Unterschriften-Image gespeichert - 1234 +2025-02-07 16:13:38.4202|DEBUG|OnDoc| +2025-02-07 16:13:38.4202|DEBUG|OnDoc| +2025-02-07 16:13:38.4467|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234 +2025-02-07 16:13:38.4467|INFO|OnDoc|Unterschrift-Bezug: 1234 +2025-02-07 16:14:49.5601|DEBUG|OnDoc|Mailversand: 2 +2025-02-07 16:14:52.0313|DEBUG|OnDoc| +2025-02-07 16:14:52.0418|DEBUG|OnDoc| +2025-02-07 16:14:53.0300|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Dokumentprüfung OFFEDK0082025002489142" -Body "Guten Tag + Das Dokument mit dier ID OFFEDK0082025002489142 wurde zur Prüfung zugestellt. + Mit folgendem Link kann OnDoc-Prüfung direkt gestartet werden: + ondoc:?funktion=ucheck" -smtpServer smtp.tgcorp.ch +2025-02-07 16:16:38.8702|DEBUG|OnDoc|Mailversand: 2 +2025-02-07 16:16:40.9025|DEBUG|OnDoc| +2025-02-07 16:16:40.9120|DEBUG|OnDoc| +2025-02-07 16:16:42.0252|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Dokumentprüfung OFFEDK0082025002489142" -Body "Guten Tag + Das Dokument mit dier ID OFFEDK0082025002489142 wurde zur Prüfung zugestellt. + Mit folgendem Link kann OnDoc-Prüfung direkt gestartet werden: + ondoc:?funktion=ucheck" -smtpServer smtp.tgcorp.ch +2025-02-07 21:01:05.4780|DEBUG|OnDoc|Mailversand: 2 +2025-02-07 21:01:07.7629|DEBUG|OnDoc| +2025-02-07 21:01:07.7629|DEBUG|OnDoc| +2025-02-07 21:01:08.6167|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Dokumentprüfung OFFEDK0082025002489142" -Body "Guten Tag + Das Dokument mit dier ID OFFEDK0082025002489142 wurde zur Prüfung zugestellt. + Mit folgendem Link kann OnDoc-Prüfung direkt gestartet werden: + ondoc:?funktion=ucheck" -smtpServer smtp.tgcorp.ch +2025-02-08 10:51:44.8657|DEBUG|OnDoc|Mailversand: 2 +2025-02-08 10:51:46.7389|DEBUG|OnDoc| +2025-02-08 10:51:46.7489|DEBUG|OnDoc| +2025-02-08 10:51:48.1529|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Dokumentprüfung OFFEDK0082025002489142" -Body "Guten Tag + Das Dokument mit dier ID OFFEDK0082025002489142 wurde zur Prüfung zugestellt. + Mit folgendem Link kann OnDoc-Prüfung direkt gestartet werden: + ondoc:?funktion=ucheck" -smtpServer smtp.tgcorp.ch +2025-02-08 11:34:04.7818|DEBUG|OnDoc|Mailversand: 2 +2025-02-08 11:34:06.7485|DEBUG|OnDoc| +2025-02-08 11:34:06.7485|DEBUG|OnDoc| +2025-02-08 11:34:07.5690|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Dokumentprüfung OFFEDK0082025002489142" -Body "Guten Tag + Das Dokument mit dier ID OFFEDK0082025002489142 wurde zur Prüfung zugestellt. + Mit folgendem Link kann OnDoc-Prüfung direkt gestartet werden: + ondoc:?funktion=ucheck" -smtpServer smtp.tgcorp.ch +2025-02-08 11:44:00.8115|DEBUG|OnDoc| +2025-02-08 11:44:00.8515|DEBUG|OnDoc| +2025-02-08 11:44:00.8885|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: Stefan Hutter lokal +2025-02-08 11:44:00.8885|INFO|OnDoc|Unterschrift-Bezug: Stefan Hutter lokal +2025-02-08 11:44:00.9863|DEBUG|OnDoc| +2025-02-08 11:44:00.9956|DEBUG|OnDoc| +2025-02-08 11:44:01.0282|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234 +2025-02-08 11:44:01.0282|INFO|OnDoc|Unterschrift-Bezug: 1234 +2025-02-09 07:46:54.7253|DEBUG|OnDoc|Mailversand: 2 +2025-02-09 07:46:56.8267|DEBUG|OnDoc| +2025-02-09 07:46:56.8267|DEBUG|OnDoc| +2025-02-09 07:46:57.6585|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Dokumentprüfung OFFEDK0082025002489142" -Body "Guten Tag + Das Dokument mit dier ID OFFEDK0082025002489142 wurde zur Prüfung zugestellt. + Mit folgendem Link kann OnDoc-Prüfung direkt gestartet werden: + ondoc:?funktion=ucheck" -smtpServer smtp.tgcorp.ch +2025-02-09 07:47:50.4163|DEBUG|OnDoc| +2025-02-09 07:47:50.4530|DEBUG|OnDoc| +2025-02-09 07:47:50.4814|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: Stefan Hutter lokal +2025-02-09 07:47:50.4814|INFO|OnDoc|Unterschrift-Bezug: Stefan Hutter lokal +2025-02-09 07:47:56.6650|DEBUG|OnDoc| +2025-02-09 07:47:56.7011|DEBUG|OnDoc| +2025-02-09 07:47:56.7271|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234 +2025-02-09 07:47:56.7301|INFO|OnDoc|Unterschrift-Bezug: 1234 +2025-02-09 07:52:22.9916|DEBUG|OnDoc|Mailversand: 2 +2025-02-09 07:52:24.6007|DEBUG|OnDoc| +2025-02-09 07:52:24.6117|DEBUG|OnDoc| +2025-02-09 07:52:25.3913|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Dokumentprüfung OFFEDK0082025002489142" -Body "Guten Tag + Das Dokument mit dier ID OFFEDK0082025002489142 wurde zur Prüfung zugestellt. + Mit folgendem Link kann OnDoc-Prüfung direkt gestartet werden: + ondoc:?funktion=ucheck" -smtpServer smtp.tgcorp.ch +2025-02-09 07:52:55.5031|DEBUG|OnDoc| +2025-02-09 07:52:55.5131|DEBUG|OnDoc| +2025-02-09 07:52:55.5455|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: Stefan Hutter lokal +2025-02-09 07:52:55.5455|INFO|OnDoc|Unterschrift-Bezug: Stefan Hutter lokal +2025-02-09 07:52:55.6067|DEBUG|OnDoc| +2025-02-09 07:52:55.6067|DEBUG|OnDoc| +2025-02-09 07:52:55.6357|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234 +2025-02-09 07:52:55.6387|INFO|OnDoc|Unterschrift-Bezug: 1234 +2025-02-09 07:55:49.6893|DEBUG|OnDoc|Mailversand: 2 +2025-02-09 07:55:51.4983|DEBUG|OnDoc| +2025-02-09 07:55:51.4983|DEBUG|OnDoc| +2025-02-09 07:55:52.2419|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Dokumentprüfung OFFEDK0082025002489158" -Body "Guten Tag + Das Dokument mit dier ID OFFEDK0082025002489158 wurde zur Prüfung zugestellt. + Mit folgendem Link kann OnDoc-Prüfung direkt gestartet werden: + ondoc:?funktion=ucheck" -smtpServer smtp.tgcorp.ch +2025-02-09 07:56:19.1890|DEBUG|OnDoc| +2025-02-09 07:56:19.1994|DEBUG|OnDoc| +2025-02-09 07:56:19.2288|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: Stefan Hutter lokal +2025-02-09 07:56:19.2320|INFO|OnDoc|Unterschrift-Bezug: Stefan Hutter lokal +2025-02-09 07:56:19.2850|DEBUG|OnDoc| +2025-02-09 07:56:19.2850|DEBUG|OnDoc| +2025-02-09 07:56:19.3140|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234 +2025-02-09 07:56:19.3140|INFO|OnDoc|Unterschrift-Bezug: 1234 +2025-02-09 07:58:56.1371|DEBUG|OnDoc|Mailversand: 2 +2025-02-09 07:58:57.6745|DEBUG|OnDoc| +2025-02-09 07:58:57.6856|DEBUG|OnDoc| +2025-02-09 07:58:58.4513|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Dokumentprüfung OFFEDK0082025002489163" -Body "Guten Tag + Das Dokument mit dier ID OFFEDK0082025002489163 wurde zur Prüfung zugestellt. + Mit folgendem Link kann OnDoc-Prüfung direkt gestartet werden: + ondoc:?funktion=ucheck" -smtpServer smtp.tgcorp.ch +2025-02-09 07:59:28.0693|DEBUG|OnDoc| +2025-02-09 07:59:28.0794|DEBUG|OnDoc| +2025-02-09 07:59:28.1054|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: Stefan Hutter lokal +2025-02-09 07:59:28.1054|INFO|OnDoc|Unterschrift-Bezug: Stefan Hutter lokal +2025-02-09 07:59:28.1565|DEBUG|OnDoc| +2025-02-09 07:59:28.1565|DEBUG|OnDoc| +2025-02-09 07:59:28.1835|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234 +2025-02-09 07:59:28.1835|INFO|OnDoc|Unterschrift-Bezug: 1234 +2025-02-09 08:05:22.7602|DEBUG|OnDoc|Mailversand: 2 +2025-02-09 08:05:24.2656|DEBUG|OnDoc| +2025-02-09 08:05:24.2777|DEBUG|OnDoc| +2025-02-09 08:05:25.1354|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Dokumentprüfung OFFEDK0082025002489163" -Body "Guten Tag + Das Dokument mit dier ID OFFEDK0082025002489163 wurde zur Prüfung zugestellt. + Mit folgendem Link kann OnDoc-Prüfung direkt gestartet werden: + ondoc:?funktion=ucheck" -smtpServer smtp.tgcorp.ch +2025-02-09 08:05:55.8967|DEBUG|OnDoc| +2025-02-09 08:05:55.9067|DEBUG|OnDoc| +2025-02-09 08:05:55.9367|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: Stefan Hutter lokal +2025-02-09 08:05:55.9367|INFO|OnDoc|Unterschrift-Bezug: Stefan Hutter lokal +2025-02-09 08:05:55.9893|DEBUG|OnDoc| +2025-02-09 08:05:55.9893|DEBUG|OnDoc| +2025-02-09 08:05:56.0163|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234 +2025-02-09 08:05:56.0163|INFO|OnDoc|Unterschrift-Bezug: 1234 +2025-02-09 08:11:00.1665|DEBUG|OnDoc| +2025-02-09 08:11:00.2015|DEBUG|OnDoc| +2025-02-09 08:11:00.2286|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: Stefan Hutter lokal +2025-02-09 08:11:00.2306|INFO|OnDoc|Unterschrift-Bezug: Stefan Hutter lokal +2025-02-09 08:11:00.2956|DEBUG|OnDoc| +2025-02-09 08:11:00.2956|DEBUG|OnDoc| +2025-02-09 08:11:00.3176|DEBUG|OnDoc|TGNummer für Mitarbeiter nicht vorhanden Mitarbeiternr: -1 +2025-02-09 08:11:44.8645|DEBUG|OnDoc|Mailversand: 2 +2025-02-09 08:11:49.7581|DEBUG|OnDoc| +2025-02-09 08:11:49.7964|DEBUG|OnDoc| +2025-02-09 08:11:51.4281|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Dokumentprüfung OFFEDK0082025002489179" -Body "Guten Tag + Das Dokument mit dier ID OFFEDK0082025002489179 wurde zur Prüfung zugestellt. + Mit folgendem Link kann OnDoc-Prüfung direkt gestartet werden: + ondoc:?funktion=ucheck" -smtpServer smtp.tgcorp.ch +2025-02-09 08:12:19.6642|DEBUG|OnDoc| +2025-02-09 08:12:19.6743|DEBUG|OnDoc| +2025-02-09 08:12:19.7016|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: Stefan Hutter lokal +2025-02-09 08:12:19.7016|INFO|OnDoc|Unterschrift-Bezug: Stefan Hutter lokal +2025-02-09 08:12:19.7458|DEBUG|OnDoc| +2025-02-09 08:12:19.7458|DEBUG|OnDoc| +2025-02-09 08:12:19.7730|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234 +2025-02-09 08:12:19.7730|INFO|OnDoc|Unterschrift-Bezug: 1234 +2025-02-09 08:14:27.6985|DEBUG|OnDoc|Mailversand: 2 +2025-02-09 08:14:29.6652|DEBUG|OnDoc| +2025-02-09 08:14:29.6766|DEBUG|OnDoc| +2025-02-09 08:14:29.7168|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Dokumentprüfung OFFEDK0082025002489187" -Body "Guten Tag + Das Dokument mit dier ID OFFEDK0082025002489187 wurde zur Prüfung zugestellt. + Mit folgendem Link kann OnDoc-Prüfung direkt gestartet werden: + ondoc:?funktion=ucheck" -smtpServer smtp.tgcorp.ch +2025-02-09 08:14:50.6445|DEBUG|OnDoc| +2025-02-09 08:14:50.6546|DEBUG|OnDoc| +2025-02-09 08:14:50.6806|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: Stefan Hutter lokal +2025-02-09 08:14:50.6862|INFO|OnDoc|Unterschrift-Bezug: Stefan Hutter lokal +2025-02-09 08:14:50.7382|DEBUG|OnDoc| +2025-02-09 08:14:50.7382|DEBUG|OnDoc| +2025-02-09 08:14:50.7671|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234 +2025-02-09 08:14:50.7671|INFO|OnDoc|Unterschrift-Bezug: 1234 +2025-02-09 09:15:06.5352|DEBUG|OnDoc|Mailversand: 2 +2025-02-09 09:15:16.0855|DEBUG|OnDoc| +2025-02-09 09:15:16.0978|DEBUG|OnDoc| +2025-02-09 09:15:38.8157|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Dokumentprüfung OFFEDK0082025002489187" -Body "Guten Tag + Das Dokument mit dier ID OFFEDK0082025002489187 wurde zur Prüfung zugestellt. + Mit folgendem Link kann OnDoc-Prüfung direkt gestartet werden: + ondoc:?funktion=ucheck" -smtpServer smtp.tgcorp.ch +2025-02-09 09:16:56.3382|DEBUG|OnDoc|Mailversand: 5test +2025-02-09 09:16:58.9493|DEBUG|OnDoc| +2025-02-09 09:16:58.9493|DEBUG|OnDoc| +2025-02-09 09:16:58.9963|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "test" -Body "test" -smtpServer smtp.tgcorp.ch +2025-02-09 09:22:18.7296|DEBUG|OnDoc|Mailversand: 318 +2025-02-09 09:22:26.4218|DEBUG|OnDoc| +2025-02-09 09:22:26.4620|DEBUG|OnDoc| +2025-02-09 09:49:39.5836|DEBUG|OnDoc|Mailversand: 2 +2025-02-09 09:49:45.0123|DEBUG|OnDoc| +2025-02-09 09:49:45.0516|DEBUG|OnDoc| +2025-02-09 09:50:45.9982|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Dokumentprüfung OFFEDK0082025002489187" -Body "Guten Tag

+Das Dokument mit dier ID OFFEDK0082025002489187 / Partner:1000208 wurde zur Prüfung zugestellt.

+ +Bitte prüfen den Schrott + +Mit folgendem Link kann OnDoc direkt gestartet werden
+OnDoc starten

+------------------------------------------------------------------------
OnDoc / Hutter Stefan Stefan Hutter lokal" -smtpServer smtp.tgcorp.ch +2025-02-09 10:15:47.0640|DEBUG|OnDoc|Mailversand: 2 +2025-02-09 10:15:52.5973|DEBUG|OnDoc| +2025-02-09 10:15:52.6341|DEBUG|OnDoc| +2025-02-09 10:15:52.6694|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Dokumentprüfung OFFEDK0082025002489187" -Body "Guten Tag

+Das Dokument mit dier ID OFFEDK0082025002489187 / Partner:1000208 wurde zur Prüfung zugestellt.

+ +test + +Mit folgendem Link kann OnDoc direkt gestartet werden
+
OnDoc starten

+------------------------------------------------------------------------
OnDoc / Hutter Stefan Stefan Hutter lokal" -smtpServer smtp.tgcorp.ch +2025-02-09 10:16:41.4315|DEBUG|OnDoc|Mailversand: 1 +2025-02-09 10:16:59.5596|DEBUG|OnDoc| +2025-02-09 10:16:59.5959|DEBUG|OnDoc| +2025-02-09 10:17:04.6618|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Dokument genehmigt" -Body "" -smtpServer smtp.tgcorp.ch +2025-02-09 10:17:10.7961|DEBUG|OnDoc| +2025-02-09 10:17:10.7961|DEBUG|OnDoc| +2025-02-09 10:17:10.8361|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: Stefan Hutter lokal +2025-02-09 10:17:10.8390|INFO|OnDoc|Unterschrift-Bezug: Stefan Hutter lokal +2025-02-09 10:17:10.8992|DEBUG|OnDoc| +2025-02-09 10:17:10.9021|DEBUG|OnDoc| +2025-02-09 10:17:10.9271|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234 +2025-02-09 10:17:10.9271|INFO|OnDoc|Unterschrift-Bezug: 1234 +2025-02-09 10:18:55.7677|DEBUG|OnDoc|Mailversand: 2 +2025-02-09 10:18:58.8687|DEBUG|OnDoc| +2025-02-09 10:18:58.9036|DEBUG|OnDoc| +2025-02-09 10:18:58.9382|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Dokumentprüfung OFFEDK0082025002489187" -Body "Guten Tag

+Das Dokument mit dier ID OFFEDK0082025002489187 / Partner:1000208 wurde zur Prüfung zugestellt.

+ +xgagag + +Mit folgendem Link kann OnDoc direkt gestartet werden
+
OnDoc starten

+------------------------------------------------------------------------
OnDoc / Hutter Stefan Stefan Hutter lokal" -smtpServer smtp.tgcorp.ch +2025-02-09 10:19:09.7030|DEBUG|OnDoc|Mailversand: 1 +2025-02-09 10:19:23.2789|DEBUG|OnDoc| +2025-02-09 10:19:23.3715|DEBUG|OnDoc| +2025-02-09 10:40:38.5494|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Dokument genehmigt OFFEDK0082025002489187" -Body "" -smtpServer smtp.tgcorp.ch +2025-02-09 10:40:41.0891|DEBUG|OnDoc| +2025-02-09 10:40:41.0891|DEBUG|OnDoc| +2025-02-09 10:40:41.1270|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: Stefan Hutter lokal +2025-02-09 10:40:41.1270|INFO|OnDoc|Unterschrift-Bezug: Stefan Hutter lokal +2025-02-09 10:40:41.1769|DEBUG|OnDoc| +2025-02-09 10:40:41.1769|DEBUG|OnDoc| +2025-02-09 10:40:41.2044|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234 +2025-02-09 10:40:41.2044|INFO|OnDoc|Unterschrift-Bezug: 1234 +2025-02-09 10:41:34.7641|DEBUG|OnDoc|Mailversand: 2 +2025-02-09 10:41:37.4254|DEBUG|OnDoc| +2025-02-09 10:41:37.4397|DEBUG|OnDoc| +2025-02-09 10:41:54.1996|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Dokumentprüfung OFFEDK0082025002489187" -Body "Guten Tag

+Das Dokument mit dier ID OFFEDK0082025002489187 'AB Brief allgemein für Anlegen / allgemein' / Partner:1000208 wurde zur Prüfung zugestellt.

+ +Bitte nochmals + +Mit folgendem Link kann OnDoc direkt gestartet werden
+
OnDoc starten

+------------------------------------------------------------------------
OnDoc / Hutter Stefan Stefan Hutter lokal" -smtpServer smtp.tgcorp.ch +2025-02-09 10:42:53.4726|DEBUG|OnDoc|Mailversand: 1 +2025-02-09 10:46:04.6434|DEBUG|OnDoc| +2025-02-09 10:46:04.7533|DEBUG|OnDoc| +2025-02-09 10:46:04.8730|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Dokument abgelehnt OFFEDK0082025002489187" -Body "Guten Tag

+Das Dokument mit der ID OFFEDK0082025002489187 'AB Brief allgemein für Anlegen / allgemein' / Partner:1000208 wurde nicht bewilligt.

+ +so viele fehler
Das war aber schlecht + +Mit folgendem Link kann OnDoc direkt gestartet werden
+
OnDoc starten

+" -smtpServer smtp.tgcorp.ch +2025-02-09 10:56:51.1909|DEBUG|OnDoc| +2025-02-09 10:56:51.1909|DEBUG|OnDoc| +2025-02-09 10:56:51.2209|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: TG1807 +2025-02-09 10:56:51.2209|INFO|OnDoc|Unterschrift-Bezug: TG1807 +2025-02-09 10:56:51.2822|DEBUG|OnDoc| +2025-02-09 10:56:51.2822|DEBUG|OnDoc| +2025-02-09 10:56:51.3141|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: TG6112 +2025-02-09 10:56:51.3141|INFO|OnDoc|Unterschrift-Bezug: TG6112 +2025-02-09 10:57:20.9006|DEBUG|OnDoc|Mailversand: 134 +2025-02-09 11:04:08.0557|DEBUG|OnDoc| +2025-02-09 11:04:08.0724|DEBUG|OnDoc| +2025-02-09 11:04:15.3344|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "" -Body "" -smtpServer smtp.tgcorp.ch +2025-02-09 11:04:15.3782|DEBUG|OnDoc|Mailversand: 1287 +2025-02-09 11:17:20.7087|DEBUG|OnDoc| +2025-02-09 11:17:20.9236|DEBUG|OnDoc| +2025-02-09 11:17:21.2014|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Serienbrief-Prüfung 'AB Brief allgemein für Anlegen / allgemein'" -Body "Guten Tag

+Der Serienbrief 'AB Brief allgemein für Anlegen / allgemein' wurde zur Prüfung zugestellt.

+ +Bitte serienbrief prüfen + +Mit folgendem Link kann OnDoc direkt gestartet werden
+
OnDoc starten

+------------------------------------------------------------------------
OnDoc / Hutter Stefan Stefan Hutter lokal +" -smtpServer smtp.tgcorp.ch +2025-02-09 11:18:46.3251|DEBUG|OnDoc|Mailversand: 1 +2025-02-09 11:19:18.6822|DEBUG|OnDoc| +2025-02-09 11:19:18.7224|DEBUG|OnDoc| +2025-02-09 11:19:18.7479|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "" -Body "" -smtpServer smtp.tgcorp.ch +2025-02-09 11:23:58.2869|DEBUG|OnDoc|Mailversand: 1 +2025-02-09 11:24:23.6372|DEBUG|OnDoc| +2025-02-09 11:24:23.7662|DEBUG|OnDoc| +2025-02-09 11:24:24.0685|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "" -Body "" -smtpServer smtp.tgcorp.ch +2025-02-09 11:25:30.6762|DEBUG|OnDoc| +2025-02-09 11:25:30.7071|DEBUG|OnDoc| +2025-02-09 11:25:30.7352|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: TG1807 +2025-02-09 11:25:30.7352|INFO|OnDoc|Unterschrift-Bezug: TG1807 +2025-02-09 11:25:30.8054|DEBUG|OnDoc| +2025-02-09 11:25:30.8083|DEBUG|OnDoc| +2025-02-09 11:25:30.8319|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: TG6112 +2025-02-09 11:25:30.8319|INFO|OnDoc|Unterschrift-Bezug: TG6112 +2025-02-09 11:25:54.5103|DEBUG|OnDoc|Mailversand: 134 +2025-02-09 11:26:38.1735|DEBUG|OnDoc| +2025-02-09 11:26:38.4134|DEBUG|OnDoc| +2025-02-09 11:26:38.4878|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Serienbrief-Prüfung 'AB Brief allgemein für Anlegen / allgemein'" -Body "Guten Tag

+Der Serienbrief 'AB Brief allgemein für Anlegen / allgemein' wurde zur Prüfung zugestellt.

+ +bitte prüfe es nochmals + +Mit folgendem Link kann OnDoc direkt gestartet werden
+
OnDoc starten

+------------------------------------------------------------------------
OnDoc / Hutter Stefan Stefan Hutter lokal +" -smtpServer smtp.tgcorp.ch +2025-02-09 11:26:41.0239|DEBUG|OnDoc|Mailversand: 1287 +2025-02-09 11:26:47.2296|DEBUG|OnDoc| +2025-02-09 11:26:47.2661|DEBUG|OnDoc| +2025-02-09 11:26:47.2990|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Serienbrief-Prüfung 'AB Brief allgemein für Anlegen / allgemein'" -Body "Guten Tag

+Der Serienbrief 'AB Brief allgemein für Anlegen / allgemein' wurde zur Prüfung zugestellt.

+ +bitte prüfe es nochmals + +Mit folgendem Link kann OnDoc direkt gestartet werden
+
OnDoc starten

+------------------------------------------------------------------------
OnDoc / Hutter Stefan Stefan Hutter lokal +" -smtpServer smtp.tgcorp.ch +2025-02-09 11:27:09.9693|DEBUG|OnDoc|Mailversand: 1 +2025-02-09 11:27:11.5292|DEBUG|OnDoc| +2025-02-09 11:27:11.5292|DEBUG|OnDoc| +2025-02-09 11:27:11.5694|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Serienbrief genehmigt " -Body "Guten Tag

+Der Serienbrief 'AB Brief allgemein für Anlegen / allgemein' wurde genehmigt.

+ + + +Mit folgendem Link kann OnDoc direkt gestartet werden
+
OnDoc starten

+------------------------------------------------------------------------
OnDoc / Meier Andrea TG1807" -smtpServer smtp.tgcorp.ch +2025-02-09 11:28:03.1774|DEBUG|OnDoc|Mailversand: 1 +2025-02-09 11:28:54.5392|DEBUG|OnDoc| +2025-02-09 11:28:54.6564|DEBUG|OnDoc| +2025-02-09 11:28:54.8154|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "Serienbrief abgelehnt 'AB Brief allgemein für Anlegen / allgemein'" -Body "Guten Tag

+Der Serienbrief 'AB Brief allgemein für Anlegen / allgemein' wurde nuicht bewilligt.

+ +dreck
scheissdreck + +Mit folgendem Link kann OnDoc direkt gestartet werden
+
OnDoc starten

+------------------------------------------------------------------------
OnDoc / Mühlebach Sina TG6112" -smtpServer smtp.tgcorp.ch +2025-02-09 20:31:26.3471|DEBUG|OnDoc|Mailversand: 1287 +2025-02-09 20:31:27.7988|DEBUG|OnDoc| +2025-02-09 20:31:27.7988|DEBUG|OnDoc| +2025-02-09 20:31:27.9382|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "" -Body "" -smtpServer smtp.tgcorp.ch +2025-02-09 20:31:30.0983|DEBUG|OnDoc|Mailversand: 2 +2025-02-09 20:31:30.8922|DEBUG|OnDoc| +2025-02-09 20:31:30.8922|DEBUG|OnDoc| +2025-02-09 20:31:30.9349|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "" -Body "" -smtpServer smtp.tgcorp.ch +2025-02-09 20:31:48.2712|DEBUG|OnDoc|Mailversand: 1 +2025-02-09 20:31:49.7097|DEBUG|OnDoc| +2025-02-09 20:31:49.7197|DEBUG|OnDoc| +2025-02-09 20:31:49.7476|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "" -Body "" -smtpServer smtp.tgcorp.ch +2025-02-09 20:32:08.3632|DEBUG|OnDoc|Mailversand: 1 +2025-02-09 20:32:09.9575|DEBUG|OnDoc| +2025-02-09 20:32:09.9575|DEBUG|OnDoc| +2025-02-09 20:32:10.0015|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "" -Body "" -smtpServer smtp.tgcorp.ch +2025-02-09 20:32:15.5051|DEBUG|OnDoc| +2025-02-09 20:32:15.5051|DEBUG|OnDoc| +2025-02-09 20:32:15.5446|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: TG6112 +2025-02-09 20:32:15.5446|INFO|OnDoc|Unterschrift-Bezug: TG6112 +2025-02-09 20:32:15.6066|DEBUG|OnDoc| +2025-02-09 20:32:15.6111|DEBUG|OnDoc| +2025-02-09 20:32:15.6359|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234 +2025-02-09 20:32:15.6359|INFO|OnDoc|Unterschrift-Bezug: 1234 +2025-02-09 20:33:39.2315|DEBUG|OnDoc|Mailversand: 1287 +2025-02-09 20:33:41.8740|DEBUG|OnDoc| +2025-02-09 20:33:42.1368|DEBUG|OnDoc| +2025-02-09 20:33:42.1738|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "" -Body "" -smtpServer smtp.tgcorp.ch +2025-02-09 20:33:44.5227|DEBUG|OnDoc|Mailversand: 2 +2025-02-09 20:33:45.4541|DEBUG|OnDoc| +2025-02-09 20:33:45.4541|DEBUG|OnDoc| +2025-02-09 20:33:45.4893|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "" -Body "" -smtpServer smtp.tgcorp.ch +2025-02-09 20:34:08.5729|DEBUG|OnDoc|Mailversand: 1 +2025-02-09 20:34:10.9226|DEBUG|OnDoc| +2025-02-09 20:34:10.9328|DEBUG|OnDoc| +2025-02-09 20:34:10.9599|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "" -Body "" -smtpServer smtp.tgcorp.ch +2025-02-09 20:34:37.7686|DEBUG|OnDoc|Mailversand: 1 +2025-02-09 20:34:40.0843|DEBUG|OnDoc| +2025-02-09 20:34:40.0953|DEBUG|OnDoc| +2025-02-09 20:34:40.1268|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "" -Body "" -smtpServer smtp.tgcorp.ch +2025-02-09 20:34:44.4035|DEBUG|OnDoc| +2025-02-09 20:34:44.4120|DEBUG|OnDoc| +2025-02-09 20:34:44.4386|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: TG6112 +2025-02-09 20:34:44.4386|INFO|OnDoc|Unterschrift-Bezug: TG6112 +2025-02-09 20:34:44.4827|DEBUG|OnDoc| +2025-02-09 20:34:44.4827|DEBUG|OnDoc| +2025-02-09 20:34:44.5087|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234 +2025-02-09 20:34:44.5087|INFO|OnDoc|Unterschrift-Bezug: 1234 +2025-02-09 20:37:19.2930|DEBUG|OnDoc|Mailversand: 1287 +2025-02-09 20:37:28.4347|DEBUG|OnDoc| +2025-02-09 20:37:28.6191|DEBUG|OnDoc| +2025-02-09 20:37:36.7478|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "" -Body "" -smtpServer smtp.tgcorp.ch +2025-02-09 20:37:41.7378|DEBUG|OnDoc|Mailversand: 2 +2025-02-09 20:37:44.1823|DEBUG|OnDoc| +2025-02-09 20:37:44.1938|DEBUG|OnDoc| +2025-02-09 20:37:44.2242|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "" -Body "" -smtpServer smtp.tgcorp.ch +2025-02-09 20:37:46.1225|DEBUG|OnDoc|Mailversand: 2 +2025-02-09 20:37:48.0106|DEBUG|OnDoc| +2025-02-09 20:37:48.0206|DEBUG|OnDoc| +2025-02-09 20:37:48.0477|DEBUG|OnDoc|Mail Versand: Send-MailMessage -from "OnDoc@tkb.ch" -to "stefan.hutter@tkb.ch" -Subject "" -Body "" -smtpServer smtp.tgcorp.ch +2025-02-09 20:39:10.3746|DEBUG|OnDoc|Mailversand: 2 +2025-02-09 20:43:02.4464|DEBUG|OnDoc| +2025-02-09 20:43:02.5537|DEBUG|OnDoc| +2025-02-09 20:43:03.7823|DEBUG|OnDoc|Mail Versand NOK: Spalte 1 wurde nicht gefunden. +2025-02-09 20:43:03.8034|DEBUG|OnDoc|Mailversand: 1287 +2025-02-09 20:43:04.6187|DEBUG|OnDoc| +2025-02-09 20:43:04.6290|DEBUG|OnDoc| +2025-02-09 20:43:04.6466|DEBUG|OnDoc|Mail Versand NOK: Spalte 1 wurde nicht gefunden. +2025-02-09 20:43:05.3815|DEBUG|OnDoc|Mailversand: 2 +2025-02-09 20:43:06.0266|DEBUG|OnDoc| +2025-02-09 20:43:06.0362|DEBUG|OnDoc| +2025-02-09 20:43:06.0542|DEBUG|OnDoc|Mail Versand NOK: Spalte 1 wurde nicht gefunden. diff --git a/API_NetFramework/obj/Debug/API_NetFramework.csproj.AssemblyReference.cache b/API_NetFramework/obj/Debug/API_NetFramework.csproj.AssemblyReference.cache index b48d3297..d6d366af 100644 Binary files a/API_NetFramework/obj/Debug/API_NetFramework.csproj.AssemblyReference.cache and b/API_NetFramework/obj/Debug/API_NetFramework.csproj.AssemblyReference.cache differ diff --git a/API_NetFramework/obj/Debug/OnDoc_NetFramework.dll b/API_NetFramework/obj/Debug/OnDoc_NetFramework.dll index a50524f2..ae259e47 100644 Binary files a/API_NetFramework/obj/Debug/OnDoc_NetFramework.dll and b/API_NetFramework/obj/Debug/OnDoc_NetFramework.dll differ diff --git a/API_NetFramework/obj/Debug/OnDoc_NetFramework.pdb b/API_NetFramework/obj/Debug/OnDoc_NetFramework.pdb index 521482ea..d2ed01cb 100644 Binary files a/API_NetFramework/obj/Debug/OnDoc_NetFramework.pdb and b/API_NetFramework/obj/Debug/OnDoc_NetFramework.pdb differ diff --git a/API_NetFramework/obj/Debug/Package/PackageTmp/bin/DOCGEN.dll b/API_NetFramework/obj/Debug/Package/PackageTmp/bin/DOCGEN.dll index 50d47263..4a0276b7 100644 Binary files a/API_NetFramework/obj/Debug/Package/PackageTmp/bin/DOCGEN.dll and b/API_NetFramework/obj/Debug/Package/PackageTmp/bin/DOCGEN.dll differ diff --git a/API_NetFramework/obj/Debug/Package/PackageTmp/bin/DOCGEN.pdb b/API_NetFramework/obj/Debug/Package/PackageTmp/bin/DOCGEN.pdb index cc7eb3a3..025a35e5 100644 Binary files a/API_NetFramework/obj/Debug/Package/PackageTmp/bin/DOCGEN.pdb and b/API_NetFramework/obj/Debug/Package/PackageTmp/bin/DOCGEN.pdb differ diff --git a/API_NetFramework/obj/Debug/Package/PackageTmp/bin/Database.dll b/API_NetFramework/obj/Debug/Package/PackageTmp/bin/Database.dll index c92c3afc..bf2dd661 100644 Binary files a/API_NetFramework/obj/Debug/Package/PackageTmp/bin/Database.dll and b/API_NetFramework/obj/Debug/Package/PackageTmp/bin/Database.dll differ diff --git a/API_NetFramework/obj/Debug/Package/PackageTmp/bin/Database.pdb b/API_NetFramework/obj/Debug/Package/PackageTmp/bin/Database.pdb index e4fd69d1..eb46c762 100644 Binary files a/API_NetFramework/obj/Debug/Package/PackageTmp/bin/Database.pdb and b/API_NetFramework/obj/Debug/Package/PackageTmp/bin/Database.pdb differ diff --git a/API_NetFramework/obj/Debug/Package/PackageTmp/bin/OnDocOffice.dll b/API_NetFramework/obj/Debug/Package/PackageTmp/bin/OnDocOffice.dll index 5f01c32c..9e66dd56 100644 Binary files a/API_NetFramework/obj/Debug/Package/PackageTmp/bin/OnDocOffice.dll and b/API_NetFramework/obj/Debug/Package/PackageTmp/bin/OnDocOffice.dll differ diff --git a/API_NetFramework/obj/Debug/Package/PackageTmp/bin/OnDocOffice.pdb b/API_NetFramework/obj/Debug/Package/PackageTmp/bin/OnDocOffice.pdb index 80383a5e..7c4bc9e7 100644 Binary files a/API_NetFramework/obj/Debug/Package/PackageTmp/bin/OnDocOffice.pdb and b/API_NetFramework/obj/Debug/Package/PackageTmp/bin/OnDocOffice.pdb differ diff --git a/API_NetFramework/obj/Debug/Package/PackageTmp/bin/OnDoc_NetFramework.dll b/API_NetFramework/obj/Debug/Package/PackageTmp/bin/OnDoc_NetFramework.dll index f6a3c2d8..ef6c875c 100644 Binary files a/API_NetFramework/obj/Debug/Package/PackageTmp/bin/OnDoc_NetFramework.dll and b/API_NetFramework/obj/Debug/Package/PackageTmp/bin/OnDoc_NetFramework.dll differ diff --git a/API_NetFramework/obj/Debug/Package/PackageTmp/bin/OnDoc_NetFramework.pdb b/API_NetFramework/obj/Debug/Package/PackageTmp/bin/OnDoc_NetFramework.pdb index 1d9d57ff..a05cc172 100644 Binary files a/API_NetFramework/obj/Debug/Package/PackageTmp/bin/OnDoc_NetFramework.pdb and b/API_NetFramework/obj/Debug/Package/PackageTmp/bin/OnDoc_NetFramework.pdb differ diff --git a/API_NetFramework/obj/Debug/Package/PackageTmp/bin/vbBarcodes.dll b/API_NetFramework/obj/Debug/Package/PackageTmp/bin/vbBarcodes.dll index 2d6a4fbc..368c87de 100644 Binary files a/API_NetFramework/obj/Debug/Package/PackageTmp/bin/vbBarcodes.dll and b/API_NetFramework/obj/Debug/Package/PackageTmp/bin/vbBarcodes.dll differ diff --git a/API_NetFramework/obj/Debug/Package/PackageTmp/bin/vbBarcodes.pdb b/API_NetFramework/obj/Debug/Package/PackageTmp/bin/vbBarcodes.pdb index 50334496..f99eca97 100644 Binary files a/API_NetFramework/obj/Debug/Package/PackageTmp/bin/vbBarcodes.pdb and b/API_NetFramework/obj/Debug/Package/PackageTmp/bin/vbBarcodes.pdb differ diff --git a/BarcodeLib/bin/Debug/Database.dll b/BarcodeLib/bin/Debug/Database.dll index fef1f8bf..bf2dd661 100644 Binary files a/BarcodeLib/bin/Debug/Database.dll and b/BarcodeLib/bin/Debug/Database.dll differ diff --git a/BarcodeLib/bin/Debug/Database.pdb b/BarcodeLib/bin/Debug/Database.pdb index 5c2d9153..eb46c762 100644 Binary files a/BarcodeLib/bin/Debug/Database.pdb and b/BarcodeLib/bin/Debug/Database.pdb differ diff --git a/BarcodeLib/obj/Debug/BarcodeLib.csproj.AssemblyReference.cache b/BarcodeLib/obj/Debug/BarcodeLib.csproj.AssemblyReference.cache index 021d1580..4cb96450 100644 Binary files a/BarcodeLib/obj/Debug/BarcodeLib.csproj.AssemblyReference.cache and b/BarcodeLib/obj/Debug/BarcodeLib.csproj.AssemblyReference.cache differ diff --git a/BarcodeLibVBDatamatrix/obj/Debug/build.force b/BarcodeLibVBDatamatrix/obj/Debug/build.force deleted file mode 100644 index e69de29b..00000000 diff --git a/Client/Client.csproj b/Client/Client.csproj index 8f552b5a..ceec33c0 100644 --- a/Client/Client.csproj +++ b/Client/Client.csproj @@ -425,6 +425,12 @@
+ + Form + + + ApprovalNotes.cs + Form @@ -726,6 +732,9 @@ Versandstrasse.cs + + ApprovalNotes.cs + DokHistory.cs diff --git a/Client/Diverses/ApprovalNotes.Designer.cs b/Client/Diverses/ApprovalNotes.Designer.cs new file mode 100644 index 00000000..04e126b3 --- /dev/null +++ b/Client/Diverses/ApprovalNotes.Designer.cs @@ -0,0 +1,70 @@ +namespace OnDoc.Diverses +{ + partial class ApprovalNotes + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ApprovalNotes)); + this.sfdatagridpruefung = new Syncfusion.WinForms.DataGrid.SfDataGrid(); + ((System.ComponentModel.ISupportInitialize)(this.sfdatagridpruefung)).BeginInit(); + this.SuspendLayout(); + // + // sfdatagridpruefung + // + this.sfdatagridpruefung.AccessibleName = "Table"; + this.sfdatagridpruefung.AllowEditing = false; + this.sfdatagridpruefung.AutoSizeColumnsMode = Syncfusion.WinForms.DataGrid.Enums.AutoSizeColumnsMode.LastColumnFill; + this.sfdatagridpruefung.BackColor = System.Drawing.SystemColors.Window; + this.sfdatagridpruefung.Dock = System.Windows.Forms.DockStyle.Fill; + this.sfdatagridpruefung.Location = new System.Drawing.Point(2, 2); + this.sfdatagridpruefung.Name = "sfdatagridpruefung"; + this.sfdatagridpruefung.Size = new System.Drawing.Size(994, 446); + this.sfdatagridpruefung.TabIndex = 1; + this.sfdatagridpruefung.Text = "sfDataGrid2"; + // + // ApprovalNotes + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(998, 450); + this.Controls.Add(this.sfdatagridpruefung); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Name = "ApprovalNotes"; + this.Style.MdiChild.IconHorizontalAlignment = System.Windows.Forms.HorizontalAlignment.Center; + this.Style.MdiChild.IconVerticalAlignment = System.Windows.Forms.VisualStyles.VerticalAlignment.Center; + this.Text = "Bewilligungs-History"; + this.Load += new System.EventHandler(this.ApprovalNotes_Load); + ((System.ComponentModel.ISupportInitialize)(this.sfdatagridpruefung)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private Syncfusion.WinForms.DataGrid.SfDataGrid sfdatagridpruefung; + } +} \ No newline at end of file diff --git a/Client/Diverses/ApprovalNotes.cs b/Client/Diverses/ApprovalNotes.cs new file mode 100644 index 00000000..79ef4f15 --- /dev/null +++ b/Client/Diverses/ApprovalNotes.cs @@ -0,0 +1,61 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using Database; +using OnDoc.Klassen; +using Syncfusion.Windows.Forms.Grid; +using Syncfusion.Windows.Forms.Tools; +using Syncfusion.WinForms.Controls; +using Syncfusion.WinForms.DataGrid; +using Syncfusion.WinForms.DataGrid.Events; + +namespace OnDoc.Diverses +{ + public partial class ApprovalNotes : SfForm + { + public string dokumentid { get; set; } = ""; + public ApprovalNotes() + { + InitializeComponent(); + this.sfdatagridpruefung.QueryRowHeight += sfDataGrid_QueryRowHeight; + } + + public ApprovalNotes(string dokumentid) + { + InitializeComponent(); + this.sfdatagridpruefung.QueryRowHeight += sfDataGrid_QueryRowHeight; + this.dokumentid = dokumentid; + } + + private void ApprovalNotes_Load(object sender, EventArgs e) + { + DB db = new DB(AppParams.connectionstring); + db.clear_parameter(); + db.add_parameter("@dokumentid", this.dokumentid); + db.Get_Tabledata("get_dokument_notes", true,false); + this.sfdatagridpruefung.DataSource = db.dsdaten.Tables[0]; + this.sfdatagridpruefung.Columns["dokumentid"].Visible = false; + + db = null; + } + + RowAutoFitOptions autoFitOptions = new RowAutoFitOptions(); + int autoHeight; + void sfDataGrid_QueryRowHeight(object sender, QueryRowHeightEventArgs e) + { + if (this.sfdatagridpruefung.AutoSizeController.GetAutoRowHeight(e.RowIndex, autoFitOptions, out autoHeight)) + { + + e.Height = autoHeight; + e.Handled = true; + + } + } + } +} diff --git a/Client/Diverses/ApprovalNotes.resx b/Client/Diverses/ApprovalNotes.resx new file mode 100644 index 00000000..1cea527a --- /dev/null +++ b/Client/Diverses/ApprovalNotes.resx @@ -0,0 +1,299 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + AAABAAEAAAAAAAEAIACDKAAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAEAAAABAAgGAAAAXHKoZgAAKEpJ + REFUeNrtnQf8X9P5x09Tu4hRFEXEDBKjao+IUdSsUSk1EqPU5m/P0tYMQW2xohVbEKNBCLFDbDFij9aI + xCzi//m458uvv35/3/uce8+95577fd6v1/M6GXec555zP99773nOc35klNiZBTY/7OeweWBzweaEzWH/ + j9Yd9hPY9Namoh089NupeYATt/vRVyi+tva5tU9hH8MmWvs37D3Yv2Bvw96wNjH0BVCy86PQFVBETANb + DLYErDdsEdjCsIVwE3cPWTGIB0XiJWsvw16EPQN71iQiolQYFYDqMQNsOdgKsGWsLd74tY4FCMM3JhGD + p2APwh6GPWaSpwulIqgAhOensFVh/WCrwXrHdrNLsa8aT8Luh90Hu9ckrxVKIFQAyofv4GvA1rXGG74t + 2wGC8K1JBOGf1igIX4SuVzvRlh0vAD+DbQz7FWw93PAzha5QFYEg8PXgbtj1sJuMPh0UjgpAccwL28Ik + N/5auOl/HLpCMQExmILiAdhVsGtMMvKgeEYFwC/8Ir8V7LdGb3pvWDHgd4NLTSIGH4euU11QAchPN1hf + 2A6wLXDT/yR0heqMfU24AXahSV4Xvg1dp5hRAcjObLDtYbvipu8VujLtCMSAcQfnwy4xSYCS4ogKgDsM + xNkH9jvc+NOHrowdb+f78Zuw1+2feTPwA9oH5odIvsmwz0wyDv8f2BRbEgYadbMlfWIsAj9UNiIJZzdJ + hCFtbtMh8rAKrzn2qeBy2CDYC6HrExMqAHLWgx0E6xdi2A6dnFF1DKphhB0j7djR+Qv4ivnhRi4bCkZP + k0QlLgpb0tpSIV6F7LeCm2GnmmRIUUlBBaA1/FXkl/xD0KGXK+uk6MiMyR8HG2OSL+GPw8ab5Fc7Bnjd + KAi8ZivBVoEtU+bTAq4hIw9PMsmQYizXrXRUAJrD67Ip7Ch02mWLPhk6K4NfGBnHL92Nm35y6IvgmelM + Et7MIKg1Yavj2k5b9ElxbRlodCRseOgLUEVUAP6XdWDHoXOuVORJ0DEnoLgddhvsLlO/Gz4NCgLF4Nc0 + XO+FijwZrjfnIRwNuyW041VCBeAHGId/IjriKkWdAJ2Qj/JXmmQYa3xohysGZzsyaGprtMEvizoJ2oBP + WQeb5Gmr7VEBSD5g/QW2ZREf99Dh+C5/Lexq2POhnY0EPg1sDdsGbdLH98HtHAS2xwEmGT1pW9pZAGaE + HQHbD51sGp8HRgf7yCRj0xfAngvtaOQwB8KOsO3RTnP5PLAdWTkFdrJp09wF7SoA/HU5BR1qPl8HtL8q + fJe/2CS/+DqrzS8U6c1guxrPQ7FoO2Y22t8kYcZtRbsJwAKwc9B5NvB1QHSeT1AMgZ1hknF5pXj42vYH + 2C5oy5l9HRRteSOKvU0SUNUWtIsAcFyaDftndJgZfBwQneUdFINh5xnNixcKRinyieCPaNf5fRzQpjg7 + HHaOaYP4gXYQgMVhF6KDrOrjYOggjMRjyOlQ2JehnVO+g68H25gkYMvLvAy082gUu5iahxbXXQB2g53m + I2bfjtsfa5Ib/5vQjilN4ZMep2IfgzZfNO/BbIAWw7/PMjWddVhXAWBK7IvQCTbOeyB0Ar4PHm+Sj3tf + h3ZMEcGQ421hx6IP9Mh7MPSBW1HsZGqYoaiOArA+7JK8Q0Z2KI+/+HwXDDXZRskHXw34sZAh3bPnORD6 + w7soBsJGhHbKJ3USAGbS5Xju3nmGiOz0Wiab4IegD0I7pXiBmZePge2GvjFV1oPYoV6O9vC1oBY/CnUR + ACbdvAqNu3qeg6CBR5okOuzJ0A4phcAPhGegn6yT5yA2nJip394J7VBe6iAA/Lp/NRp17qwHQINy2as/ + miQ8VKk/DATjx+F5sh4AfYaJVzjyMDq0M3mIXQD2MElDZgrltY90l5kkCuzD0M4opcIYAr4yDsz6ymgX + OjnQJK8FURKrAPB9/zw03E5ZD4DGe80kH3XuDO2MEpS1YeeiLy2c9QDoSxwh4sfG6L4LxCgATL19LRps + 7Sw72199JpLkr/5noZ1RKgGjQ5k9aI8cTwP8IdnSRBYVGpsA9IDdhEZaKsvO9l1/gEnyxilKZzhH5OKs + Q8joX8zVuBHs1dCOSIlJAJgk4qYcjcPMO3zk1xVmlFYwiIwi8OssO9t4AQagPRraEQmxCADX1Ls2S6ZZ + +6GG47acuFPLcE7FO7wvOHnspCwfmG2eAb4O3BbaEYmjVWdz2D+yJJBEQzB0k+O1UQ/VKMHIPMSMvscP + ghwmvD60E62ougD0h12KBpjadcc6BWsoQckcZGbTu3OkamhoJ7qiygLAqZgcnunmuiMu/JkmGZ+NblhG + qST8AToVfXEv1x3tYiW7m2TkqXJUVQB4oQe7DsnY931G9F0Q2gGlluxskoxSTvMJ7NDzvqaCAUNVFAB+ + qb8gw80/ySQhnreHdkCpNZxHcA36Z3eXnawIMFioUk8CVRMAvvNf7rqEFC7uWyg2NDqJRykHxqHc5Jpr + wL4OcBn5ynwTqJIA8Gv/MNcPfjbvPsds3wrtgNJWcCLRCPTXpV12sh8G+aRaidGBqggAk3jc4DrUh4v5 + oEl++T8K7YDSlnBC0W3otyu67IR+y1ySXHsy+OtqFQRgedgo1yAfXMR7UGwCmxTaAaWt4QIzw9F/13LZ + yQYLcZ9HQlY+tAD0gD2Ai/czl51w8aicfGX4PHD9FYVwoVNGqm7ospNNLb8y7LVQFQ8pAHx8ug8XbUmX + neziDcz8qim5lSrBkGF+w9rMZSc7gYgL0waZRRhKAPih71bXKb12Qg/fnTTAR6kiFIHrMzwJcCox9ym9 + X4cSgCGuyTzsOz8vks7hV6oM16Dgj9uaLjvZpCIDyq5sCAHYCxfHKSIKF+dhkwRgTA5QX0VxhR8G70A/ + X9llJ/TzPVH8rcyKli0AfNe5y2Ws347z9zOas0+Ji1lNMrrVR7qDDWXvCxtTViXLFAAGTjzqMrXSLttM + FdUgHyVG2OcfQp//uXQHm22YQ+OlzGItSwD4i89f/tUcLgQf99eAPVFSHRWlCPgEMNplGXP0/ftM8tT7 + VdGVK0sATscF2MfhAtBx5la7o6T6KUqRMNL1JpdZhLgHuAL1AUVXrAwBoPMjXGb3wXmu6lupWVOKkpNd + cA+I+zRnD/KeQVnoPVq0ADDB4lMuiTzhMEcIxE8LihIRzHGxt3RjGym4DOxfRVWoaAEY7rJEd5nvPooS + AH4LG4l7Yg3pDrgnmMKec14KSWhbpABwkQXxmGbZXz8VJRAcBXvMcTSMWa7OLqIyRQnA4rCxcHJ6oYP8 + xefMqPsLqo+iVAmneBjcH4x+XRY23ndFihAAJvG8zyUKCg7ynb9y+dIUpUD2wz0ySLox7pF7TfIjOcVn + JYoQgP3h2KkOjt1qkow+umiH0k7w3rsF98oG0h1wrzC78Lm+K+GTnib56j+D0CGu1dcb9p7neihKDDAP + xjjcL3NKNsb98jEKTp/3FhnrWwBGSBXNZknl182QC3VyeJL1nQ/mlIhUiZ5vYAw15xNoyB8gBrwNl8bJ + 4L65wSTJcLzgUwC2hhPDpBvDEY4Q7Onx/K5+Hww7SvqhUqkn6IfMKnUs/xiwGmejH+7uUGeuO3itjxP7 + EgBOf3weTswrdOBlk8RIh5rbfwjq+tdA51YqCPokfxBOCnR6vjLz1bmnsK58cukF+zTviX0JwF9R+UOE + leej/7qwOz2d2xU+9k/QX36lI+iXX5gkR2Wo1wHmu7jD4VWAP2CH5T2pDwFYGPaMdBnlUJlPOrAj6npx + wPMrFQV9c0cUlwasgjhTlk0tvgTslTwn9CEAXCZpC2Gl3zXJV8yQyT2OQH2PC3h+paKgfx6J4viAVZgN + 9qx07gzqe7VJFhnJTF4BYETTvQ6PLczme5WHC5WHY1DfowPXQakg6J/8GHhM4GqIP6bb12kuW545gjav + ADDib1VhZfnOv46vq5QDFQClKRURADJSmjEbdX4AxSpZT5RHANZHJW8VVpJjrpzW+LTPq5QRFQClKRUS + AAbHjZUmEEG9OeM2UzxNVgHgfg+jgssLKxhyzL8zKgBKUyokAEQcG4B6c1VsThZynieQVQA2QeVuFFaO + C3cuAvugoAvlikgAUO9RKO4JVMeeqOPvBXVkPEVllpquMGvievZN26hiAvBT2HjUe1bJxqg7PwZe7XqS + LALA2X5jpcsio2L7ohhc4IVyRSoAITvDuqhjaj5E1PGfKNYLVMeYiKHNm7EP6n26ZEPU/SmTvGY7PQVk + EYCtUCnRl3xUioseLmqqtZRXDJ1BBcAvMbR5Mxhbw6eABSQbo/4cjr/O5QRZBIDZTJYTVmhnFBcVfZUc + iaEzqAD4JYY274qdUfcLJBui/o+i+KXLwV0FYD1U5nZhZV40SaTS12VcJQdi6AwqAH6Joc27glmDnkP9 + F5JsDB841C4Os3cVAJfxye1QXFHWVXIghs6gAuCXGNq8Fduj/qIQZfjAfvMr6YFdBIBjk+MkUX+oxLN2 + e6/pizwRQ2dQAfBLDG3eCuaqeBo+LC7wgdGBnGkrirlxEYALUYGBkg1RiR1QXBbgQkmIoTOoAPglhjZP + QzyJDX5ciGIXybZSAZgd9oZkCi1OznRFnNdcpS//HYmhM6gA+CWGNk+DIwKvStKJ2yQnXJA0ddKdVAAO + wIlPkWyIkzMvQMjsKmnE0BlUAPwSQ5tLECeygS9cVzA167BEALjNCzjxIoKTckXf+WETA1+oVsTQGVQA + /BJDm0tgVODr8GVGgS9cQ4DfDFpm25YIQD+cUDSsgJMy4m/f0FcphRg6gwqAX2JocynilbbhD9cRGNVq + G4kADMUJtxWcjErDp4SXQ1+hFGLoDCoAfomhzaUwA9d44Wjc5Si2b7VN2kG6w96W5PnHyUaaJNdf1Ymh + M6gA+CWGNnfhTvjTT+APk+7yo+GkrrZJE4CBONGFkhpVJNuPhBg6gwqAX2Jocxe2gT//kGwInzh0P6Sr + /08TAC5guJbgJFzhh8MOVR3660gMnUEFwC8xtLkL08Legk+zC3xqmYmrlQAwx/9rOEnqijk4CdcCPDD0 + VRESQ2dQAfBLDG3uyiD4tJ/AJ2bj4sjc283+v5UAuMxF5qSf50JfESExdAYVAL/E0OauLAmfROG+rVbf + biUAzPa7uuDg40ySiCAWYugMKgB+iaHNs/Ak/Oot8IuZrfo2+7+uBICrlr4pfPw/HMVfQl8JB2LoDCoA + fomhzbNwOPxKXcfAvgbwlf5/Vj3qSgB2wYHPl9QAB+fY/0uhr4QDMXQGFQC/xNDmWVgEfo2XbNhVcp6u + BIDLFW8sOKhzBpIKEENnUAHwSwxtnhXm51xW4FvTZcWbCQBn/L0vDP4JuaJqVmLoDCoAfomhzbNyMHw7 + QeAbVxJmpuEvOv57MwH4FQ54m+TMOOhiKESPIBUihs6gAuCXGNo8K73g27OSDeEfI3VHdvy3ZgJwCg54 + gOBgXJVUlKesYsTQGVQA/BJDm+fhFfi3oMC/k1Ec1PHfmgkA0371ERysSqv9uBBDZ1AB8EsMbZ4H0SpC + 8O8Jk6wg9D2dBWAO2HvCmUYbobgltOcZiKEzqAD4JYY2z4NopS47Y5f3+PerdHW+0bfAga4RHOhLk6xl + /llozzMQQ2dQAfBLDG2eByYI4Yf7aQU+ciTghsbfOwvAYBxkb8FBYu54MXQGFQC/xNDmeZFOEWZ4//dz + CDoLgGjVHxyEF/NPoT3OSAydQQXALzG0eVk+PoJihcbfOwoAx/0n4iBTCw7CxUHuCu1xRmLoDCoAfomh + zfMi7TNfmSTRDzMH/5cArI4D3Cs4AJf6YnLCT0J7nBFpZ7jedHhXKhnO9DoobSPUkbPBTg5Ux5jYDNdz + 87SNIheAmWAfCefvrIbifv65owDsj51PFez8GIrlQ3ubA5EAKO1H5AJApGHB+6M4jX/uKADS5J9nokj9 + UFhhVACUptRAAM5A395L4Of3yUI7CsAz2HkJwc6/QyHKR1ZRVACUptRAALZF3x4q8JOvjt/lEWgIACcA + TRa+P/RC8XxoT3OgAqA0pQYC0Ad9e5zAT37HY+zAlw0BWBY7jhXsyA9//IJYxVV/pagAKE2pgQBwBO8T + 9O9pBL4ujeLJhgBIHx0eRLFyaC9zogKgNKUGAkCkc3n6o7iyIQDHY6fDBTsxo8jOoT3MiQqA0pSaCID0 + Yz5TiR3ZEICrsNNWgp1EK45WHBUApSk1EYCD0L9TV+eGr1ei6N8QAGkIcKwzADuiAqA0pSYCIJ0Z+F06 + v4YAMAS4u2AnLjf8QmgPcyKNBOTX1CcD1XFu1HGdtI1Qx3dMpwwvSlP4dXzptI1qIgDSkYCPUMxGAZgV + O3wo2IGphTlfIIblv1oRQ1y4zgXwSwxt7ouZ4evHkg3hb3cKgFQx3jDJEkOxE0NnUAHwSwxt7pP3hesG + 9qYAbIiNU9/rsfEYFKuG9swDMXQGFQC/xNDmPnkE/qbO14G/G1IAdsbGFwg2HoZim9CeeSCGzqAC4JcY + 2twnV8PfLQX+DqQASJcX4uyh/UN75oEYOoMKgF9iaHOfnAZ/9xX4ezgFQDqD6BAWoT3zQAydQQXALzG0 + uU8Ohb+p63XC38EUgL9j4/6CjQeguDi0Zx6IoTOoAPglhjb3yQD4e1HaRvD3CgrArdh4fcHGm6IYHtoz + D8TQGVQA/BJDm/tkU/ibms0K/o6gAIzBxqkTfLDxGihGh/bMAzF0BhUAv8TQ5j5ZE/6OEvg7hgLwLDbu + Jdj4u+mDoT3zQAydQQXALzG0uU+Whr9PCPx9hgLwKjZeQLBxTxQTQnvmgRg6gwqAX2Joc5/0hL8vC/yd + QAHgUmBzCjaeG8W7oT3zQAydQQXALzG0uU84l+Rtgb/vUQAmYeOZBBtzstCk0J55IIbOoALglxja3Cfd + 4e9Egb+TKABfCNcUmw7Fl6E980AMnUEFwC8xtLlPpoe/qet2wt/PKQBfYeOpBBsz39jXoT3zQAydQQXA + LzG0uU+mhr+ps3a5ShAFYIpwOfBuKL4N7ZkHYugMKgB+iaHNfdIN/n4j8HeKCkDX/qoA1IcY2twnTgKg + rwDN/VUBqA8xtLlPnF4B9CNgc39VAOpDDG3uE6ePgDoM2NxfFYD6EEOb+8RpGFADgZr7qwJQH2Joc584 + BQJpKHBzf1UA6kMMbe6TheDvSwJ/J+hkoK79VQGoDzG0uU+cJgNJpwOvieLe0J55IIbOoALglxja3Cd9 + 4e/dAn/vpwCMwMYbCDbWhCDloQLglxja3Cebwd/rBf7eoinBuvZXBaA+xNDmPnFKCTYYG+8t2PhQFCeE + 9swDMXQGFQC/xNDmPpEmBT2dAnAYNv6zYGNNC14eKgB+iaHNfXI6/N1H4O9hujBI1/6qANSHGNrcJ04L + g+jSYM39VQGoDzG0uU+kS4NtQAHojY1Tx/d1cdBSUQHwSwxt7hPp4qBLUQBmwcYfCTbW5cHLQwXALzG0 + uS+clwcnE7FTd8EOjBh8PrSHOZF2Bi6ZHirykbHc6wjq+A6KkYHqGBN9cD2XTtuoJgJAX8cJfOWP/mwN + AXgUO/1CsNNGKFK/F1QckQAo7UdNBEC6KtAjKFZoCMAw7LS1YKcDUAwK7WFOVACUptREAA5G/06N14Gv + V6Lo3xCA47HT4YKdhqAYGNrDnKgAKE2piQAMRf/eVuDrcSiOagjA77DTFYKdHkKxUmgPc6ICoDSlJgLw + JPp3b4GvDP+/siEAy2CnxwU7fYqCHwtTEw5WGBUApSk1EIBpYJ+gf08t8PW76f0NAZgeNhk7/liwY+wj + ASoASlNqIADSEQAm950R9mXHdOBPY+clBTvz/eLvoT3NgQqA0pQaCMB26NuXC/x8CkUf/rmjAFyOnbcT + 7HwmitTZgxVGBUBpSg0E4Ez07T0Ffl6GYgf+uaMA7I+dTxXsPBZFasxAhVEBUJpSAwEYi769rMBPzurl + 7N7/EoDVsPNowc58f5gV9klobzMijQRkRpXUgIqCWBJ1PEhQx6dRnByojjHBDDmbp20UuQDMDPtQ+B1v + NRT3888dBYBx/hOFXxAZpnpnaI8zEkNcuM4F8EsMbZ6X9eDj7QIfvzKJWHzBv3deE1AaEsyL+afQHmck + hs6gAuCXGNq8LB8fRrFi4++dBUCaSYQTUNYN7XFGYugMKgB+iaHN83IXfFxL4ON/ZfbqLAC/wUGuFRyE + awTOBktdf6yCxNAZVAD8EkOb54Fj+u8L1/jkt5Dvv211FoA5TLJUmGS58I1R3Bza8wzE0BlUAPwSQ5vn + YRP4d6PAv29Nco9/0Pi3Zjf6OBysj+BgZ6P4Y2jPMxBDZ1AB8EsMbZ6Hc+DfHwT+Mdx/uY7/1kwATsbB + DhQcjOsE9gzteQZi6AwqAH6Joc3zMAH+9RD4dxKKgzv+WzMBEA0n2AMujuKF0N47EkNnUAHwSwxtnpVe + 8O1ZyYbNhu+bCcB0Jvmg8BPBAakmJ4W+Ao7E0BlUAPwSQ5tn5RD49leBb5NN8v7/Zcd/7+pj3w046KaC + gz6GIjX9cMWIoTOoAPglhjbPyuPwbRmBb4xs/U3nf+9KAESLhdgDL4IidS3yChFDZ1AB8EsMbZ6FReGX + 6BWci4CgGNL537sSgLlgbwnjio9Akbq0WIWIoTOoAPglhjbPwpHwKzUi16b0nwf2r87/12q8/x4cfA3B + wZk6OzXlcoWIoTOoAPglhjbPgjSHxygUTaMEWwnA3jj4YEktcAJWQvQlsgLE0BlUAPwSQ5u7shR8ekqy + IfzaC8VZzf6vlQDwkeF14WsA8wikxg5UhBg6gwqAX2Joc1cGwaf9BD7x8X8+2DvN/j8t5PdOnKSf4CT/ + tif5Mm3bChBDZ1AB8EsMbe4CY/7fEq7/17KPpAnAAJzkIkmNcCIuHT4s9JUREENnUAHwSwxt7kJ/+CPK + ywmfBqC4uKv/TxMApgB/GyebQXAiRhilrmdXAWLoDCoAfomhzV2QTv1lGn++yk/qapvUWX9GniyUM40W + NdWPCYihM6gA+CWGNpeyMGy8cMbu98k/u0IiAP1wMlH6L5yQowb7hr5CKcTQGVQA/BJDm0sZDF9EWbnh + D58SRrXaRiIA3OYFnHQRwQmZKHR+2Eehr1ILYugMKgB+iaHNJTAJz2vwZUaBL+NRcLLet622kwgAOQAn + PUWyIU58KIrU1UkDEkNnUAHwSwxtLuFQ+PEXyYYdU3+3QioAHG54AyefXnDit0ySJ+A/AS9UK2LoDCoA + fomhzdPg0B/n/c8t8ONzFD+HfZi2rVQAyLk4+W6SDVGBnVBcEuY6pRJDZ1AB8EsMbZ6Gy5D8eShSMwQR + FwHgF/7nUIluggo8h4JLFFdxFeEYOoMKgF9iaPNWMBqXcf+LC3yYgoIL+I6XHNhFAIgoT4CtyO9RDC35 + QkmIoTOoAPglhjZvxfao/6WSDeEDk4NuJj2wqwCsjorcK6wI4wGoRF+XdZWExNAZVAD8EkObdwVX6uKT + 90KSjTsu+yXBVQDIg6jMipINUZmdUYjeW0okhs6gAuCXGNq8K1yS8zyIYmWXg2cRgC1QoWuEFXoNxWKm + WpOEYugMKgB+iaHNmzEN7EXUfX7Jxqg/U35d73KCLALAj4BchliUBASV4pTF0wu+UC7E0BlUAPwSQ5s3 + Yz/Ue5BkQ5uYh0uDT3E5QRYBIKKVSGzFGBXIEYT3C7xQLkg7wygU9wSqY0/U8feCOr5sqvmhtWqsievZ + N22jigkAM/gyAndWycao+1YoRE/mHckqANzvIVTul8LKVWkVIZEAKO1HxQTAJe5mnElW/HH69SdZBYCs + jwreKqwg4wH4eCJKYVQwKgBKUyokAFyab6wkG5etd+Z1OvMIALkPlVxVWMmq5AtQAVCaUiEBEGXisnXm + kN9qWU+UVwA45HC/ZG6yrexvUVzl6yplRAVAaUpFBOC36J9XCuvLmX6rwB7MerK8AkCGosLbCiv8Hgpm + EP5Asn1BHIH6Hhfw/EpFQf88EsXxAavA6b4M+plTWN8rUKQm62mFDwHgrKPnJWsJ2kozP9kAD+fNyo6o + 68X5D6PUDfRNZs+5LGAVLkHf3EGyoU33xRibt/Kc0IcAkKNQ8WOFFedjC8euR3o6tytc9WiCZGqz0j7Y + KbQ9TJPVc0piXdjtDq/TXp5WfAkAk4Y+5xCx9IpJZgt+5un8rhyMulY5aYlSMoFXuubT81PokwsK68oI + W86z+TzviX0JANkSDlwt3RhOnINiD4/nd+Ugk3wQ1CeBNsb+8h9jwi5zfw76oWj+vq3zFiiu83FinwJA + roMjmwud4KsApxbf5LkOLvBjywYmWdRkqoD1UMqHs1TfgDGWJdRjP+EY/o0Oj/5Nl/nOim8BmBf2DJzp + LnSGKwox6OFdz/VQlBhgeq9xuF/mkGyM++VjFEvA3vZVAd8CQHaDQ+dKN4ZTnPSyvknJXqooNYP33gjc + K+tLd8C9wteE83xXogjH7oZjazo4VrUZg4pSNOJM2wT3CCemMc+/1x/KIgSAcPbf45IlxaxzX5kkTFiU + bUhRImd1k4T7Ti3ZGPcHR8s4l0aU58+FogSA7A4Hz5ZubKME6eQ70n0UJUK4Vt9juDd+Jt2hiEf/BkUK + AOHXzU0cHH0ARV9T3TUFFCUPzPBzl3QCHcE9wVEy8T3kStEC8FOTBDi4qN1ZKPYquF6KEoKzcC+I82Lg + XuDT8DKmwGHKogWAMOz3Nuk4p3W8sEceRQnErrgHxH3axslsCLutyEqVIQBkEJzfz8F5JhBhgIQo4Yii + VBwGmw3HPSAONsM9cCqKA4uuWFkCQMf51XMNhwswGQW3f6KkOipKETB57r3o+zNLd0DfH41ibdhXRVeu + LAEgnIXHNEfzOFyIN02SdOTNEuupKL5giPkD6PPzSnewi+sub0qKji1TAAizlzBIaBqHC8J0xwyASF3p + VFEqBLP53oO+3lu6A/o6R7/Y18eUVcmyBYDsgYvyN5cdcGEeNkmg0OQA9VUUV/i4f4d0Ba0G6OccIRDH + zvgghACQIbg4O7nsYEMh+VU0VA4BRZHA6eW3uoTCk1CZskIJAEMgb8FFWtdlJ1yk200SFKGBQkoV4ast + V9DewGUnmzGbP26l9+tQAkBmgY3GxVrKZSe7/DGzC1dpvUFF4c1/Ffrzpi47oT8/g4KRgR+HqHRIASAL + wMa4jAwQuyYeE498Grj+ikI46e1al6m9xEb6rQR7PVTFQwsA+YVJvpaKsgo3wMXjzEEGC00K7YDS1sxk + kjkva7nsZLP68jvBYyErXwUBIAwX5kWczmUnXMRHTJJMRIcIlRAwjz8/+K3gshP6LV9f+S0rdQXooqmK + AJDNTPIOJZoj3QAXk+sN8mK+GtoBpa3gehgjXMb5CforcxFyJd8bQjtAqiQApD/scumiiA3su9RGsLGh + HVDaAs7Qu9klwo+gn3L1Xq7k84/QDjSomgCQgbALXGYPElzcT1BsbXQCkVIsHOIbhv45k8tOdnYfZ7me + H9qBjlRRAMiesDMyiAAfrxhNVamLrNQG3sBnuszqI/bm3xd2RmgHOlNVASB8EjjP9XWA4IIz1Hh/owFD + ih/4XYpT2vd03dFObadwXBjaiWZUWQDINrDLXD8MElx4TqhgwJDOJFTywBgVPvKv5rqjfSLdEXZFaCe6 + ouoCQPiFn6MD07ruaBON8ruAZhtWssCbnn1vbtcd7cw+/gBV4mt/V8QgAIRxAte5BgsRm3KcCz9y3QFd + fESRwPuC7+wnZnz6ZJAP1++7PbQjEkdjgSnDb3YNG25gVyDidwV9JVBawQS2Q1wn9DSwQ9J8an00tCMS + YhIAkin4ooFdi3BXU/HHMiUYDC2/EP1rziw724k9jEd5NbQjUmITAMJkC5x4sU7WA6ChmJ2VowSaW0Ah + fLU80STJajLdE+hTI00S4TcxtDMuxCgAhO9lXFN9YNYDoMFeQ7EzbGRoZ5SgMCfF2ehLC2c9APrSRSj2 + MBEOO8cqAA12M0nAkDjHYGfQeJeb5Gng/dDOKKXCiTwnwQbk+NXnB+YDYGeGdiYrsQsAYaLRq7N+HCT2 + 2wBXIxoW2hmlFBhfcjr6zFxZD2Cz9/KR/4HQzuShDgJA2JDDXPOwdcbmHdwb9mRoh5RCYPapwegn/fIc + BP3kPpPc/KWk7i6SuggA4XeBE2D7ZX2kIzZ0k+90hxt9LagLc8COhv0hS2h5AxvTPwh2COzr0E75oE4C + 0IBBQ5dkid7qCBqbX3P/BOO8gug+7ijfwejR3WFHoj/MludAdnyfWXsLXauvbOooAISrEp+PRt8874Hs + u97xsCFGhSAW+DTIefdHoQ/0yHswu0Q3R4wKW6U3FHUVgAa7wE7LEkLcGXSCCSYRgstMTR7/aggf75lU + hr/4i+Y9GNqccSIHmeQpsJbUXQAIO8K5rkkbuwKd4nkUXLmVw4eamrwacBiYX/YPQzsv5uOANuksf0DG + h3auSNpBABp+MmjoZHSQWXwc0L4Tchmnc41+LAxFd5O84+/pmp6rK9CuzM/Pj3xMKjMltINF0y4C0IAT + Pc728W2ggU1Fxu8DDAZ5KbSDbQKj9pj5aaBraq5WoC2vN8kwcNtMGGs3AWjAqZqnovMs4OuAdojobhjX + eLsG9kVoJ2sGH/OZOZrZdfrmGertDNruDZNM/70utJNl064CQLiay6Gw/8uSbKQV6FAfmeRj4QWwZ0I7 + GjkM3tkBtn3WWXpdYeftcxLQKbDPQzsagnYWgAY9TBJAtLXPX5UG6GTPorjK2nOhnY2EhUwSabcl2uQX + vg9un9auNEmimDdCOxsSFYAf4Bptp6DDrVrUCawYcPSA+QieD+1wxegF48Kahdz0DdAG95tkaG9MaIer + gArA/8JMMCegE/Yp8iT2vXOEtbtgn4R2vGRmhDEmn5GbG+J6L1jkyXC9x6E4AnZzaMerhApAc7rBfmOS + ceVliz6ZXSuOv0ycZPKQSX6dokosIYA3PNfQW90ki2KummcatxSbpecYk3zgq/2wnisqAK2hEHDI8BB0 + 1uXLOqmdkMQZiRSEh+2f+coQSygyb+zFYXyKWhHG16o+eSbiuIJr+KBJ5vvfaPTG7xIVADlMEX0kbN0i + PhamYXPMMyqNi6E+bpIPiq/CGKI8OdA14Rj8gtYYgbeESb7a9y7j173JNeKNPhx2mtFU8CJUANxZErYP + bDt08ulDV4ag439gEiGgvW2SeeqcuMJl0/kqwWFJisRn1vgkMcX88ETBm5VPOxwOpU+cO8FH9llhjJzk + TLq5rDHirgdsQfg/e2jfrf8cwuOwK6fq1jp01zcqANnhTbE9bFfcCL1CV6YdwY3PyEvGWlxiajhTrwxU + APLDa8iPWjvCtoAYzBi6QnXGztC71iTh18zgpIu95EAFwC9MWc4wY85MW7vMj151xr7bj4INNcnNPyl0 + neqCCkBxMCMRxYDBLWupGLhhb3om3GSiVs6teCd0neqICkA5MIadq84wyGg9nzPY6oSNzWdQFIfumIVH + 3+sLRgWgfKYzyZAiI+C4KMXSIYYVq4CNyX8C9k9ro40mWSmVtux4FYOjCVzbgGGxFIZlsqxIGwN2yWyG + 5DLqkdGOHKt/L3S92hkVgOrBcfjlTBI2u7RJAmv6xCYKNprxBZMELjG8mRGNjxnNk1ApVADiYCqTZMFh + EBLDaxl1xymzC/tKcZYVm/vgZZNkQ3rRJIE4jL9n6HJbzrGPCRWA+OHQ4/yw+WBcHo0fHBmxx9TojUg+ + 5s5jdB+fLpgIhYLSrZEIxU5G4ld3hhtznJ03Lj/IMT9eI5KQeQ/fs8Yv8pzN+LrRIbmo+X9dF8kEaUzw + 1wAAAABJRU5ErkJggg== + + + \ No newline at end of file diff --git a/Client/Diverses/SplashScreen.Designer.cs b/Client/Diverses/SplashScreen.Designer.cs index fed7a1d2..c7e91ced 100644 --- a/Client/Diverses/SplashScreen.Designer.cs +++ b/Client/Diverses/SplashScreen.Designer.cs @@ -62,9 +62,9 @@ this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(144, 330); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(165, 26); + this.label2.Size = new System.Drawing.Size(177, 26); this.label2.TabIndex = 2; - this.label2.Text = "6. Februar 2025"; + this.label2.Text = "10. Februar 2025"; // // SplashScreen // diff --git a/Client/DocMgmt/frmNote.cs b/Client/DocMgmt/frmNote.cs index d50ba5c4..4ffccff2 100644 --- a/Client/DocMgmt/frmNote.cs +++ b/Client/DocMgmt/frmNote.cs @@ -16,6 +16,11 @@ namespace OnDoc.DocMgmt public partial class frmNote : SfForm { public string dokumentid { get; set; } + public int notiznr { get; set; } = 0; + + public string betreff { get; set; } = ""; + public string notiz { get; set; } = ""; + public frmNote() { InitializeComponent(); @@ -45,7 +50,9 @@ namespace OnDoc.DocMgmt private void button1_Click(object sender, EventArgs e) { Database.DB db = new Database.DB(AppParams.connectionstring); - db.insert_note(AppParams.CurrentMitarbeiter,txtbetreff.Text,textBox1.Text,dokumentid); + this.notiznr=db.insert_note(AppParams.CurrentMitarbeiter,txtbetreff.Text,textBox1.Text,dokumentid); + this.notiz = textBox1.Text; + this.betreff = txtbetreff.Text; DialogResult = DialogResult.OK; } } diff --git a/Client/DocMgmt/frmToApproval.cs b/Client/DocMgmt/frmToApproval.cs index 4ae13701..45277668 100644 --- a/Client/DocMgmt/frmToApproval.cs +++ b/Client/DocMgmt/frmToApproval.cs @@ -149,6 +149,7 @@ namespace OnDoc.DocMgmt { if (!btntoapproval.Enabled) { return; }; DB dB = new DB(AppParams.connectionstring); + int mailid = 1; string sql = ""; if (!isserienbrief) { @@ -156,7 +157,7 @@ namespace OnDoc.DocMgmt sql = sql + " where dokumentid='" + dokumentid + "' and abgelehnt=0 and bewilligt=0"; dB.Exec_SQL(sql); dB.Get_Tabledata_for_Update("select top 1 * from dokument_bewilligung where id=-2", false, true); - + mailid = 1; } else { @@ -164,7 +165,7 @@ namespace OnDoc.DocMgmt sql = sql + " where serienbriefnr='" + serienbriefnr + "' and abgelehnt=0 and bewilligt=0"; dB.Exec_SQL(sql); dB.Get_Tabledata_for_Update("select top 1 * from serienbrief_bewilligung where id=-2", false, true); - + mailid = 2; } //dB.Exec_SQL(sql); //dB.Get_Tabledata_for_Update("select top 1 * from dokument_bewilligung where id=-2", false, true); @@ -192,8 +193,21 @@ namespace OnDoc.DocMgmt dr["notiz"] = txtnachricht.Text; dB.daten.Tables[0].Rows.Add(dr); dB.Update_Data(); + string id = ""; + if (!isserienbrief) + { + dB.Get_Tabledata("Select top 1 id from dokument_Bewilligung where dokumentid='" + dokumentid + "' order by id desc", false, true); + id = dB.dsdaten.Tables[0].Rows[0][0].ToString(); + + } + else + { + dB.Get_Tabledata("Select top 1 id from Serienbrief_Bewilligung where serienbriefnr='" + serienbriefnr + "' order by id desc", false, true); + id = dB.dsdaten.Tables[0].Rows[0][0].ToString(); + + } clsMailer mailer = new clsMailer(); - mailer.sendmail(1, cbboxunterschriftlinks.SelectedValue.ToString(), "", "", dokumentid, ""); + mailer.sendmail(mailid, cbboxunterschriftlinks.SelectedValue.ToString(), "", "", dokumentid, "", AppParams.CurrentMitarbeiter.ToString(), id); mailer = null; if (dokumentid != "") { @@ -221,8 +235,23 @@ namespace OnDoc.DocMgmt dr["notiz"] = txtnachricht.Text; dB.daten.Tables[0].Rows.Add(dr); dB.Update_Data(); + string id = ""; + if (!isserienbrief) + { + dB.Get_Tabledata("Select top 1 id from dokument_Bewilligung where dokumentid='" + dokumentid + "' order by id desc", false, true); + id = dB.dsdaten.Tables[0].Rows[0][0].ToString(); + mailid = 1; + } + else + { + dB.Get_Tabledata("Select top 1 id from Serienbrief_Bewilligung where serienbriefnr='" + serienbriefnr + "' order by id desc", false, true); + id = dB.dsdaten.Tables[0].Rows[0][0].ToString(); + mailid = 2; + } + clsMailer mailer = new clsMailer(); - mailer.sendmail(1, cbboxunterschriftrechts.SelectedValue.ToString(), "", "", dokumentid, ""); + + mailer.sendmail(mailid, cbboxunterschriftrechts.SelectedValue.ToString(), "", "", dokumentid, "", AppParams.CurrentMitarbeiter.ToString(), id); mailer = null; if (!isserienbrief) @@ -248,11 +277,12 @@ namespace OnDoc.DocMgmt } this.Close(); } + dB = null; } - if (txtnachricht.Text.Trim() != "") - { - dB.insert_note(AppParams.CurrentMitarbeiter, "Hinweis zur Unterschriftenprüfung", txtnachricht.Text, dokumentid); - } + //if (txtnachricht.Text.Trim() != "") + //{ + // dB.insert_note(AppParams.CurrentMitarbeiter, "Hinweis zur Unterschriftenprüfung", txtnachricht.Text, dokumentid); + //} } diff --git a/Client/Klassen/clsMailer.cs b/Client/Klassen/clsMailer.cs index 999cfef2..19fb8d08 100644 --- a/Client/Klassen/clsMailer.cs +++ b/Client/Klassen/clsMailer.cs @@ -11,9 +11,9 @@ namespace OnDoc.Klassen { internal class clsMailer { - public bool sendmail(int Mailtyp, string empfaenger, string betreff, string message, string dokumentid, string ondoclink) + public bool sendmail(int Mailtyp, string empfaenger, string betreff, string message, string dokumentid, string ondoclink, string absender, string bewilligungid) { - string URL = AppParams.RESTURI + "API/SendMail?mailid="+Mailtyp.ToString()+"&empfaenger=" + empfaenger + "&betreff=" + betreff + "&message=" + message + "&dokumentid=" + dokumentid + "&ondoclink=" + ondoclink; + string URL = AppParams.RESTURI + "API/SendMail?mailid=" + Mailtyp.ToString() + "&empfaenger=" + empfaenger + "&betreff=" + betreff + "&message=" + message + "&dokumentid=" + dokumentid + "&ondoclink=" + ondoclink + "&absender=" + absender + "&bewilligungid=" + bewilligungid; HttpWebRequest webRequest = HttpWebRequest.Create(URL) as HttpWebRequest; webRequest.Method = WebRequestMethods.Http.Get; diff --git a/Client/Start.cs b/Client/Start.cs index a201edb4..8692f145 100644 --- a/Client/Start.cs +++ b/Client/Start.cs @@ -342,6 +342,7 @@ namespace OnDoc { string partnernr = EDK_Data.AnzeigePartnernr; dokList1.refresh_edk_partner(Convert.ToInt32(partnernr)); + System.IO.File.Delete(filename); } } diff --git a/Client/UIControls/Approval.cs b/Client/UIControls/Approval.cs index 00a1ebc6..e53f002e 100644 --- a/Client/UIControls/Approval.cs +++ b/Client/UIControls/Approval.cs @@ -152,12 +152,16 @@ namespace OnDoc.UIControls if (note.ShowDialog() == DialogResult.OK) { DB db = new DB(AppParams.connectionstring); - string sql = "update dokument_bewilligung set abgelehnt=1, abgelehnt_am = '" + DateTime.Now.ToString() + "' where id=" + dr["id"].ToString(); + string sql = "update dokument_bewilligung set abgelehnt=1, abgelehnt_am = '" + DateTime.Now.ToString() + "', betreff='"+note.betreff+"', notizgrund='"+note.notiz+"' where id=" + dr["id"].ToString(); db.Exec_SQL(sql); - - // treeViewAdv1.Nodes.Remove(treeViewAdv1.SelectedNode); - // TreeNodeAdv tp = treeViewAdv1.SelectedNode.Parent; - // treeViewAdv1.SelectedNode.Parent.Nodes.Remove(treeViewAdv1.SelectedNode); + clsMailer mailer = new clsMailer(); + string empfaengerid = ""; + db.Get_Tabledata("Select mutierer from dokument_Bewilligung where id=" + dr["id"].ToString(), false, true); + empfaengerid = db.dsdaten.Tables[0].Rows[0][0].ToString(); + + // treeViewAdv1.Nodes.Remove(treeViewAdv1.SelectedNode); + // TreeNodeAdv tp = treeViewAdv1.SelectedNode.Parent; + // treeViewAdv1.SelectedNode.Parent.Nodes.Remove(treeViewAdv1.SelectedNode); if (dr["Bewilligungstyp"].ToString() == "2") { db.Exec_SQL("Update dokument set approved=0, approval2=0 where dokumentid='" + dr["dokumentid"].ToString()+"'"); @@ -166,6 +170,8 @@ namespace OnDoc.UIControls { db.Exec_SQL("Update dokument set approved=0, approval1=0 where dokumentid='" + dr["dokumentid"].ToString()+"'"); } + mailer.sendmail(5, empfaengerid, "", "", dr["dokumentid"].ToString(), "", AppParams.CurrentMitarbeiter.ToString(), dr["id"].ToString()); + mailer = null; remove_node(); //if (tp.Nodes.Count < 1) @@ -183,6 +189,10 @@ namespace OnDoc.UIControls { DB db = new DB(AppParams.connectionstring); DataRow dr = treeViewAdv1.SelectedNode.TagObject as DataRow; + clsMailer mailer = new clsMailer(); + string empfaengerid = ""; + db.Get_Tabledata("Select mutierer from dokument_Bewilligung where id=" + dr["id"].ToString(), false, true); + empfaengerid = db.dsdaten.Tables[0].Rows[0][0].ToString(); string sql = "update dokument_bewilligung set bewilligt=1, bewilligt_am = '" + DateTime.Now.ToString() + "' where id=" + dr["id"].ToString(); db.Exec_SQL(sql); if (dr["Bewilligungstyp"].ToString() == "2") @@ -192,7 +202,10 @@ namespace OnDoc.UIControls else { db.Exec_SQL("Update dokument set approval1=1 where dokumentid='" + dr["dokumentid"].ToString()+"'"); + } + mailer.sendmail(3, empfaengerid, "", "", dr["dokumentid"].ToString(), "", AppParams.CurrentMitarbeiter.ToString(), dr["id"].ToString()); + mailer = null; Logging.DocLog.Info("Dokument geprüft", "Dokumentprüfung", dr["dokumentid"].ToString(), "", ""); db.Get_Tabledata("Select * from dokument where dokumentid='" + dr["dokumentid"].ToString() + "'", false, true); diff --git a/Client/UIControls/DokList.Designer.cs b/Client/UIControls/DokList.Designer.cs index 7dfdc5b5..a179b725 100644 --- a/Client/UIControls/DokList.Designer.cs +++ b/Client/UIControls/DokList.Designer.cs @@ -63,6 +63,7 @@ namespace OnDoc.UICintrols this.tsbtnpreviewright = new System.Windows.Forms.ToolStripButton(); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.sfDataGrid1 = new Syncfusion.WinForms.DataGrid.SfDataGrid(); + this.docPreview1 = new OnDoc.UIControls.DocPreview(); this.panel2 = new System.Windows.Forms.Panel(); this.lblTitel = new System.Windows.Forms.Label(); this.ribbonPanel2 = new System.Windows.Forms.RibbonPanel(); @@ -166,7 +167,6 @@ namespace OnDoc.UICintrols this.gruppenSchliessenToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.RibbonButtonCreateNewDoc = new System.Windows.Forms.RibbonButton(); this.ribbonButton5 = new System.Windows.Forms.RibbonButton(); - this.docPreview1 = new OnDoc.UIControls.DocPreview(); this.dokwerte1 = new OnDoc.UIControls.Dokwerte(); this.ctxMenuDokList.SuspendLayout(); this.toolStrip1.SuspendLayout(); @@ -484,6 +484,16 @@ namespace OnDoc.UICintrols this.sfDataGrid1.ColumnResizing += new Syncfusion.WinForms.DataGrid.Events.ColumnResizingEventHandler(this.sfDataGrid1_ColumnResizing); this.sfDataGrid1.CopyContent += new Syncfusion.WinForms.DataGrid.Events.CutCopyPasteEventHandler(this.sfDataGrid1_CopyContent); // + // docPreview1 + // + this.docPreview1.BackColor = System.Drawing.SystemColors.Control; + this.docPreview1.Dock = System.Windows.Forms.DockStyle.Fill; + this.docPreview1.Location = new System.Drawing.Point(0, 0); + this.docPreview1.Name = "docPreview1"; + this.docPreview1.Size = new System.Drawing.Size(1709, 347); + this.docPreview1.TabIndex = 0; + this.docPreview1.ZoomPercentage = 0; + // // panel2 // this.panel2.BackColor = System.Drawing.Color.WhiteSmoke; @@ -1384,16 +1394,6 @@ namespace OnDoc.UICintrols this.ribbonButton5.SmallImage = ((System.Drawing.Image)(resources.GetObject("ribbonButton5.SmallImage"))); this.ribbonButton5.Text = "Load"; // - // docPreview1 - // - this.docPreview1.BackColor = System.Drawing.SystemColors.Control; - this.docPreview1.Dock = System.Windows.Forms.DockStyle.Fill; - this.docPreview1.Location = new System.Drawing.Point(0, 0); - this.docPreview1.Name = "docPreview1"; - this.docPreview1.Size = new System.Drawing.Size(1709, 347); - this.docPreview1.TabIndex = 0; - this.docPreview1.ZoomPercentage = 0; - // // dokwerte1 // this.dokwerte1.Dock = System.Windows.Forms.DockStyle.Right; diff --git a/Client/UIControls/DokList.cs b/Client/UIControls/DokList.cs index bb60c5d8..48de1fa4 100644 --- a/Client/UIControls/DokList.cs +++ b/Client/UIControls/DokList.cs @@ -52,6 +52,8 @@ using Syncfusion.Windows.Forms.CellGrid.ScrollAxis; using Syncfusion.Windows.Forms.Edit.Utils; using Syncfusion.WinForms.DataGrid.Serialization; using NLog.LayoutRenderers; +using Syncfusion.Windows.Forms.PivotAnalysis; + @@ -258,6 +260,7 @@ namespace OnDoc.UICintrols RibbonFilterLabel.Text = partnernr + " " + db.dsdaten.Tables[0].Rows[0][0].ToString(); RibbonFilterLabel.Visible = true; RibbonFilterDelete.Visible = true; + ribbonbuttonnewparterdoc.Visible = true; if (Convert.ToBoolean(db.dsdaten.Tables[0].Rows[0][1])) { RibbonPartnerSaldiert.Visible = true; } else { RibbonPartnerSaldiert.Visible = false; } refresh_dokumente(); } @@ -993,7 +996,8 @@ namespace OnDoc.UICintrols dB = null; Logging.DocLog.Info("Verantwortung zugewiesen auf " + ma.result.ToString(), "Doklist", selected_dokumentid, selected_partnernr, "Verantwortung zugewiesen"); clsMailer mailer = new clsMailer(); - mailer.sendmail(2, ma.result, "", "", selected_dokumentid, ""); + mailer.sendmail(102, ma.result, "", "", selected_dokumentid, "",AppParams.CurrentMitarbeiter.ToString(),""); + refresh_dokumente(); } } @@ -1053,6 +1057,15 @@ namespace OnDoc.UICintrols { try { + if (e.Column.MappingName == "Prüfung_Rechts") + { + var selectedItem = e.DataRow; + var dataRow = (e.DataRow.RowData as DataRowView).Row; + if (dataRow["Prüfung_Reghts"].ToString().Contains("Abgelehnt")){ + e.Style.BackColor = Color.Red; + } + + } //MessageBox.Show(e.Column.MappingName); if (e.Column.MappingName == "zu_retournieren") { @@ -2029,6 +2042,79 @@ namespace OnDoc.UICintrols private void sfDataGrid1_ToolTipOpening_1(object sender, ToolTipOpeningEventArgs e) { + switch (e.Column.MappingName.ToLower()) + { + case "prüfung_rechts": + if (e.DisplayText.Contains("Abgelehnt")) + { + Syncfusion.Data.RecordEntry record = sfDataGrid1.View.GetRecordAt(e.RowIndex-1); + var a = record.Data; + var b = a as DataRowView; + string x = b["dokumentid"].ToString(); + DB db = new DB(AppParams.connectionstring); + db.Get_Tabledata("select top 1 betreff, notizgrund, mutiert_am from dokument_bewilligung where dokumentid='" + x + "' and bewilligungstyp=2 and abgelehnt=1 order by mutiert_am desc", false, true); + try + { + Syncfusion.WinForms.Controls.ToolTipItem t = new Syncfusion.WinForms.Controls.ToolTipItem(); + t.Text = db.dsdaten.Tables[0].Rows[0]["mutiert_am"].ToString() + + Environment.NewLine + Environment.NewLine + db.dsdaten.Tables[0].Rows[0]["betreff"].ToString() + + Environment.NewLine + Environment.NewLine + db.dsdaten.Tables[0].Rows[0]["Notizgrund"].ToString(); + System.Drawing.Font tf = new System.Drawing.Font(t.Style.Font.FontFamily, 10,FontStyle.Bold); + + t.Style.TextAlignment = ContentAlignment.MiddleLeft; + t.Style.BackColor = Color.FromArgb(255,102,0); + t.Style.Font = tf; + e.ToolTipInfo.Items.Add(t); + db = null; + + } + catch { } + db = null; + } + + //var record1 = sfDataGrid1.View.Records.GetItemAt(e.RowIndex); + + break; + case "prüfung_links": + if (e.DisplayText.Contains("Abgelehnt")) + { + Syncfusion.Data.RecordEntry record = sfDataGrid1.View.GetRecordAt(e.RowIndex - 1); + var a = record.Data; + var b = a as DataRowView; + string x = b["dokumentid"].ToString(); + DB db = new DB(AppParams.connectionstring); + db.Get_Tabledata("select top 1 betreff, notizgrund, mutiert_am from dokument_bewilligung where dokumentid='" + x + "' and bewilligungstyp=2 and abgelehnt=1 order by mutiert_am desc", false, true); + try + { + Syncfusion.WinForms.Controls.ToolTipItem t = new Syncfusion.WinForms.Controls.ToolTipItem(); + t.Text = db.dsdaten.Tables[0].Rows[0]["mutiert_am"].ToString() + + Environment.NewLine + Environment.NewLine + db.dsdaten.Tables[0].Rows[0]["betreff"].ToString() + + Environment.NewLine + Environment.NewLine + db.dsdaten.Tables[0].Rows[0]["Notizgrund"].ToString(); + System.Drawing.Font tf = new System.Drawing.Font(t.Style.Font.FontFamily, 10, FontStyle.Bold); + + t.Style.TextAlignment = ContentAlignment.MiddleLeft; + t.Style.BackColor = Color.FromArgb(255, 102, 0); + t.Style.Font = tf; + e.ToolTipInfo.Items.Add(t); + db = null; + + } + catch { } + db = null; + } + break; + + } + //System.Drawing.Point p = new System.Drawing.Point(Location.X, Location.Y); + + //var rowColIndex = sfDataGrid1.TableControl.PointToCellRowColumnIndex(p); + //var mouseDownRecordIndex = this.sfDataGrid1.TableControl.ResolveToRecordIndex(rowColIndex.RowIndex); + //if (!(mouseDownRecordIndex < 0)) + //{ + // //if (ObjList.Count != 0) + // // selectedItem = ObjList[mouseDownRecordIndex]; + //} + return; //e.ToolTipInfo.Items.Clear(); //Syncfusion.WinForms.Controls.ToolTipItem tt = new Syncfusion.WinForms.Controls.ToolTipItem(); //tt.Text = "Hallo Du"; diff --git a/Client/UIControls/Dokwerte.Designer.cs b/Client/UIControls/Dokwerte.Designer.cs index 42ba2974..03ad262a 100644 --- a/Client/UIControls/Dokwerte.Designer.cs +++ b/Client/UIControls/Dokwerte.Designer.cs @@ -28,15 +28,19 @@ /// private void InitializeComponent() { + this.components = new System.ComponentModel.Container(); this.sfDataGrid1 = new Syncfusion.WinForms.DataGrid.SfDataGrid(); this.panel1 = new System.Windows.Forms.Panel(); this.label1 = new System.Windows.Forms.Label(); this.grppruefung = new System.Windows.Forms.GroupBox(); this.sfdatagridpruefung = new Syncfusion.WinForms.DataGrid.SfDataGrid(); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.notizHistoryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); ((System.ComponentModel.ISupportInitialize)(this.sfDataGrid1)).BeginInit(); this.panel1.SuspendLayout(); this.grppruefung.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.sfdatagridpruefung)).BeginInit(); + this.contextMenuStrip1.SuspendLayout(); this.SuspendLayout(); // // sfDataGrid1 @@ -90,6 +94,7 @@ this.sfdatagridpruefung.AccessibleName = "Table"; this.sfdatagridpruefung.AllowEditing = false; this.sfdatagridpruefung.BackColor = System.Drawing.SystemColors.Window; + this.sfdatagridpruefung.ContextMenuStrip = this.contextMenuStrip1; this.sfdatagridpruefung.Dock = System.Windows.Forms.DockStyle.Fill; this.sfdatagridpruefung.Location = new System.Drawing.Point(3, 16); this.sfdatagridpruefung.Name = "sfdatagridpruefung"; @@ -97,6 +102,21 @@ this.sfdatagridpruefung.TabIndex = 0; this.sfdatagridpruefung.Text = "sfDataGrid2"; // + // contextMenuStrip1 + // + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.notizHistoryToolStripMenuItem}); + this.contextMenuStrip1.Name = "contextMenuStrip1"; + this.contextMenuStrip1.Size = new System.Drawing.Size(181, 48); + this.contextMenuStrip1.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStrip1_Opening); + // + // notizHistoryToolStripMenuItem + // + this.notizHistoryToolStripMenuItem.Name = "notizHistoryToolStripMenuItem"; + this.notizHistoryToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.notizHistoryToolStripMenuItem.Text = "Notiz-History"; + this.notizHistoryToolStripMenuItem.Click += new System.EventHandler(this.notizHistoryToolStripMenuItem_Click); + // // Dokwerte // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -111,6 +131,7 @@ this.panel1.PerformLayout(); this.grppruefung.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.sfdatagridpruefung)).EndInit(); + this.contextMenuStrip1.ResumeLayout(false); this.ResumeLayout(false); } @@ -122,5 +143,7 @@ private System.Windows.Forms.Label label1; private System.Windows.Forms.GroupBox grppruefung; private Syncfusion.WinForms.DataGrid.SfDataGrid sfdatagridpruefung; + private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; + private System.Windows.Forms.ToolStripMenuItem notizHistoryToolStripMenuItem; } } diff --git a/Client/UIControls/Dokwerte.cs b/Client/UIControls/Dokwerte.cs index 88587cbe..cd3c292f 100644 --- a/Client/UIControls/Dokwerte.cs +++ b/Client/UIControls/Dokwerte.cs @@ -1,4 +1,5 @@ using Database; +using OnDoc.Diverses; using OnDoc.Klassen; using Syncfusion.WinForms.DataGrid.Enums; using System; @@ -15,6 +16,8 @@ namespace OnDoc.UIControls { public partial class Dokwerte : UserControl { + + private string dokumentid { get; set; } public Dokwerte() { InitializeComponent(); @@ -42,7 +45,7 @@ namespace OnDoc.UIControls sfDataGrid1.DataSource = null; return; } - + this.dokumentid = dokumentid; DB db = new DB(AppParams.connectionstring); db.clear_parameter(); @@ -91,5 +94,15 @@ namespace OnDoc.UIControls { } + + private void contextMenuStrip1_Opening(object sender, CancelEventArgs e) + { + } + + private void notizHistoryToolStripMenuItem_Click(object sender, EventArgs e) + { + ApprovalNotes an = new ApprovalNotes(this.dokumentid); + an.Show(); + } } } diff --git a/Client/UIControls/Dokwerte.resx b/Client/UIControls/Dokwerte.resx index 1af7de15..ad537526 100644 --- a/Client/UIControls/Dokwerte.resx +++ b/Client/UIControls/Dokwerte.resx @@ -117,4 +117,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 17, 17 + \ No newline at end of file diff --git a/Client/UIControls/Serienbrief.Designer.cs b/Client/UIControls/Serienbrief.Designer.cs index ab5128da..7cf6d430 100644 --- a/Client/UIControls/Serienbrief.Designer.cs +++ b/Client/UIControls/Serienbrief.Designer.cs @@ -29,12 +29,12 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); + Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo treeNodeAdvStyleInfo3 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo(); Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo treeNodeAdvStyleInfo1 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo(); - Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo treeNodeAdvStyleInfo2 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo(); - Syncfusion.Windows.Forms.Tools.TreeNodeAdv treeNodeAdv1 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdv(); - Syncfusion.Windows.Forms.Tools.TreeNodeAdv treeNodeAdv2 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdv(); - Syncfusion.Windows.Forms.Tools.TreeNodeAdv treeNodeAdv3 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdv(); - Syncfusion.Windows.Forms.Tools.TreeNodeAdv treeNodeAdv4 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdv(); + Syncfusion.Windows.Forms.Tools.TreeNodeAdv treeNodeAdv5 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdv(); + Syncfusion.Windows.Forms.Tools.TreeNodeAdv treeNodeAdv6 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdv(); + Syncfusion.Windows.Forms.Tools.TreeNodeAdv treeNodeAdv7 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdv(); + Syncfusion.Windows.Forms.Tools.TreeNodeAdv treeNodeAdv8 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdv(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Serienbrief)); this.GrpDokumentInhalt = new System.Windows.Forms.GroupBox(); this.grpFaktura = new System.Windows.Forms.GroupBox(); @@ -364,15 +364,15 @@ // // treeviewDruckstapel // - treeNodeAdvStyleInfo1.CheckBoxTickThickness = 1; - treeNodeAdvStyleInfo1.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - treeNodeAdvStyleInfo1.EnsureDefaultOptionedChild = true; - treeNodeAdvStyleInfo1.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - treeNodeAdvStyleInfo1.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - treeNodeAdvStyleInfo1.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210))))); - treeNodeAdvStyleInfo1.TextColor = System.Drawing.Color.Black; + treeNodeAdvStyleInfo3.CheckBoxTickThickness = 1; + treeNodeAdvStyleInfo3.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + treeNodeAdvStyleInfo3.EnsureDefaultOptionedChild = true; + treeNodeAdvStyleInfo3.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + treeNodeAdvStyleInfo3.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + treeNodeAdvStyleInfo3.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210))))); + treeNodeAdvStyleInfo3.TextColor = System.Drawing.Color.Black; this.treeviewDruckstapel.BaseStylePairs.AddRange(new Syncfusion.Windows.Forms.Tools.StyleNamePair[] { - new Syncfusion.Windows.Forms.Tools.StyleNamePair("Standard", treeNodeAdvStyleInfo1)}); + new Syncfusion.Windows.Forms.Tools.StyleNamePair("Standard", treeNodeAdvStyleInfo3)}); this.treeviewDruckstapel.BeforeTouchSize = new System.Drawing.Size(215, 191); this.treeviewDruckstapel.Dock = System.Windows.Forms.DockStyle.Left; // @@ -732,15 +732,15 @@ // // treeViewAdv1 // - treeNodeAdvStyleInfo2.CheckBoxTickThickness = 1; - treeNodeAdvStyleInfo2.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - treeNodeAdvStyleInfo2.EnsureDefaultOptionedChild = true; - treeNodeAdvStyleInfo2.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - treeNodeAdvStyleInfo2.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - treeNodeAdvStyleInfo2.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210))))); - treeNodeAdvStyleInfo2.TextColor = System.Drawing.Color.Black; + treeNodeAdvStyleInfo1.CheckBoxTickThickness = 1; + treeNodeAdvStyleInfo1.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + treeNodeAdvStyleInfo1.EnsureDefaultOptionedChild = true; + treeNodeAdvStyleInfo1.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + treeNodeAdvStyleInfo1.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + treeNodeAdvStyleInfo1.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210))))); + treeNodeAdvStyleInfo1.TextColor = System.Drawing.Color.Black; this.treeViewAdv1.BaseStylePairs.AddRange(new Syncfusion.Windows.Forms.Tools.StyleNamePair[] { - new Syncfusion.Windows.Forms.Tools.StyleNamePair("Standard", treeNodeAdvStyleInfo2)}); + new Syncfusion.Windows.Forms.Tools.StyleNamePair("Standard", treeNodeAdvStyleInfo1)}); this.treeViewAdv1.BeforeTouchSize = new System.Drawing.Size(230, 580); this.treeViewAdv1.ContextMenuStrip = this.ctxmenutree; this.treeViewAdv1.Dock = System.Windows.Forms.DockStyle.Left; @@ -758,51 +758,51 @@ this.treeViewAdv1.Location = new System.Drawing.Point(3, 16); this.treeViewAdv1.MetroColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(165)))), ((int)(((byte)(220))))); this.treeViewAdv1.Name = "treeViewAdv1"; - treeNodeAdv1.ChildStyle.CheckBoxTickThickness = 1; - treeNodeAdv1.ChildStyle.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - treeNodeAdv1.ChildStyle.EnsureDefaultOptionedChild = true; - treeNodeAdv1.ChildStyle.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - treeNodeAdv1.ChildStyle.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - treeNodeAdv1.ChildStyle.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210))))); - treeNodeAdv1.EnsureDefaultOptionedChild = true; - treeNodeAdv1.MultiLine = true; - treeNodeAdv1.ShowLine = true; - treeNodeAdv1.Text = "In Bearbeitung"; - treeNodeAdv2.ChildStyle.CheckBoxTickThickness = 1; - treeNodeAdv2.ChildStyle.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - treeNodeAdv2.ChildStyle.EnsureDefaultOptionedChild = true; - treeNodeAdv2.ChildStyle.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - treeNodeAdv2.ChildStyle.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - treeNodeAdv2.ChildStyle.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210))))); - treeNodeAdv2.EnsureDefaultOptionedChild = true; - treeNodeAdv2.MultiLine = true; - treeNodeAdv2.ShowLine = true; - treeNodeAdv2.Text = "Fehlerhaft"; - treeNodeAdv3.ChildStyle.CheckBoxTickThickness = 1; - treeNodeAdv3.ChildStyle.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - treeNodeAdv3.ChildStyle.EnsureDefaultOptionedChild = true; - treeNodeAdv3.ChildStyle.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - treeNodeAdv3.ChildStyle.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - treeNodeAdv3.ChildStyle.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210))))); - treeNodeAdv3.EnsureDefaultOptionedChild = true; - treeNodeAdv3.MultiLine = true; - treeNodeAdv3.ShowLine = true; - treeNodeAdv3.Text = "Generierte Dokumente"; - treeNodeAdv4.ChildStyle.CheckBoxTickThickness = 1; - treeNodeAdv4.ChildStyle.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - treeNodeAdv4.ChildStyle.EnsureDefaultOptionedChild = true; - treeNodeAdv4.ChildStyle.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - treeNodeAdv4.ChildStyle.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - treeNodeAdv4.ChildStyle.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210))))); - treeNodeAdv4.EnsureDefaultOptionedChild = true; - treeNodeAdv4.MultiLine = true; - treeNodeAdv4.ShowLine = true; - treeNodeAdv4.Text = "Abgeschlossen"; + treeNodeAdv5.ChildStyle.CheckBoxTickThickness = 1; + treeNodeAdv5.ChildStyle.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + treeNodeAdv5.ChildStyle.EnsureDefaultOptionedChild = true; + treeNodeAdv5.ChildStyle.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + treeNodeAdv5.ChildStyle.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + treeNodeAdv5.ChildStyle.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210))))); + treeNodeAdv5.EnsureDefaultOptionedChild = true; + treeNodeAdv5.MultiLine = true; + treeNodeAdv5.ShowLine = true; + treeNodeAdv5.Text = "In Bearbeitung"; + treeNodeAdv6.ChildStyle.CheckBoxTickThickness = 1; + treeNodeAdv6.ChildStyle.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + treeNodeAdv6.ChildStyle.EnsureDefaultOptionedChild = true; + treeNodeAdv6.ChildStyle.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + treeNodeAdv6.ChildStyle.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + treeNodeAdv6.ChildStyle.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210))))); + treeNodeAdv6.EnsureDefaultOptionedChild = true; + treeNodeAdv6.MultiLine = true; + treeNodeAdv6.ShowLine = true; + treeNodeAdv6.Text = "Fehlerhaft"; + treeNodeAdv7.ChildStyle.CheckBoxTickThickness = 1; + treeNodeAdv7.ChildStyle.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + treeNodeAdv7.ChildStyle.EnsureDefaultOptionedChild = true; + treeNodeAdv7.ChildStyle.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + treeNodeAdv7.ChildStyle.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + treeNodeAdv7.ChildStyle.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210))))); + treeNodeAdv7.EnsureDefaultOptionedChild = true; + treeNodeAdv7.MultiLine = true; + treeNodeAdv7.ShowLine = true; + treeNodeAdv7.Text = "Generierte Dokumente"; + treeNodeAdv8.ChildStyle.CheckBoxTickThickness = 1; + treeNodeAdv8.ChildStyle.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + treeNodeAdv8.ChildStyle.EnsureDefaultOptionedChild = true; + treeNodeAdv8.ChildStyle.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + treeNodeAdv8.ChildStyle.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + treeNodeAdv8.ChildStyle.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210))))); + treeNodeAdv8.EnsureDefaultOptionedChild = true; + treeNodeAdv8.MultiLine = true; + treeNodeAdv8.ShowLine = true; + treeNodeAdv8.Text = "Abgeschlossen"; this.treeViewAdv1.Nodes.AddRange(new Syncfusion.Windows.Forms.Tools.TreeNodeAdv[] { - treeNodeAdv1, - treeNodeAdv2, - treeNodeAdv3, - treeNodeAdv4}); + treeNodeAdv5, + treeNodeAdv6, + treeNodeAdv7, + treeNodeAdv8}); this.treeViewAdv1.SelectedNodeForeColor = System.Drawing.SystemColors.HighlightText; this.treeViewAdv1.Size = new System.Drawing.Size(230, 580); this.treeViewAdv1.TabIndex = 3; @@ -1200,9 +1200,11 @@ this.sfdatagridsbload.Dock = System.Windows.Forms.DockStyle.Top; this.sfdatagridsbload.Location = new System.Drawing.Point(0, 47); this.sfdatagridsbload.Name = "sfdatagridsbload"; + this.sfdatagridsbload.ShowToolTip = true; this.sfdatagridsbload.Size = new System.Drawing.Size(489, 489); this.sfdatagridsbload.TabIndex = 3; this.sfdatagridsbload.Text = "sfDataGrid1"; + this.sfdatagridsbload.ToolTipOpening += new Syncfusion.WinForms.DataGrid.Events.ToolTipOpeningEventHandler(this.sfdatagridsbload_ToolTipOpening); this.sfdatagridsbload.DrawCell += new Syncfusion.WinForms.DataGrid.Events.DrawCellEventHandler(this.sfdatagridsbload_DrawCell); this.sfdatagridsbload.CellClick += new Syncfusion.WinForms.DataGrid.Events.CellClickEventHandler(this.sfdatagridsbload_CellClick); this.sfdatagridsbload.CellDoubleClick += new Syncfusion.WinForms.DataGrid.Events.CellClickEventHandler(this.sfdatagridsbload_CellDoubleClick); diff --git a/Client/UIControls/Serienbrief.cs b/Client/UIControls/Serienbrief.cs index 697e20d1..0680a841 100644 --- a/Client/UIControls/Serienbrief.cs +++ b/Client/UIControls/Serienbrief.cs @@ -2428,6 +2428,11 @@ namespace OnDoc.UIControls private void ribbonbuttonGeprueft_Click(object sender, EventArgs e) { DB db = new DB(AppParams.connectionstring); + clsMailer mailer = new clsMailer(); + string empfaengerid = ""; + db.Get_Tabledata("Select mutierer from serienbrief_Bewilligung where id=" + approvaldata["id"].ToString(), false, true); + empfaengerid = db.dsdaten.Tables[0].Rows[0][0].ToString(); + string sql = "update serienbrief_bewilligung set bewilligt=1, bewilligt_am = '" + DateTime.Now.ToString() + "' where id=" + approvaldata["id"].ToString(); db.Exec_SQL(sql); if (approvaldata["Bewilligungstyp"].ToString() == "2") @@ -2438,6 +2443,9 @@ namespace OnDoc.UIControls { db.Exec_SQL("Update edex_sb_serienbrief set approval1=1 where serienbriefnr=" + sb.serienbriefnr.ToString() + ""); } + mailer.sendmail(4, empfaengerid, "", "","", "", AppParams.CurrentMitarbeiter.ToString(), approvaldata["id"].ToString()); + mailer = null; + db = null; Logging.DocLog.Info("Serienbrief geprüft", "Serienbrief geprüft", sb.serienbriefnr.ToString(), "", ""); Broadcaster().Broadcast("Serienbrief", new SenderInfo("Removesbfromlist", "Refreshpruefung", serienbriefnr.ToString())); @@ -2452,7 +2460,14 @@ namespace OnDoc.UIControls if (note.ShowDialog() == DialogResult.OK) { DB db = new DB(AppParams.connectionstring); - string sql = "update serienbrief_bewilligung set abgelehnt=1, abgelehnt_am = '" + DateTime.Now.ToString() + "' where id=" + approvaldata["id"].ToString(); + + clsMailer mailer = new clsMailer(); + string empfaengerid = ""; + db.Get_Tabledata("Select mutierer from serienbrief_Bewilligung where id=" + approvaldata["id"].ToString(), false, true); + empfaengerid = db.dsdaten.Tables[0].Rows[0][0].ToString(); + + + string sql = "update serienbrief_bewilligung set abgelehnt=1, abgelehnt_am = '" + DateTime.Now.ToString() + "', betreff='"+note.betreff+"', notizgrund='"+note.notiz+"' where id=" + approvaldata["id"].ToString(); db.Exec_SQL(sql); // treeViewAdv1.Nodes.Remove(treeViewAdv1.SelectedNode); @@ -2466,6 +2481,9 @@ namespace OnDoc.UIControls { db.Exec_SQL("Update edex_sb_serienbrief set approved=0, approval1=0 where serienbriefnr=" + sb.serienbriefnr.ToString()); } + mailer.sendmail(6, empfaengerid, "", "", sb.serienbriefnr.ToString(), "", AppParams.CurrentMitarbeiter.ToString(), approvaldata["id"].ToString()); + mailer = null; + //if (tp.Nodes.Count < 1) //{ // tp.Parent.Nodes.Remove(tp); @@ -2511,5 +2529,75 @@ namespace OnDoc.UIControls } } + + private void sfdatagridsbload_ToolTipOpening(object sender, Syncfusion.WinForms.DataGrid.Events.ToolTipOpeningEventArgs e) + { + switch (e.Column.MappingName.ToLower()) + { + case "prüfung_rechts": + if (e.DisplayText.Contains("Abgelehnt")) + { + Syncfusion.Data.RecordEntry record = sfdatagridsbload.View.GetRecordAt(e.RowIndex - 1); + var a = record.Data; + var b = a as DataRowView; + string x = b["id"].ToString(); + DB db = new DB(AppParams.connectionstring); + db.Get_Tabledata("select top 1 betreff, notizgrund, mutiert_am from serienbrief_bewilligung where serienbriefnr='" + x + "' and bewilligungstyp=2 and abgelehnt=1 order by mutiert_am desc", false, true); + try + { + Syncfusion.WinForms.Controls.ToolTipItem t = new Syncfusion.WinForms.Controls.ToolTipItem(); + t.Text = db.dsdaten.Tables[0].Rows[0]["mutiert_am"].ToString() + + Environment.NewLine + Environment.NewLine + db.dsdaten.Tables[0].Rows[0]["betreff"].ToString() + + Environment.NewLine + Environment.NewLine + db.dsdaten.Tables[0].Rows[0]["Notizgrund"].ToString(); + System.Drawing.Font tf = new System.Drawing.Font(t.Style.Font.FontFamily, 10, FontStyle.Bold); + + t.Style.TextAlignment = ContentAlignment.MiddleLeft; + t.Style.BackColor = Color.FromArgb(255, 102, 0); + t.Style.Font = tf; + e.ToolTipInfo.Items.Add(t); + db = null; + + } + catch { } + db = null; + } + + //var record1 = sfDataGrid1.View.Records.GetItemAt(e.RowIndex); + + break; + case "prüfung_links": + if (e.DisplayText.Contains("Abgelehnt")) + { + Syncfusion.Data.RecordEntry record = sfdatagridsbload.View.GetRecordAt(e.RowIndex - 1); + var a = record.Data; + var b = a as DataRowView; + string x = b["id"].ToString(); + DB db = new DB(AppParams.connectionstring); + db.Get_Tabledata("select top 1 betreff, notizgrund, mutiert_am from serienbrief_bewilligung where serienbriefnr='" + x + "' and bewilligungstyp=1 and abgelehnt=1 order by mutiert_am desc", false, true); + try + { + Syncfusion.WinForms.Controls.ToolTipItem t = new Syncfusion.WinForms.Controls.ToolTipItem(); + t.Text = db.dsdaten.Tables[0].Rows[0]["mutiert_am"].ToString() + + Environment.NewLine + Environment.NewLine + db.dsdaten.Tables[0].Rows[0]["betreff"].ToString() + + Environment.NewLine + Environment.NewLine + db.dsdaten.Tables[0].Rows[0]["Notizgrund"].ToString(); + System.Drawing.Font tf = new System.Drawing.Font(t.Style.Font.FontFamily, 10, FontStyle.Bold); + + t.Style.TextAlignment = ContentAlignment.MiddleLeft; + t.Style.BackColor = Color.FromArgb(255, 102, 0); + t.Style.Font = tf; + e.ToolTipInfo.Items.Add(t); + db = null; + + } + catch { } + db = null; + } + + //var record1 = sfDataGrid1.View.Records.GetItemAt(e.RowIndex); + + break; + + } + } } } diff --git a/Client/UIControls/UCAllgemeineDokumentParam.cs b/Client/UIControls/UCAllgemeineDokumentParam.cs index 914afdb1..e3579a2e 100644 --- a/Client/UIControls/UCAllgemeineDokumentParam.cs +++ b/Client/UIControls/UCAllgemeineDokumentParam.cs @@ -151,7 +151,12 @@ namespace OnDoc.UIControls lblUnterschriftrechts.Visible = false; } this.cbfaksimile.Enabled = Convert.ToBoolean(dr["unterschrift_faksimile"]) == true; - if (this.cbfaksimile.Enabled == true) { this.cbfaksimile.Checked = true; } + if (this.cbfaksimile.Enabled == true) + { + this.cbfaksimile.Checked = true; + //20250208 - bis faksimile klappt + this.cbfaksimile.Checked = false; + } this.cbformularohneunterschrfit.Checked = false; if (cbformularohneunterschrfit.Enabled) diff --git a/Client/bin/Debug/Database.dll b/Client/bin/Debug/Database.dll index fef1f8bf..bf2dd661 100644 Binary files a/Client/bin/Debug/Database.dll and b/Client/bin/Debug/Database.dll differ diff --git a/Client/bin/Debug/Database.pdb b/Client/bin/Debug/Database.pdb index 5c2d9153..eb46c762 100644 Binary files a/Client/bin/Debug/Database.pdb and b/Client/bin/Debug/Database.pdb differ diff --git a/Client/bin/Debug/OnDoc.exe b/Client/bin/Debug/OnDoc.exe index 5331b5ba..42ae3ba0 100644 Binary files a/Client/bin/Debug/OnDoc.exe and b/Client/bin/Debug/OnDoc.exe differ diff --git a/Client/bin/Debug/OnDoc.pdb b/Client/bin/Debug/OnDoc.pdb index d10bdac8..fb09d742 100644 Binary files a/Client/bin/Debug/OnDoc.pdb and b/Client/bin/Debug/OnDoc.pdb differ diff --git a/Client/bin/Debug/OnDocClient.zip b/Client/bin/Debug/OnDocClient.zip index 042e1dff..897bae9d 100644 Binary files a/Client/bin/Debug/OnDocClient.zip and b/Client/bin/Debug/OnDocClient.zip differ diff --git a/Client/bin/Debug/OnDocOffice.dll b/Client/bin/Debug/OnDocOffice.dll index 90e447a0..ebafee9e 100644 Binary files a/Client/bin/Debug/OnDocOffice.dll and b/Client/bin/Debug/OnDocOffice.dll differ diff --git a/Client/bin/Debug/OnDocOffice.pdb b/Client/bin/Debug/OnDocOffice.pdb index c4b3995d..d0c62156 100644 Binary files a/Client/bin/Debug/OnDocOffice.pdb and b/Client/bin/Debug/OnDocOffice.pdb differ diff --git a/Client/bin/Debug/de-DE/OnDoc.resources.dll b/Client/bin/Debug/de-DE/OnDoc.resources.dll index 62f41302..2e548866 100644 Binary files a/Client/bin/Debug/de-DE/OnDoc.resources.dll and b/Client/bin/Debug/de-DE/OnDoc.resources.dll differ diff --git a/Client/obj/Debug/Client.csproj.AssemblyReference.cache b/Client/obj/Debug/Client.csproj.AssemblyReference.cache index 3f8bb201..9e3b27fb 100644 Binary files a/Client/obj/Debug/Client.csproj.AssemblyReference.cache and b/Client/obj/Debug/Client.csproj.AssemblyReference.cache differ diff --git a/Client/obj/Debug/Client.csproj.CoreCompileInputs.cache b/Client/obj/Debug/Client.csproj.CoreCompileInputs.cache index ac2ac3a6..d3aeaf11 100644 --- a/Client/obj/Debug/Client.csproj.CoreCompileInputs.cache +++ b/Client/obj/Debug/Client.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -30020ba16c413af9ebdb848716997748f3fa6881266358574511befb160ae2db +34c3609b08e0edcfa9562aab3046bc82a3e9b1c632b03c992c222fe1502d3c2a diff --git a/Client/obj/Debug/Client.csproj.FileListAbsolute.txt b/Client/obj/Debug/Client.csproj.FileListAbsolute.txt index 01de6532..b1e73060 100644 --- a/Client/obj/Debug/Client.csproj.FileListAbsolute.txt +++ b/Client/obj/Debug/Client.csproj.FileListAbsolute.txt @@ -373,3 +373,4 @@ E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\VBOffice.pdb E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\VBOffice.xml E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\WinSign.dll E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\WinSign.pdb +E:\Software-Projekte\OnDoc\OnDoc\Client\obj\Debug\OnDoc.Diverses.ApprovalNotes.resources diff --git a/Client/obj/Debug/Client.csproj.GenerateResource.cache b/Client/obj/Debug/Client.csproj.GenerateResource.cache index 3be13eb6..2d9e1982 100644 Binary files a/Client/obj/Debug/Client.csproj.GenerateResource.cache and b/Client/obj/Debug/Client.csproj.GenerateResource.cache differ diff --git a/Client/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/Client/obj/Debug/DesignTimeResolveAssemblyReferences.cache index ccd8896e..45bb0a2a 100644 Binary files a/Client/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/Client/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/Client/obj/Debug/OnDoc.Diverses.ApprovalNotes.resources b/Client/obj/Debug/OnDoc.Diverses.ApprovalNotes.resources new file mode 100644 index 00000000..746de6e5 Binary files /dev/null and b/Client/obj/Debug/OnDoc.Diverses.ApprovalNotes.resources differ diff --git a/Client/obj/Debug/OnDoc.exe b/Client/obj/Debug/OnDoc.exe index 5331b5ba..42ae3ba0 100644 Binary files a/Client/obj/Debug/OnDoc.exe and b/Client/obj/Debug/OnDoc.exe differ diff --git a/Client/obj/Debug/OnDoc.pdb b/Client/obj/Debug/OnDoc.pdb index d10bdac8..fb09d742 100644 Binary files a/Client/obj/Debug/OnDoc.pdb and b/Client/obj/Debug/OnDoc.pdb differ diff --git a/Client/obj/Debug/de-DE/OnDoc.resources.dll b/Client/obj/Debug/de-DE/OnDoc.resources.dll index 62f41302..2e548866 100644 Binary files a/Client/obj/Debug/de-DE/OnDoc.resources.dll and b/Client/obj/Debug/de-DE/OnDoc.resources.dll differ diff --git a/DOCGEN/DocGen.csproj b/DOCGEN/DocGen.csproj index 4dd8fb1e..0e7ab922 100644 --- a/DOCGEN/DocGen.csproj +++ b/DOCGEN/DocGen.csproj @@ -63,6 +63,10 @@ ..\packages\SkiaSharp.2.88.8\lib\net462\SkiaSharp.dll + + False + C:\Program Files (x86)\Syncfusion\Essential Studio\Windows\28.1.33\Assemblies\4.6.2\Syncfusion.Chart.Base.dll + False C:\Program Files (x86)\Syncfusion\Essential Studio\Windows\28.1.33\Assemblies\4.6.2\Syncfusion.Compression.Base.dll diff --git a/DOCGEN/bin/Debug/Database.dll b/DOCGEN/bin/Debug/Database.dll index fef1f8bf..bf2dd661 100644 Binary files a/DOCGEN/bin/Debug/Database.dll and b/DOCGEN/bin/Debug/Database.dll differ diff --git a/DOCGEN/bin/Debug/Database.pdb b/DOCGEN/bin/Debug/Database.pdb index 5c2d9153..eb46c762 100644 Binary files a/DOCGEN/bin/Debug/Database.pdb and b/DOCGEN/bin/Debug/Database.pdb differ diff --git a/DOCGEN/bin/Debug/OnDocOffice.dll b/DOCGEN/bin/Debug/OnDocOffice.dll index 90e447a0..ebafee9e 100644 Binary files a/DOCGEN/bin/Debug/OnDocOffice.dll and b/DOCGEN/bin/Debug/OnDocOffice.dll differ diff --git a/DOCGEN/bin/Debug/OnDocOffice.pdb b/DOCGEN/bin/Debug/OnDocOffice.pdb index c4b3995d..d0c62156 100644 Binary files a/DOCGEN/bin/Debug/OnDocOffice.pdb and b/DOCGEN/bin/Debug/OnDocOffice.pdb differ diff --git a/DOCGEN/bin/Debug/Syncfusion.Chart.Base.dll b/DOCGEN/bin/Debug/Syncfusion.Chart.Base.dll new file mode 100644 index 00000000..09c3ffe1 Binary files /dev/null and b/DOCGEN/bin/Debug/Syncfusion.Chart.Base.dll differ diff --git a/DOCGEN/bin/Debug/Syncfusion.Chart.Base.xml b/DOCGEN/bin/Debug/Syncfusion.Chart.Base.xml new file mode 100644 index 00000000..a970b4cf --- /dev/null +++ b/DOCGEN/bin/Debug/Syncfusion.Chart.Base.xml @@ -0,0 +1,40687 @@ + + + + Syncfusion.Chart.Base + + + + + Displays the default values. + + + + + Displays labels with integer power of log base. + + + + + Rotate axis title based on axis type and opposed position + + + + + Rotate axis title by 0 degrees + + + + + Rotate axis title by 90 degrees + + + + + Rotate axis title by 180 degrees + + + + + Rotate axis title by 270 / -90 degrees + + + + + Specifies the padding that will be applied when calculating the axis range. + + + + + No padding will be applied to the Axis range. + + + + + Padding will be calculated when the axis range is computed. + + + + + Specifies the location type of the axis. + + + + + Axis will be placed automatically by control to prevent overlapping with labels. + + + + + Axis thickness will be calculated and axis will placed automatically by control to prevent + labels cutting by sides of control. During this process one coordinate of axis location + is preserved (x coordinate for horizontal axis and y for vertical axis). + + + + + The user will have ability to set axis location manually. + + + + + Specifies the drawing mode of the labels. + + + + + Labels at the sides of the axis will be positioned at the center of tick label. + + + + + Labels will be aligned with current axis edges. + + + + + Labels will be positioned in way to prevent clipping. + + + + + Specifies the drawing mode of the tick lines. + + + + + In this mode, the interval always remains unchanged during zooming. + + + + + In this mode, only number of intervals matters, and it is kept constant + during zooming. Also there is always full number of intervals on axis. + + + + + Specifies the drawing mode of the grid lines. + + + + + Grid lines are drawed with equal interval. + + + + + Grid lines are drawed at grouping labels margins. + + + + + Specifies the label placement of the axis lines. + + + + + Labels are placeed on ticks of axis. + + + + + Labels are placeed between ticks of axis.. + + + + + Specifies the parameter types of method. + + + + + The parameter of method is index of labels. + + + + + The parameter of method is position of labels. + + + + + The ChartAxisLabel class holds information about label text, label color, label font and other related information. + + + + + Store label custom text. + + + + + Store label font. + + + + + Store label color. + + + + + Store label format. + + + + + Store label DateTime format. + + + + + Store chart value type. + + + + + Store label rounding precision. + + + + + Overloaded Constructor. Each label along a ChartAxis is held in a ChartAxisLabel. + + + + + Constructor. Each label along a ChartAxis is held in the ChartAxisLabel. + + The text that will be displayed as the label for the axis point. + + + + Constructor. Each label along a ChartAxis is held in the ChartAxisLabel. + + The text that will be displayed as the label for the axis point. + The text that will be displayed as the tooltip for the axis labels. + + + + Constructor. Each label along a ChartAxis is held in the ChartAxisLabel. + + The text that will be displayed as the label for the axis point. + The value. + + + + Constructor. Each label along a ChartAxis is held in the ChartAxisLabel. + + The text that will be displayed as the label for the axis point. + The value. + The text that will be displayed as the tooltip for the axis labels. + + + + Constructor. Each label along a ChartAxis is held in the ChartAxisLabel. + + The text that will be displayed as the label for the axis point. + The color that is to be used for the label text. + The font that is to be used for the label text. + + + + Constructor. Each label along a ChartAxis is held in the ChartAxisLabel. + + The text that will be displayed as the label for the axis point. + The color that is to be used for the label text. + The font that is to be used for the label text. + The text that will be displayed as the tooltip for the axis labels. + + + + Constructor. Each label along a ChartAxis is held in the ChartAxisLabel. + + The text that will be displayed as the label for the axis point. + The color that is to be used for the label text. + The font that is to be used for the label text. + The value represented by the label. + + + + Constructor. Each label along a ChartAxis is held in the ChartAxisLabel. + + The text that will be displayed as the label for the axis point. + The color that is to be used for the label text. + The font that is to be used for the label text. + The value represented by the label. + The text that will be displayed as the tooltip for the axis labels. + + + + Constructor. Each label along a ChartAxis is held in the ChartAxisLabel. + + The value represented by the label. + The format that is to be used for formatting the display label. + + + + Constructor. Each label along a ChartAxis is held in the ChartAxisLabel. + + The value represented by the label. + The format that is to be used for formatting the display label. + The text that will be displayed as the tooltip for the axis labels. + + + + Constructor. Each label along a ChartAxis is held in the ChartAxisLabel. + + The Date Time value represented by the label. + The format that is to be used for formatting the display label. + + + + Constructor. Each label along a ChartAxis is held in the ChartAxisLabel. + + The Date Time value represented by the label. + The text that will be displayed as the tooltip for the axis labels. + The format that is to be used for formatting the display label. + + + + Constructor. Each label along a ChartAxis is held in the ChartAxisLabel. + + The text that will be displayed as the label for the axis point. + The color that is to be used for the label text. + The font that is to be used for the label text. + The value represented by the label. + The format that is to be used for formatting the display label. + The value type of the axis label. + + + + Constructor. Each label along a ChartAxis is held in the ChartAxisLabel. + + The text that will be displayed as the label for the axis point. + The text that will be displayed as the tooltip for the axis labels. + The color that is to be used for the label text. + The font that is to be used for the label text. + The value represented by the label. + The format that is to be used for formatting the display label. + The value type of the axis label. + + + + Constructor. Each label along a ChartAxis is held in the ChartAxisLabel. + + The text that will be displayed as the label for the axis point. + The color that is to be used for the label text. + The font that is to be used for the label text. + The value represented by the label. + The format that is to be used for formatting the display label. + The date time format that is to be used for formatting the value. + The value type of the axis label. + + + + Constructor. Each label along a ChartAxis is held in the ChartAxisLabel. + + The text that will be displayed as the label for the axis point. + The text that will be displayed as tooltip for the label. + The color that is to be used for the label text. + The font that is to be used for the label text. + The value represented by the label. + The format that is to be used for formatting the display label. + The date time format that is to be used for formatting the value. + The value type of the axis label. + + + + Constructor. Each label along a ChartAxis is held in the ChartAxisLabel. + + The text that will be displayed as the label for the axis point. + The color that is to be used for the label text. + The font that is to be used for the label text. + The DateTime value represented by the label. + The format that is to be used for formatting the display label. + The date time format that is to be used for formatting the value. + The value type of the axis label. + + + + Constructor. Each label along a ChartAxis is held in the ChartAxisLabel. + + The text that will be displayed as the label for the axis point. + The text that will be displayed as tooltip for the label. + The color that is to be used for the label text. + The font that is to be used for the label text. + The DateTime value represented by the label. + The format that is to be used for formatting the display label. + The date time format that is to be used for formatting the value. + The value type of the axis label. + + + + Constructor. Each label along a ChartAxis is held in the ChartAxisLabel. + + The value represented by the label. + The format that is to be used for formatting the display label. + The value type of the axis label. + + + + Constructor. Each label along a ChartAxis is held in the ChartAxisLabel. + + The value represented by the label. + The format that is to be used for formatting the display label. + The text that will be displayed as tooltip for the label. + The value type of the axis label. + + + + Method to initialize disposed static objects + + + + + 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 object that is a copy of the current instance. + + + A new object that is a copy of this instance. + + + + + Computes the text of label. + + + + + Measures label by the specified . + + + The ChartAxis + + + + + Measures label by the specified . + + + Max width of the text. + The ChartAxis + + + + + Sets the bounds of label. + + The connect point. + Returns bounds of label + + + + Sets the bounds of label. + + Position of label. + Rotation of lebel. + Returns bounds of label + + + + Sets the bounds of label. + + Position of label. + The alignment. + Returns bounds of label + + + + Sets the bounds of label. + + Position of label. + The alignment. + Rotation of lebel. + + Returns bounds of label + + + + Draws the label to specified . + + + The axis. + Bounds for label + + + + + Draws the label to specified . + + + The axis. + + + + + Method to dispose labels. + + + + + Generates the 3d geometry of label. + + + The axis. + Depth of label. + + + + + + Gets or sets the custom text that is to be used as the label. + + + + + Gets or sets the tooltip for the axis label. + + + + + Gets or sets the date format that is to be used for formatting the value into the label text. + See "Date and Time format strings" section in MSDN for more info. + + + + + Gets or sets the format that is to be used for formatting the double values into the label text. + See "Numeric Format Strings" section in MSDN for more on the supported formats. + + + + + Gets or sets a value indicates whether label is located inside or outside of chart area. + + + + + Gets or sets the log base that is to be used by the label. Default is 2. + + + + + Gets or sets the value that the label represents. + + + + + Number of relevant rounding places that is to be used for the label. Default is 2. + + + + + Gets the formatted text that is to be displayed as the label. + + + + + Gets or sets the font that is to be used for the label text. + + + + + Gets or sets the color that is to be used for the label text. + + + + + Gets or sets the value type that is to be associated with the axis label. Default is Double. + + + + + Get's the rendering bounds of this label. + + + + + Indicates if label wasn't added by user. + + + + + + + + + + + + + + + + + + + + + The ChartAxisGroupingLabel class holds information about Grouping Label text, Grouping Label color, Grouping Label font and other related information. + + + + + Overloaded Constructor. Each Grouping Label along a ChartAxis is held in a ChartAxisGroupingLabel. + + The range to group labels. + + + + Constructor. Each Grouping Label along a ChartAxis is held in the ChartAxisGroupingLabel. + + The range to group labels. + The text that will be displayed as the Grouping Label for the axis point. + + + + Constructor. Each Grouping Label along a ChartAxis is held in the ChartAxisGroupingLabel. + + The range to group labels. + The text that will be displayed as the Grouping Label for the axis point. + The color that is to be used for the Grouping Label text. + The font that is to be used for the Grouping Label text. + + + + Constructor. Each Grouping Label along a ChartAxis is held in the ChartAxisGroupingLabel. + + The range to group labels. + The text that will be displayed as the Grouping Label for the axis point. + The color that is to be used for the Grouping Label text. + The border color to render group. + The font that is to be used for the Grouping Label text. + + + + Constructor. Each Grouping Label along a ChartAxis is held in the ChartAxisGroupingLabel. + + The range to group labels. + The text that will be displayed as the Grouping Label for the axis point. + The color that is to be used for the Grouping Label text. + Border to render group border. + The font that is to be used for the Grouping Label text. + + + + Render label and calculate its bound rectangle. + + to render label. + Location of the label. + Dimension of the label. + The axis label belong to. + + Bound rectangle of the label. + + + + Method to dispose labels + + + + + Draw the left or right border for the Rendered label. + + Used to indicate the Measure + to render label. + Font style for the label text. + The text of label. + The axis label belong to. + Style of the ChartAxis GroupingLabel Border + First point of the line + Second point of the line + Third point of the line + Style of the ChartAxis GroupingLabel position + + + + Render label and calculate its bound rectangle. + + Graphics3D to render label. + Location of the label. + Dimension of the label. + The axis label belong to. + + Bound rectangle of the label. + + + + Calculate size of the label. + + to calculate size. + Axis label belong to. + Calculated size. + + + + Calculate bounds of the label. + + to calculate bounds. + Location of the label. + Axis label belong to. + Boundary rectangle. + + + + Calculate bounds of the label. + + Graphics3D to calculate bounds. + Location of the label. + Axis label belong to. + Boundary rectangle. + + + + Calculates region for given axis. + + The axis to get region. + Region for given axis. + + + + Calculates string size, text size and label size. + + to calculate values. + Axis label belong to. + String size to calculate. + Text size to calculate. + Label size to calculate. + to calculated label. + + + + Gets or sets the double range that this Grouping Label with cover. If the range in the axis is DateTime, use DateTime.ToOADate to get the double value. + + + + + Gets or sets the custom text that is to be used as the Grouping Label. + + + + + Gets or sets the the region description text for this region. + + + + + Lets you specify the grouping label text in multiple lines + + + + + Gets or sets to render label. Default is GenericDefault. + + + + + Gets or sets the font that is to be used for the label text. + + + + + Gets or sets the color that is to be used for the Grouping Label text. + + + + + Gets or sets back color. Default is Transparent. + + + + + Gets or sets the color that is to be used for the Grouping Label border/brace etc. Default is Black. + + + + + Gets or sets the Style of border drawing that is to be used for the Grouping Label. Default is Rectangle + + + + + Gets or sets the Padding of border drawing that is to be used for the Grouping Label. Default is 2.0f. + + + + + Gets or sets max text width. Default is 200. + + + + + Gets or sets max text height to width ratio. Default is 2.5 + + + + + Gets or sets labels rotate angle. Default is 0. + + + + + Gets or sets row in which to render this grouping label. specify 0 for the 1st row and so on. Default is 0. + + + + + Gets or sets grid dimension. + + + + + Gets or sets label fit mode. Default is Shrink. + + + + + Gets or sets label alignment. Default is Center. + + + + + Gets the rectangle in which to draw the label. + + + + + Gets or sets label broadness(thickness, wideness). + + + + + Gets or sets tag + + + + + Enumeration of the different border styles in which the axis grouping label could be drawn. + + + + + A plain rectangle around the grouping label. + + + + + A brace indicating the range that this grouping label covers. + + + + + A plain rectangle around the grouping label without top border. + + + + + A plain rectangle around the grouping label without top and bottom border. + + + + + A plain rectangle around the grouping label without border. + + + + + A plain rectangle around the grouping label only with left border. + + + + + A plain rectangle around the grouping label only with right border. + + + + + Specifies the options for rendering the text in the ChartAxisGroupingLabel. + + + + + No action will be taken. + + + + + The long text will be wrapped if cannot be fit within a single line. + + + + + The long text will be shrunk to fit the available space. + + + + CTODO: Find out the exactly how WrapAndShrink works - can't tell the difference between this and Wrap + + The long text will be wrapped if cannot be fit within a single line and then the text will be shrunk if it is not fit in available space. + + + + + Specifies the alignment options available for rendering the text within a grouping label. + + + + + Centers both vertically and horizontally. + + + + + Aligns the text horizontally at the left and vertically at the center. + + + + + Aligns the text horizontally at the right and vertically at the center. + + + + + Aligns the text horizontally at the center and vertically at the top. + + + + + Aligns the text horizontally at the center and vertically at the bottom. + + + + + Aligns the text horizontally at the left and vertically at the top. + + + + + Aligns the text horizontally at the right and vertically at the top. + + + + + Aligns the text horizontally at the left and vertically at the bottom. + + + + + Aligns the text horizontally at the right and vertically at the bottom. + + + + + + + + + + Initializes a new instance of the class. + + + + + + + + + + Validates this instance. + + + + + Arranges the specified g. + + The bounds. + The orientation. + + + + Measures by specified . + + The . + The bounds. + The orientation. + The left. + The right. + The scrolls. + + + + Gets the axes. + + The axes. + + + + Gets or sets the layout mode. + + The layout mode. + + + + Gets or sets the layout height in percentage or pixels of chart area. + + The layout height in percentage. + + + + + Gets or sets the spacing. + + The spacing. + + + + Gets or sets the chart area. + + The chart area. + + + + Gets the orientation. + + The orientation. + + + + + + + + + Initializes a new instance of the class. + + The owner. + + + + Inserts an element into the at the specified index. + + The zero-based index at which should be inserted. + The object to insert. The value can be null for reference types. + + is less than zero.-or- is greater than . + + + + Removes all elements from the . + + + + + Removes the element at the specified index of the . + + The zero-based index of the element to remove. + + is less than zero.-or- is equal to or greater than . + + + + Replaces the element at the specified index. + + The zero-based index of the element to replace. + The new value for the element at the specified index. The value can be null for reference types. + + is less than zero.-or- is greater than . + + + + + + + + + Initializes a new instance of the class. + + The message. + + + + + + + + + Initializes a new instance of the class. + + The owner. + + + + Removes all elements from the . + + + + + + Inserts an element into the at the specified index. + + The zero-based index at which should be inserted. + The object to insert. The value can be null for reference types. + + is less than zero.-or- is greater than . + + + + + Removes the element at the specified index of the . + + The zero-based index of the element to remove. + + is less than zero.-or- is equal to or greater than . + + + + + Replaces the element at the specified index. + + The zero-based index of the element to replace. + The new value for the element at the specified index. The value can be null for reference types. + + is less than zero.-or- is greater than . + + + + + Invalidates this instance. + + + + + Validates this instance. + + + + + Arranges the specified g. + + The bounds. + The orientation. + + + + Measures by the specified . + + The . + The bounds. + The orientation. + The left. + The right. + The scrolls. + + + + Gets the chart area. + + The chart area. + + + + Gets or sets the spacing which is used to allocate space between the axes. + + The spacing. + + + + Collection of ChartAxis instances. + + + + + Provides the base class for a strongly typed collection. + This class has event. + + + + + Initializes a new instance of the ChartBaseList class that is empty and has the default initial capacity. + + + + + Initializes a new instance of the ChartBaseList class that is empty and has the specified initial capacity. + + The number of elements that the new list can initially store. + + + + Removes all items from the ChartBaseList. + + + + + Removes the ChartBaseList item at the specified index. + + The zero-based index of the item to remove. + + + + Copies the entire ChartBaseList 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 ChartBaseList. The Array must have zero-based indexing. + The zero-based index in array at which copying begins. + + + + Sorts the elements in the entire ChartBaseList using the specified comparer + + The implementation to use when comparing elements. + + + + Copies the elements of the ChartBaseList to a new array. + + An array containing copies of the elements of the ChartBaseList. + + + + Copies the elements of the ChartBaseList to a new array of the specified element type. + + The element of the destination array to create and copy elements to. + An array of the specified element type containing copies of the elements of the ChartBaseList. + + + + Returns an enumerator for the entire ChartBaseList. + + An IEnumerator for the entire ChartBaseList. + + + + Adds an item to the ChartBaseList. + + The to add to the ChartBaseList. + The position into which the new element was inserted. + + + + Inserts an item to the ChartBaseList at the specified index. + + The zero-based index at which value should be inserted. + The to insert into the ChartBaseList. + + + + Removes the first occurrence of a specific object from the ChartBaseList. + + The to remove from the ChartBaseList. + + + + Determines the index of a specific item in the ChartBaseList. + + The to locate in the ChartBaseList. + The index of value if found in the list; otherwise, -1. + + + + Determines whether the ChartBaseList contains a specific value. + + The to locate in the ChartBaseList. + true if the is found in the IList; otherwise, false + + + + Performs additional custom processes when validating a value + + The object to validate. + If is true, value is approved. + + + + + Raises the event. + + Argument. + + + + + Inserts an item to the internal array at the specified index. + + The zero-based index at which value should be inserted. + The to insert into the internal array. + + + + Removes an the internal array item at the specified index. + + Index of item. + + + + An event that is triggered when the collection is changed. + + + + + Gets or sets a value indicating whether the will be raised. + + + + + + Gets an IList containing the list of elements in the ChartBaseList instance. + + + + + + Gets a value indicating whether the ChartBaseList has a fixed size. + + + + + Gets a value indicating whether the ChartBaseList is read-only. + + + + + Gets a value indicating whether access to the ChartBaseList is synchronized (thread safe). + + + + + Gets an object that can be used to synchronize access to the ChartBaseList. + + + + + Gets the number of elements contained in the ChartBaseList instance. This property cannot be overridden. + + + + + 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. + + + + Internal enumerator for class. + + + + + Initializes a new instance of the ChartBaseEnumerator class. + + Instance of class. + + + + 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. + + + + Sets the enumerator to its initial position, which is before the first element in the collection. + + + + + Gets the current element in the collection. + + + + + Initializes a new instance of the class. + + + + + Adds the specified value. + + The value. + The position into which the new axis element was inserted. + + + + Adds the array of . + + The values. + Returns the count of axis collection. + + + + Determines whether collection contains the specified value. + + The value. + + true if collection contains the specified value; otherwise, false. + + + + + Removes the specified value. + + The value. + + + + Returns the specified index of . + + The value. + The index of value if found in the list; otherwise, -1. + + + + Inserts the specified index. + + The index. + The value. + + + + Performs additional custom processes when validating a value. + + The object to validate. + If is true, value is approved. + + + + + Gets or sets by index in collection. + + The Chart Axis Object to add to the Chart Axis collection. + + + + The Syncfusion.Windows.Forms.Chart namespace contains the classes which are used to render ChartArea, ChartAxis, ChartSeries, etc. + + + + + Interface that needs to be implemented to display custom axis Grouping Labels. + + + + + Returns the Grouping Label at the specified index. + + + + Index value to look for. + + + + ChartAxisGroupingLabel to be used as Grouping Label. + + + + + Returns the number of Grouping Labels. + + + + + Collection of custom ChartAxisGroupingLabel. + + + + + + To prevent collection construction without ChartAxis reference. + + + + + Looks up this collection and returns the index value of the specified Grouping Label. + + + + Grouping Label to look for in this collection. + + + + The index value of the Grouping Label if the look up is successful; -1 otherwise. + + + + + Adds the specified Grouping Label to this collection. + + + + An instance of the Grouping Label that is to be to add. + + + + + + Inserts the specified Grouping Label at the specified index. + + + + Index value where the Grouping Label that is to be inserted. + + + + + An instance of the Grouping Label that is to be added. + + + + + + Removes the specified Grouping Label from this collection. + + + + Grouping Label that is to be removed. + + + + + + Gets the Grouping Label at the specified index. + + + + The index value to look for. + + + + The ChartAxis Grouping Label at the specified index. + + + + + + + + + + + + + + + + + + + + + + + + + Raise Changed event. + + + + + Returns the axis Grouping Label at the specified index value. + + + + + Event that is raised when a custom axis Grouping Label is changed. + + + + + Interface that needs to be implemented to display custom axis labels. + + + + + Returns the label at the specified index. + + + + Index value to look for. + + + + ChartAxisLabel to be used as label. + + + + + Returns the number of labels. + + + + + Collection of custom ChartAxis labels. These labels will be used as axis labels when + the value type of the ChartAxis is set to custom. + + + + + + To prevent collection construction without ChartAxis reference. + + + + + Looks up this collection and returns the index value of the specified label. + + + + Label to look for in this collection. + + + + The index value of the label if the look up is successful; -1 otherwise. + + + + + Adds the specified label to this collection. + + + + An instance of the label that is to be to add. + + + + + + Inserts the specified label at the specified index. + + + + Index value where the label that is to be inserted. + + + + + An instance of the label that is to be added. + + + + + + Removes the specified label from this collection. + + + + Label that is to be removed. + + + + + + Gets the label at the specified index. + + + + The index value to look for. + + + + The ChartAxis label at the specified index. + + + + + Overriden. + + + + + + Overriden. + + + + + + Overriden. + + + + + + Overriden. + + + + + + Overriden. + + + + + + + + + Returns the axis label at the specified index value. + + + + + An event that is triggered when a custom axis label is changed. + + + + + Collection of custom points that are registered for display. + Custom points can be tied to specific positions on the chart or to specific points on any series. + + + + + + Initializes a new instance of class. + + + + + Adds the specified value. + + The value. + The position into which the new element was inserted. + + + + Determines whether collection contains the specified value. + + The value. + + true if collection contains the specified value; otherwise, false. + + + + + Removes the specified value. + + The value. + + + + Returns the index of the custom point collection. + + The value. + The index of value if found in the list; otherwise, -1. + + + + Inserts the specified index. + + The index. + The value. + + + + Performs additional custom processes when validating a value. + + The object to validate. + If is true, value is approved. + + + + + Gets or sets the at the specified index. + + Add the ChartCustomPoint. + + + + Binds ChartAxis to a data source, so as to provide labels for the axis. + + + + + Abstract class that implements the basic functionality of the data binding. + + + + + The . + + + + + + The properties collection. + + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The data source. + The data member. + + + + Initializes a new instance of the class. + + The data source. + The data member. + The binding context. + + + + Method used to refresh binding. + + + + + Resets this instance. + + + + + + Resets the properties. + + + + + Called when list is changed. + + The sender. + The instance containing the event data. + + + + + Raises the Changed event. + + The instance containing the event data. + + + + + This event is raised when the data is changed. + + + + + Gets or sets the binding data source. + + The data source. + + + + Gets or sets the data member to be bound. + + The data member. + + + + Gets or sets the binding context. + + The binding context. + + + + Gets the count of data source. + + The count. + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The data source. + + + + Initializes a new instance of the class. + + The data source. + The data member. + + + + Initializes a new instance of the class. + + The data source. + The data member. + The binding context. + + + + Gets property index in property collection + + Property descriptor collection + Property descriptor + Name of the property + + + + Gets the property value + + Property descriptor collection + Property descriptor + Property Name + Data source component + + + + Returns the label at the specified index. + + Index value to look for. + ChartAxisLabel to be used as label. + + + + Resets this instance. + + + + + Gets the appropriate value. + + The obj. + + + + + Gets property + + Property descriptor collection + Name of the property descriptor + + + + Updates the properties. + + + + + Gets or sets the index of the label. + + The index of the label. + + + + Gets or sets the name of the label. + + The name of the label. + + + + Gets or sets the index of the position. + + The index of the position. + + + + Gets or sets the name of the position. + + The name of the position. + + + + Gets or sets the label property. + + The label property. + + + + Gets or sets the label property. + + The label property. + + + + Collection of Image instances. + + + + + Initializes a new instance of the ChartImageCollection. + + + + + Initializes a new instance of the ChartImageCollection with collection of images. + + Collection of images to copy to array. + + + + At this moment all images in this collection is Bitmaps + and this color is transparent color. + + Color to make transparent. + + + + Add image to collection. + + Image to add. + Index of added image. + + + + Adds image from a list to the collection. + + The list. + + + + Adds an array of images to this collection. + + + + + Removes the image from the list. + + Image to remove. + + + + Check collection to constrains image. + + Image to check. + True if collection constrains image, otherwise false. + + + + Returns the index of the specified image. + + Image to get index. + Index of given image. If collection doesn't constrains image return -1. + + + + Inserts the image at the specified index. + + Index to insert image. + Image to insert. + + + + Copies the images to a one dimensional array starting at the specified index of the target array. + + Destination array where the elements are to be stored. + Index value from which copy is to start. + + + + Gets image by specified index in collection. + + The position into which the new element was inserted. + + + + + + + + + + + + + + Store array of ChartPointWithIndexs + + + + + Store count of ChartPointWithIndexs + + + + + Creates instance of the ChartPointWithIndexArray. + + + + + Initializes a new instance of the class. + + The capacity. + + + + Add ChartPointWithIndex to collection + + ChartPointWithIndex to add + Index of added ChartPointWithIndex + + + + Clear collection. + + + + + Gets value indicates is ChartPointWithIndex in collection + + ChartPointWithIndex to check + TRUE in point belongs to collection otherwise FALSE. + + + + Remove point by its index in collection + + Index of point + + + + + + + + + + Gets IEnumerator. + + + + + + + + + + + + + Gets index of point in collection. + + Node to get index + Index of the point in collection. If point collection doesn't constrain point return -1 + + + + + + + + + + + + + + + + + + + + Checks if collection can constrain Count + nItems. If not + increase collection by collection capacity. + + Count of points to check collection size + + + + + + + + + + Gets or sets collection capacity. + + + + + Gets or sets ChartPointWithIndex by its index. + + + + + Gets value indicates that collection is synchronized. + + + + + Gets SyncRoot. + + + + + Gets count of elements in collection. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Represents the collection of . + + + + + Initializes a new instance of the class. + + + + + Retrieves the at the specified coordinates. + + The point. + It returns the region around the hit test point. + + + + Retrieves the at the specified coordinates. + + The point. + It returns the region around the hit test point. + + + + Base class of configuration items that are created for specific chart-types. Configuration items are a convenient way to store + information specific to certain chart types that may not be applicable to other chart types. + + + + + Overloaded. Call this method to raise a event. + + + + The name of the property that has changed. + + + + + + + Call this method to raise a event. + + + + The effect that is to take place when a property is changed. + + + + + The name of the property changed. + + + + + The old value of the property that is changed. + + + + + The new value of the property that is changed. + + + + + + + An event that is raised when a property is changed. + + + + + Controls whether events are raised or not. If set to True, events are not raised. + + + + + + The type of bubble that is to be rendered with Bubble charts. + + + + + Circular shaped bubbles are rendered with Bubble charts. + + + + + Square shaped bubbles are rendered with Bubble charts. + + + + + Images are rendered as bubbles with Bubble charts. + + + + + Defines the behavior in which bubble sizes vary. + + + + + Bubble sizes are fixed. This behavior is not supported in the current version. + + + + + Bubble sizes are proportional to value. + + + + + The type of Radar chart that is to be rendered. + + + + series.ConfigItems.RadarItem.Type = ChartRadarDrawType.Symbol; + + + + + + Renders a Radar chart such that points are connected and the enclosed region is filled. + + + + + Renders a Radar chart such that points are connected but the enclosed region is not filled. + + + + + Renders a Radar chart such that points are rendered with the associated symbol. They are not connected to each other. + + + + + Lists the mode in which the pie Gradient should be rendered. + + + + + Apply the colors as a whole to the full pie. + + + + + Apply the colors to each individual slice. + + + + + + + + + + None of the painting style will be applied. + + + + + Applies the painting style at outside of PieChart. + + + + + Applies the painting style at inside of PieChart. + + + + + Applies the round painting style PieChart. + + + + + Applies the painting style at a sloping surface or edge of PieChart. + + + + + Custom painting style will be applied. + + + + + Lists the shading mode options for bars and charts. + + + + + Rendered as a flat rectangle. + + + + + Rendered in phong style. + + + + + Lists the rendering options for columns when in 3D mode. + + + + + Rendered as a box. + + + + + Rendered as a cylinder. + + + + + + + + + + PriceUpColor will be applied for Financial ChartSeries points. + + + + + Original color with PriceUpColor which means mixed color will be applied for Financial ChartSeries points. + + + + + Dark and light colors will be applied for Financial ChartSeries points. + + + + + Configuration item that pertains to "all" chart types. + + + + + Initializes a new instance of the class. + + The area. + + + + Gets or sets the spacing between series. + + The series spacing. + + + + Gets or sets the spacing between points. + + The point spacing. + + + + Gets or sets the depth spacing between series. + + The series depth spacing. + + + + Configuration item that pertains to Gantt charts. + + + + + Initializes a new instance of the class. + + + + + Specifies the drawing mode of Gantt chart. + + + + + Configuration item that pertains to Bubble charts. + + + + + Initializes a new instance of the class.. + + + + + The minimum bounds to be used by a bubble. Default is (25, 25). + + + + + The maximum bounds to be used by a bubble. Default is (50, 50) + + + + + The type of the bubble that is to be rendered. Default is Circle. + + + + + Specifies if the PhongStyle is enable. Default is true. + + + + + Configuration item that pertains to Pie charts. + + + + + Initializes a new instance of the class. + + + + + The offset angle that is to be used when rendering Pie charts. Default is 0f. + + + + + Gets or sets whether the pie chart render in same radius when the LabelStyle is in Outside or OutsideInCoulmn. Default is false. + + + + + Gets or sets the pie radius. + + The pie radius. + + + + Gets or sets the pie tilt. Use this property when MultiplePies is enabled. + + The pie tilt. + + + + Gets or sets the height of the pie. Use this property when MultiplePies is enabled. + + The height of the pie. + + + + Gets or sets the size of the pie. Added for internal purposed and used only when MultiplePies is enabled. + + The size of the pie. + + + + Gets or sets the painting type of the pie. + + The painting type of the pie. + + + + Specifies how the should be applied. Default is AllPie. + + + + + Specifies the gradient colors to use in the chart when PieType is set to Custom. Default is null. + + + + + Specifies whether the height for the pie is determined through the property or through the property. Default is false (uses HeightCoefficient). + + + + + Specifies the style in which the labels are rendered. Default is Outside. + + + + + Specifies the height of the pie as a factor of the radius of the pie. Valid range is 0f - 1f. Default is 0.2f. + + + + + Specifies the radius of the doughnut hole in the center as a factor of the radius. Default is 0f. + + + + + Gets or sets a value indicating whether series title is displayed. + + true if series title is displayed; otherwise, false. + + + + Gets or sets a value indicating whether databind labels are displayed. + + true if databind labels are displayed; otherwise, false. + + + + Configuration item that pertains to Radar charts. + + + + + Initializes a new instance of the class. + + + + + The type of Radar chart to be rendered. Default is Area. + + + + + Configuration item that pertains to Step charts. + + + + + Initializes a new instance of the class. + + + + + Specifies if the step line is inverted. Default is false. + + + + + Configuration item that pertains to Funnel charts. + + + + + Initializes a new instance of class. + + + + + Specifies how the Y values should be interpreted. Default is YIsHeight. + + + + + Specifies the positioning of the lables in addition to . Default is Right. + + + + + Specifies the positioning of the labels in addition to . Default is Outside. + + + + + Specifies the co-efficient for the gap between the blocks. Default is 0.0f. + + + + + Specifies the type of base for the funnel. Default is Circle. + + + + + Gets or sets a value indicating whether series title is displayed. + + true if series title is displayed; otherwise, false. + + + + Gets or sets a value indicating whether databind labels are displayed. + + true if databind labels are displayed; otherwise, false. + + + + Configuration item that pertains to Pyramid charts. + + + + + Initializes a new instance of the class. + + + + + Specifies the mode in which the Y values should be interpreted. Default is Linear. + + + + + Specifies the positioning of the labels in addition to the property. + + + + + Specifies the positioning of the labels in addition to the property. + + + + + Specifies the co-efficient that determines the gap between the blocks. Default is 0.0f. + + + + + Specifies the way in which the pyramid base should be rendered in 3D mode. Default is Square. + + + + + Gets or sets a value indicating whether series title is displayed. + + true if series title is displayed; otherwise, false. + + + + Gets or sets a value indicating whether databind labels are displayed. + + true if databind labels are displayed; otherwise, false. + + + + Configuration item that pertains to Pyramid charts. + + + + + Initializes a new instance of class. + + + + + Specifies the mode in which the Y values should be interpreted. Default is Linear. + + + + + Specifies the color for open tip. + + + + + Specifies the color for close tip. + + + + + Configuration item that pertains to Column charts. + + + + + Initializes a new instance of class. + + + + + Specifies the column type. Default is Box. + + + + + Specifies the shading mode used for columns or bars. + Default is ChartColumnShadingMode.PhongCylinder. + + + + + Specifies the color of light when ShadingMode is set to PhongCylinder. + + + + + Specifies the light angle in horizontal plane when ShadingMode is set to PhongCylinder. Default is (-PI/4). + + + + + Specifies the Phong's alpha coefficient used for calculation of specular lighting. Default is 20d. + + + + + Specifies the radius of round corners. Default is SizeF.Empty. + + + + + Configuration item that pertains to Financial charts. + + + + + Initializes a new instance of class. + + + + + Gets or sets the colors mode. + + The colors mode. + + + + Specifies the color with which price-up should be indicated. Default is Green. + + + + + Specifies the color with which price-down should be indicated. Default is Red. + + + + + Specifies the difference between the dark and light colors. Default is 0x64. + + + + + + + + + + Initializes a new instance of class. + + + + + Gets or sets a value indicating whether normal distribution is shown. + + + true if normal distribution is shown; otherwise, false. + + + + + Gets or sets a value indicating whether data points is shown. + + true if data points is shown; otherwise, false. + + + + Gets or sets the number of intervals. + + The number of intervals. + + + + + + + + + Initializes a new instance of class. + + + + + Gets or sets the size of the error bar symbol. + + The size of the symbol. + + + + Gets or sets the error bar symbol shape. + + The symbol shape. + + + + Gets or sets the error bar orientation. + + The orientation. + + + + Gets or sets a value indicating whether this is enabled. + + true if enabled; otherwise, false. + + + + Configuration item that pertains to BoxAndWhisker chart. + + + + + Initializes the new instance of the class. + + + + + Gets or sets a value indicating whether chart render in percentile mode or in normal mode. + + true if [percentile mode]; otherwise, false. + + + + Gets or sets the percentile. It should be lie between 0.0 to 0.25 . This value decides the outliers in the chart. + + The percentile. + + + + Gets or sets the width of the outlier. Value should be greater than zero and it starts from 1. + + The width of the outlier. + + + + Configuration item that pertains to HeatMap charts. + + + + + Initializes a new instance of class. + + + + + Gets or sets a value indicating whether color swatch is displayed. + + true if color swatch is displayed; otherwise, false. + + + + Gets or sets the color of the lowest value. + + The color of the lowest value. + + + + Gets or sets the color of the middle value. + + The color of the middle value. + + + + Gets or sets the color of the highest value. + + The color of the highest value. + + + + Gets or sets "from" text. + + From text. + + + + Gets or sets "to" text. + + To text. + + + + Gets or sets the margins. + + The margins. + + + + Gets or sets a value indicating whether title is displayed. + + true if title is displayed; otherwise, false. + + + + Gets or sets the max characters. + + The max characters. + + + + Gets or sets a value indicating whether the large labels should be truncated. + + true if the latge labels should be truncated; otherwise, false. + + + + Gets or sets a value indicating whether is allowed to rotation labels. + + true if is allowed to rotation labels; otherwise, false. + + + + Gets or sets a value indicating whether labels auto fit is enebled. + + true if labels auto fit is enebled; otherwise, false. + + + + Gets or sets the minimal size of the font. + + The minimal size of the font. + + + + Gets or sets a value indicating whether the large labels should be hiden. + + true if the large labels should be hiden; otherwise, false. + + + + Gets or sets the layout style. + + The layout style. + + + + Configuration Line that pertains to Line,Spline charts. + + + + + Initializes a new instance of the class. + + + + + Gets or sets a value indicating whether Line cap is enabled or disabled for drawing Line series. + + true if [disable LineCap]; otherwise, false. + + + + Enable/Disable the Line segement(line between two points) for Line and Spline type.Default value is false. + + + + + Configuration for range area chart. + + + + + Initializes a new instance of the class. + + + + + Gets or sets a value indicating whether High and Low point should be swapped when low point value is higher than high point value.. + + true if [disable SwapHighLowPoint]; otherwise, false. + + + + Collection of Configuration Items. These items store datas that can be used by the chart and its elements in any + manner. + + + + Pre-defined configuration items may be accessed as shown below. + + // access the RadarItem ConfigItem to configure radar charts + series.ConfigItems.RadarItem.Type = ChartRadarDrawType.Symbol; + + + + + + Standard identifier for Bubble chart configuration information. + + + + + Standard identifier for Pie chart configuration information. + + + + + Standard identifier for Radar chart configuration information. + + + + + Standard identifier for Step chart configuration information. + + + + + Standard identifier for Column chart configuration information. + + + + + Standard identifier for Column chart configuration information. + + + + + Standard identifier for Column chart configuration information. + + + + + Standard identifier for financial charts configuration information. + + + + + Standard identifier for Gantt chart configuration information. + + + + + Standard identifier for Gantt chart configuration information. + + + + + Standard identifier for Histogram chart configuration information. + + + + + Standard identifier for Histogram chart configuration information. + + + + + Standard identifier for HeatMap chart configuration information. + + + + + Standard identifier for BoxAndWhisker chart configuration information. + + + + + Standard identifier for Line and Spline chart configuration information. + + + + + Standard identifier for Range Area chart configuration information. + + + + + Initializes a new instance of the class. + + + + + Adds the specified configuration item to this collection, with the specified name used for referencing it. + + + + Name to be used for referencing the specified configuration item. + + + + + Configuration Item to be added. + + + + A void value. + + + + + Removes specified configuration item from the collection. + + + + Reference name of the item to be removed. + + + + + + Performs additional custom processes after inserting a new element into the instance. + + The key of the element to insert. + The value of the element to insert. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Connects the event handlers. + + The value. + + + + + Unconnects the event handlers. + + The value. + + + + + Called when property of contained object is changed. + + The sender. + The instance containing the event data. + + + + + + + + Changes the config. + + The key. + The new config. + + + + Event that is raised when configuration information is changed. + + + + + Standard configuration information for Bubble charts. + + + + + Standard configuration information for Pie charts. + + + + + Standard configuration information for Radar charts. + + + + + Standard configuration information for Step charts. + + + + + Standard configuration information for Step charts. + + + + + Standard configuration information for Funnel charts. + + + + + Standard configuration information for Pyramid charts. + + + + + Standard configuration information for financial charts. + + + + + Standard configuration information for Gantt chart. + + + + + Standard configuration information for HiLoOpenClose chart. + + + + + Standard configuration information for Histogram chart. + + + + + Standard configuration information for error bars. + + The error bars. + + + + Standard configuration information for BoxAndWhisker chart. + + + + + Standard configuration information for HeatMap chart. + + The heat map item. + + + + Standard configuration information for Bubble charts. + + + + + Standard configuration information for Line chart. + + + + + Standard configuration information for Range Area chart. + + + + + Looks up the collection by name and returns the configuration item. + + + + + Collection of ChartStripLines. A strip line is a band that is drawn on the background of the chart, to highlight areas of interest. + + + + + + Initializes a new instance of the class. + + + + + Looks up the collection and returns the index value of the specified strip line. + + + + An instance of the strip line that is to be looked up in the collection. + + + + The index value if the look up was successful; -1 otherwise. + + + + + Adds the specified strip line to this collection. + + + + An instance of the strip line that is to be added to the collection. + + + + + + Inserts the specified strip line at the specified index value. + + + + Index value where the instance of the specified strip line is to be inserted. + + + + + An instance of the stripline that is to be inserted at the specified index value. + + + + + + Removes the specified strip line from this collection. + + + + Strip line that is to be removed. + + + + + + Performs additional custom processes when clearing the contents of the instance. + + + + + + + Performs additional custom processes after clearing the contents of the instance. + + + + + + + Performs additional custom processes before inserting a new element into the instance. + + The zero-based index at which to insert . + The new value of the element at . + + + + + + Performs additional custom processes after inserting a new element into the instance. + + The zero-based index at which to insert . + The new value of the element at . + + + + + + Performs additional custom processes when removing an element from the instance. + + The zero-based index at which can be found. + The value of the element to remove from . + + + + + + Performs additional custom processes after removing an element from the instance. + + The zero-based index at which can be found. + The value of the element to remove from . + + + + + + Called when [set]. + + The index. + The value. + The new value. + + + + + + Performs additional custom processes after setting a value in the instance. + + The zero-based index at which can be found. + The value to replace with . + The new value of the element at . + + + + + + Broadcasts the change. + + + + + + Called when [strip line chaged]. + + The sender. + The instance containing the event data. + + + + Returns the strip line stored in the specified index. + + + + + Event that is raised when this collection is changed. + + + + + Provides data for the delegate. + + + + + Initializes a new instance of the class. + + Index of the items affected by the change. + Array of items has added to list. + Array of items has removed from list. + + + + Gets the index of the items affected by the change. + + + + + Gets array of items has removed from list. + + + + + Gets array of items has added to list. + + + + + Represents the method that will handle an event that has data. + + The source of the event. + Instance of class. + + + + Collection of TrendLines. A trend line is a graph drawn to indicate the price value of comparisons. + + + + + + Initializes a new instance of the class. + + + + + Looks up the collection and returns the index value of the specified trend line. + + + + An instance of the trend line that is to be looked up in the collection. + + + + The index value if the look up was successful; -1 otherwise. + + + + + Adds the specified trend line to this collection. + + + + An instance of the trend line that is to be added to the collection. + + + + + + Inserts the specified trend line at the specified index value. + + + + Index value where the instance of the specified trend line is to be inserted. + + + + + An instance of the trendline that is to be inserted at the specified index value. + + + + + + Removes the specified trend line from this collection. + + + + trend line that is to be removed. + + + + + + Performs additional custom processes when clearing the contents of the instance. + + + + + + + Performs additional custom processes after clearing the contents of the instance. + + + + + + + Performs additional custom processes before inserting a new element into the instance. + + The zero-based index at which to insert . + The new value of the element at . + + + + + + Performs additional custom processes after inserting a new element into the instance. + + The zero-based index at which to insert . + The new value of the element at . + + + + + + Performs additional custom processes when removing an element from the instance. + + The zero-based index at which can be found. + The value of the element to remove from . + + + + + + Performs additional custom processes after removing an element from the instance. + + The zero-based index at which can be found. + The value of the element to remove from . + + + + + + Called when [set]. + + The index. + The value. + The new value. + + + + + + Performs additional custom processes after setting a value in the instance. + + The zero-based index at which can be found. + The value to replace with . + The new value of the element at . + + + + + + Broadcasts the change. + + + + + + Called when [trend line chaged]. + + The sender. + The instance containing the event data. + + + + Returns the trend line stored in the specified index. + + + + + Event that is raised when this collection is changed. + + + + + The ChartArea is the actual rendering area of the plot. + It provides a canvas on which the chart is rendered. + + + + + The interface that the type implements. + + + + + + + + + + + Method used to draw the zooming area of Chart. + + + + + Calculates the size of ChartArea. + + + + + + Returns the chartpoint value at this real point. + + + + + + Gets the real point value at this chart point. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Returns the x axis of associated with this chartseries. + + + + + + + Returns the y axis associated with this chartseries. + + + + + + + Gets or sets the border color of the rectangular area occupied by this ChartArea. + + + + + Gets or sets whether client bounds of chart should be updated or not. + + + + + Gets or sets the width of the rectangular area occupied by this ChartArea. + + + + + Gets or sets the height of the rectangular area that is occupied by this ChartArea. + + + + + Returns the bounds associated with this ChartArea. + + + + + Gets or sets the ClientRectangle associated with this ChartArea. + + + + + Returns the X axis offset value used when rendering in 3D mode. + + + + + Returns the Y axis offset value used when rendering in 3D mode. + + + + + Gets or sets the size of the rectangular area occupied by the ChartArea. + + + + + Gets or sets the location of the rectangular area occupied by this ChartArea. + + + + + Indicates if the ChartArea is to be rendered in 3D. Default value is false. + + + + + Indicates if the ChartArea is to be rendered in 3D. Default value is false. + + + + + Gets or sets the perception of depth that is to be used when the ChartArea is rendered in 3D. + + + + + Gets or sets the rotational angle that is to be used when the ChartArea is rendered in 3D. + + + + + Gets or sets the tilt that is to be used when the ChartArea is rendered in 3D. + + + + + Gets or sets the turn that is to be used when the ChartArea is rendered in Real 3D only. + + + + + Gets or sets a value indicating whether area should scale automatically in 3D mode. + + true if area should scale automatically; otherwise, false. + + + + Gets or sets the color with which the ChartArea is to be filled initially before any rendering takes place. + + + + + Gets or sets the image that is to be used as the background for this ChartArea. + + + + + If set to true, the legend will show the series text (for Pie Chart). + + + + + If set to true, multiple pie chart series will be rendered in the same chart area. + + + + + Indicates if the ChartArea requires axes to be rendered (for the Chart types being rendered). + + + + + Indicates to change the appearance of chart. + + + + + Indicates if Chart requires Inverted Axes. + + + + + Collection of axes associated with this chart. You can add and remove axes from this collection. + Primary X and Y axes may not be removed. + + + + + Gets or sets the spacing between different axes on the same side of the ChartArea. This spacing is useful when you display multiple + axes side by side. + + + + + The primary X axis of Chart. + + + + + The primary Y axis of Chart. + + + + + Gets or sets the minimum size of this ChartArea. + + + + + Gets or sets a scale value in 3D mode. + + + + + Returns the margins that will be deduced from the rectangular area that represents the ChartArea. + Negative values are supported. + + + + + Returns the center point of this ChartArea. + + + + + Returns the radius of the Radar chart occupied by this ChartArea. + + + + + Returns the actual rectangular bounds used for rendering. + + + + + Gets or sets the ToolTip text associated with this ChartArea. + + + + + Returns the margins of ChartArea (excluding label width and height). + + + + + Gets or sets the mode of drawing the edge labels. + + + + + Gets or sets the ChartAxesInfoBar which displays the labels between the rectangular axes. + + + + + Gets the interactive cursors. + + The interactive cursors. + + + + Collection of custom points associated with this ChartArea. Custom points can be used to add labels to chart points. + + + + + + + + Gets the chart regions. + + The chart regions. + + + + Gets transformation for real 3d mode. + + + + + Gets the 3D mode settings. + + The 3D mode settings. + + + + Gets or sets the maximal value of full stracking charts. + + The maximal value of full stracking charts. + + + + Gets the chart. + + The chart. + + + + Gets or sets the X axes layout mode. + + The X axes layout mode. + + + + Gets or sets the Y axes layout mode. + + The Y axes layout mode. + + + + Gets the series rendering parameters. + + The series parameters. + + + + ChartArea requires a host which implements . Currently this is implemented + only by the chart. However, it is possible that other controls that wish to aggregate the chart will implement this + interface. + + + + Host interface. + + + + + + Method used to draw the Chart. + + Specifies flags that control the elements painting. + + + + + + + + Method used to draw the zooming area of Chart. + + Graphics to draw the zooming area. + + + + + Gets the series bounds. + + The series. + + + + + Returns the x axis associated with this chartseries. + + A ChartSeries whose ChartAxis we are interested in. + The corresponding ChartAxis. + + + + Returns the y axis associated with this chartseries. + + A ChartSeries whose ChartAxis we are interested in. + The corresponding ChartAxis. + + + + Arranges the elements. + + The bounds of . + + + + Returns the chartpoint value at this real point (in client co-ordinates). + + The corresponding ChartPoint. + + + + Gets the real point value at this chart point. + + The corresponding Point in client-coordinates. + + + + Gets the real point value at this chart point. Use this method when multiple axes are used in the chart + + The corresponding Point in client-coordinates. + + + + Method to dispose series style of chart area. + + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Draws the 2D dimentions area. + + The instance containing the event data. + The flags. + + + + + Draws the Symbol for each point + + The Get the Cursor position. + The graphics to draw the symbol. + + + + Sets the customized symbol for series points when moving the interactive cursor. + + The ChartSymbolInfo + + + + Render the axes. + + The axes render to. + + + + Draws the radar axes. + + The axes render to. + The X axis. + The Y axis. + + + + Draws the custom points. + + The points render to. + + + + This method will return the specified pen from the specified axis's Pens collection. + Currently, This method is used only for Polar and Radar chart types. + + The axis. + The index of the pen in the Axis's Pens collection. + + + + Draws the grid. + + The graph. + + + + Draws the strip lines. + + The . + + + + + Draws the axis lines. + + The graph. + The bounds. + Bounds for 3D axis at opposed position + Transformation matrix for 3D axis at normal position + Transformation matrix for 3D axis at opposed position + The orientation. + + + + Gets the radar path. + + The center. + The radius. + if set to true [is radar]. + The count. + + + + + Gets the strip line rects. + + The axis. + The strip line. + + + + + Gets the custom point location. + + The custom point. + + + + + Draws the 3D dimentions area. + + The instance containing the event data. + The flags. + + + + + Draws the grid. + + The . + + + + Draws the axes. + + The . + + + + Draws the radar axes. + + The . + The X axis. + The Y axis. + + + + Updates the real 3D transform. + + + + + + Creates the work plane. + + The Z coordinate. + + + + + Draws the custom points. + + The . + + + + Draws the strip lines. + + The . + + + + + Indicates whether the background interior should be serialized. + + + + + + + Indicates whether the axis spacing should be serialized + + + + + + + Gets the point by value internal. + + The x axis. + The y axis. + The . + + + + + Gets the point by value internal. This method is used only when multiple axes are used in the chart + + The x axis. + The y axis. + The . + + + + + Gets the point by value normal. + + The x axis. + The y axis. + The . + + + + + Gets the point by value normal. This method is used only when multiple axes are used in the chart. + + The x axis. + The y axis. + The . + + + + + Gets the point by value inversed. + + The x axis. + The y axis. + The . + + + + + Gets the value by point inversed. + + The x axis. + The y axis. + The point on chart. + + + + + Gets the value by point normal. + + The x axis. + The y axis. + The The point on chart. + + + + + Gets the value by point polar. + + The x axis. + The y axis. + The The point on chart. + + + + + Gets the point by value polar. + + The x axis. + The y axis. + The . + + + + + Arranges the axes. + + + + + Calculates the label sizes. + + The . + The RectangleF + + + + + Called when axes is changed. + + The list. + The args. + + + + Called when custom points list is changed. + + The list. + The args. + + + + Called when interactive cursors collection is changed. + + The list. + The args. + + + + Called when it's need to apply label format. + + The sender. + The instance containing the event data. + + + + Called when the axes apearances was changed. + + The sender. + The instance containing the event data. + + + + Redraws by the specified update. + + if set to true chart will be updated. + + + + Gets the bounds by rect. + + The rect. + + + + + Gets the global bounds by rect. + + The rect. + + + + + Transforms the specified point to the chart plane. + + + + + Only for real 3D mode. + + + + + Transforms the specified point to the screen plane. + + + + + Only for real 3D mode. + + + + + Change the default appearance of chart. + + + + + + Transforms the specified point to the screen plane. + + + + + Only for real 3D mode. + + + + + Transforms the specified point to the chart plane. + + + + + Only for real 3D mode. + + + + + Calculates given flag state. + + The target. + The flag. + + true if the specified flag is present in the specified value; otherwise, false. + + + + + Rounds the rotation. + + The value. + + + + + Gets the radar radius by the specified font size. + + Height of the font. + + + + + Called when is need to redraw the chart. + + The sender. + The instance containing the event data. + + + + Gets the front bound by axes. + + + + + + Gets the front bound by axes. + + if set to true [by all axes]. + + + + + Returns the rectangle encompassing the specified axes. + + + + + Returns the ChartRegion at the specified index value. + + + + + + + Calculates zoomfactor and zoomposition for x axis. + + + + + + Calculates zoomfactor and zoomposition for y axis. + + + + + + Gets a value indicating whether client bounds will be updated or not. + + + true if skin style is set for border appearance, false. + + + + + Gets or sets a value indicating whether this instance is indexed. + + + true if this instance is indexed; otherwise, false. + + + + + Gets or sets a value indicating whether this instance is indexed with gap or not when empty points are used. + + + + + Gets or sets whether the cursor need to redraw or not. + + + + + Gets or sets the cursor location of chart. + + + + + Owner of this chart area. + + + + + Gets or sets the border width of the ChartArea. Default is 1. + + + + + Gets or sets the bordercolor of the ChartArea. Default is SystemColors.ControlText. + + + + + Gets or sets the style of the border that is to be rendered around the ChartArea. Default is None. + + + + + Gets or sets the width of the rectangular area that is to be occupied by this ChartArea. + + + + + Gets or sets the height of the rectangular area that is to be occupied by this ChartArea. + + + + + Returns the y coordinate of the top edge of the rectangular area that is to be occupied by this ChartArea. + + + + + Returns the x coordinate of the right edge of the rectangular area that is to be occupied by the ChartArea. + + + + + Returns the x coordinate of the left edge of the rectangular area that is to be occupied by the ChartArea. + + + + + Returns the y coordinate of the bottom edge of the rectangular area that is to be occupied by this ChartArea. + + + + + Returns the bounds occupied by this ChartArea. + + + + + Returns the Rectangle in client co-ordinates that is occupied by this ChartArea. + + + + + Gets or sets the size of the rectangular area that is to be occupied by the ChartArea. + + + + + Gets or sets the location of the rectangular area that is to be occupied by this ChartArea. + + + + + Returns the radius of the Radar chart occupied by this ChartArea. + + + + + Gets or sets a value indicating whether area should be divided for each simple chart (Pie, Funnel...). + + true if area should be divided; otherwise, false. + + + + If set to true, multiple pie chart series will be rendered in the same chart area. + + + + + + If set to true, Chart axes labels will be rendered each time chart updates. + + + + + + Returns the center point of this ChartArea. + + + + + Returns the global rectangular bounds used for rendering. + + The render global bounds. + + + + Returns the actual rectangular bounds used for rendering. + + + + + Returns the margins that will be deduced from the rectangular area that represents the ChartArea. + Negative values are supported. + + + + + Returns the X axis offset value that is to be used when rendering in 3D mode. + + + + + Returns the Y axis offset value that is to be used when rendering in 3D mode. + + + + + Indicates whether the ChartArea is to be rendered in 3D. Default value is false. + + + + + Indicates whether the ChartArea is to be rendered in 3D. Default value is false. + + + + + Gets or sets the perception of depth that is to be used when the ChartArea is rendered in 3D. Default is 50. + + + + + Gets or sets the rotational angle that is to be used when the ChartArea is rendered in 3D. Default is 30. + + + + + Gets or sets the tilt that is to be used when the ChartArea is rendered in 3D. Default is 30. + + + + + Gets or sets the turn that is to be used when the ChartArea is rendered in real 3D only. Default is 0.0f. + + + + + Gets or sets a value indicating whether area should scale automatically in 3D mode. + + + true if area should scale automatically; otherwise, false. + + + + + Gets or sets a scale value in 3D mode. + + + + + + Gets transformation for real 3d mode. + + + + + + Gets the real 3D mode settings. + + The real 3D mode settings. + + + + Gets or sets the background brush of the chart area. + + + + + Gets or sets the grid back interior. + + The grid back interior. + + + + Gets or sets the image that is to be used as the background for this ChartArea. + + + + + Gets or sets the image that is to be used as the background for this ChartArea Interior. + + + + + Specifies whether the ChartArea requires axes to be rendered (for the Chart types being rendered). + + + + + Specifies whether to change the appearance of chart. + + + + + Indicates whether Chart requires Inverted Axes + + + + + Collection of axes associated with this chart. You can add and remove axes from this collection. + Primary X and Y axes may not be removed. + + + + + Gets or sets the spacing between different axes on the same side of the ChartArea. This spacing is useful when you display multiple + axes side by side. + + + + + The primary X axis. + + + + + The primary Y axis. + + + + + Gets or sets the minimum size of this ChartArea. + + + + + Returns the margins of ChartArea (excluding label width and height). + + + + + Gets or sets the mode of drawing the edge labels. Default is AutoSet. + + + + + Gets the information of axes bar representation. + + + + + + Gets or sets the maximal value of full stracking charts. + + The maximal value of full stracking charts. + + + + Specifies the way in which multiple X-axes will be rendered. Default is Stacking. + + + + + Specifies the way in which multiple Y-axes will be rendered. Default is Stacking. + + + + + Gets the X axes layouts. + + The X axes layouts. + + + + Gets the Y axes layouts. + + The Y axes layouts. + + + + Gets or sets the current Redraw flag state. If true, the ChartArea representation is out of date and needs to be refreshed. + + + + + Indicates whether partially visible axis labels are hidden. + + + + + Obsolete. + + + + + In a PieChart, if set to false, the legend will be displayed with one legend item for each slice in the Pie. Default is false. + + + + + List of chart regions. + + + + + Old (obsolete) property. Use XAxesLayoutMode and YAxesLayoutMode instead. + + + + + Gets or sets the quality of text rendering. Default is AntiAlias. + + + + + Indicates if is calculated by including the label width and height of the axes. Default is true. + + + + + Gets the water mark information. + + The water mark. + + + + Gets or sets the ToolTip text associated with this ChartArea. + + + + + Collection of interactive cursors that renders custom cursors on the chart area. + + + + + Collection of custom points that are to be rendered in this ChartArea. + Custom points can be added as markers at a specific location in the chart. + + + + + + + + Gets the series rendering parameters. + + The series parameters. + + + + Gets the drawing mode. + + The drawing mode. + + + + Gets or sets the type of the axes. + + The type of the axes. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Provides methods to drawing the border by images. + + + + + Initializes a new instance of the class. + + The resources. + The name. + + + + Draws the specified g. + + The g. + The rect. + Color of the base. + + + + Builds the specified rect. + + The rect. + + + + Gets the region. + + The rect. + + + + + Draws the image. + + The g. + The SRC rect. + The dest rect. + The attr. + + + + + + + + + + + Gets the region. + + The . + The rect. + Color of the mask. + + + + + Parses the rectangle. + + The text. + + + + + Parses the color. + + The text. + + + + + + + + + + Specifies the border skin style. + + + + + Simple (Flat) border + + + + + An embossed style of border skin is used. + + + + + A bevel style of border skin is used. + + + + + An embed style of border skin is used. + + + + + A frame style of border skin is used. + + + + + A pinned style of border skin is used. + + + + + An open style of border skin is used. + + + + + A roundedDiagonal style of border skin is used. + + + + + A slice style of border skin is used. + + + + + An projector style of border skin is used. + + + + + A gel style of border skin is used. + + + Gel skin doesn't support background interior and background image. + + + + + A raised sunken of border skin is used + + + + + An etched style of border skin is used. + + + + + A raised style of border skin is used. + + + + + Specifies the position of the image. + + + + + The image is left-aligned at the top across the control's client rectangle. + + + + + The image is tiled across the control's client rectangle. + + + + + The image is centered within the control's client rectangle. + + + + + The image is stretched across the control's client rectangle. + + + + + The image is enlarged within the control's client rectangle. + + + + + Provides the methods to draws the chart border. + + + + + Initializes a new instance of the class. + + + + + Draws the specified Border. + + The g. + The rect. + The fill brush. + The background image. + The image layout. + + + + Method to dispose ChartBorderInfo objects. + + + + + Computes the thickness. + + + + + + Draws the none border. + + The g. + The rect. + The fill brush. + The background image. + The image layout. + + + + Draws the emboss border. + + The g. + The rect. + The fill brush. + The background image. + The image layout. + + + + Draws the bevel border. + + The g. + The rect. + The fill brush. + The background image. + The image layout. + + + + Draws the emboss border. + + The g. + The rect. + The fill brush. + The background image. + The image layout. + + + + Draws the emboss border. + + The g. + The rect. + The fill brush. + The background image. + The image layout. + + + + Draws the pinned border. + + The g. + The rect. + The fill brush. + The background image. + The image layout. + + + + Draws the emboss border. + + The g. + The rect. + The fill brush. + The background image. + The image layout. + + + + Draws the rounded diagonal border. + + The g. + The rect. + The fill brush. + The background image. + The image layout. + + + + Draws the slice border. + + The g. + The rect. + The fill brush. + The background image. + The image layout. + + + + Draws the projector border. + + The g. + The rect. + The fill brush. + The background image. + The image layout. + + + + Draws the gel border. + + The g. + The rect. + The fill brush. + The background image. + The image layout. + + + + Draws the sunken border. + + The g. + The rect. + The fill brush. + The background image. + The image layout. + + + + Draws the etched border. + + The g. + The rect. + The fill brush. + The background image. + The image layout. + + + + Draws the raised border. + + The g. + The rect. + The fill brush. + The background image. + The image layout. + + + + Raises the changed. + + + + + Draws the round bevel. + + The g. + The rect. + The corner radius. + The bevel radius. + The light color1. + The light color2. + The dark color1. + The dark color2. + + + + Draws the round bevel. + + The g. + The path. + The rect. + The bevel radius. + The corner radius. + Color of the light. + Color of the dark. + if set to true [rasied]. + + + + Fills the path gradient. + + The g. + The path. + The bounds. + The color1. + The color2. + The focus scale. + + + + Draws the path gradient. + + The g. + The brush path. + The bounds. + The path. + The color1. + The color2. + The focus scale. + The width. + + + + Draws the pin. + + The g. + The center. + + + + Draws the background. + + The g. + The rect. + The fill brush. + The background image. + The image layout. + + + + Gets the interior of border line. + + The interior. + + + + Gets or sets the skin of the border. + + + + + Gets or sets the color of the base. + + The color of the base. + + + + Gets or sets the frame thickness. + + The frame thickness. + + + + Gets the thickness of correct skin style. + + The thickness. + + + + Gets the bevel border. + + The bevel border. + + + + An event that is trigggered when BorderInfo is changed. + + + + + Specifies the border line appearance. + + + + + Initializes a new instance of the class. + + The owner. + + + + Method to dispose ChartBorderLineInfo object + + + + + Creates the pen. + + + + + + Gets or sets the foreground color of border. + + The foreground color. + + + + Gets or sets the width of border. + + The width. + + + + Gets or sets the dash style of border. + + The dash style. + + + + The ChartAxesInfoBar display the labels between the rectangular axes. + + + ChartArea.AxesInfoBar.Visible = true; + ChartArea.AxesInfoBar.Text = ""; + ChartArea.AxesInfoBar.ShowBorder = true; + + + + + Creates instance of the ChartAxesInfoBar. + + + + + Draws to the specified graphics. + + The graphics. + The x axis. + The y axis. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Raise changed event with event arguments. + + Event arguments to raise event. + + + + An event that is triggered when properties are changed. + + + + + Gets or sets value indicates that bar is visible or not. + + + + + Gets or sets text. + + + + + Gets or sets to customize the text appearance. + + + + + Gets or sets color of text. + + + + + Gets or sets value indicates that need to render border. + + + + + Gets or sets of the border. + + + + + Gets or sets of the text to render. + + + + + Gets or sets grouping cell's text by its and row index. + + + + + Represents the watermark + + + + + The watermark will be rendered over chart. + + + + + The watermark will be rendered behind chart. + + + + + Represents the watermark properties. + + + + + Initializes a new instance of the class. + + The chart area. + + + + Draws watermark by the specified graph. + + The graph. + The bounds. + + + + Draws watermark by the specified G3D. + + The G3D. + The bounds. + The Z coordinate. + Returns Polygon. + + + + Computes the bounds. + + The graph. + The bounds. + The image bounds. + The text bounds. + + + + Indicates whether the font should be serialized. + + Indicates whether the font should be serialized or not. + + + + Indicates whether the text color should be serialized. + + Indicates whether the text color should be serialized. + + + + Resets the font. + + + + + Resets the text color. + + + + + Invalidates the chart. + + + + + Gets or sets the text. + + The text. + + + + Gets or sets the font. + + The font. + + + + Gets or sets the vertical alignment. + + The vertical alignment. + + + + Gets or sets the horizontal alignment. + + The horizontal alignment. + + + + Gets or sets the color of the text. + + The color of the text. + + + + Gets or sets the image. + + The image. + + + + Gets or sets the size of the image. + + The size of the image. + + + + Gets or sets the depth order. + + The depth order. + + + + Gets or sets the margin. + + The margin. + + + + Gets or sets the opacity. + + The opacity. + + + + Gets a value indicating whether watermark is visible. + + + True if this instance is visible; otherwise, false. + + + + + Indicates allowed action with axis. + + + + + None. + + + + + Panning action is allowed. + + + + + The ChartAxis class represents an axis on the plot. An axis can be oriented vertically or horizontally. + Multiple axes can exist within a chart, including one X-axis and one Y-axis which are considered the primary X and primary Y axes. These primary axes are visible by default. + You can create and add additional axes to the using its collection. Any series + on the chart can be plotted on any axis that is registered with the chart. + + + + + Resets the fore color to default value. + + + + + + Resets the color of the title to default value. + + + + + + Resets the color of the tick. + + + + + + Determines if the DateTimeOffset property was modified. + + True if property was modified, otherwise false. + + + + + Determines if the ForeColor property was changed. + + True if property was changed, otherwise false. + + + + + Determines if the ForeColor property was changed. + + True if property was changed, otherwise false. + + + + + Determines if OriginDate property was changed. + + True if property was changed, otherwise false. + + + + + Determines if SmallTickSize property was changed. + + True if property was changed, otherwise false. + + + + + Determines if the TickColor property was changed. + + True if property was changed, otherwise false. + + + + + Determines if TickSize property was changed. + + True if property was changed, otherwise false. + + + + + Determines if the size property was modified. + + True if size property was modified, otherwise false. + + + + Determine if the RangeType property was modified. + + True if Range property was modified, otherwise false. + + + + Calculates value indicates that orientation property will be serialized by designer. + + True if value will be serialized, otherwise false. + + + + Resets the orientation. + + + + + Calculates value indicates that orientation property will be serialized by designer. + + True if value will be serialized, otherwise false. + + + + Resets the orientation. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The orientation. + + + + Initializes a new instance of the class. + + if set to true axis is primary. + + + + Used to get the specific index of category value. + + + + + Sets the owner. + + The area. + + + + Unsubscribes the specified target from all events. + + The target. + + + + Unsubscribes object from specified delegate. + + The delegate to unsubscribe. + The target. + + + + + Gets the dimension. + + The graphics content. + The chart area. + Dimension. + + + + + Checks whether FormatLabel event of axis is used or not. + + + + + + Gets the dimension. + + The g. + The chartarea. + The render bounds. + + + + + + Gets the dimension of title. + + The g. + The chartarea. + The render bounds. + + + + + + Draws the axis. + + The g. + The chartarea. + + + + + Draws the axis. + + The g. + The chartarea. + Bounds for axis labels + + + + + Cross the axis. Location of the axis is changed based on the specified value. + + The chartarea. + + + + + Cross the Inverted axis. Location of the axis is changed based on the specified value. + + The chartarea. + + + + + Draws the axis. + + The g. + The chartarea. + The z. + + + + + Docks to specified bounds. + + The bounds. + + + + Changes the and the by center. + + The new zoom factor. + + + + Zooms by range. + + + + + + Multiplies the zoom factor by center. + + The mul factor. + + + + Resets the zoom. + + + + + Zoom axis and updates zoom factor and zoom position. + + The start point of zoomed rectangle. + The end point of zoomed rectangle. + The min zoom factor. + True if axis was updated, otherwise false. + + + + The ChartAxis by default creates a display range based on data. If you do not wish to use this + range you can set this range yourself using this method. When you set a custom range you have to + set to . + + + + Range information with minimum and maximum values to be used. + + + + + + Sets the nice range. + + The base range. + Type of the patting. + + + + Marks the axis and related rendering information as out of date. + + + + + Disables events raising (, , + , ). + + + + + + + Enables events raising (, , + , ). + + + + + + + Gets the visible value on the chart by specified value. + + The value. + + + + + Calculates real value for given point. + + The point to calculate real value. + Real value. + + + + Gets the real value in pixels. + + The value. + Calculated value. + + + + Gets the coordinate from value. + + The value to get coordinate. + Coordinate that represent value. + + + + Add breaks at the specified range. + + Break's >. + + + + Add breaks at the specified range. + + Value from. + Value to. + + + + Clears all the breaks. + + + + + Calculates the axis location. + + The to place axis. + + + + Calculates the axis layout. + + The to place axis. + The spacing. + The dimension. + where axis is placed. + + + + Sets the zoom position from scroll bar value. + + The scroll value. + Indicates that visible range need to be recalculated. + + + + Calculates scroll bar position from zoom position. + + Calculated scroll bar position. + + + + Draw grid on the . + + The to draw grid lines. + The to draw lines. + + + + Draw grid on the . + + The to draw grid lines. + The to draw lines. + + + + Draws the interlaced grid. + + The to render gris lines. + The to draw lines. + The z-coord. + + that represent grid lines. + + + + + Draws grid's lines. + + The to render gris lines. + The to draw lines. + The z-coord. + + that represent grid lines. + + + + + Draw breaks. + + to render breaks. + to render breaks. + + + + Draw breaks. + + to render breaks. + to render breaks. + + + + Subtructs location of axis and returns necessary value by orientation. + + to convert. + Calculated value by orientation. + + + + Values to coefficient. + + The value. + + + + + + Values to coefficient. + + The value. + + + + + Coefficients to value. + + The value. + + + + + + Coeficients to value. + + The value. + + + + + Calculates the nice range. + + The range. + The interval. + Type of the padding. + + + + Calculates the nice internal. + + The desired interval. + + + + + Calculates the nice internal. + + The desired interval. + + + + + Calculates the padding. + + The base range. + The interval. + Type of the padding. + + + + + Tweaks to zero. + + The range. + The interval. + + + + + Raises the appearance changed event. + + The instance containing the event data. + + + + + Raises the dimensions changed event. + + The instance containing the event data. + + + + + Raises the intervals changed event. + + The instance containing the event data. + + + + + Raises the visible range changed event. + + The instance containing the event data. + + + + + Gets the offset label. + + The sz. + + + + + Sets the default orientation. + + The value to set orientation. + + + + Perfoms the tick labels layout. + + The graphics content. + The labels bounds. + The spacing. + + + + + + Updates grouping labels layout. + + The . + The spacing. + Spacing. + + + + Draws the tick labels. + + The to draw. + + + + + + Draws all tick labels. + + The to draw. + The paths. + The z-coord. + + + + + Draws the tick label grids. + + The to draw. + The to draw tick. + The to place tick. + + + + Draws the axis title. + + The graphics to draw. + The rectangle to draw. + + + + Measure the size of axis text + + Graphics + Rectangle to store the sie + Axis title + Size of the text + + + + Reanders axis' text. + + The graphics to render text. + The rectangle to render. + The z-coord. + + + + + Handles visual properties changed events. + + The sender. + The instance containing the event data. + + + + Handles layout properties changed events. + + The sender. + The instance containing the event data. + + + + Called when range is changed. + + The sender. + The instance containing the event data. + + + + Called when break ranges is changed. + + The sender. + The instance containing the event data. + + + + Raises FormatLabel event. + + The sender. + The instance containing the event data. + + + + Gets the margins point. + + The g. + The pt. + The sz. + + + + + Converts the type of to value. + + The value to convert. + Converted value. + + + + Returns a nice zoom factor by taking into account the range of the axis. + + + + + Generates the label for given value and chart area. + + The value to generate label. + The . + The index of label. + Generated label. + + + + Gets the small ticks values. + + + + + + Gets the interlaced grid rects. + + The bounds. + + + + + Calculates the visible range. + + The zoom factor. + The zoom position. + + + + + This method is for internal purpose do not use in your code. It will trigger VisibleRangeChanged event handlers for the provided zoomfactor and zoomposition values. + + The zoom factor. + The zoom position. + + + + + Recalculates the visible ranges. + + + + + Invalidates the ranges. + + + + + Sort the X-axis labels based on Y values. + + + + + Recalculates the visible labels. + + The area. + + + + Insides the specified MinMaxInfo. + + The MinMaxInfo. + The value. + + + + + Converts the to . + + The . + + + + + Converts the to . + + The value. + + + + + Zoomings the allowed. + + The zoom factor. + The zoom position. + + + + + Dispose ChartAxisObject for MVCChartModel + + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Gets or sets a value indicating whether the size of the chart axis should be calculated automatically. + + + + + Gets or sets the size of this axis. + + + + + Gets or sets the location and size of the rectangular region occupied by the axis. + + + + + Gets or sets the length of this axis. + + + + + Gets or sets the sorting labels of X axis. + + + + + Gets or sets the cardinal dimension of the axis object. If the text that is rendered by the axis is of a dimension that is more, then + that dimension will be used and this dimension is ignored. + + + + + Specifies whether interval should be recalculated during zooming or not. + If this property is disabled, then interval value assigned to + ZoomedRange.Interval property will be used as interval in zoomed chart + + + + + If LocationType is set to ChartAxisLocationType.Set, + then this property is used to calculate RenderGlobalBounds + and in such a way to define location of axes. + + + + + Specifies the double value.This property is used to locate the X and Y axes in + chart area based on the specified value. specified value must be within the + range of X and Y axes values. + + + + + + Determines how location of axes is calculated. See . + + + + + Gets or sets axis title rotation. + + + + + Gets or sets label alignment. + + + + + Gets or sets a value indicating whether label is rotate from Ticks while using Far. + + + + + Gets or sets a value indicating whether this Showa some space as margin. + + true if margin; otherwise, false. + + + + Gets or sets a value indicating whether label grid is visible. + + true if label grid is visible; otherwise, false. + + + + Gets or sets the tick label grid padding. + + The tick label grid padding. + + + + Gets the break ranges. + + The break ranges. + + + + Indicates whether the breaks should be shown for the specified axis. + + + + + Gets or sets the break info to customize the axes line. + + The break info. + + + + Gets the breaks for an axis. + + + + + Gets or sets the Label intersection control option. + + + + + + Gets or sets a value indicating whether require inverted axes. + + + + + + This property is for internal use. Do not try to set it manually. + It indicates whether this is indexed. Indexed axes + have only positional value. They do not actually plot value data; only the position of the data + is used for plotting. You may read the value, but do not set it manually. + + + true if axis is indexed; false otherwise. + + + + + Gets or sets a value indicating whether labels can be scaled. + + + + + Gets or sets a value indicating whether the value type of this axis will be automatically assigned. Default is false. + + + + + Gets or sets a value indicating whether to set zoom factor and labels format + according to the improved date time zoom logic or to use default zooming behaviour. + + + + + Gets or sets a value indicating whether to set zoom factor + and labels format according improved date time zoom logic or + to use default zooming behaviour. + + + + + Gets or sets a value indicating whether to set zoom factor + and labels format according improved date time zoom logic or + to use default zooming behaviour. Default is "y". + + + + + Gets or sets a value indicating whether to set zoom factor + and labels format according improved date time zoom logic or + to use default zooming behaviour. Default is "MMMM d, yyyy" + + + + + Indicates whether to set zoom factor + and labels format according improved date time zoom logic or + to use default zooming behaviour. Default is "g" + + + + + Gets or sets a value indicating whether to set zoom factor + and labels format according improved date time zoom logic or + to use default zooming behaviour. Default is "MMM, ddd d, yyyy". + + + + + Gets or sets a value indicating whether to set zoom factor + and labels format according improved date time zoom logic or + to use default zooming behaviour. Default is "t". + + + + + Gets or sets a value indicating whether to set zoom factor and labels format according improved date time zoom logic or + to use default zooming behaviour. Default is "T". + + + + + Gets or sets a value indicating whether to set zoom factor and labels format according improved date time zoom logic or to use default zooming behaviour. Default is "T". + + + + + Gets the current smart date time format. + + The current smart date time format. + + + + Gets or sets a value indicating whether interlaced grid is enabled. + + true if interlaced grid is enabled; otherwise, false. + + + + Gets or sets the interlaced grid interior. + + The interlaced grid interior. + + + + Gets or sets the edge labels drawing mode. + + + + + By default the axis will calculate the origin of the axis from data contained in the series. Using the + and properties, you can change this origin. To do so, first set this property to true. Default is false. + + + + + Gets or sets custom origin for charts containing datas of double value type. By default, the axis will calculate the origin of the axis from data contained in the series. Using the + and properties, you can change this origin. To enable the origin set with Origin or OriginDate, you have to + set to True. + + + + + Gets or sets custom origin for charts containing datas of DateTime value type. By default the axis will calculate the origin of the axis from data contained in the series. Using the + and properties, you can change this origin. To enable the origin set with Origin or OriginDate, you have to + set to True. + + + + + Gets the current origin. + + The current origin. + + + + This format will be used to format axis labels of type DateTime for display. Default is "g". + + + + + Gets or sets an offset for axis intervals that contain DateTime datas. Depending on the data in the series provided to the Chart, the Chart will calculate and display a range of data on + the ChartAxis. This will result in major grid lines being rendered along calculated intervals. However, sometimes + you may wish to offset the calculated grid lines (major) by a certain factor. This is especially useful for DateTime values. + For example, the default calculation always starts the intervals at Sunday (if the IntervalType is set to weeks). If you wish + to start the intervals with Monday, you can simply specify a DateTimeOffset of one day. If your axis is not of type DateTime + and you wish to take advantage of this property, please refer . + + + + + Specify the start and end dates and interval time for the axis. Use this if the data points are of datetime type. + + + + + Gets or sets the date time range of this axis as DateTime values. + Note: it works only if ValueType is DateTime. + + + + + Gets or sets the desired number of intervals for the range. Essential Chart includes a sophisticated automatic nice range calculation engine. The goal of this engine is to take + raw data and convert it into human readable numbers. For example, if your raw numbers are 1.2 - 3.87, nice numbers could + be 0-5 with 10 intervals of 0.5 each. The ChartAxis can do the same calculation for dates also. It offers precise control over + how data types are to be interpreted when performing this calculation. With the DesiredIntervals setting, you can request the + engine to calculate nice numbers such that they result in the number of intervals desired. Due to the nature of the calculation, + the ChartAxis cannot provide precisely the same number of intervals but it will try to match the value to the extent possible. + + + + + Gets or sets the padding that will be applied when calculating the axis range. + + + + + Indicates whether one boundary of the calculated range should always be tweaked to zero. + + + + + Indicates whether one boundary of the calculated range should always be tweaked to zero to both positive and negative value. + + + + + Indicates that you would like one boundary of the calculated range to be tweaked to zero. + + + + + Gets the tick and labels dimension. + + The tick and labels dimension. + + + + Gets the grouping labels rows dimensions. + + + + + Gets or sets a value indicating whether the grid lines associated with the main interval points on the axis are to be rendered. This is + set to True by default. + + + + + Gets or sets a value indicating whether the tool tip associated with the axis labels are to be rendered. This is + set to True by default. + + + + + Gets or sets a value indicating whether tooltip should be displayed in axis for crosshair or trackball. This is + set to False by default. + + + + + Gets or sets whether labels should be an integer power of log base or not. Applicable only for logarithmic axis. + + + + + Gets or sets a value indicating whether the minor grid lines associated with the main interval points on the axis are to be rendered. This is + set to True by default. + + + + + Gets or sets the grid drawing mode. + + The grid draw mode. + + + + Gets or sets the label placement on axis. Labels can be placed between ticks only for categorical axis + + + + + Gets the attributes of the axis grid lines. Please refer to for more information on these attributes and + how they can change the appearance of the grid lines. + + + + + Gets the attributes of the axis grid lines. Please refer to for more information on these attributes and + how they can change the appearance of the grid lines. + + + + + Gets or sets the tick drawing operation mode. + + The tick drawing operation mode. + + + + Gets or sets the font that is to be used for text that is rendered in association with the axis (such as axis labels). + + + + + Gets or sets the title font that is to be used for text that is rendered in association with the axis (such as axis title). + + + + + Gets or sets the color that is to be used for text that is rendered in association with the axis (such as axis labels). + + + + + Gets or sets the title color that is to be used for text that is rendered in association with the axis (such as axis title). + + + + + Gets or sets the title draw mode. + + The title draw mode. + + + + Gets or sets a collection of pens by using which internal line of Polar and Radar chart is drawned. + + + + + Gets or sets the format for axis labels. If the value type of the axis is double, this format will be used to format axis labels for display. + + + + + Gets or sets a value indicating whether the interval that gets calculated by the nice range calculation engine + should be in Years, Months, Weeks, Days, Hours, Minutes, + Seconds or MilliSeconds. This setting is used only if the ValueType of the axis is set to DateTime. Default value + is Auto. + + + + + Gets or sets a value indicating whether the axis should be reversed. When reversed, the axis will render points from right to left if horizontal and + top to bottom when vertical. + + + + + Gets or sets the label intersect action. Labels can intersect on the axis if they are too close to each other. ChartAxis offers several options to enhance the display + of the axis when such intersection occurs. Please see for more information. + + + LabelIntersectAction is applicable for horizontally orientated axes only. + + + + + Indicates whether partially visible axis labels should be hidden. + + + + + Gets or sets a value indicating whether labels can be rotated. + + + + + Gets or sets the angle at which labels are to be rotated. + + + + + Gets the collection of labels associated with this axis. + + + + + Use this property to assign a custom implementation of . If you are working with the + default label collection, use . + + + + + Collection of grouping labels associated with this axis. + + + + + Use this property to assign a custom implementation of . If you are working with the + default label collection, use . + + + + + Returns attributes of the primary axis line. Please refer to for more information on these attributes and + how they can change the appearance of the axis line. + + + + + Gets or sets the log base that is to be used when value is logarithimic. Default is base 10. + + + + + Gets or sets the Offset. It specifies the offset that should be applied to the automatically calculated range's start value. + + + + + Gets or sets the PointOffset. It specifies the points offset that should be applied to the automatically calculated range's start value. + + + + + If this axis is a secondary axis, setting this property to True will cause + it to move to the opposite side of the primary axis. This property is False + by default. + + + + + Gets or sets a value indicates whether label is located inside or outside of chart area. + + The legends placement. + + + + Gets or sets the Orientation of the axis. You cannot change the orientation of primary axes. Primary axes are the ones that are + created and available by default in the Axes collection. + + + + + Gets or sets the range for an axis. By default, the chart will automatically calculate the range that is to be displayed. The range property allows you + to change this range to be any range of your choice. Set ChartAxis.RangeType to Set for this to take effect. + + + + + Gets or sets the range type. + + + + + Gets or sets the number of places that is to be used for rounding when numbers are used for display (default is 2). + If this property less zero, rounding is disable. + + + + + Gets or sets the size of small ticks to be displayed on the axis. By default, small ticks are not displayed. + + + + + Gets or sets the number of small ticks to be displayed per major interval. Default is 0. + + + + + Gets the collection of strip lines. Please refer to for more information. + + + + + Gets or sets the color of ticks that are rendered on the axis. + + + + + Gets or sets the size of ticks that are rendered on the axis. + + + + + Gets or sets the title of this axis. + + + + + Gets or sets the spacing between title and labels. + + The spacing. + + + + Gets or sets the alignment of the axis title. + + + + + Gets or sets the ToolTip of the axis. + + + + + Gets or sets the type of value that this axis is displaying. For the types supported, refer to . + + + If the ChartValueType.Custom type is set, labels gets from the by index or position of label. + Elsewhere labels is generated by value of label. +

+ The ChartValueType.Custom can't guarantee correct position of labels. + You can use the other ways to implements the custom labels, such as to use the event. + + + +

+ Gets or sets the mode of drawing of tick labels. + +
+ + + Gets the visible range when zoomed. + + + Don't try to change this property manually. The value will be changed if any of related properties is changed. + + + + + Gets the range that is currently zoomed in. + + + + + Gets or sets the factor that is to be used to calculate Zoomed range. + + + + + Gets or sets the minimum value(ZoomPosition) displayed on this axis when zoomed as a fraction of the total range. For example + if the total range is 20 and the minimum value currently displayed is 10, the ZoomPosition will be + 0.5 (10/20). + + + + + Gets or sets the zoom actions. + + The zoom actions. + + + + Gets or sets the the parameter types of method. + + The parameter type. + + + + Gets the default orientation. + + + + + Gets or sets the layout. + + The layout. + + + + Gets or sets a value indicating whether this is primary. + + + + + Gets the visible labels. + + The visible labels. + + + + Gets a value indicating whether this is indexed. + + + true if this instance is indexed; otherwise, false. + + + + + Gets a value indicating whether breaks is enabled. + + true if breaks is enabled; otherwise, false. + + + + Internal property. + + + + + Gets or sets a value indicating whether this instance is visible. + + + true if this instance is visible; otherwise, false. + + + + + Gets or sets LebelsOffset. It specifies the offset that should be applied to the automatically calculated labels. + + The labels offset. + + + + Get or Sets the string format of label.Default value is StringFormat.GenericDefault. + + + + + Occurs when appearance was changed. + + + + + + Occurs then dimensions was changed. + + + + + + Occurs then intervals was changed. + + + + + + Occurs when visible range was changed. + + + + + + Event for dynamic formatting of axis labels. + + + xAxis.FormatLabel += new ChartFormatAxisLabelEventHandler(XAxis_FormatLabel);

+ ...

+ void XAxis_FormatLabel(object sender, ChartFormatAxisLabelEventArgs args)

+ {

+ args.Label = "Category" + args.Value;

+ args.Handled = true;

+ } + + + + + +

+ Occurs when or properties are changing. + +
+ + + Occurs when or properties are changed. + + + + + Specifies types of break line. + + + + + The straight line. + + + + + The wave line. + + + + + The randomize line. + + + + + Specifies modes of breaks. + + + + + Breaks isn't used. + + + + + Chart automatically calculate the breaks. + + + + + Breaks is set manually. + + + + + Contains the appearance properties of break lines. + + + + + Initializes a new instance of the class. + + + + + Draws the break line. + + The . + The start point of break line. + The end point of break line. + + + + Draws the break line. + + The . + The start point of break line. + The end point of break line. + + + + + + + + + + Raises the event. + + The instance containing the event data. + + + + An event that is triggered when appearance is changed. + + + + + Gets or sets the type of the line. + + The type of the line. + + + + Gets or sets the color of the line. + + The color of the line. + + + + Gets or sets the line style. + + The line style. + + + + Gets or sets the width of the line. + + The width of the line. + + + + Gets or sets the line spacing. + + The line spacing . + + + + Gets or sets the color of the spacing. + + The color of the spacing. + + + + Specifies the single range segment of axis. + + + + + Gets or sets the range. + + The range. + + + + Gets or sets the interval. + + The interval. + + + + Gets or sets the length. + + The length. + + + + + + + + + Initializes a new instance of the class. + + The axis. + + + + Computes the breaks by specified series. + + The series. + + + + Unions the specified range. + + The range. + + + + Excludes the specified range. + + The range. + + + + Clears this instance. + + + + + Determines whether the specified value is visible. + + The value. + + true if the specified value is visible; otherwise, false. + + + + + Values to coefficient. + + The value. + + + + + + Values to coefficient. + + The value. + + + + + + Coefficients to value. + + The coefficient. + + + + + + Coefficients to value. + + The coefficient. + + + + + Computes coefficient by the specified value for the automatic mode. + + The value. + + + + + + Computes coefficient by the specified value for the automatic mode. + + The value. + + + + + Computes value by the specified coefficient for the automatic mode. + + The coefficient. + + + + + + Computes value by the specified coefficient for the automatic mode. + + The coefficient. + + + + + + Computes coefficient by the specified value for the manual mode. + + The value. + + + + + + Computes coefficient by the specified value for the manual mode. + + The value. + + + + + Compute the coefficient of value for manual mode. + + The value. + + + + + + Compute the coefficient of value for manual mode. + + The value. + + + + + Raises the event. + + The instance containing the event data. + + + + Called when visible range is changed. + + The sender. + The instance containing the event data. + + + + Recalculates the ranges. + + + + + An event that is triggered when appearance is changed. + + + + + Gets a value indicating whether this instance is empty. + + true if this instance is empty; otherwise, false. + + + + Gets or sets the break mode to calculate range between the axes. + + The mode. + + + + Specifies the minimal ratio of differences between Y values. + If this value is 0.25, that means the axis will be broken if more a quarter of the chart space is empty. + + + The value range is form 0.0 to 1.0. + + The break amount. + + + + Gets the segments. + + The segments. + + + + Gets the breaks. + + The breaks. + + + + Represents the data of . + + + + + Initializes a new instance of the class. + + The location. + + + + Gets the location. + + The location. + + + + Gets or sets a value indicating whether this is allowed. + + true if allowed; otherwise, false. + + + + Represents the the method that handles the event. + + + + + Specifies behavior of + + + + + Element doesn't suppport docking or moving. + + + + + Element suppports moving. + + + + + Element suppports docking. + + + + + Element supports both behaviours. + + + + + That class that implements the basic functionality of interface. + + + This class can be used as the host for other controls. + + + Button button1 = new Button();

+ button1.Text = "Button";

+ chartControl1.DockingManager.Add( new ChartDockControl( button1 )); + + + + +

+ Represents the properties and events required by the . + +
+ + + Measures the size of control. + + + + + + + Event Raised when the Location of the Legend is changing. + + + + + Event Raised when the position of the Legend was changed. + + + + + Event Raised when the Alignment of the Legend was changed. + + + + + Event Raised when the size of the Legend was changed. + + + + + Event Raised when the location of the Legend was changed. + + + + + Event Raised when the Visible of the Legend was changed. + + + + + Get and set the position of the Legend in chartControl. + + + + + Get and set the Alignment of the Legend in chartControl. + + + + + Get and set the Orientation of the Legend in chartControl. + + + + + Get and set the docking as free. + + + + + Get and set the Location of the Legend. + + + + + Get and set the Size of the Legend. Its works when the FloatingAutosize property is false. + + + + + Get and set the Visibility of the Legend in chartControl. + + + + + Gets or sets a value indicating whether the control can respond to user interaction. + + + + + The dock position of element. + + + + + + The alignment of element. + + + + + + The orientation of element. + + + + + + Indicates whether element should be docked. + + + + + + Ensuring visibility of control + + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The control. + + + + Measure size of control. + + + + + + + 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. + + An that contains the event data. + + + + + Handles the MouseDown event of the Control control. + + The source of the event. + The instance containing the event data. + + + + Handles the MouseUp event of the Control control. + + The source of the event. + The instance containing the event data. + + + + Handles the MouseMove event of the Control control. + + The source of the event. + The instance containing the event data. + + + + Handles the SizeChanged event of the Control control. + + The source of the event. + The instance containing the event data. + + + + Event is raised when the location is changing + + + + + + + This method is called during the MouseMove event + + The x. + The y. + + + + + Specifies the orientation of the dock control based on dock position. + + + + + + Event is raised when the docking position is changed + + + + + + Event is raised when alignment is changed + + + + + + Checks the location. + + The pt. + + + + + + An event that is triggered when Location is changing. + + + + + An event that is triggered when Position is changed. + + + + + An event that is triggered when Alignment is changed. + + + + + Specifies the docking position of the control + + + + + Controls the alignment of the Docked Control inside the ChartArea + + + + + Specifies the orientation of the docked control inside ChartArea + + + + + Indicates if the control is docking free. + + + + + Gets or sets the docking behaviour. + + + + + + Gets or sets the name of the control. + + + + + Delegate that is to be used with ChartControl. + + + + Sender. + + + + + Event argument. + + + + + + + + + Delegate that is to be used with ChartAxis. + + + Sender. + + + Event argument. + + + + + Argument that is to be used with ChartControl. + + + + + Initializes a new instance of class. + + + + The text of the label. + + + + + The value of the point associated with the label. + + + + + The axis associated with the label. + + + + + + Returns the orientation of the axis for which the label is being generated. + + + + + Indicates whether this event was handled and no further processing is required from the chart. + + + + + Indicates whether the axis for which the label is being generated is a primary axis. + + + + + Gets or sets the label that is to be rendered. + + + + + Gets or sets the tooltip for the label that is to be rendered. + + + + + Returns the value associated with the position of the label. + + + + + Returns the value associated with the position of the label as DateTime. + + + + + Gets the Chart axis. + + The axis. + + + + Gets or sets a value indicates whether every label is located Right or Left of Y-axis and Top or Bottom of X-Axis line. + + + + + is the base class for classes containing event data. + + + + + Initializes a new instance of the class. + + The axis. + The range. + The zoom factor. + The zoom position. + + + + Gets the axis of Chart. + + The axis. + + + + Gets the new visible range. + + The range. + + + + Gets the zoom factor of current axis. + + The zoom factor. + + + + Gets the zoom position of current axis. + + The zoom position. + + + + Gets or sets a value indicating whether the zooming should be canceled. + + true if zooming is canceled; otherwise, false. + + + + The Chart Region represents a region on the client area of the Chart control that has a ToolTip. + It can be a point region. A point region is a region that represents the visual appearance of a point. + For example, the Rectangle of a + point. When the ChartRegion represents a chart point, IsChartPoint is set to True. + + + + + Initializes a new instance of the class. + + The region. + Index of the series. + Index of the point. + The tool tip. + The description. + + + + Initializes a new instance of the class. + + The region. + Index of the series. + The tool tip. + The description. + + + + Initializes a new instance of the class. + + The region. + The tool tip. + The description. + + + + Initializes a new instance of the class. + + The region. + Type of the region. + The tool tip. + The description. + + + + Initializes a new instance of the class. + + The region. + Type of the region. + The tool tip. + Axis index. + The description. + + + + Initializes a new instance of the class. + + The region. + Type of the region. + The rectangle bounds. + Point x,y value. + Series Index. + Point Index. + The description. + + + + Initializes a new instance of the class. + + The region. + The data. + + + + Method to dispose ChartRegion objects. + + + + + Indicates whether the region represents a chart point. + + + true if this instance is chart point; otherwise, false. + + + + + Indicates whether the region represents a chart point. + + The type. + + + + Gets the index of the point. + + The index of the point. + + + + Gets or sets the actual region that has the ToolTip. + + The region. + + + + Returns the index value of the series that has this region. + + The index of the series. + + + + Returns the index value of the axis that has this region. + + The index of the axis. + + + + Returns the index value of the axis that has this region. + + The index of the axis. + + + + Returns the bounds of the rectangle + + The bounds value. + + + + Gets or sets the ToolTip of the region. + + The tool tip. + + + + Returns the description for this region. + + The description. + + + + Lists the types of chart region. + + + + + The region is a series point. + + + + + The region is a axes. + + + + + The region is a horizontal axis grouping label. + + + + + The region is a vertical axis grouping label. + + + + + The region is a unknown element. + + + + + The region is a callout datalabel. + + + + + Anything else not covered. + + + + + Represents the data of + + + + + Initializes a new instance of the class. + + Index of the series. + Index of the point. + The tool tip. + The description. + + + + Initializes a new instance of the class. + + The rectangle bounds. + The point x, y position. + Index of the series. + Index of the point. + The description. + + + + Initializes a new instance of the class. + + Index of the series. + The tool tip. + The description. + + + + Initializes a new instance of the class. + + The tool tip. + The description. + + + + Initializes a new instance of the class. + + Type of the region. + The tool tip. + The description. + + + + Initializes a new instance of the class. + + Type of the region. + The tool tip. + Axis index. + The description. + + + + Initializes a new instance of the class. + + Type of the region. + The tool tip. + Axis label text + Axis index. + Index of the label in axis + The description. + + + + Gets the chart region. + + The region. + + + + + Clones a data. + + Return ChartRegion Data. + + + + Implementation of interface ICloneable. + + Returns ChartRegiondata clone. + + + + Indicates whether the region represents a chart point. + + + true if this instance is chart point; otherwise, false. + + + + + Gets the index of the label. + + The index of the label. + + + + Gets the index of the point. + + The index of the point. + + + + Gets the index of the series. + + The index of the series. + + + + Gets the point x,y value + + The x y value of the point. + + + + Gets the rectangle bounds + + The bounds value of the point. + + + + Gets the index of the Axis. + + The index of the Axis. + + + + Gets the clicked label text. + + Value of the clicked label. + + + + Gets or sets the ToolTip for this region. + + The tool tip. + + + + Gets the description. + + The description. + + + + Gets the type. + + The type. + + + + Delegate that is to be used with chart region related mouse events. + + + + Sender. + + + + + Event argument. + + + + + + Delegate that is to be used with chart area image drawing events. + + + + Sender. + + + + + Event argument. + + + + + + Argument that is to be used with chart region related mouse events. + + + + + Initializes a new instance of the class. + + The region. + The click point. + + + + Initializes a new instance of the class. + + The region. + The click point. + The button. + + + + Gets the region. + + The region. + + + + Gets the point. + + The point. + + + + Gets the button. + + The button. + + + + Argument that is to be used with chart area image drawing events. + + + + + Initializes a new instance of the class. + + The buffer image. + + + + Gets or sets the buffer image. + + The buffer image. + + + + Gets or sets a value indicating whether this is handled. + + true if handled; otherwise, false. + + + + Gets or sets the location of the image. + + The location. + + + + Gets or sets the size of the image. + + The size. + + + + Specifies how the chart elements will be arranged. + + + + + The elements will be stacked. + + + + + The elements will be wrapped. + + + + + ChartDockingManager provides docking feature of chart elements (Legends, Titles, ToolBar...). + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The host. + + + + This method prevents manager from any processing and firing of events. + + + + + This method restores the original state of manager (before freezing). + + + + + Adds the specified control to the ChartDockingManager. + + The control. + + + + Removes the specified control from the Docking manager. + + The control. + + + + Returns the size of the specified rectangle. + + The bounds of host element. + + + + + Clears all dock controls. + + + + + Returns the controls. + + + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Called when mouse is down. + + The sender. + The instance containing the event data. + + + + Called when mouse is up. + + The sender. + The instance containing the event data. + + + + Called when mouse is move. + + The sender. + The instance containing the event data. + + + + Moves the in wrap dock. + + The dock element. + The pt. + + + + Moves the in dock. + + The dock element. + The cursor position. + + + + Docks the specified dock element by mouse point. + + The dock element. + The pt. + + + + Moves the specified element to the new index. + + The element. + To. + + + + Sets specified control to the center of specified rectangle. + + The control. + The rectangle. + + + + Gets the size of the measure. + + The ChartDock. + Size of the max. + + + + + Gets the alignment by rect. + + The The cursor position. + The inner bounds. + The orientation. + + + + + Handles the LocationChanging event of the Control control. + + The source of the event. + The instance containing the event data. + + + + Handles the ChartDockChanged event of the Control control. + + The source of the event. + The instance containing the event data. + + + + Handles the ChartAlignmentChanged event of the Control control. + + The source of the event. + The instance containing the event data. + + + + Raises the SizeChanged event. + + The instance containing the event data. + + + + Handles the LocationChanged event of the Control control. + + The source of the event. + The instance containing the event data. + + + + Handles the SizeChanged event of the Control control. + + The source of the event. + The instance containing the event data. + + + + An event that is raised when the size of the docking manager is changed. + + + + + Indicates space between chart elements. + + + + + If it's enable, user can set using mouse alignment for controls. + + + + + Determines if the docked element is placed inside or outside the host. + + The placement. + + + + Gets or sets the layout mode. + + The layout mode. + + + + Implements the wraping of elements. + + + + + Initializes a new instance of the class. + + if set to true [is vertical]. + The spacing. + + + + Measures elements by the specified size. + + The maximal size. + + + + + Arranges elements by the specified rect. + + The rect. + + + + Gets the elements. + + The elements. + + + + Gets or sets the dimension. + + The dimension. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Saves the chart as an image in the specified format. + + + + + + + + + + + + + + + + + + Event that will be raised when Chart has completed laying out of axes, legend + + + + + + + + + + Gets a value indicating whether it's design time. + + + true if it's design time; otherwise, false. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Gets or sets a value indicating whether is real 3D mode. + + true if is real 3D mode; otherwise, false. + + + + Gets or sets a value indicating whether [drop series points]. + + true if [drop series points]; otherwise, false. + + + + Gets or sets a value indicating whether [improve performance]. + + true if [improve performance]; otherwise, false. + + + + Gets or sets a value indicating whether legend is shown. + + true if legend is shown; otherwise, false. + + + + Gets or sets the interior of axis grid. + + The chart interior. + + + + Gets or sets the color with which the ChartArea is to be filled initially before any rendering takes place. + List of chart regions. + + + + Gets or sets the border appearance style of Chart. + + + + + Gets or sets the font. + + The font. + + + + Gets or sets the color of the fore. + + The color of the fore. + + + + Pre-defined palettes for use with the ChartControl. Palettes are simply a group of colors that + can be used to provide a better visual appearance when displaying multiple chart series. + + + + + Default palette. + + + + + Default palette with aplha. + + + + + Default palette used in older chart versions. + + + + + Default palette with alpha blending. + + + + + Palette containing earth tone colors. + + + + + Palette containing analog colors. + + + + + Colorful palette. + + + + + Palette containing the colors of nature. + + + + + Palette containing pastel colors. + + + + + Palette containing triad colors. + + + + + Palette that contains mixed warm and cold colors. + + + + + GrayScale color palette which can be used for monochrome printing. + + + + + Palette that contains mixed SkyBlue and Violet colors. + + + + + Palette that contains mixed Red and yellow colors. + + + + + Palette that contains mixed Green and yellow colors. + + + + + Palette that contains pink Green and violet colors. + + + + + Palette that contains Metro colors. + + + + + Palette that contains colors for office 2016 theme. + + + + + Custom user assigned color palette. + + + + + The ChartColorModel class serves as a repository for color information. Color information is used by the chart to render colored series. + A group of colors is referred to as a palette of colors. You have the option of choosing from several predefined palettes or creating your + own color palette. + + + + + + + + The number of colors in the ChartColorModel's palette. If the number of series exceeds the number of colors in the palette (16 in the + current version), colors will be repeated. + + + + + Initializes a new instance of class. + + + + + Initializes a new instance of the class. + + + + + Method to dispose Chart color model object + + + + + Returns the color (from the palette) corresponding to the specified index value. + + + + The index value of the color to be returned. + + + + A System.Drawing.Color value that is used as the back color for the series. + + + + + Creates the palette icon. + + The sz. + The palette. + The color count. + + + + + Initializes the SkyBlue palette. + + + + + Initializes the Red-Yellow palette. + + + + + Initializes the Green-Yellow palette. + + + + + Initializes the Pink-Violet palette. + + + + + Initializes the default palette. + + + + + Initializes the default alpha palette. + + + + + Initializes the default old alpha palette. + + + + + Initializes the default old palette. + + + + + Initializes the earth tone palette. + + + + + Initializes the analog palette. + + + + + Initializes the colorful palette. + + + + + Initializes the nature palette. + + + + + Initializes the pastel palette. + + + + + Initializes the triad palette. + + + + + Initializes the warm cold palette. + + + + + Initializes the gray scale palette. + + + + + Initializes the palettes. + + + + + Gets the palette. + + The palette. + + + + + Raises the Changed event. + + The sender. + The instance containing the event data. + + + + An event that is triggered when palette is changed. + + + + + Gets or sets the table of custom colors to be used. Series will be colored with color data from this color table. Individual series + color can still be overriden by specifying style attributes. Palette information is used only when no specific style information + is available on the color to be used for the series. + + + + The custom colors. + + + + Gets or sets the color palette to be used. Series will be colored with color data from this palette (color table). Individual series + color can still be overriden by specifying style attributes. Palette information is used only when no specific style information + is available on the color to be used for the series. + + + + + + + Gets or sets a value indicating whether [allow gradient]. + + True if [allow gradient]; otherwise, false. + + + + The default implementation of the IChartSeriesModel. + + + + + Interface that is to be implemented if you want ChartControl to be able to display your data. The default series store is a implementation of IChartSeriesModel. When you implement this interface, + you can set it as the data underlying any object using the + property. + + + + + Returns the X value of the series at the specified point index. + + The index value of the point. + X value. + + + + Returns the Y value of the series at the specified point index. + + The index value of the point. + Y value. + + + + Indicates whether a plottable value is present at the specified point index. + + + The index value of the point. + + + True, if there is a value present at this point index; false otherwise. + + + + + Returns the number of points in this series. + + + + + Event that should be raised by any implementation of this interface if data that it holds changes. This will cause the + chart to be updated accordingly. + + + + + Interface that is to be implemented if you want the ChartControl to be able to display your indexed data (X value is not needed). The ChartControl is totally agnostic + about the data it displays. Even the default series store is an implementation of . When you implement this interface, + you can set it as the data underlying any object using the . When you + use this model for a series, you have to set ChartControl's Indexed property to be True. + + + + + + Returns the Y value of the series at the specified point index. Indexed series do not have an X value. + + The index value of the point. + Y value. + + + + Indicates whether a plottable value is present at the specified point index. + + + The index value of the point. + + + True, if there is a value present at the specified point index; false otherwise. + + + + + Returns the number of points in this series. + + + + + Event that should be raised by any implementation of this interface if data that it holds changes. This will cause the + chart to be updated accordingly. + + + + + Method to update the data source of ChartSeries. Trigger OnSeriesModelChanged event after updating the data source + + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The data source. + + + + Initializes a new instance of the class. + + The data source that is to be used. + The data member that holds the label. + + + + Initializes a new instance of the class. + + The data source that is to be used. + The data member that holds the label. + The BindingContext. Set this to be the Form's (hosting the ChartControl) BindingContext. + + + + Update the existing data source with new one + + New data source + + + + Raise the Changed event. + + The ItemChanged event data + + + + Implements IChartSeriesModel.GetX + + + + + Implements IChartSeriesModel.GetY + + + + + Implements IChartSeriesModel.GetEmpty + + + + + Implements SetEmpty + + + + + Gets the appropriate value. + + The obj. + + + + + Gets the time span value. + + The ts. + + + + + Gets Property index + + Property descriptor collection + Property descriptor + Name of the property + + + + Gets the property value + + Property descriptor collection + Property descriptor + Property Name + Data source component + + + + Gets the point data. + + The index. + + + + + Resets this instance. + + + + + Called when list is changed. + + The sender. + The instance containing the event data. + + + + Gets property + + Property descriptor collection + Name of the property descriptor + + + + Updates the properites. + + + + + Binds this field to the X Axis + + The index of the X. + + + + Binds this field to the X Axis. + + + + + Binds this fields to the Y Axis + + The Y indexes. + + + + Binds this fields to the Y Axis + + The Y names. + + + + Gets or sets the X property. + + The X property. + + + + Gets or sets the X property. + + The X property. + + + + Specifies the unit that is to be used by the ChartDataBindModel for handling TimeSpan values. + + + + + Specifies the TotalDays that is to be used by the ChartDataBindModel for handling TimeSpan values. + + + + + Specifies the TotalHours that is to be used by the ChartDataBindModel for handling TimeSpan values. + + + + + Specifies the TotalMinutes that is to be used by the ChartDataBindModel for handling TimeSpan values. + + + + + Specifies the TotalSeconds that is to be used by the ChartDataBindModel for handling TimeSpan values. + + + + + Specifies the TotalMilliseconds that is to be used by the ChartDataBindModel for handling TimeSpan values. + + + + + This event is raised by the class when series class has changed. + + + + Event source. + + + + + Event arguments. + + + + + + This interface represents the minimum Y value, maximum Y value and the X value at any point in a series. + This interface is used to compute summary information such as overall series minimum and maximum values for + rendering the chart. In most cases, you have to simply loop through the Y values at an index and return the minimum + and maximum values for that point. + + + + + Gets the Y. + + The index. + Index of the y. + Returns the Y value. + + + + Gets the X. + + The X. + + + + Gets the min. + + The min. + + + + Gets the max. + + The max. + + + + Initializes a new instance of the class. + + The model. + Index of the x. + + + + Gets the Y. + + The index. + Index of the y. + Returns the Y value. + + + + Gets the maximum value. + + The maximum value. + + + + Gets the minimaum value. + + The minimaum value. + + + + Gets the X Value. + + The X Value. + + + + Calculates the minimum value. + + The values. + Returns the minimum value. + + + + Calculates the maximum value. + + The values. + Returns the maximum value. + + + + The ChartModel object acts as the central repository of data associated with and displayed by a ChartControl. + There are three parts to the ChartModel. The first part is the instance that is held in the model. + This collection holds all the instances that are registered with and displayed by the Chart. The Chart Model also + holds a instance. This collection maintains a collection of base styles that are registered with it. + These base styles can be accessed and changed using this collection. Any changes made to base styles will automatically affect all style + objects that depend on these base styles. Also, in the model is a instance that provides access to several default + color palettes for use by the ChartControl. + + + + + Initializes a new instance of the class. + + + + + Sets the chart. + + The chart host. + + + + Checks the series compatibility. + + The chart area. + If set to true inverted series is compatible. + Returns whether inverted series is compatible or not. + + + + Updates the Line series while button click and refresh the model. + + The area. + + + + Updates the axes of chart area. + + The area. + + + + Returns the associated with this model. + + Return ChartBaseStylesMap. + + + + Overloaded. Factory method for the creation of new series. + + Returns ChartSeries. + + + + Factory method for the creation of new series. + + Unique name for the new series that is to be created. + Returns ChartSeries + + + + Factory method for the creation of new series. + + Unique name for the new series that is to be created. + The type of the series that is to be created. + Returns ChartSeries. + + + + Method to dispose ChartModel objects. + + + + + Called when series is changed. + + The sender. + The instance containing the event data. + + + + This method is used when series are rendered stacked. The value returned is a cumulative value of + Y from all series that are below the series passed in in the contained . + + + The . + Instance of the ChartSeries. + The index value of the point. + If true the value form this series added too. + + A sum of Y values from all series are below the series. + + + + + Gets the side by side info. + + The chart area. + The series. + Returns the DoubleRange value. + + + + Gets the side by side info. + + The chart area. + The series. + The seriesWidth. + Returns the DoubleRange. + + + + Gets the minimal points delta. + + The chart area. + + The min points delta. + + + + Returns the value of side by side displacement. + + The current. + A sum of all sides. + Position of side of a series. + + + + Returns the associated with this model. + + The color model. + + + + Collection of objects. Each series represents an underlying . + + The series. + + + + Gets the indexed values. + + The indexed values. + + + + Gets the chart. + + The chart. + + + + Gets the first series. + + The first series. + + + + + + + + + Returns whether this converter can convert the object to the specified type, using the specified context. + + An that provides a format context. + A that represents the type you want to convert to. + + True if this converter can perform the conversion; otherwise, false. + + + + + Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context. + + An that provides a format context. + A that represents the type you want to convert from. + + True if this converter can perform the conversion; otherwise, false. + + + + + Converts the given object to the type of this converter, using the specified context and culture information. + + An that provides a format context. + The to use as the current culture. + The to convert. + + An that represents the converted value. + + The conversion cannot be performed. + + + + Converts the given value object to the specified type, using the specified context and culture information. + + An that provides a format context. + A . If null is passed, the current culture is assumed. + The to convert. + The to convert the value parameter to. + + An that represents the converted value. + + The conversion cannot be performed. + The destinationType parameter is null. + + + + Gets or sets the X value. + + The X. + + + + Gets or sets the Y value. + + The Y value. + + + + Gets or sets a value indicating whether this instance is empty. + + true if this instance is empty; otherwise, false. + + + + Gets or sets the Category value. + + The Category. + + + + Initializes a new instance of the class. + + The ds. + Index of the x. + + + + Determines whether data is editable. + + + true if data is editable; otherwise, false. + + + + + Gets the editable data. + + Returns IEditableChartSeriesModel. + + + + Gets or sets the X. + + The X. + + + + Gets or sets the Y. + + The Y. + + + + Gets or sets a value indicating whether this instance is empty. + + true if this instance is empty; otherwise, false. + + + + Gets or sets the Y dates. + + The Y dates. + + + + + + + + + + + + + + + + Gets the Y value. + + Index of the y value. + + + + + Gets or sets the X value. + + The X value. + + + + Gets or sets the Y value. + + The Y value. + + + + Gets or sets a value indicating whether this instance is empty. + + true if this instance is empty; otherwise, false. + + + + This class provides an easy interface to interact with the underlying data points contained in the associated + with the that contains this data. Even though you are interacting with a friendly object model, the ChartPoint + itself stores no data. It simply delegates to the underlying model that the ChartSeries is displaying. + + + + + Signifies the empty point. + + + + + Returns Y values associated with this point as DateTime values. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + + X value of this ChartPoint. + + + + + Y values pertaining to this ChartPoint. More than one Y value can be associated with a ChartPoint. + + + + + + Initializes a new instance of the class. + + + + X value of this ChartPoint. + + + + + Y values pertaining to this ChartPoint. More than one Y value can be associated with a ChartPoint. + + + + + Category value of this ChartPoint. + + + + + + Initializes a new instance of the class. Used when working with ChartPoints that have + only one Y value. + + + + X value of this ChartPoint. + + + + + Y value of this ChartPoint. + + + + + + Initializes a new instance of the class. Used when working with ChartPoints that have + DateTime Y values. + + + + X value of this ChartPoint. + + + + + DateTime Y values of this ChartPoint. + + + + + + Initializes a new instance of the class. Used when working with ChartPoints that have a single + associated DateTime Y value. + + + + X value of this ChartPoint. + + + + + DateTime Y value pertaining to this ChartPoint. + + + + + + Initializes a new instance of the class. Used when working with ChartPoints that have + a DateTime X value. + + + + DateTime X value of this ChartPoint. + + + + + Y values of this ChartPoint. + + + + + + Initializes a new instance of the class. Used when working with ChartPoints that have + a DateTime X value. + + + + DateTime X value of this ChartPoint. + + + + + Y value of this ChartPoint. + + + + + + Initializes a new instance of the class. + + The IChartSeriesModel argument. + Index of the x. + + + + Returns a that represents the current . + + + A that represents the current . + + + + + Returns true if point is visible; otherwise false + + + + + Returns true if the double array contains NaN value + + + + + + Gets or sets the X value associated with this point as a DateTime value. + + The date X. + + + + Gets or sets the X value associated with this point. + + The X. + + + + Gets or sets the Y values associated with this point. + + The Y values. + + + + Indicates whether this point should be plotted. + + true if this instance is empty; otherwise, false. + + + + Gets or sets the Category values associated with this point. + + The Category values. + + + + Contains chart point and index of point. + + + + + Initializes a new instance of the class. + + The point. + The index of point. + + + + Specifies the ChartPoint. + + + + + Specifies the index of the ChartPoint. + + + + + Provides the method to compare the by the X value. + + + + + Initializes a new instance of the class. + + + + + 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. + + Neither x nor y implements the interface.-or- x and y are of different types and neither one can handle comparisons with the other. + + + + Provides the method to compare the by the first Y value. + + + + + Initializes a new instance of the class. + + + + + 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. + + Neither x nor y implements the interface.-or- x and y are of different types and neither one can handle comparisons with the other. + + + + Provides the GUI editor of instance. + + + + + Initializes a new instance of the class. + + + + + Gets an array of objects containing the specified collection. + + The collection to edit. + + An array containing the collection objects, or an empty object array if the specified collection does not inherit from . + + + + + Sets the specified array as the items of the collection. + + The collection to edit. + An array of objects to set as the collection items. + + The newly created collection object or, otherwise, the collection indicated by the editValue parameter. + + + + + Gets the data types that this collection editor can contain. + + + An array of data types that this collection can contain. + + + + + Serializes the . + + + + + Serializes the specified object into a CodeDOM object. + + The serialization manager to use during serialization. + The object to serialize. + + A CodeDOM object representing the object that has been serialized. + + manager or value is null. + + + + Deserializes the specified serialized CodeDOM object into an object. + + A serialization manager interface that is used during the deserialization process. + A serialized CodeDOM object to deserialize. + The deserialized CodeDOM object. + manager or codeObject is null. + codeObject is an unsupported code element. + + + + Represents the wrapper for that implements the . + + + + + + Initializes a new instance of the class. + + The series. + + + + + Initializes a new instance of the class. + + The model. + + + + Adds a point to the series + + X value of point + Y values of point + if set to true points is empty. + + + + + Adds a point to the series + + X value of point + Y values of point + + + + Adds a point to the series + + X value of point + Y value of point + + + + Adds a point to the series + + X value of point + Y value of point + + + + Adds a point to the series + + X value of point + Y values of point + + + + Adds a point to the series + + X value of point + Y dates of point + + + + Adds a point to the series + + X value of point + Y date of point + + + + Adds a point to the series + + Instance of ChartPoint + + + + Adds a point to the series + + X date of point + Y values of point + + + + Adds a point to the series + + X date of point + Y value of point + + + + Removes all points from the series. + + + + + Inserts a point to the series at the specified index. + + Index of a point + Instance of ChartPoint + + + + Removes the specified . + + The cp. + + + + Removes a point from the series at the specified index. + + Index of a point + + + + Removes the item at the specified index. + + The zero-based index of the item to remove. + index is not a valid index in the . + The is read-only.-or- The has a fixed size. + + + + Returns index of a point. + + Instance of ChartPoint + The specified index of point. + + + + Returns an enumerator that iterates through a collection. + + An IEnumerator object that can be used to iterate through the collection. + + + + Adds an item to the . + + The to add to the . + + The position into which the new element was inserted. + + The is read-only.-or- The has a fixed size. + + + + Determines whether the contains a specific value. + + The to locate in the . + + true if the is found in the ; otherwise, false. + + + + + Determines the index of a specific item in the . + + The to locate in the . + + The index of value if found in the list; otherwise, -1. + + + + + Inserts an item to the at the specified index. + + + The to insert into the . + index is not a valid index in the . + The is read-only.-or- The has a fixed size. + value is null reference in the . + + + + Removes the first occurrence of a specific object from the . + + The to remove from the . + The is read-only.-or- The has a fixed size. + + + + Copies the elements of the to an , starting at a particular index. + + The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. + The zero-based index in array at which copying begins. + array is null. + The type of the source cannot be cast automatically to the type of the destination array. + index is less than zero. + array is multidimensional.-or- index is equal to or greater than the length of array.-or- The number of elements in the source is greater than the available space from index to the end of the destination array. + + + + Gets or sets the series model. + + The series model. + + + + Gets or sets the series category model. + + The series category model. + + + + Gets the with the specified x index. + + + + + + + Gets count of points in the series. + + + + + 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. + + + + Gets or sets the at the specified index. + + + + + + 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 . + + + + Represents the enumerator for . + + + + + + Initializes a new instance of the ChartPointEnumerator class. + + Instance of IChartSeriesModel. + + + + Advances the enumerator to the next element of the collection. + + + + + + Sets the enumerator to its initial position, which is before the first element in the collection. + + + + + Gets the current element in the collection. + + + + + Delegate used by the and events. + + + + Sender. + + + + + Argument. + + + + + + This class is used as the argument by the and events. + These events are raised when chart style information is about to be used for rendering. They provide a just-in-time hook for changing any + attributes of the style object() before it is used by the chart. + + + + + + + + If the event raised has been completely handled by user code and no further processing is required, this flag should be set to + True. + + + + + Returns the position of the contained style in the series. + + + + + Returns the style object that is to be used by the chart. + + + + + ChartSeries acts as a wrapper around data that is to be displayed and styles that are associated with the data. + The data that is to be displayed is contained in either or + implementation. The style to be used to display the points is stored in a contained implementation of . + + + + + This interface is implemented by classes that host series specific style information. + + + + + A acts as a repository that is used to hold information on registered base styles. + This information forms the core that is needed to apply base style information to styles. + + + + + Gets the back color hint from the host. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Gets or sets a value indicating whether reset all the styles while modifying the ChartPoint properties. + + + + + Should the serialize points. + + + + + + + + + + + + Resets the ChartSeries model. + + + + + Initializes a new instance of the ChartSeries class. + + + + + Initializes a new instance of the ChartSeries class. + + An name of series. This value will be set to property too. + An type of series. + + + + Method to dispose ChartSeries object + + + + + Method to dispose ChartSeries object + + + + + Initializes a new instance of the ChartSeries class. + + An name of series. This value will be set to property too. + + + + Updates the ChartSeries Model. + + + + + Updates the ChartSeries CategoryModel. + + + + + + + + + + + Refer + + + + + + + + + Returns a that represents the current . + + + A that represents the current . + + + + + Method to add or modify axis in a series without triggering axes changed event. + Use this method for changing the horizontal or vertical axis of a series between begin and end update methods + Axis to be modified + A boolean value representing the orientation of axis. True represents horizontal and false represents vertical axis + + + + + Internal method to nullify ChartModel and unbind the events associated with it + Used in clearing the series collection + + + + + Factory method that gets called to create an instance of an implementation of IChartSeriesSummary + + + A Syncfusion.Windows.Forms.Chart.IChartSeriesSummary value. + + + + + + + + + + + + + + + + + + + + + + + + + Factory method that gets called to create an instance of an implementation of . The default instance + created is of type . + + + + An instance that implements IChartSeriesModel. + + + + + + Factory method that gets called to create an instance of an implementation of . The default instance + created is of type . + + + + An instance that implements ChartSeriesCategory. + + + + + + Factory method that gets called to create an instance of an implementation of . The default instance + created is of type . + + + An instance that implements IChartSeriesStylesModel. + + + + + + After composing the style of each series, the chart's style system will call this method before the style is used for display. + Override this method if you wish to change the contents of the series ChartStyleInfo object that is passed in. For instance, if + you wish to change the back color of the series being rendered based on external criteria, you could check this criteria when this + method gets called and change the color of the series based on such. Note that any changes made to the style object in this method + are not permanent but are temporary and lasts only for the current rendering cycle. This makes this method + a convenient place to set transient data based attributes. + + + + ChartStyleInfo object that can be changed. + + + + + The index value of this series in the chart's . + + + + + + + After composing the style of each point in a series, the chart's style system will call this method before the style is used for display. + Override this method if you wish to change the contents of the ChartStyleInfo object that is passed in. For instance, if + you wish to change the back color of the series point being rendered based on external criteria, you could check this criteria when this + method gets called and change the color of the point based on such. Note that any changes made to the style object in this method + are not permanent but are temporary and lasts only for the current rendering cycle. This makes this method + a convenient place to set transient data based attributes. + + + + ChartStyleInfo object that can be changed. + + + + + The index value of the point (in the current series) associated with the style information passed in. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Called when color model is changed. + + The sender. + The instance containing the event data. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Called when series model is changed. + + The sender. + The instance containing the event data. + + + + Resets the settings of the legend item. + + + + + Updates the renderer. + + The flags. + + + + Invalidates the styles. + + + + + Triggers when appearance of ChartSeries is changed. + + + + + + + + When a series point is about to be rendered by the chart, it will raise this event and allow event subscribers to change the + Series style used. You can handle this event to easily change style attributes based on external rules (for example). + + + + + When a series point is about to be rendered by the chart, it will raise this event and allow event subscribers to change the + style used. You can handle this event to easily change style attributes based on external rules (for example). + + + + + + + + Collection of Data points. These data points only serve as a thin wrapper around the actual data contained in the + or . You can add, remove and edit points + in this collection. + + + + + Gets the formats. + + The formats. + + + + Gets or sets the name of this series object. You can retrieve a series by its name from the object in the + where it is stored. + + + The can't contains several series with the same name. + + + + + Gets or sets the object that contains data about the series. + + + + + Gets /sets the text that is to be associated with this series. This is the text that will be displayed by default by the legend item associated with + this series. + + + + + Gets or sets the Chart's model. + + + + + + The interface is a special interface that serves as a degraded special case of . + The special case being situations where the X value is not needed. When you implement and set it to this property, + the chart will internally create an adapter that implements and treat it as any other model. + + + + + Returns an instance of the underlying this series. + + + + + Returns an instance of the underlying this series. + + + + + Returns an instance of the underlying this series. + + + + + Returns an instance of the underlying this series. + + + + + Provides access to summary information such as minimum / maximum values contained in this series at any given + moment. + + + + + Gets or sets the X Axis instance against which this series will be plotted. + + + + + Returns actual X axis, that values of series.Points[i].X are plotted on it. + + + + + Returns actual Y axis, that values of series.Points[i].Yvalues are plotted on it. + + + + + Returns the X value type that is being rendered. Please refer to for details on supported value types. + + + + + Gets or sets the Y Axis instance against which this series will be plotted. + + + + + Returns the Y value type that is being rendered. Please refer to for details on supported value types. + + + + + Based on the resolution the number of points drawn will be reduced for improving the performance. + + + + + If set to False, the rendering is faster with the following remarks: + The points style is disabled, all points use series style. + + + + + Returns the style object associated with the series. Attributes that are applied to this style will change the appearance of the complete + series. + + + + + Returns the styles that represent rendering information for the individual points in the series. Each of these style objects can be manipulated to + affect the formatting and display of individual points. Styles set to individual points take precedence over the style of the Series (. + + + + + Gets or sets the object that implements . This object stores styles in an optimized manner and + provides them on demand. You can replace this object with your own implementation of this interface to meet specific performance + needs. In most cases, you should just use the default styles model that is provided. + + + + + Gets the base type of the ChartSeries. The BaseType is used by the rendering code to check which of the pre-defined display patterns this series fits. + + + + + + Gets the base type of the ChartSeries. The BaseType is used by the rendering code to check which of the pre-defined display patterns this series fits. + + + + + + Returns the Chart series configuration items. + + + + + Gets or sets the . + + The renderer. + + + + + Indicates whether the currently set series type requires axes to be rendered. Currently set to False only for Pie charts. + + + + + Indicates whether the currently set series type requires axes to be inverted. + + + + + Gets a value indicating whether a series is dependent by . + + true if a series is dependent by origin; otherwise, false. + + + + + Gets or sets the chart type that is to be rendered using this series. Please refer to for a complete list and + explanation of chart types. + + + + + Gets or sets a grouping name which is used to group the StackingSeries together. + + + + + Gets or sets the ZOrder of the series. You can use this setting to control which series gets plotted first. The chart will sort + by ZOrder before rendering. + + + + + Gets or sets the format for tooltip + "{0}" - series name + "{1}" - series style tooltip + + + + + Gets or sets the format for tooltip + "{0}" - series name + "{1}" - series style tooltip + "{2}" - tooltip of point + "{3}" - X value of point + "{4}" and other - Y value of point + + + + + Indicates whether the series is to be plotted. + + + + + Refer + + + + + Indicates whether the series is compatible with other series added to the series collection. + + + + + Returns the Fancy tooltip + + + + + Returns the trendline + + + + + Gets or sets the type of sorting used. + + + + + Gets a value indicating whether sorting the axis value type direction by . + + + + + + Gets or sets a value indicating whether points will be sorted. + + true if points will be sorted; otherwise, false. + + + + Returns the private instance of LegendItem class. + + + + + Gets or sets value indicates the legend for representation of series. + + + + + Indicates whether the legend item should use the series style. + + + + + Gets or sets the index of the point that is to be exploded from the main display. In the current implementation, this property is used + only by the pie chart. + + + + + Explode all points . In the current implementation, this property is used + only by the pie chart. + + + + + Enable scatter shape. In the current implementation, this property is used + only by the scatter series. + + + + + Gets or sets the offset value that is to be used when a point is to be exploded from the main display. Currently applies + only to the Pie chart. Offset is taken in percentage terms. + + + + + Gets or sets the reversal amount (Useful for Kagi chart,PointAndFigure chart and Renko chart) + + + + + Indicates if the Reversal amount is taken in percentage + + + + + Gets or sets height of the boxes in the financial chart types. + + + + + Indicates if the pie points are optimized for position + + + + + Gets or sets a value indicating whether reset all the styles while modifying the ChartPoint properties. + + + + + Indicates whether the ChartArea is to be rotated and rendered. Default value is false. + + + + + The drawing of separating line between columns is controlled by this property. + + + + + Indicates if the Ticks should be shown (only for Pie charts) + + + + + Specifies connect type of scatter chart + + + + + Gets or sets the tension required for the scatter spline chart. + + + + + Indicates whether to draw series name at opposed position to origin, along x axis. + + + + + Indicates rotation angle around x axis of series name string. + + + + + Specifies the behavior of the labels. + + + + + Gets or sets the BorderWidth of the Smartlabels. + + + + + Gets or sets the BorderColor of the Smartlabels. + + + + + Get or set to enable or disable the ToolTip for Full Area of ChartInterior. This is only for AreaCharts. + + + + + Error Bars are used to indicate a degree of uncertainity in the plotted data through a bar indicating an "error range". + The 2nd Y value of a is used to indicate the error range. This is supported with Line, Bar and Column charts. + Also see + + + + + Specifies the symbol that should be used in error bars. Also see + + + + + Gets or sets the number of Histogram intervals + + + + + Indicates if the histogram data points should be shown + + + + + Gets or sets an instance of the underlying this series. Use this property to replace this instance with your own + implementation. Use to access the model if you do not intend to replace it. + + + + + Indicates if the Histogram normal distribution should be drawn + + + + + Specifies the drawing mode of Gantt chart + + + + + Indicates rotation angle around x axis of series name string. + + + + + Sets / Gets the doughnut coefficient of pie chart + + + + + Gets or sets the price down color + + + + + Gets or sets the price up color + + + + + Delegate that is to be used with the event. + + + + Sender. + + + + + Argument. + + + + + + + + + The type of change that had occurred to the Chart series collection. + + + + + Series has been added to the collection. + + + + + Series has been inserted into the collection. + + + + + Series has been removed from the collection. + + + + + Series in the collection has been changed. + + + + + The collection has been reset. + + + + + Argument that is to be used with the event. + + + + + Constructor. + + + + The type of change that had occurred in the collection. + + + + + + Constructor. + + The type of change that had occurred in the collection. + The series. + + + + Creates the Added event arguments. + + The series. + + + + + + Creates the Changed event arguments. + + The series. + + + + + + Creates the Removed event arguments. + + The series. + + + + + + Creates the Reset event arguments. + + The new ChartSeriesCollectionChangedEventArgs instance + + + + + Returns the type of change that had occurred in the collection. + + + + + Gets the series. + + The series. + + + + Exposes a method that compares two by Y values. + + + + + + Initializes a new instance of the class. + + + + + Compares the two . + + The first to compare. + The second to compare. + + + + + Exposes a method that compares two by . + + + + + Compares two objects. + + The first to compare. + The second to compare. + + + + + derived class that holds instances of . + + + + + Initializes a new instance of the class. + + + + Chart model associated with this collection. + + + + + + Call this method if you perform multiple changes in quick succession. + + + + + + + Call this method if you called earlier and you are done with your changes. + + + + + + + Adds the specified into this collection. + + + + An instance of the Chartseries that is to be added to this collection. + + + + + + Call this method to retrieve the index value of the specified . + + + + An instance of the that is to be located. + + + + The index value of specified . + + + + + Determines whether the collection contains a specific value. + + The series. + + + + + Inserts the specified to this collection at the specified index. + + + + Index value where the insert is to be made. + + + + + An instance of the that is to be inserted into this collection. + + + + + + Removes the specified from this collection. + + + + that is to be removed from this collection. + + + + + + Call this method to remove any temporarily cached style instances. You do not normally have to call this method. + + + + + Call this method to remove any temporarily cached style instances. You do not normally have to call this method. + + + + + Sorts by the specified comparer. + + The . Only is supported. + + + + + Performs additional custom processes when clearing the contents of the instance. + + + + + + + Performs additional custom processes after clearing the contents of the instance. + + + + + + + Performs additional custom processes before inserting a new element into the instance. + + The zero-based index at which to insert value. + The new value of the element at index. + + + + + Performs additional custom processes after inserting a new element into the instance. + + The zero-based index at which to insert value. + The new value of the element at index. + + + + + + Performs additional custom processes after removing an element from the instance. + + The zero-based index at which value can be found. + The value of the element to remove from index. + + + + + + Called when [set complete]. + + The index. + The new value. + The old value. + + + + + + Performs additional custom processes when validating a value. + + The object to validate. + + + + + + Returns the clip rectangle for Chart Series + + Chart series + Chart area bounds + + + + Draws series on input object + + Graphics for drawing on. + interface reference + + + + + + + + + + + + + + + + + + + + + + + + + Cals methods, assigned on collectionChangedEventHandler delegate. + + Event arguments. + + + + + + + + + + + + + Internal method to unbind events and remove ChartModel object in series when clearing the series collection + + + + + + + + + + + + + + + + + + + + + + + + + + Returns the maximum number of points in the series collection + + + + + + Returns the index of the visible series + + + + + + + Returns the visible series with the specified index + + + + + + + Returns the index of the series if visible otherwise returns -1 + + + + + + + Recalculates list of visible series, when some of the series are changed. + + + + + Event that will be raised when this collection is changed. + + + + + Indicates whether the series in this collection should be sorted. + + + + + Indicates whether the Series's EnableStyles Enable or Not. + + + + + Indicates whether this is sorted. + + + + + Overloaded. Returns the object stored at the specified index. + + + + + Returns the object stored with the specified name. + + + + + Returns the number of visible series in the collection. + + + + + Returns sorted/unsorted collection objects. + + + + + Gets a value indicating whether should update collecation. + + true if should update; otherwise, false. + + + + Provides data of . + + + + + Initializes a new instance of the class. + + The type. + + + + Helper method that creates ChartDataChangedEventArgs from ListChangedEventArgs. + + + + ListChangedEventArgs object; information that will be used to create the ChartDataChangedEventArgs object. + + + + + Not used in the current version. + + + + A Syncfusion.Windows.Forms.Chart.ChartDataChangedEventArgs value. + + + + + Returns a that represents the current . + + + A that represents the current . + + + + + + Creates the reset event args. + + + + + + Creates the insert event args. + + + + + + Creates the removed event args. + + + + + + Creates the changed event args. + + + + + + Returns the type of event that occurred. + + + + + + Specifies the type of event that occurred. + + + + + Specifies that the datasource was reset. All data is expected to have changed. + + + + + Specifies that data has been inserted. + + + + + Specifies that data has been removed. + + + + + Specifies that data has been changed. + + + + + Provides the wrapper for that implements the . + + + + + + Initializes a new instance of the class. + + The model. + + + + + Returns the X value of the series at the specified point index. + + The index value of the point. + X value. + + + + + Returns the Y value of the series at the specified point index. + + The index value of the point. + Y value. + + + + + Indicates whether a plottable value is present at the specified point index. + + The index value of the point. + + True, if there is a value present at this point index; false otherwise. + + + + + + Event that should be raised by any implementation of this interface if data that it holds changes. This will cause the + chart to be updated accordingly. + + + + + + Gets the . + + The . + + + + + Returns the number of points in this series. + + + + + + + This is the core data container implementation for a chart. This is a very simple model that stores data in the list inherited + from the CollectionBase. It relies on the events raised by the CollectionBase base class to inform users of the changes that had occurred to the series. + + + + + Interface to be implemented if you want ChartPoint to be able to change your data through code. Additionally, in a future version this interface will + allow the chart to edit data. If you wish to just display data as a series in the chart, please refer to the simpler + interface. + + + + + Adds data to the end of the data representation. + + X value. + Y value. + + + + Adds data to the end of the data representation. + + X value. + Y value. + Category value. + + + + Adds data to the end of the data representation. + + X value. + Y value. + if set to true the point is empty. + + + + Adds data to the end of the data representation. + + X value. + Y value. + if set to true the point is empty. + Category value. + + + + Inserts a value in the data at the specified index. + + Index value where the insertion is to be made. + The X value. + The associated Y values. + + + + Inserts a value in the data at the specified index. + + Index value where the insertion is to be made. + The X value. + The associated Y values. + The associated Category values. + + + + Changes the X value of the data point at the specified index. + + Index value where the data is to be changed. + New X value. + + + + Changes the Y value of the data point at the specified index. + + Index value where data is to be changed. + New Y values. + + + + Sets the empty state indicating if the value at the specified point index is to be plotted. If this + value is set to True, then it is treated as not present and is not plotted. + + + Index value where the empty state indicator is to be stored. + + + Empty state indicator. + + + + + Removes the data point at the specified index. + + Index value where data is to be removed. + + + + Clears all data points in this datasource. + + + + + Returns the Y values of the series at the specified point index. + + The index value of the point. + Y values at specified index. + + + + Returns the Category value of the series at the specified point index. + + The index value of the point. + Category value. + + + + Event that should be raised by any implementation of this interface if data that it holds changes. This will cause the + chart to be updated accordingly. + + + + + Changes the Category value of the data point at the specified index. + + Index value where the data is to be changed. + New Category value. + + + + Adds data to the end of the data representation. + + Category value. + + + + Initializes a new instance of the class. + + + + + Please refer to . + + + + + Please refer to . + + + + + Please refer to . + + + + + Please refer to . + + + + + Adds data to the end of the data representation. + + + + + Adds data to the end of the data representation. + + + + + Adds data to the end of the data representation. + + The x. + The y values. + if set to true is empty. + + + + Adds data to the end of the data representation. + + The x. + The y values. + if set to true is empty. + The category values. + + + + Please refer to . + + + + + Please refer to . + + + + + Please refer to . + + + + + Please refer to . + + + + + Please refer to . + + + + + Please refer to . + + + + + Please refer to . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Raises the Changed event. + + The instance containing the event data. + + + + Adds data to the end of the data representation. + + + + + Please refer to . + + + + + Represents the data item of . + + + + + + + + + + + + + + + + + + + + + + + + + + + Gets or sets the X value. + + The X. + + + + + Gets or sets the Y values. + + The Y. + + + + + Gets or sets a value indicating whether this instance is empty. + + true if this instance is empty; otherwise, false. + + + + + Gets or sets the Category values. + + The Category. + + + + + This class is the wrapper for . + Implements the and interfaces. + + + + + Initializes a new instance of the class. + + The series. + + + + Please refer to . + + + + + Please refer to . + + + + + Please refer to . + + + + + Gets the category model of ChartSeriesModel. + + + + + Adds data to the end of the data representation. + + The x. + The y values. + + + + Adds data to the end of the data representation. + + X value. + The y values. + if set to true point is empty. + + + + Please refer to . + + Index value where the insertion is to be made. + The X value. + The associated Y values. + + + + Please refer to . + + Index value where the data is to be changed. + New X value. + + + + Please refer to . + + Index value where data is to be changed. + New Y values. + + + + Sets the CategoryData to ChartSeries. + + Index value where data is to be changed. + New Y values. + + + + Please refer to . + + Index value where the empty state indicator is to be stored. + Empty state indicator. + + + + Please refer to . + + Index value where data is to be removed. + + + + Please refer to . + + + + + Please refer to . + + + + + Please refer to . + + + + + Contains predefined random values. + + + + + Gets the points. + + The type. + The index. + + + + + Gets the series count. + + The type. + + + + + Converts the 1D array to 2D. + + The array. + + + + + Converts the xto points. + + The xvalues. + + + + + Implements the interfaces. + If values is empty, it's return "dummy" values. + + + + + Initializes a new instance of the class. + + The series. + + + + Returns the X value of the series at the specified point index. + + The index value of the point. + X value. + + + + Returns the Y value of the series at the specified point index. + + The index value of the point. + Y value. + + + + Indicates whether a plottable value is present at the specified point index. + + The index value of the point. + + True, if there is a value present at this point index; false otherwise. + + + + + Returns the number of points in this series. + + + + + + + + + + + Occurs when Model is changed. + + + + + + + + + + Contains summary information for implementing a class. In the current version, this + interface is implemented by the class. + + + + + Refreshes summary information. + + + + + Gets the Y percentage. + + Index of the point. + + Percentages computes for positive values only. + + + + Gets the Y percentage. + + Index of the point. + Index of the y. + + Percentages computes for positive values only. + + + + Finds point by specified value. + + The value. + Found point or null. + + + + Finds point by specified value. + + The value. + The use value. + Found point or null. + + + + Finds point by specified value. + + The value. + Which point value to use (X, Y1, Y2,...). + Index to start looking from. Returns index of found point or -1. + Found point or null. + + + + Finds point by specified value. + + The value. + Which point value to use (X, Y1, Y2,...). + Index to start looking from. Returns index of found point or -1. + The Index where the search is end. + Found point or null. + + + + Finds point with minimal value. + + Found point or null. + + + + Finds point with minimal value. + + The use value. + Found point or null. + + + + Finds point with minimal value. + + Which point value to use (X, Y1, Y2,...). + Index to start looking from. Returns index of found point or -1. + Found point or null. + + + + Finds point with minimal value. + + Which point value to use (X, Y1, Y2,...). + Index to start looking from. Returns index of found point or -1. + The Index where the search is end.. + Found point or null. + + + + Finds point with maximal value. + + Found point or null. + + + + Finds point with maximal value. + + The use value. + Found point or null. + + + + Finds point with maximal value. + + Which point value to use (X, Y1, Y2,...). + Index to start looking from. Returns index of found point or -1. + Found point or null. + + + + Finds point with maximal value. + + Which point value to use (X, Y1, Y2,...). + Index to start looking from. Returns index of found point or -1. + The Index where the search is end. + Found point or null. + + + + Returns the maximum X value. + + + + + + Returns the maximum Y value. + + + + + + Returns the minimum X value. + + + + + + Returns the minimum Y value. + + + + + + + + + + + + + + Gets the Y percentage. + + Index of the point. + + Percentages computes for positive values only. + + + + Gets the Y percentage. + + Index of the point. + Index of the y. + + Percentages computes for positive values only. + + + + Finds point by specified value. + + The value. + Found point or null. + + + + Finds point by specified value. + + The value. + The use value. + Found point or null. + + + + Finds point by specified value. + + The value. + Which point value to use (X, Y1, Y2,...). + Index to start looking from. Returns index of found point or -1. + Found point or null. + + + + Finds point by specified value. + + The value. + Which point value to use (X, Y1, Y2,...). + Index to start looking from. Returns index of found point or -1. + The end index. + Found point or null. + + + + Finds point with minimal value. + + Found point or null. + + + + Finds point with minimal value. + + The use value. + Found point or null. + + + + Finds point with minimal value. + + Which point value to use (X, Y1, Y2,...). + Index to start looking from. Returns index of found point or -1. + Found point or null. + + + + Finds point with minimal value. + + Which point value to use (X, Y1, Y2,...). + Index to start looking from. Returns index of found point or -1. + The index where the search is end. + Found point or null. + + + + Finds point with maximal value. + + Found point or null. + + + + Finds point with maximal value. + + The use value. + Found point or null. + + + + Finds point with maximal value. + + Which point value to use (X, Y1, Y2,...). + Index to start looking from. Returns index of found point or -1. + Found point or null. + + + + Finds point with maximal value. + + Which point value to use (X, Y1, Y2,...). + Index to start looking from. Returns index of found point or -1. + The end Index. + Found point or null. + + + + Refreshes summary information. + + + + + Returns a that represents the current . + + + A that represents the current . + + + + + Finds the X value. + + The value. + The searching start at this index value + The searching end at this index value + + + + Finds the X value. + + The value. + The yIndex + The searching start at this index value + The searching end at this index value + + + + Finds the X value. + + The searching start at this index value + The searching end at this index value + + + + Finds the X value. + + The searching start at this index value + The searching end at this index value + + + + Finds the X value. + + The yIndex value. + The searching start at this index value + The searching end at this index value + + + + Finds the X value. + + The yIndex value. + The searching start at this index value + The searching end at this index value + + + + Called when model is changed. + + The sender. + The instance containing the event data. + + + + Ensures the refreshed. + + + + + Processes the useValue string. + + The request. + The index. + + + + + Returns the maximum X value. + + + + + + Returns the maximum Y value. + + + + + + Returns the minimum X value. + + + + + + Returns the minimum Y value. + + + + + + + + + + + + + + + + + + + + + + + + + + + Represents the node of BSP tree. + + + + + Gets or sets the back node. + + The back node. + + + + Gets or sets the front node. + + The front node. + + + + Gets or sets the plane. + + The plane. + + + + Specifies the point location by the plane. + + + + + Point is in the front of plane. + + + + + Point is at the back of plane. + + + + + Point is on the plane. + + + + + Specifies the polygon location by the plane. + + + + + Polygon is on the plane. + + + + + Polygon is from right of the plane. + + + + + Polygon is from left of the plane. + + + + + Location of polygon is unknown. + + + + + This class contains methods to compute the Binary Space Partitioning (BSP) tree. + + + + + Adds the specified poly. + + The poly. + + + + + Builds this instance. + + + + + + Builds the specified collection of polygons. + + The collection of polygons. + + + + + Gets the node count. + + The el. + + + + + Gets the node count. + + + + + + + + The Polygon. + The Polygon. + + + + + Classifies the point. + + The pt. + The PLN. + + + + + + + + + + + + + + + Cuts the out back polygon. + + The poly points. + The vwiwc. + The points. + + + + Cuts the out front polygon. + + The poly points. + The vwiwc. + The points. + + + + + + + + + + + + Gets the at the specified index. + + + + + + Gets the count of polygons. + + The count. + + + + + + + Initializes a new instance of the class. + + The Vector3D point. + The index. + The ClassifyPointResult. + + + + + Initializes a new instance of the class. + + The Vector3DWithIndexWithClassification argument. + + + + + Gets or sets the vector. + + The vector. + + + + Gets or sets the index. + + The index. + + + + Gets or sets the classify result. + + The classify result. + + + + Gets or sets a value indicating whether [cutting back point]. + + true if [cutting back point]; otherwise, false. + + + + + Gets or sets a value indicating whether [cutting front point]. + + true if [cutting front point]; otherwise, false. + + + + + Gets or sets the index of the cutting back pair. + + The index of the cutting back pair. + + + + + Gets or sets the index of the cutting front pair. + + The index of the cutting front pair. + + + + + Gets or sets a value indicating whether [already cutted back]. + + true if [already cutted back]; otherwise, false. + + + + + Gets or sets a value indicating whether [already cutted front]. + + true if [already cutted front]; otherwise, false. + + + + + Compares the points by distance to the eye. + + + + + Initializes a new instance of the class. + + The direction. + The point. + + + + 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. + + Neither x nor y implements the interface.-or- x and y are of different types and neither one can handle comparisons with the other. + + + + Returns a data bind model without any data source. Data source can be explicitly provided using DataSource property. + + + + + Returns a data bind model with data source. + + + + + + Returns a data bind model with data source and data member. + + Data source to bind with Chart + Data member to identify data table, if data set is used as data source + + + + Returns a data bind model with data source and data member, context. + + Data source to bind with Chart + Data member to identify data table, if data set is used as data source + Binding context to bind data + + + + Gets the X value of a data point at specified index. + + Index of the data point + Retruns X value of data point at specified index. + + + + Gets the categorical value of a data point at specified index. + + Index of the data point + Retruns the categorical value at specified index. + + + + Gets the Y value of a data point at specified index. + + Index of the data point + Retruns the Y value array at specified index. + + + + Checks whether data point at an index is empty or not. + + Index of the data point + Retruns true if data point at specified index is an empty point. + + + + Method to update the data source of ChartDataBindModel. + + + + + + Gets or sets the field name for binding categorical (X) values with Chart. + + + + + Datasource to bind with chart. + + + + + Data member for data source. If data set is used as data source, data table name should be provided as value to this field. + + + + + Gets or sets the field names for Y values of Chart. + This is an array property because HiLo, HiLoOpenClose, Candle, etc.., type requires more than one Y value. + + + + + Gets the count of data in data source. + + + + + Event that should be raised by any implementation of this interface if data that it holds changes. This will cause the chart to be updated accordingly. + + + + + The ChartGraph class provides methods for drawing primitives to the chart. + + + + + Pushes the transform to the stack. + + + + + + Pushes the transform to the stack. + + + + + + Translates the specified offset. + + The offset. + + + + Multiplies the transform. + + The matrix. + + + + Pops the transform from the stack. + + + + + Draws the line. + + The . + The start point. + The end point. + + + + Draws the rectangle. + + The . + The . + The x. + The y. + The width. + The height. + + + + Draws the rectangle. + + The . + The . + The rectangle. + + + + Draws the rectangle. + + The . + The . + The rectangle. + + + + Draws the rectangle. + + The . + The rectangle. + + + + Draws the ellipse. + + The . + The . + The x. + The y. + The width. + The height. + + + + Draws the specified . + + The . + The . + The . + + + + Draws the specified . + + The . + The . + + + + Draws the image. + + The image. + The bounds of image. + + + + Draws the rectangle. + + The . + The . + The x. + The y. + The width. + The height. + + + + Draws the ellipse. + + The . + The . + The x. + The y. + The width. + The height. + + + + Draws the path. + + The . + The . + The . + + + + Draws the line. + + The . + The x1. + The y1. + The x2. + The y2. + + + + Draws the image. + + The . + The x. + The y. + The width. + The height. + + + + Draws the polyline. + + The . + The points. + + + + Draws the polygon. + + The . + The points. + + + + Fill the polygon. + + The . + The points. + + + + Draws the string. + + The text. + The font. + The brush. + The rect. + + + + Draws the string. + + The text. + The font. + The brush. + The location. + The stringformat. + + + + Draws the string. + + The text. + The font. + The brush. + The rectangle. + The stringformat. + + + + Measures the specified string. + + The text. + The font. + Returns the size of the Text. + + + + Measures the specified string. + + The text. + The font. + Maximal width of row. + Returns the size of the Text. + + + + Measures the specified string. + + The text. + The font. + Width of the max. + The string format. + + + + + Measures the specified string. + + The text. + The font. + The layout area. + The string format. + + + + + Gets the brush. + + The brush info. + The bounds. + Returns the Brush. + + + + Gets the brush item. + + The brush info. + The bounds. + + + + + Gets the generic color blend. + + The colors. + Returns the ColorBlend. + + + + Gets or sets the transform. + + The transform. + + + + Gets or sets the SmoothingMode. + + The SmoothingMode. + + + + Used to render some specific ChartArea if it is true. + + + + + The ChartGDIGraph. + + + + + Initializes a new instance of the class. + + The g. + + + + Draws the rect. + + The brush. + The pen. + The x. + The y. + The width. + The height. + + + + Draws the ellipse. + + The brush. + The pen. + The x. + The y. + The width. + The height. + + + + Draws the path. + + The brush. + The pen. + The gp. + + + + Draws the line. + + The pen. + The x1. + The y1. + The x2. + The y2. + + + + Draws the image. + + The image. + The x. + The y. + The width. + The height. + + + + Draws the polyline. + + The pen. + The points. + + + + Draws the polygon. + + The pen. + The points. + + + + Fill the polygon. + + The pen. + The points. + + + + Measures the specified string. + + The text. + The font. + + + + + Measures the specified string. + + The text. + The font. + Maximal width of row. + + + + + Measures the specified string. + + The text. + The font. + Maximal width of row. + StringFormat instance. + + + + + Measures the specified string. + + The text. + The font. + Maximal width of row. + StringFormat instance. + + + + + Draws the string. + + The text. + The font. + The brush. + The rect. + + + + Draws the string. + + The text. + The font. + The brush. + The location. + The stringformat. + + + + Draws the string. + + The text. + The font. + The brush. + The rect. + The stringformat. + + + + Gets the graphics. + + The graphics. + + + + Gets or sets the transform. + + The transform. + + + + Gets or sets the SmoothingMode. + + The SmoothingMode. + + + + Contains the view and projection transformation of + + + + + Initializes a new instance of the class. + + + + + Sets the center of world. + + The center. + + + + Sets the perspective. + + The distance to the "eye". + + + + Sets the view matrix by the position and direction of eye. + + The pos. + The dir. + The up. + + + + Transform to the screen. + + The vector3d. + + + + + Returns the intercept point of mouse ray with the specified plane. + + The point. + The plane. + + + + + Gets os sets the center matrix. + + + + + Gets or sets the view matrix. + + The view. + + + + Gets or sets the projection matrix. + + The projection. + + + + Gets the result matrix. + + The result. + + + + Provide the methods for drawing in 3D mode. + + + + + Initializes a new instance of the class. + + The to the drawing. + + + + Adds the polygon to the drawing. + + The . + + + + + Computes the BSP tree. + + + + + + Computes the BSP tree. + + + + + Draws the polygons to the . + + + + + Saves the options. + + + + + + Loads the options. + + The state. + + + + Creates the box. + + The v1. + The v2. + The pen. + The brush. + + + + + Creates the box. + + The v1. + The v2. + The p. + The b. + + + + + Creates the vertical box. + + The v1. + The v2. + The p. + The b. + + + + + Creates the ellipse. + + The v1. + The sz. + The DSC. + The p. + The br. + + + + + Creates the rectangle. + + The v1. + The sz. + The p. + The br. + + + + + Creates the rectangle. + + The v1. + The sz. + The p. + The br. + The PNF. + + + + + Creates the sphere. + + The v1. + The r. + The DSC. + The p. + The br. + + + + + + Creates the sphere. + + The v1. + The r. + The DSC. + The p. + The br. + + + + + Creates the vertical cylinder. + + The v1. + The v2. + The DSC. + The p. + The br. + + + + + Creates the horizontal cylinder. + + The v1. + The v2. + The DSC. + The p. + The br. + + + + + Draws the BSP node in 3D. + + The tree. + The eye position. + + + + Gets or sets the root node. + + The root node. + + + + Gets the at the specified index. + + + + + + Gets the count of input polygons. + + The count. + + + + Gets or sets the light position. + + The light position. + + + + Gets or sets the light coefficient. + + The light coefficient. + + + + Gets or sets a value indicating whether this is light. + + true if light; otherwise, false. + + + + Gets the graphics. + + The graphics. + + + + Gets the count output polygons. + + The count polygons. + + + + Gets or sets the regions. + + The regions. + + + + Gets the default string format. + + The default string format. + + + + Gets or sets the transform. + + The transform. + + + + Provide the representation settings of . + + + + + Initializes a new instance of the class. + + + + + Raises the changed. + + + + + Occurs when settings is changed. + + + + + Gets or sets the light direction. + + The light direction. + + + + Gets or sets the light coefficient. + + The light coefficient. + + + + Gets or sets a value indicating whether perspective is enabled. + + True If perspective is enabled; otherwise, false. + + + + Gets or sets a value indicating whether perspective is computed automatically. + + True If perspective is computed automatically; otherwise, false. + + + + Gets or sets a value indicating whether light is enabled. + + True If light is enabled; otherwise, false. + + + + Gets or sets the distance from eye to the chart. This value is used for computing of perspective. + + The depth distant. + + + + Represents the in the 3D. + + + + + Represents the simple 3D polygon. + + + + + Represents the 3D plane. + + + + + The normal of plane. + + + + + + The constant of plane. + + + + + + Initializes a new instance of the class. + + The normal. + The d. + + + + Initializes a new instance of the class. + + A. + The b. + The c. + The d. + + + + Initializes a new instance of the class. + + The v1. + The v2. + The v3. + + + + Gets the point on the plane. + + The x. + The y. + Returns Vector3D instance. + + + + Gets the point of intersect ray with plane. + + The pos. + The ray. + Returns Vector3D instance. + + + + Transforms by the specified matrix. + + The matrix. + + + + Clones this instance and apply the specified transformation. + + The matrix. + Returns Plane3D instance. + + + + Tests this instance to the existing. + + Indicates whether Normal of Plane is valid or Not. + + + + Calculates the normal. + + The v1. + The v2. + The v3. + + + + + Gets the normal. + + The normal. + + + + Gets the A component. + + The A component. + + + + Gets the B component. + + The B component. + + + + Gets the C component. + + The C component. + + + + Gets the D component. + + The D component. + + + + Points of polygon. + + + + + + The for border drawing. + + + + + + The for border drawing. + + + + + + The for polygon filling. + + + + + + The for polygon filling. + + + + + + Indicates whether this polygon is used as clip plane. + + + + + + The data of result regions. + + + + + + Initializes a new instance of the class. + + The points. + + + + Initializes a new instance of the class. + + The points. + The br. + + + + Initializes a new instance of the class. + + The points. + The PLG. + + + + Initializes a new instance of the class. + + The points. + The br. + The pen. + + + + Initializes a new instance of the class. + + The points. + The pen. + + + + Initializes a new instance of the class. + + The points. + The br. + + + + Initializes a new instance of the class. + + The points. + The br. + The pen. + + + + Initializes a new instance of the class. + + The points. + The br. + The pen. + The PNF. + + + + Initializes a new instance of the class. + + The normal. + The d. + + + + Initializes a new instance of the class. + + The points. + if set to true [clip polygon]. + + + + Initializes a new instance of the class. + + The poly. + + + + Releases unmanaged resources and performs other cleanup operations before the + is reclaimed by garbage collection. + + + + + Creates the polygon by specified rectangle. + + The bounds. + The Z coordinate. + The brush info. + The pen. + Returns Polygon. + + + + Gets the normal. + + The transform. + Returns Vector3D instance. + + + + Draws to the specified . + + The g3d. + Return ChartRegion. + + + + Transforms by the specified . + + The . + + + + Clones this instance. + + Returns Polygon. + + + + Calculates the normal. + + + + + + Draws the polygon. + + The g. + The pen. + The gp. + The coefficient. + + + + + Fills the polygon. + + The g. + The br. + The gp. + The coefficient. + + + + + Fills the polygon. + + The g. + The br info. + The gp. + The coefficient. + + + + + Lights the color. + + The color. + The coefficient. + Returns the light color. + + + + + Gets the points of polygon. + + The points. + + + + Gets the brush. + + The brush. + + + + Gets the pen. + + The pen. + + + + Gets the brush info. + + The brush info. + + + + Gets or sets a value indicating whether polygon is used as clip plane. + + true if it's used as clip plane; otherwise, false. + + + + Gets or sets the region data. + + The region data. + + + + Initializes a new instance of the class. + + The positions of polygon. + The image. + + + + Draws to the specified . + + The g3d. + Returns ChartRegion. + + + + Create the new instance from the specified image. + + The image. + The bounds. + The depth coordinate. + Returns Image3D. + + + + Create the new instance and copy all members. + + Returns Polygon after clone. + + + + Gets or sets the attributes. + + The attributes. + + + + Represents the matrix 4x4. + + + + + Initializes a new instance of the class. + + The size. + + + + Initializes a new instance of the class. + + The M11 element of matrix. + The M12 element of matrix. + The M13 element of matrix. + The M14 element of matrix. + The M21 element of matrix. + The M22 element of matrix. + The M23 element of matrix. + The M24 element of matrix. + The M31 element of matrix. + The M32 element of matrix. + The M33 element of matrix. + The M34 element of matrix. + The M41 element of matrix. + The M42 element of matrix. + The M43 element of matrix. + The M44 element of matrix. + + + + Implements the operator +. + + + + + + + + Implements the operator *. + + + + + + + + Implements the dot product operation. + + + + + + + + Implements the operator *. + + + + + + + + Implements the operator *. + + + + + + + + Implements the operator ==. + + + + + + + + Implements the operator !=. + + + + + + + + Intervals the matrix. + + The matrix. + + + + + + Intervals the matrix. + + The matrix. + + + + + Gets the minor. + + The matrix. + The index of column. + The index of row. + + + + + Gets the determinant. + + The matrix. + + + + + Gets the identity matrix. + + + + + + Gets the gauss result. + + + The columns of matrix is the A, B, C, D parameters of equations. + + The parameters. + + + + + Transforms the specified vector. + + The X coordinate. + The Y coordinate. + The Z coordinate. + + + + + Turns by the specified angle. + + The angle. + + + + + Tilts by the specified angle. + + The angle. + + + + + Twists by the specified angle. + + The angle. + + + + + Scales by the specified values. + + The X scale. + The Y scale. + The Z scale. + + + + + Transposes the specified matrix. + + The matrix. + + + + + Shears the specified values. + + The xy shear. + The xz shear. + The yx shear. + The yz shear. + The zx shear. + The zy shear. + + + + + Creates transformation matrix that rotates polygon around OX axis. + + The angle to rotate. + Transformation matrix. + + + + Creates transformation matrix that rotates polygon around OY axis. + + The angle to rotate. + Transformation matrix. + + + + Creates transformation matrix that rotates polygon around OZ axis. + + The angle to rotate. + Transformation matrix. + + + + 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. + + + + + Calculates determinant row given matrix.. + + The matrix to calculate determinant. + Determinant of the given matrix. + + + + Gets the minor. + + The matrix. + The index of column. + The index of row. + + + + + Gets a value indicating whether this matrix is affine. + + true if this matrix is affine; otherwise, false. + + + + Gets or sets the with the specified column and row. + + + + + + Gets the identity matrix. + + The identity matrix. + + + + + + + + + + + + + + + Adds the path. + + The gp. + The brush. + The BrushInfo + The pen. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Represents the in the 3D. + + + + + Initializes a new instance of the class. + + The plane. + + + + Initializes a new instance of the class. + + The vs. + + + + Initializes a new instance of the class. + + The vs. + The types. + The br. + The pen. + + + + Initializes a new instance of the class. + + The P3D. + + + + Creates from the graphics path. + + The gp. + The z. + The br. + The pen. + + + + + Creates from the graphics path. + + The gp. + The z. + The br. + The pen. + + + + + Creates from the graphics path. + + The gp. + The z. + The br. + + + + + Creates from the graphics path. + + The gp. + The z. + The pen. + + + + + Creates from the graphics path. + + The gp. + The z. + The br. + + + + + Creates from the graphics path. + + The gp. + The plane. + The z. + The br. + The pen. + + + + + Gets the path of Graphics. + + + + + + + + + + + + + + + + + + + + Gets the types. + + The types. + + + + Represents polygones polygon. + + + + + Initializes a new instance of the class. + + The array of polygons. + + + + Initializes a new instance of the class. + + The polygon. + + + + Initializes a new instance of the class. + + The . + + + + Adds the specified polygon to the group. + + The . + Returns the index of the added polygon. + + + + Draws to the specified . + + The g3d. + Returns ChartRegion. + + + + Clones this instance. + + Returns the polygon. + + + + Transforms by the specified . + + The . + + + + Refreshes the points. + + + + + Gets the points of polygon. + + The points. + + + + Represents the label positioned in the 3D. + + + + + Initializes a new instance of the class. + + The text. + The font. + The br. + The loc. + + + + Initializes a new instance of the class. + + The text. + The font. + The br. + The loc. + Bounds of the text + + + + Draws to the specified . + + The . + Returns ChartRegion. + + + + Clones this instance. + + Return polygon. + + + + Gets the font. + + The font. + + + + Gets the bound. + + + + + Gets the text. + + The text. + + + + Gets the location. + + The location. + + + + Gets or sets the alignment. + + The alignment. + + + + Gets or sets the matrix. + + The matrix. + + + + Represents the coordinates of a 3D point. + + + + + The empty . All coordinates is zero. + + + + + Initializes a new instance of the struct. + + The x. + The y. + The z. + + + + Implements the operator -. + + The v1. + The v2. + The result of the operator. + + + + Implements the operator +. + + The v1. + The v2. + The result of the operator. + + + + Implements the cross product operation. + + The v1. + The v2. + The result of the operator. + + + + Implements the dot product operation. + + The v1. + The v2. + The result of the operator. + + + + Implements the operator *. + + The v1. + The val. + The result of the operator. + + + + Implements the operator !. + + The v1. + The result of the operator. + + + + Implements the operator ==. + + The v1. + The v2. + The result of the operator. + + + + Implements the operator !=. + + The v1. + The v2. + The result of the operator. + + + + Gets the length. + + + + + + Normalizes this vector. + + + + + Overrides method. + + The text. + + + + 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. + + + + + Gets the X coordinate. + + The X. + + + + Gets the Y coordinate. + + The Y. + + + + Gets the Z coordinate. + + The Z. + + + + Gets a value indicating whether this instance is empty. + + True if this instance is empty; otherwise, false. + + + + Gets a value indicating whether this instance is valid. + + True if this instance is valid; otherwise, false. + + + + ChartAreaCursorCollection is a collection for objects. + + + + + Initializes a new instance of the class. + + + + + Looks up the collection and returns the index value of the specified cursor if it is present. + + + + Cursor to look for. + + + + The index value of the cursor if the look up was successful; -1 otherwise. + + + + + Adds the specified cursor to this collection. + + + + An instance of the cursor that is to be added. + + + + + + Inserts the specified cursor at the specified index. + + + + Index value where the cursor is to be inserted. + + + + + An instance of the cursor that is to be inserted. + + + + + + Removes the specified cursor from this collection. + + + + Cursor that is to be removed. + + + + + + Performs additional custom processes when validating a value + + The object to validate. + If is true, value is approved. + + + + + Looks up the collection and returns the interactive cursor at the specified index. + + + + + This type implements the cursor service which lets the end user drag a set of horizontal and vertical lines and dock them + to a data point to help visualize the X and Y values of these data points. + + + + + Initializes a new instance of the class. + + Specifies the chart series data points that the cursor should track. + + + + Initializes a new instance of the class. + + Specifies the chart series data points that the cursor should track. + The color of the cursors. + + + + Call this method to move the horizontal cursor up or down, to the next nearest data point in Y axis. + + True to move up, false to move down. + + + + Call this method to move the vertical cursor left or right, to the next nearest data point in X axis. + + True to move right, false to move left. + + + + Returns the series index value of the closest point to the specified x value and moves the cursor to that point. + If closest point could not be found, -1 is returned. + + Specifies the X value in the chart near which the data point is to be found. + The series index of the data point or -1 if nothing is nearby. + + + + Returns the series index value of the closest point to the specified y value. + If closest point could not be found, -1 is returned. + + Specifies the Y value in the chart near which the data point is to be found. + The series index of the data point or -1 if nothing is nearby. + + + + Returns the closest X point for the given Y value. + + Specifies the X value in the chart near which the data point is to be found. + The series index of the data point or -1 if nothing is nearby. + + + + Returns the closest Y point for the given Y value. + + Specifies the Y value in the chart near which the data point is to be found. + The series index of the data point or -1 if nothing is nearby. + + + + Specifies if the absolute difference in X position of the specified point and the current location of the cursor is less than 3. + + The point in question. + true if the specified point is within a range of 3. + + + + Specifies if the absolute difference in Y position of the specified point and the current location of the cursor is less than 3. + + The point in question. + true if the specified point is within a range of 3. + + + + Resorts the points arrays. + + + + + Called when series is changed. + + The sender. + The instance containing the event data. + + + + Raises the Changed event. + + The sender. + The instance containing the event data. + + + + An event that is triggered when properties are changed. + + + + + Gets or sets the X position. + + The X position. + + + + Gets or sets the Y position of the Interactive Cursor. + + The Y position. + + + + Gets or Sets the Cursor Orientation of the Interactive Cursor. + + Cursor Orientation + + + + Gets or Sets the cursor moving to chart area. + + The move to chart area + + + + Gets or Sets whether interactive cursor will be placed in chart area or closest point after releasing the mouse. + + Snap to a point in series + + + + Gets or Sets whether the cursor line need to LineRedraw or not. + + The LineRedraw + + + + Gets and Sets the symbol for series points. + + ShowPointSymbol + + + + Gets and Sets the X inetrval. + + Interval for X Axis + + + + Gets and Sets the Y inetrval. + + Interval for Y Axis + + + + Gets or Sets the Horizontal cursor color of the Interactive Cursor. + + Horizontal cursor color + + + + Gets or Sets the Vertical cursor color of the Interactive Cursor. + + Vertical cursor color + + + + Gets the location of Interactive Cursor. + + The location. + + + + Gets or Sets the CursorLineLocation. + + The CursorLine location. + + + + Gets the point. + + The point. + + + + Gets or sets the color. + + The color. + + + + Gets the series. + + The series. + + + + Collection of instances. + + + + + Initializes a new instance of the class. + + + + + Adds to collection. + + Instance of class. + Index of item. + + + + Determines whether the contains a specific item. + + Instance of class. + true if the is found in the collection; otherwise, false. + + + + Removes the specific from the collection. + + Instance of class. + + + + Determines the index of a specific item in the collection. + + Instance of class. + Index of specified . + + + + Inserts an item to the collection at the specified index. + + The zero-based index at which should be inserted. + Instance of class. + + + + Validates the specified object. + + An to validation. + true if specified is and collection doesn't contain it; otherwise, false. + + + + Gets or sets by the index. + + Index of . + + + + Gets by the name. + + Name of . + + + + Delegate that is to be used with ChartLegend.click event. This Event is fired when the legend items is clicked. + Handle this event to customize chart when a legend item is clicked. + + + + Sender. + + + + + Argument. + + + + + + Delegate that is to be used with ChartLegend.FilterItems event. This Event is fired when the legend items need to be filtered. + Handle this event to change the collection of LegendItems that the legend contains. + + + + Sender. + + + + + Argument. + + + + + + Delegate that is to be used with ChartLegend.DrawItem event. This event is fired when a legend item needs to draw. Handle this event to change the drawing of items. + + + + Sender. + + + + + Argument. + + + + + + Delegate that is to be used with ChartLegend.MinSize event. This event is fired when the legend's minimum size is to be fixed. + + + + Sender. + + + + + Argument. + + + + + + Delegate that is to be used with ChartLegend.DrawItemText event. This event is fired when a legend item text needs to draw. Handle this event to change the drawing of items text. + + + + Sender. + + + + + Argument. + + + + + + Initializes a new instance of the class. + + + + Graphics object. + + + + + Legend item text to be rendered. + + + + + Bounds of the legend item. + + + + + + Gets the graphics to draw legend. + + The graphics. + + + + Gets or sets a value indicating whether this LegendDrawItemTextEventArgs is handled. + + true if handled; otherwise, false. + + + + Gets or sets text of Legend item + + The graphics. + + + + Gets bounds of legend item + + The graphics. + + + + Event argument that is to be used with ChartLegend.FilterItems event. This + event is raised before the legend items are rendered. This can be used to remove any item conditionally. + + + + + Initializes a new instance of the class. + + The items. + + + + Constructor. + + + + Legend items that are to be rendered. + + + + + + Gets or sets the legend items that are to be rendered. + + + + + Event argument that is to be used with ChartLegend.FilterItems event. This + event is raised before the legend items are rendered. This can be used to remove any item conditionally. + + + + + Initializes a new instance of the class. + + + + Legend item that was clicked. + + + + + + + + Gets or sets the legend item. + + + + + Gets the index of legend item. + + + + + Gets the index of legend in Chart Legends collection. + + + + + Delegate that is to be used with ChartLegend.DrawItem event. This event is fired when a legend item needs to draw. Handle this event to change the drawing of items. + + + + + Constructor. + + + + Graphics object. + + + + + Legend item to be rendered. + + + + + Location of the legend item. + + + + + Index value of the legend item being rendered. + + + + + + Constructor. + + + + Graphics object. + + + + + Legend item to be rendered. + + + + + Bounds of the legend item. + + + + + Index value of the legend item being rendered. + + + + + + Gets the graphics to draw the legend. + + The graphics. + + + + Gets or sets a value indicating whether this is handled. + + true if handled; otherwise, false. + + + + Gets the index. + + The index. + + + + Gets the legend item. + + The legend item. + + + + Gets or sets the location of the item. + + + + + Gets or sets the size of the item. + + + + + Gets or sets the bounds of the item. + + + + + Argument that is to be used with ChartLegend.MinSize event. This event is fired when the legend's minimum size is to be fixed. + + + + + Initializes a new instance of the class. + + + + Size to be used for the legend. + + + + A void value. + + + + + Gets or sets a value indicating whether this is handled. + + true if handled; otherwise, false. + + + + Gets or sets the minimum size to be used for the legend. + + + + + This class is obsolete. Use the class. + + + + + The ChartLegendItem class holds information about each legend item like text, color and interior. Use this to add + custom legend items through the ChartLegend.CustomItems list. Or parse through the auto generated ChartLegend.Items list. + + + + + The collection of subitems. + + + + + + The text of title. + + + + + + The appearance style of item. + + + + + + Indicates whether item is visible. + + + + + + Indicates whether item is checked. + + + + + + The bounds of item. + + + + + + The bounds of icon. + + + + + + The bounds of title. + + + + + + Indicates is the shadow drawing pass. + + + + + + Overloaded constructor. + + + + + Overloaded constructor. + + Text of item. + + + + Sets the legend. + + The legend. + + + + Sets the owner. + + The owner. + + + + Indicates if contains the specified coordinates. + + + + + + + + Measures the size of . + + + + + + + Measures the size of . + + Graphics object used for drawing the legend item + Rectangle defining the bounds of legend item + + + + + Sets the bounds of . + + + + + + Draws the . + + + + + + Draws the . + + Graphics object + RectangleF object. Legend item border will be drawn with this Pen. If border is not required pass null as value for this parameter + RectangleF object. Legend item will be drawn within the bounds of this rectangle + StringFormat object. Legend item text will be drawn in the specified string format + + + + Disposes legend item object + + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Internal method for the drawing of item. + + + + + + Returns for the icon. + + + + + + + Returns border for the icon. + + + + + + + Returns line for the icon. + + + + + + + Returns for the text. + + + + + + + This method is called when was changed. + + + + + + + Called when [children changed]. + + The list. + The args. + + + + Raises the event. + + + + + + + + Raises the event. + + + + + + + + Draws legend icon by the specified . + + Instance of . + Rectangle of icon. + Shape of icon. + + + + + Raised when properties are changed. + + + + + Raised when property is changed. + + + + + Returns the the child collection. + + + + + Returns the for this item. + + + + + Gets or sets the color of the border. + + + + + Gets or sets the font of the text. + + + + + Gets or sets the image index value of the item in the item's image list. + + + + + Gets or sets the ImageList associated with this item. + + + + + Gets or sets the interior brush for the rectangular area that represents a legend. + + + + + Gets or sets the size of the rectangle holding the representation icon of the item. + + + + + Indicates whether the symbol is to be displayed. + + + + + Gets or sets the spacing of the item within the legend. + + + + + Gets or sets the symbol that is to be associated with this item. + + + + + Gets or sets the border item that is to be associated with this item's border. + + + + + Gets or sets the text of the item. + + + + + Gets or sets the color of the text of the item. + + + + + Gets or sets the type of representation for the legend item. + + + + + Indicates whether the icon is to be displayed. + + + + + Gets or sets the left/right alignment of the icon with respect to the legend text. + + + + + Gets or sets the vertical alignment of the legend text. + + + + + Indicates if the checkbox associated with this legend item is to be displayed. Also see . + + + + + Indicates if the shadow is to be shown. + + + + + Gets or sets the size of shadow offset. + + + + + Gets or sets the color of the Shadow. + + + + + Gets or sets value indicates whether is visible. + + + + + Gets or sets the state of checkbox. + + + + + Gets or sets the lines of text in multiline configurations. + + + + + Gets the rendering bounds of the . + + + + + Gets or sets the icon image. + + The image. + + + + Overloaded constructor. + + + + + Overloaded constructor. + + Text of item. + + + + This type is used internally to create legend items associated with a series. Such auto generated legend items are usually + of this type in the list. + + + + + Initialize new instance of class. + + + + + + Initialize new instance of class. + + + + + + + Sets settings of item by series. + + + + + ChartLegendItem.CopySymbol method. + + Instance of . + Instance of . + + + + Overrides method. + + Instance of . + Rectangle of icon. + Shape of icon. + + + + + Overrides method. + + Argument. + + + + + Overrides method. + + + + + + + The corresponding to this item. + + + + + Indicates the method for the drawing of legend icon. If true, an icon representing the series type will be rendered. + + + + + Initialize new instance of class. + + + + + + Initialize new instance of class. + + + + + + + Sets settings of item by series. + + + + + ChartLegendItem.CopySymbol method. + + Instance of . + Instance of . + + + + This method is called when was changed. + + + + + + + Overrides method. + + + + + + + The corresponding to this item. + + + + + Indicates the method for the drawing of legend icon. If true, an icon representing the series type will be rendered. + + + + + A collection of s. + + + + + Initializes a new instance of the class. + + + + + Adds the specified legend item to the collection. + + The item to add. + The position into which the new element was inserted. + + + + Adds item array to the collection. + + The array of items to add. + + + + Removes the specified legend item from the collection. + + + The legend item to be removed. + + + + + Inserts the specified legend item in the specified index. + + + The index value where the legend item is to be inserted. + + + The legend item that is to be inserted. + + + + + Returns the index value of the specified legend item. + + The legend item to look for. + The index of value if found in the list; otherwise, -1. + + + + Copies the elements of the array. + + Returns array of ChartLegendItem. + + + + Indicates whether the specified item is in the list. + + The System.Object to locate in the System.Collections.IList. + true if the ChartLegendItem is found in the List; otherwise, false. + + + + Performs additional custom processes when validating a value + + The object to validate. + If is true, value is approved. + + + + + Looks up the collection and returns the legend item stored in the specified index. + + + + + Defines the style of a . + + + + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The store. + + + + Creates a new object that is a copy of the current instance. + + + A new object that is a copy of this instance. + + + + + Resets style value by the specified key. + + The key. + + + + Clears the style values. + + + + + Creates the default symbol info. + + Returns ChartSymbolInfo instance. + + + + Creates the default style. + + Returns ChartLegendItemStyle instance. + + + + Sets the parent to the lower level. + + The style. + + + + Method to dispose ChartLegendItemStyle object + + + + + Sets the object. + + The key. + The value. + + + + Gets the object. + + The key. + Return Oblect. + + + + Gets or sets the Url that is to be associated with a . This Url will be applied to the point if + EnableUrl and CalcRegion property is set to True.This property is applicable only for ChartWeb. + + + + + Gets the default. + + The default. + + + + Gets a value indicating whether this style is empty. + + true if this style is empty; otherwise, false. + + + + Gets or sets the base style. + + The base style. + + + + Gets or sets the font of the text. + + + + + Gets or sets the image index value of the item in the item's image list. + + + + + Gets or sets the ImageList associated with this item. + + + + + Gets or sets the interior for the rectangular area that represents a legend. + + + + + Gets or sets the size of the rectangle holding the representation of the item. + + + + + Gets or sets a value indicating whether [show symbol]. + + true if [show symbol]; otherwise, false. + + + + Gets or sets the spacing of the item within the legend. + + + + + Gets or sets the symbol that is to be associated with this item. + + + + + Gets or sets the border that is to be associated with this item's border. + + + + + Gets or sets the color of the text of the item. + + + + + Gets or sets the color of the border of the item. + + + + + Gets or sets the type of representation for the legend item. + + + + + Gets or sets a value indicating whether [show icon]. + + true if [show icon]; otherwise, false. + + + + Gets or sets the icon alignment. + + The icon alignment. + + + + Gets or sets the text alignment. + + The text alignment. + + + + Gets or sets a value indicating whether [visible check box]. + + true if [visible check box]; otherwise, false. + + + + Gets or sets a value indicating whether [show shadow]. + + true if [show shadow]; otherwise, false. + + + + Gets or sets the shadow offset. + + The shadow offset. + + + + Gets or sets the color of the shadow. + + The color of the shadow. + + + + Contains the keys for each properties of . + + + + + The key of property. + + + + + The key of property. + + + + + The key of property. + + + + + The key of property. + + + + + The key of property. + + + + + The key of property. + + + + + The key of property. + + + + + The key of property. + + + + + The key of property. + + + + + The key of property. + + + + + The key of property. + + + + + The key of property. + + + + + The key of property. + + + + + The key of property. + + + + + The key of property. + + + + + The key of property. + + + + + The key of property. + + + + + The key of property. + + + + + The key of property. + + + + + The key of property. + + + + + Specifies the default properties of legend. + + + + + Gets or sets the name. + + + + + Gets or sets the position. + + The position. + + + + Gets or sets the orientation. + + The orientation. + + + + Gets or sets the items text aligment. + + The items text aligment. + + + + Gets or sets the items alignment. + + The items alignment. + + + + Gets or sets the type of the representation. + + The type of the representation. + + + + Gets or sets the alignment. + + The alignment. + + + + Gets or sets the size of the items. + + The size of the items. + + + + Gets or sets the items shadow offset. + + The items shadow offset. + + + + Gets or sets the color of the items shadow. + + The color of the items shadow. + + + + Gets or sets the spacing. + + The spacing. + + + + Gets or sets the rows count. + + The rows count. + + + + Gets or sets the columns count. + + The columns count. + + + + Gets or sets a value indicating whether [show symbol]. + + true if [show symbol]; otherwise, false. + + + + Gets or sets a value indicating whether [only columns for floating]. + + + true if [only columns for floating]; otherwise, false. + + + + + Gets or sets a value indicating whether [floating auto size]. + + true if [floating auto size]; otherwise, false. + + + + Gets or sets a value indicating whether [visible check box]. + + true if [visible check box]; otherwise, false. + + + + Gets or sets a value indicating whether [show items shadow]. + + true if [show items shadow]; otherwise, false. + + + + Gets or sets a value indicating whether [set def size for custom]. + + + true if [set def size for custom]; otherwise, false. + + + + + Gets or sets the font. + + The font. + + + + Gets or sets the background color of the legend. + + + + + Gets or sets the foreground color of the legend. + + + + + Fired when the legend items need to be filtered. Handle this event to change the collection of ChartLegendItems that the legend contains. + + + + + SR provides localized access to string resources specific + from the assembly manifest Syncfusion.Windows.Forms.Chart.Localization.SR.resources + + + + + Initializes a new instance of the class. + + + + + Gets the loader. + + + + + Gets the string. + + The culture. + The name. + The args. + Returns string. + + + + Gets the string. + + The name. + Returns string. + + + + Gets the string. + + The name. + The args. + Returns string. + + + + Gets the string. + + The culture. + The name. + Returns string. + + + + Gets the object. + + The culture. + The name. + Returns object. + + + + Gets the object. + + The name. + Returns object. + + + + Gets the boolean. + + The culture. + The name. + Returns boolean. + + + + Gets the boolean. + + The name. + Returns boolean. + + + + Gets the byte. + + The culture. + The name. + Returns byte. + + + + Gets the byte. + + The name. + Returns byte. + + + + Gets the char. + + The culture. + The name. + Returns a single character. + + + + Gets the char. + + The name. + Returns a single character. + + + + Gets the double. + + The culture. + The name. + Returns double. + + + + Gets the double. + + The name. + Returns double. + + + + Gets the float. + + The culture. + The name. + Returns flaot. + + + + Gets the float. + + The name. + Returns float. + + + + Gets the int. + + The name. + Returns integer. + + + + Gets the int. + + The culture. + The name. + Returns integer. + + + + Gets the long. + + The name. + Return long. + + + + Gets the long. + + The culture. + The name. + Returns long. + + + + Gets the short. + + The culture. + The name. + Returns short. + + + + Gets the short. + + The name. + Returns short. + + + + 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.Chart.Localization.SR.resources + + + + + Initializes a new instance of the class. + + The name of the category. + + + + Looks up the localized name of the specified category. + + The identifer for the category to look up. + + The localized name of the category, or null if a localized name does not exist. + + + + + 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.Chart.Localization.SR.resources + + + + + Initializes a new instance of the class. + + The description text. + + + + Contains the methods to return the default information of calendar. + + + + + + Gets the calendar. + + Returns calender. + + + + + Gets the days in year. + + + + + + + Gets the days in month. + + + + + + + Gets the min days in month. + + Gets minimum days in week. + + + + + Gets the days in week. + + Returns no of days in week. + + + + + Gets the first day of week. + + Gets first day of week. + + + + + Implements the interface; + + + + + Gets the calendar. + + Returns calender object. + + + + + Gets the days in year. + + Returns no of days in year. + + + + + Gets the days in month. + + Returns the no of days in month. + + + + + Gets the min days in month. + + Returns no of days in month. + + + + + Gets the days in week. + + Returns no of days in week. + + + + + Gets the first day of week. + + Returns first day of the week. + + + + + Types of DateTime intervals that are supported by Essential Chart. + + + + + The interval defaults to the most appropriate for the range of values being considered. For example, if the range + is a few years, the interval would be internally set to years. + + + + + Interval is set to years. + + + + + Interval is set to months. + + + + + Interval is set to weeks. + + + + + Interval is set to days. + + + + + Interval is set to hours. + + + + + Interval is set to minutes. + + + + + Interval is set to seconds. + + + + + Interval is set to milliseconds. + + + + + Represents a DateTime interval value. + + + + + Name of default interval. + + + + + + + + Initializes a new instance of the class. + + The type. + The value. + Type of the offset. + The offset. + + + + Initializes a new instance of the class. + + The type. + The value. + + + + Overloaded. Creates and returns a default iterator that will iterate over the associated range (. + + Returns IEnumerable object. + + + + Creates and returns an iterator that will iterate over the associated range (. The + IterationFilter callback will be called for each position in this range to check if the position should be included. + + The filter. + Returns IEnumerable object. + + + + Creates and returns an iterator that will iterate over the associated range (. The + IterationModifier callback will be called for each position in this range to allow the DateTime value of each position to + be modified. + + The modifier. + Returns IEnumerable object. + + + + Creates and returns an iterator that will iterate over the associated range (. The + IterationModifier callback will be called for each position in this range to allow the DateTime value of each position to + be modified. The IterationFilter callback will be called for each position in this range to check if the position should be included. + + The filter. + The modifier. + Returns IEnumerable object. + + + + Creates and returns a default iterator that will iterate over the associated range (. + Only values that are between rangeStart and rangeEnd will be used. + + The range start. + The range end. + Returns IEnumerable object. + + + + Creates and returns an iterator that will iterate over the associated range (. + Only values that are between rangeStart and rangeEnd will be used. In this range, the IterationFilter callback will be called for + each position in this range to check if the position should be included. + + The range start. + The range end. + The filter. + Returns IEnumerable object. + + + + Creates and returns an iterator that will iterate over the associated range (. + Only values that are between rangeStart and rangeEnd will be used. In this range, the IterationModifier callback will be called for + each position in this range to allow it to be modified. + + The range start. + The range end. + The modifier. + Returns IEnumerable object. + + + + Creates and returns an iterator that will iterate over the associated range (. + Only values that are between rangeStart and rangeEnd will be used. In this range, the IterationModifier callback will be called for + each position in this range to allow it to be modified. For each modified value, the IterationFilter callback will be called + to check if the position should be included. + + The range start. + The range end. + The filter. + The modifier. + Returns IEnumerable object. + + + + Given a ChartDateTimeInterval.Enumerator instance, this method simply loops through and calculates the number of distinct positions + in the range that the iterator represents. + + + + + An instance of the ChartDateTimeInterval.Enumerator. + + + + Number of distinct positions. + + + + + Overridden. Returns a string representation of this interval. + + + A that represents the current . + + + + + Adds the specified interval to the specified date. + + The date time. + The calendar. + The type of interval. + The interval value. + + + + + + + Sets the owner of interval. + + The parent . + + + + Applies the interval to the specified date/time. + + The date time. + The calendar. + This value indicates if is the first value of axis. + + + + + Gets or sets the type of this interval. + + + + + Gets or sets the value of this interval. Interval values should be interpreted in the context of . + + + + + Gets or sets the type of the offset. Intervals can have offsets. Offsets merely affect the first position when an interval + is applied to a range. They translate the first position by the value of the offset. + + + + + Gets or sets the value of the offset. Intervals can have offsets. Offsets merely affect the first position when an interval + is applied to a range. They translate the first position by the value of the offset. + + + + + The object with which this interval is associated. Intervals are not created stand alone but + in the context of a range. + + + + + Delegate that is to be used during interaction on the range associated with an instance of ChartDateTimeInterval. If this + delegate returns False, then that position is not used. + + + + + The date that is to be included or not included. + + + + + + Delegate that is to be used during iteration on the range associated with an instance of ChartDateTimeInterval. This delegate can + change the date that gets passed in during iteration. + + + + The date; that is a position along the associated range during iteration. This date can be changed by this callback. + + + + + + The Enumerator class which implements IEnumerable, IEnumerator. + + + + + Initializes a new instance of the class. + + The interval. + The start. + The end. + The calendar. + + + + Initializes a new instance of the class. + + The interval. + The start. + The end. + The calendar. + The iteration filter. + The iteration modifier. + + + + Returns an enumerator that iterates through a collection. + + + An object that can be used to iterate through the 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. + + + + + Adjusts the date. + + The dt. + Returns datetime object. + + + + Determines whether [is past end] [the specified dt]. + + The dt. + + true if [is past end] [the specified dt]; otherwise, false. + + + + + Gets the next date. + + The current date. + if set to true [first]. + Returns datetime object. + + + + Does the iteration filter. + + The dt. + Returns boolean. + + + + Does the iteration modifier. + + The dt. + Returns datetime object. + + + + Defaults the iteration filter. + + The dt. + Returns bool. + + + + Defaults the iteration modifier. + + The dt. + Returns DateTime object + + + + 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 RangeEnumerator class. + + + + + Initializes a new instance of the class. + + The interval. + The start. + The end. + The range start. + The range end. + The calendar. + The iteration filter. + The iteration modifier. + + + + Initializes a new instance of the class. + + The interval. + The start. + The end. + The range start. + The range end. + The calendar. + + + + Adjusts the date. + + The dt. + + + + + Determines whether is the specified date most past by the end date. + + The dt. + + true if [is past end] [the specified dt]; otherwise, false. + + + + + Specifies the start and end dates and interval time for the axis. Use this if the data points are of datetime type. + + + + + Initializes a new instance of the class. + + The start. + The end. + The interval. + The type. + + + + Initializes a new instance of the class. + + + + The start of this range. + + + + + The end of this range. + + + + + The value of the default interval that is to be associated with this range. + + + + + The type of the default interval that is to be associated with this range. + + + + + The calendar that is to be associated with this range. + + + + + + Overridden. Returns a string representation of this range. + + + A that represents the current . + + + + + Gets the start boundary of this range. + + + + + Gets the end boundary of this range. + + + + + Gets the default interval associated with this range. + + + + + + Gets the Collection of registered intervals. () of several types can be registered with this range. + Intervals afford an easy way to partition and iterate through a date range. + + + + + Gets an instance of the associated with this date range. + + + + + Collection of . Each object has an associated set of intervals that + can be used to iterate over the range. ChartIntervalCollection is the repository for these intervals. + + + + + + Initializes a new instance of the class. + + + + Range that is to be associated with all registered with this collection. + + + + + + Removes all registered intervals except the default interval. + + + + + Removes all registered intervals including the default interval. + + + + + Registers an interval with this collection. + + + + The registration name of the that is to be registered. + + + + + The interval that is to be registered. + + + + + + Looks up the collection and removes the with the specified name. + + + + The registration name of the to look for. + + + + + + Overridden. Returns a string representation of this collection. + + + + + Returns an enumerator that iterates through a collection. + + + An object that can be used to iterate through the collection. + + + + + Looks up the collection and returns the with the specified name. + + + + The registration name of the to look for. + + + + + + Interface that defines preferences and access methods used for the automatic calculation of 'nice' range + given any range of data. 'Nice' ranges are generally more easily understood in comparison to 'raw' data. + + + + + Given a minimum value and a maximum value, this method will calculate a 'nice' minimum value and a maxiumum value + as well as an interval value that can be used for visually representing this data. 'Nice' values are better + perceived by humans. For example, consider a range 1.21-3.5. A nice range that we can use to visually represent values + in this range can be 0-3.6 with an interval of 2. You can tweak the results obtained by changing optional settings. + + The min value. + The max value. + The range padding type. + Calculated . + + + + Gets or sets the approximate number of intervals into which the range is to be partitioned. The actual number of + intervals calculated will depend on the actual algorithm used. + + + + + Gets or sets the padding type that will be applied for calculating the ranges for this axis. + + + + + Indicates whether one boundary of the calculated range should be tweaked to zero. Such tweaking will happen + only if zero is within a resonable distance from the calculated boundary. To ensure that one boundary + is always zero, use the setting instead. + + + + + Gets or Sets the result whether one boundary of the calculated range should always be tweaked to zero. + + + + + Simple, unchangeable class to store information on minimum and maximum values and a suggested interval. + + + + + Store min value of range. + + + + + Store max value of the range. + + + + + Store interval. + + + + + Creates a copy of the MinMaxInfo object. + + The MinMaxInfo. + + + + Compares this object with another object of the same type. + + + + The object with which this object is to be compared. + + + + Returns True if the objects are equal in value. + + + + + Checks whether range contains double value. + + Double to check + Bool value. + + + + Checks whether range intersects with range. + + MinMaxInfo to check + Bool value. + + + + MinMaxInfo represents a range of double type values. There is a lower bound, upper bound and an associated interval. + + + + The lower bound value. + + + + + The upper bound value. + + + + + The interval value. + + + + + + Raises the settings changed event. + + The instance containing the event data. + + + + + + Overridden. Returns a string representation of this object. + + + A that represents the current . + + + + + An event that is triggered when one of the range setting is changed. + + + + + + gets the difference between the upper and lower boundary of this range. + + + + + Gets or sets the lower boundary of this range. + + + + + Gets or sets the upper boundary of this range. + + + + + Gets or sets the value of the interval associated with this range. + + + + + Gets the number of intervals present in this range. + + + + + + Converts instances of other types to and from a . + + + + + Initializes a new instance of the class. + + + + + Returns a collection of properties for the type of array specified by the value parameter, using the specified context and attributes. + + An that provides a format context. + An that specifies the type of array for which to get properties. + An array of type that is used as a filter. + + A with the properties that are exposed for this data type, or null if there are no properties. + + + + + Returns whether this object supports properties, using the specified context. + + An that provides a format context. + + true if should be called to find the properties of this object; otherwise, false. + + + + + Returns whether changing a value on this object requires a call to to create a new value, using the specified context. + + An that provides a format context. + + true if changing a property on this object requires a call to to create a new value; otherwise, false. + + + + + Creates an instance of the type that this is associated with, using the specified context, given a set of property values for the object. + + An that provides a format context. + An of new property values. + + An representing the given , or null if the object cannot be created. This method always returns null. + + + + + Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context. + + An that provides a format context. + A that represents the type you want to convert from. + + true if this converter can perform the conversion; otherwise, false. + + + + + Returns whether this converter can convert the object to the specified type, using the specified context. + + An that provides a format context. + A that represents the type you want to convert to. + + true if this converter can perform the conversion; otherwise, false. + + + + + Converts the given object to the type of this converter, using the specified context and culture information. + + An that provides a format context. + The to use as the current culture. + The to convert. + + An that represents the converted value. + + + The conversion cannot be performed. + + + + + Converts the given value object to the specified type, using the specified context and culture information. + + An that provides a format context. + A . If null is passed, the current culture is assumed. + The to convert. + The to convert the parameter to. + + An that represents the converted value. + + + The parameter is null. + + + The conversion cannot be performed. + + + + + Provides the methods to compute the 'nice' range. + + + + + + Initializes a new instance of the class. + + The desired intervals. + + + + Initializes a new instance of the class. + + + + + + Given a minimum value and a maximum value, this method will calculate a 'nice' minimum value and a maxiumum value + as well as an interval value that can be used for visually representing this data. 'Nice' values are better + perceived by humans. For example, consider a range 1.21-3.5. A nice range that we can use to visually represent values + in this range can be 0-3.6 with an interval of 2. You can tweak the results obtained by changing optional settings. + + The min value. + The max value. + The range padding type. + + Calculated . + + + + + + Add padding to the incoming minimum and maximum values. + + The operational status. + The ChartAxisRangePaddingTyp. + + + + Tweaks the incoming minimum and maximum values so that special conditions are handled + properly. + + The operational status. + + + + Raises the working values to powers of 10 such that we work with whole + numbers. The number of places adjusted is stored in the operating state. + + The operational status. + + + + Calculates 'nice' values by calling other methods. + + The operational status. + + + + Calculates the nice interval. + + The operational status. + + + + + Simple logic for creating 'nice' numbers that are close to the numbers passed in. + + + Value whose equivalent 'nice' number is to be found. + + Returns double. + + + + Calculates a 'nice' minimum value given a 'nice' interval. This function basically makes the minimum + value divisible by the interval. + + + + + + Calculates a 'nice' maximum value given a 'nice' interval. This function basically makes the maximum + value divisible by the interval. + + + + + + Divides the calculated values again by the adjustment factor to go back to correct values. + + + + + + Checks the minimum and maximum values calculated to see if either of them can + be made zero. Visual respresentation of data appears more readable if zero is used as a baseline. + + + + + + Checks the calculated minimum and maximum values to see if they need to be changed + so that a visual representation does not result in values being displayed too close to the boundaries. + + + + + + Gets or sets the approximate number of intervals into which the range is to be partitioned. The actual number of + intervals calculated will depend on the actual algorithm used. + + The Desired Intervals. + + + + + Gets or sets the padding type that will be applied for calculating the ranges for this axis. + + The RangePaddingType type. + + + + + Gets or Sets whether one boundary of the calculated range should be tweaked to zero. Such tweaking will happen + only if zero is within a resonable distance from the calculated boundary. To ensure that one boundary + is always zero, use the setting instead. + + The PreferZero. + + + + + Gets or Sets the result whether one boundary of the calculated range should always be tweaked to zero. + + the ForceZero. + + + + + This class holds operational states (intermediate calculated values, support values, etc). + + + + + Initializes a new instance of the class. + + The parent. + The min. + The max. + + + + + Updates the calc interval. + + + + + + Gets the min. + + The min. + + + + + Gets the max. + + The max. + + + + + Gets the interval. + + The interval. + + + + + Gets or sets the calc min. + + The calc min. + + + + + Gets or sets the calc max. + + The calc max. + + + + + Gets or sets the calc interval. + + The calc interval. + + + + + Gets or sets the adjusted places. + + The adjusted places. + + + + + Implements methods to compute the 'nice' data range/ + + + + + + Initializes a new instance of the class. + + The chart date time defaults. + The nice range maker. + + + + + Initializes a new instance of the class. + + The chart date time defaults. + + + + + Initializes a new instance of the class. + + + + + + Makes the nice range. + + The start. + The end. + Returns ChartDateTimeRange instance. + + + + Makes the nice range. + + The start. + The end. + The type. + Returns ChartDateTimeRange instance. + + + + + Makes the nice range. + + The start. + The end. + The type. + Type of the range padding. + Returns ChartDateTimeRange instance. + + + + + Makes the nice years range. + + The start. + The end. + Returns ChartDateTimeRange instance. + + + + + Makes the nice months range. + + The start. + The end. + Returns ChartDateTimeRange instance. + + + + + Makes the nice weeks range. + + The start. + The end. + Returns ChartDateTimeRange instance. + + + + + Makes the nice days range. + + The start. + The end. + Returns ChartDateTimeRange instance. + + + + + Makes the nice hours range. + + The start. + The end. + Returns ChartDateTimeRange instance. + + + + + Makes the nice minutes range. + + The start. + The end. + Returns ChartDateTimeRange instance. + + + + + Makes the nice seconds range. + + The start. + The end. + Returns ChartDateTimeRange instance. + + + + + Makes the nice milli seconds range. + + The start. + The end. + Returns ChartDateTimeRange instance. + + + + + Calculates the type of the interval. + + The diff. + Returns ChartDateTimeRange instance. + + + + + Adjusts to week start. + + The dt. + The direction. + Returns ChartDateTimeRange instance. + + + + + Gets the defaults. + + The defaults. + + + + + Gets the calendar. + + The calendar. + + + + + Gets or sets the desired intervals count. + + The desired intervals count. + + + + + Gets or sets the type of the range padding. + + The type of the range padding. + + + + + Gets or sets a value indicating whether zero is "forced". + + true if zero is "forced"; otherwise, false. + + + + + Gets or sets a value indicating whether zero is preferred. + + true if zero is preferred; otherwise, false. + + + + + Gets or sets the type of the desired interval. + + The type of the desired interval. + + + + + Resperents the seek direction. + + + + + + + + + + + + Implemenets the methods to compute the 'nice' weeks range. + + + + + + Simple logic for creating 'nice' numbers that are close to the numbers passed in. + + Value whose equivalent 'nice' number is to be found. + Returns double. + + + + Represents the post script array. + + + + + + Initializes a new instance of the class. + + + + + Toes the post script string. + + Returns string. + + + + Returns a that represents the current . + + + A that represents the current . + + + + + Gets the name. + + The name. + + + + Gets the list. + + The list. + + + + Represents the post script dictionary. + + + + + + Initializes a new instance of the class. + + + + + Toes the post script string. + + Returns string. + + + + Sets the num. + + The n. + + + + Returns a that represents the current . + + + A that represents the current . + + + + + Serves as a hash function for a particular type. + + + A hash code for the current . + + + + + Gets the internal table. + + The internal table. + + + + Gets the name. + + The name. + + + + Represents the post script linear color function. + + + + + + Initializes a new instance of the class. + + The color1. + The color2. + + + + Gets the name. + + The name. + + + + Represents the post script sampled color function. + + + + + + Initializes a new instance of the class. + + The color array.. + + + + Gets the name. + + The name. + + + + Represents the post script stitching color function. + + + + + + Initializes a new instance of the class. + + The color array. + + + + Gets the name. + + The name. + + + + + + + Initializes a new instance of the class. + + The point1. + The point2. + Name of the func. + + + + Gets the name. + + The name. + + + + Collection of . + + + + + + Initializes a new instance of the class. + + + + + Adds the specified dictionary. + + The . + Returns PostScriptDictionary object. + + + + Inserts the specified dictionary. + + The index. + The . + + + + Removes the specified dictionary. + + The . + + + + Returns index of the specified dictionary. + + The . + The index of value if found in the list; otherwise, -1. + + + + Determines whether collection contains the specified dictionary. + + The . + + true if collection contains the specified dictionary; otherwise, false. + + + + + Determines whether colection contains similar dictionary. + + The . + True if it contains similar object else false. + + + + Provides methods to draw the primitives of the . + + + + + + Initializes a new instance of the class. + + The . + The . + + + + Draws the . + + The pen. + The path. + + + + Fills the . + + The brush. + The path. + + + + Draws the polygon. + + The pen. + The path. + + + + Fills the polygon. + + The brush. + The path. + + + + Draws the rectangle. + + The pen. + The x. + The y. + The width. + The height. + + + + Draws the rectangle. + + The pen. + The rect. + + + + Fills the rectangle. + + The brush. + The x. + The y. + The width. + The height. + + + + Fills the rectangle. + + The brush. + The rect. + + + + Fills the rectangle. + + The brush. + The rect. + + + + Draws the line. + + The pen. + The x1. + The y1. + The x2. + The y2. + + + + Draws the bezier curve. + + The pen. + The x1. + The y1. + The x2. + The y2. + The x3. + The y3. + The x4. + The y4. + + + + Translates the transform. + + The dx. + The dy. + + + + Rotate the transform. + + The dx. + + + + Translates the transform. + + The dx. + The dy. + The order. + + + + Clears the image by the specified color. + + The color. + + + + Draws the string. + + The s. + The font. + The brush. + The x. + The y. + + + + + + + + Sets the clip. + + The rect. + + + + Intersects the clip. + + The rect. + + + + Resets the clip. + + + + + Saves the image to file by the specified name. + + The name. + + + + Saves the correct states. + + + + + Reverts the saved states. + + + + + Concats the transform. + + The m. + + + + Sets the transform. + + The . + + + + Gets the path string from path. + + The path. + Returns string. + + + + Gets the path string from line. + + The x1. + The y1. + The x2. + The y2. + Returns path string from line. + + + + Gets the path string from bezier. + + The x1. + The y1. + The x2. + The y2. + The x3. + The y3. + The x4. + The y4. + Path string from bezier. + + + + Gets the path string from rectangle. + + The x. + The y. + The width. + The height. + Path string from rectangle. + + + + Gets the path string from rectangle. + + The rect. + Path string from rectangle. + + + + Saves the state of the graphic. + + + + + Restores the state of the graphic. + + + + + Sets the color. + + The color. + + + + Gets the color of the string from. + + The color. + Returns string from color. + + + + Sets the color of the brush. + + The brush. + Returns string. + + + + Gets the matrix string from matrix. + + The m. + Returns Matrix string from Matrix. + + + + Gets the matrix string from translate. + + The dx. + The dy. + Returns the matrix string from translate. + + + + Sets the font. + + The font. + + + + Moves to. + + The x. + The y. + + + + Sets the color of the linear gradient. + + The c1. + The c2. + The rect. + Returns string. + + + + Sets the color of the linear gradient. + + The c1. + The c2. + The p1. + The p2. + Returns LinearShadingDictionary name. + + + + Sets the color of the linear gradient. + + The colors. + The p1. + The p2. + Returns string. + + + + Sets the color of the radial gradient. + + The c1. + The c2. + The p1. + The r1. + The p2. + The r2. + Returns RadialShadingDictionary name. + + + + Gets the phong shading blend. + + Color of the ambient. + Color of the diffusive. + Color of the light. + The alpha. + The phong_alpha. + The colors. + The positions. + + + + Indicates whether the strip line is enabled. + + + + + Represents the post scripf radial shading dictionary. + + + + + + Creates instance of the RadialShadingDictionary. + + + + + + + + + + Overridden. + + + + + Represents the post script shading pattern dictionary. + + + + + + Initializes a new instance of the class. + + The shading. + + + + Gets the name. + + The name. + + + + Represents the post script document. + + + + + + Initializes a new instance of the class. + + The width of image. + The height of image. + + + + Gets the graphics. + + Returns new PostScriptGraphics instance. + + + + Saves image to the specified stream. + + The stream. + + + + Saves image to the file. + + The name of file. + + + + Gets the dictionaries. + + The dictionaries. + + + + Gets the size of image. + + The size. + + + + Provides the methods to draw into post script image. + + + + + + Initializes a new instance of the class. + + + + + Gets the real graphics. + + The size. + Return real graphics. + + + + Gets the post script image. + + Returns PostScriptImage object. + + + + Saves the specified name. + + The name. + + + + Calls the back method. + + The sender. + The instance containing the event data. + + + + PRXs the draw path. + + The PRMS. + + + + PRXs the rotate transform. + + The PRMS. + + + + PRXs the fill path. + + The PRMS. + + + + PRXs the draw polygon. + + The PRMS. + + + + PRXs the fill polygon. + + The PRMS. + + + + PRXs the draw rectangle. + + The PRMS. + + + + PRXs the fill rectangle. + + The PRMS. + + + + PRXs the translate transform. + + The PRMS. + + + + PRXs the draw line. + + The PRMS. + + + + PRXs the draw bezier. + + The PRMS. + + + + PRXs the clear. + + The PRMS. + + + + PRXs the draw string. + + The PRMS. + + + + PRXs the set clip. + + The PRMS. + + + + PRXs the intersect clip. + + The PRMS. + + + + PRXs the reset clip. + + + + + PRXs the begin container. + + + + + PRXs the end container. + + + + + PRs the xset_ transform. + + The PRMS. + + + + Enable or Disable the editable text for chart. + + + + + The Candle Chart rendering class. + + + + + Represents the column type renderer. + + + + + + Base class for all renderers. Each renderer is responsible for rendering one data series + (please refer to ) inside of the chart area. ChartSeriesRenderer + provides the basic plumbing that is needed by all renderers. It is not an abstract class. + It is used as the renderer for the scatter plot since the scatter plot needs only basic + point rendering at the correct position. + + + You can derive from ChartSeriesRenderer to create your own renderers. + + + + + + The number of polygons of cylinder + + + + + The number of polygons of spline + + + + + The owner series. + + + + + Internal member. + + + + + The series style. + + + + + Gets the minimal points delta. + + + + + + Initializes a new instance of the class. + + + + ChartSeries that will be rendered by this renderer instance. + + + + + + Method to dispose ChartSeriesRenderer object + + + + + Renders chart by the specified args. + + The args. + + + + Renders chart by the specified args. + + The args. + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + + + The graphics object that is to be used for rendering. + + + + + + Renders series name in the minimal position of all axes. + + + + The graphics object that is to be used for rendering. + + + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + + + The graphics object that is to be used for rendering. + + + + + + Renders series name in the minimal position of all axes. + + + + The graphics object that is to be used for rendering. + + + + + + Draws the icon on the legend. + + Instance of . + Bounds of icon. + If is true method draws the shadow. + of shadow. + + + + Draws the icon on the legend. + + Index of point. + Instance of . + Bounds of icon. + If is true method draws the shadow. + of shadow. + + + + Checks the count of values for rendering. + + True if renderer can to render the series. + + + + Sort the stacking sereies Y values. + + True if renderer can to render the series. + + + + Computes the size of necessary rectangle for the rendering. + + of minimal rectangle. + + + + Sets the chart to representation. + + The chart. + + + + Gets character point by index. Used for symbols and fancy tooltips. + + Index of point. + + + + + Updates by specified flags. + + The flags. + + + + Updates the points cache. + + The instance containing the event data. + + + + Draws the specified point in specified style + + Graphics object + Chart Point + Style of the point + index of the point + + + + Returns the next or previous visible point + + Collection of points + Index of the current point in collection + Index of the next or previous visible point + A boolean value specifiying whether the function should find next or previous visible point from index + Returns a point representing the screen co-ordinate of the next or previous visible chart point + + + + Returns the next or previous visible point index + + Collection of points + Index of the current point in collection + A boolean value specifiying whether the function should find next or previous visible point from index + An integer representing the index of next or previous visible point + + + + Returns the next or previous visible chart point + + Collection of points + Index of the current point in collection + Index of the next or previous visible point + A boolean value specifiying whether the function should find next or previous visible point from index + Returns a point representing the next or previous visible chart point + + + + Returns the next or previous visible chart styled point + + Collection of points + Index of the current point in collection + Index of the next or previous visible point + A boolean value specifiying whether the function should find next or previous visible point from index + Returns a point representing the next or previous visible chart styled point + + + + Remove duplicate values in the array + + Array of points + Array of points without any duplicate values + + + + Returns an array of visible chart points + + Array of points + Array of visible points + + + + Returns an array of visible chart points + + Chart point indexer collection + Array of visible points + + + + Returns an array of visible points from the styled point collection + + Array of styled points + Array of visible styled points + + + + Gets the point by value for series. + + The ChartPoint. + Returns Real Point for the Specified ChartPoint + + + + Clones the points and shifts by offset. + + + + + + + + Calculates depth offset. + + Series offset. + + + + Gets the depth size of series. + + + + + + Gets the this series offset. + + + + + + Gets the depth offset of series. + + + + + + Overloaded. Calculates step point's offsets in derived classes to draw correctly series with close or same values. + This method is needed only in cases when series are rendered in 3D mode. + It fixes problems with overlapped series. + + + + + + Calculates step point's offsets in derived classes to draw correctly series with close or same values. + This method is needed only in cases when series are rendered in 3D mode. + It fixes problems with overlapped series. + + + + + + + Returns the up interior for financial chart types. + + The base interior of chart. + The for the up price sectors. + + + + Returns the down interior for financial chart types. + + The base interior of chart. + The for the down price sectors. + + + + Draws 3D Spline from points array and additionally second derivatives added in y2 array. + Remember that second derivatives should be calculated in naturalSpline function and + improper y2[] values can cause improper spline drawing. + + + + + + + + + + + Adds all extremum points to new arrays. This method is needed to imitate 3D Spline strip. + + + + + + + + + Given the array of chart points. The procedure returns array of second derivatives of cubic splines at this points. + Then we can get bezier curve coordinates from the second derivatives and points array. + + The points. + The ys2. + + + + Given the array of chart points. The procedure returns array of second derivatives of cubic splines at this points. + Then we can get bezier curve coordinates from the second derivatives and points array. + + The points. + The ys2. + + + + Gets bezier curve points from cubic spline curve defined by two points and two second derivative y2 at this points. + + Start of spline curve + End of spline curve + Second y derivative x at start point + Second y derivative x at end point + First Bezier curve point + Second Bezier curve point + Third Bezier curve point + Fourth Bezier curve point + + + + Gets the bezier control points. + + The point1. + The point2. + The ys1. + The ys2. + The control point1. + The control point2. + Index of the y. + + + + Gets bezier curve points from cubic spline curve defined by two points and two second derivative y2 at this points. + + Start of spline curve + End of spline curve + Second y derivative x at start point + Second y derivative x at end point + First Bezier curve point + Second Bezier curve point + Third Bezier curve point + Fourth Bezier curve point + + + + Given the array of points. The procedure will fit the canonical spline curve to pass through all the points. + Note: The curve will not be "function" line. There can be few Y values for one X value; + + + Canonical spline tension + + Bezier points array. The length of this array is 4n, where n is number of intervals (number of points - 1) + + + + + Splits the bezier curve. + + The p0. + The p1. + The p2. + The p3. + The t0. + The PB0. + The PB1. + The PB2. + The PB3. + The pe0. + The pe1. + The pe2. + The pe3. + + + + Draws beziers curve. + + The to render curve. + The array of to render curve. + The array of to fill. + The curve offset. + The to fill curve body. + The to render curve border. + that represent curve. + + + + Creates the vertical cylinder 3D geometry. + + The bounds of the cylinder. + The offset. + + + + + Creates the horizontal cylinder 3D top geometry. + + The bounds of the cylinder. + The offset. + + that represent cylinder. + + + + + Creates the vertical cylinder 3D top geometry. + + The bounds of the cylinder. + The offset. + + + + + Creates the horizontal cylinder 3D geometry. + + The bounds of the cylinder. + The offset. + + that represent cylinder. + + + + + Gets the left bezier point. + + The start point. + The first control point. + The second control point. + The end point. + + + + Gets the right bezier point. + + The start point. + The first control point. + The second control point. + The end point. + + + + Gets the top bezier point. + + The start point. + The first control point. + The second control point. + The end point. + + + + Gets the bottom bezier point. + + The start point. + The first control point. + The second control point. + The end point. + + + + Draw 3D lines. + + The to render lines. + The lines' points. + The offset. + The to fill lines body. + The to render lines border. + The array of to draw lines. + that represent lines. + + + + Draw 3D lines. + + The to render lines. + The lines' points. + The offset. + The to fill lines body. + The to render lines border. + that represent lines. + + + + Draw for given Graphical path. + + Chart Graph. + Graphical Path. + BrushInfo. + Pen. + + + + Calculates for given chart points. + + The first chart point to calculate rectangle. + The second chart point to calculate rectangle. + Calculated rectangle. + + + + Helper method to render a 3D rectangle. + + The graphics object that is to be used for rendering. + The rectangle that is to be drawn. + The Offset in 3D. + The brush that is to be used for filling the rectangle sides. + The pen that is to be used for drawing the rectangle sides. + + + + Creates that represent box. + + The bounds of the box. + The value indicates that box is in 3D. + that represent box. + + + + Creates that represent box. + + The bounds of the box. + The value indicates that box is in 3D. + that represent box. + + + + Creates that represent box. + + The bounds of the box. + The value indicates that box is in 3D. + that represent box. + + + + Renders the symbol that is to be associated with a point. Delegates to the class. + + + The graphics object that is to be used. + The associated point. + + + + Renders the symbol that is to be associated with a point. Delegates to the class. + + + The graphics object that is to be used. + The style that is to be used. + Anchor point. + Indicates whether a marker should be drawn. + + + + Adds the symbol region by the specified point index. + + The associated point. + + + + Called by several derived renderers to create a region from a 'Hit Test' circle. By overriding this + method you can expand, contract or change this region. + + The anchor point. + The radius of the circle that is to be used as the base for the region. + Region object that is commonly used for hit testing, for display of tooltips and the like. + + + + Gets the 3D circle. + + The center of circle. + The radius. + + + + + Brush information is retrieved from the style associated with the index of the point to be rendered. + It is then changed for special cases such as when automatic highlighting is enabled. + + Index value of the point for which the brush information is required. + Brush information that is to be used for filling elements displayed at this index. + + + + Brush information is retrieved from the style associated with the index of the point to be rendered. + It is then changed for special cases such as when automatic highlighting, series highlighting, symbol highlighting are enabled. + + Index value of the point for which the brush information is required. + Brush information that is to be used for filling elements displayed at this index. + The color. + + + + + Brush information is retrieved from the style associated with the index of the point to be rendered. + It is then changed for special cases such as when automatic highlighting is enabled. + + Brush information that is to be used for filling elements displayed at this index. + + + + Brush information is retrieved from the style associated with the index of the point to be rendered when SeriesHighlight is enabled. + It is then changed for special cases such as when automatic highlighting is enabled. + + Brush information that is to be used for filling elements displayed at this index. + Specfies the series index. + Interior of the specified series.. + Series . + + + + Gets the symbol highlight brush. + + Index of the ser. + The brush. + The style. + + + + + Gets the phong interior. + + The base brush info. + Color of the light. + The light alpha. + The phong alpha. + + + + + Calculates the point that is considered to be the low anchor point of a series. This + value is used when rendering text below chart point elements. + + Index value of the point for which the value is requested. + Calculated value that is to be used as the base anchor point. + + + + Overloaded. Given a point index, returns the point to be plotted on the chart. + + X Index value + Y Index value + Point to be plotted + + + + Given a point index, returns the point to be plotted on the chart. + + X index. Y Index is taken as 0. + Point to be plotted. + + + + Compute real point from specified + + The . + + + + + Compute real point from specified coordinates. + + The x. + The y. + + + + + Gets the point from value. + + The CPT. + + + + + Gets the point from value. + + The . + The index of Y value. + + + + + Gets the side by side range. + + + + + + Gets the "side by side" info. + + + + + + Overloaded. This method is used when series are rendered as stacked data. The value returned is a cumulative value of + Y from all series that are below the series currently being rendered. + + + Value that gives the position from which this series should be rendered. + + + + Overloaded. This method is used when series are rendered as stacked data. The value returned is a cumulative value of + Y from all series that are below the series currently being rendered. + + The index of point. + Value that gives the position from which this series should be rendered. + + + + Overloaded. This method is used when series are rendered as stacked data. The value returned is a cumulative value of + Y from all series that are below the series currently being rendered. + + The index of point. + if set to true the Y value of point will be added to result. + Value that gives the position from which this series should be rendered. + + + + Returns the anchor point at which the symbol associated with an index is to be + displayed. + + The point. + + + + + Gets the symbol vector. + + The point. + + + + + + + + + + + + Gets the symbol coordinate for hilo series + + Index of the point + Location of the point at specified index + + + + Gets the symbol coordinates. + + The styled point. + + + + + Given a point index, returns the X value to be plotted on the chart. + + X index + Y index + X value to be plotted. + + + + Given a point and y value, returns the X value to be plotted on the chart. + + The chart point + The Y index + X value to be plotted. + + + + Given an X coordinate value, returns the display value. + + Coordinate on the axis. + Display value. + + + + Given the point indices, returns the Y value to be plotted on the chart. + + X index + Y index + Y value to be plotted + + + + Given a point and y value, returns the Y value to be plotted on the chart. + + The chart point value. + The Y index + Y value to be plotted + + + + Given a Y coordinate value, returns the display value. + + + Display value. + + + + This function transforms x vales of series points to index vales. + Also it populates index hash table. + + The X value of . + + + + + Gets the angle value. + + The cp. + The series. + + + + + Gets the angle by X value. + + The index. + The cp. + The series. + + + + + Returns the value form requiring by X axis. + + Instance of + Index of Y value from specified point. + Require value for axis. + + + + Returns the value form requiring by Y axis. + + Instance of + Index of Y value from specified point. + Require value for axis. + + + + Measures the X range. + + + + + + Measures the X range. + + + + + + Overloaded. Renders text. Performs positioning and delegates to the class. + + Renders text. Performs positioning and delegates to the class. + The associated point. + Point that is to be used as the anchor. + + + + Overloaded. Renders text. Performs positioning and delegates to the class. + + Renders text. Performs positioning and delegates to the class. + The associated point. + Point that is to be used as the anchor. + + + + + + callout object + callout rect bounds + point position + + + + Changing the callout bounds position when it was rendering outside the chart area. + + The callout. + The callout shape x and y position. + The callout shape width and height. + The callout text offsetX. + The callout text offsetY. + + + + + + callout object + callout rect bounds + point position + + + + Renders text. Performs positioning and delegates to the class. + + The graphics object that is to be used. + The associated point. + The point that is to be used as anchor. + The display size of the string. + + + + Overloaded. Renders elements such as Text and Point Symbols. + + The graphics object that is to be used. + + + + Renders elements such as Text and Point Symbols. + + The graphics object that is to be used. + + + + Renders the adornment. + + The g. + The point. + + + + Gets the tool tip. + + + + + + Gets the tooltip by the specified index. + + The index. + + + + + + + + + + + + + + Creates the space separator. + + The Z coordinate. + + + + + Delegates to to return the style associated with this index. + You can use this override to specify additional style attributes on a renderer basis. + + Index value of the point for which the style is required. + Offline composed copy of the style associated with the index. + + + + Fills the styles. + + + + + Determines whether the specified point is visible. + + The ChartPoint instance. + + true if the specified point is visible; otherwise, false. + + + + + Generates the array of points with specified style. + + + + + + Creates the styled point. + + The index. + + + + + Calculate the visible indices of points for rendering. + + + + + + Computes the array of , using for indicating unempty points. + + The visible range of points. + + + + + Gets the phong shading blend. + + Color of the ambient. + Color of the diffusive. + Color of the light. + The alpha. + The phong_alpha. + The colors. + The positions. + + + + Gets the total depth. + + + + + + Gets the points cache. + + + + + + Inserts the point. + + The index. + + + + Removes the point. + + The index. + + + + Updates the point. + + The index. + + + + Resets the cache. + + + + + Gets the styled point. + + Index of the point. + + + + + calculates the points to draw when huge data source binded to chart for improving the performance. + + + + + Retruns all Styled Point Collection. + + + + + Number of layer for specified series. + + + + + Count of the chart layers. + + + + + Indicates how much space this type will use. + + + + + Gets the center of . + + The center. + + + + Gets the series style. + + The series style. + + + + Gets array of geometry primitives for sorting before visualizting. + + + + + Computes the array of , using for indicating unempty points. + + + + + Duplicates the property. + + + + + Returns the bounds that this renderer operates in. + + + + + Reference to the instance that uses this instance. + + + + + Reference to the instance that uses this instance. + + + + + Returns the X coordinate of the origin. This property will return the correct coordinate even if the X axis has a custom + origin. + + + + + Returns the Y coordinate of the origin. This property will return the correct coordinate even if the Y axis has a custom + origin. + + + + + This setting allows chart types that are normally not rendered inverted to be combined with those that are + normally rendered inverted. For example Bar charts are rendered inverted. The Bubble chart can be combined with + Bar charts because it sets IgnoreSeriesInversion to true. When this property is set to true the renderer will ignore + the inversion setting on the series being rendered. + + + + + The location of the origin as used for rendering. + + + + + Returns the X axis object that the current renderer is tied to. + + + + + + Returns the Y axis object that the current renderer is tied to. + + + + + + Get description of regions. + + + + + Gets count of require Y values of the points. + + + + + Gets a value indicating whether points should be sort. + + true if points should be sorted; otherwise, false. + + + + True if axes is inverted. + + + + + True if series using the radial axes. + + + + + Computes and returns the space occupied by each interval on the series being rendered. + + + + + Calculates and returns the number of display units that are used per logical(value) unit. + + + + + This class is using for the caching points and styles. + + + + + Initialize the new instance. + + + + + + + Method to dispose ChartStyledPoint object + + + + + 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 object that is a copy of the current instance. + + + A new object that is a copy of this instance. + + + + + Gets or sets the X. + + The X. + + In indexed mode it's the index of real X value. + + + + + Gets or sets the Y values. + + The Y values. + + + + Gets or sets the Y values. + + The Y values. + + + + Gets or sets a value indicating whether this point is visible. + + + true if this point is visible; otherwise, false. + + + + + Gets or sets the specified style of point. + + + + + Gets or sets the tooltip of point. + + + + + This class is using for sorting by X or Index values. + + + + + + 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. + + Neither x nor y implements the interface.-or- x and y are of different types and neither one can handle comparisons with the other. + + + + This class is using for sorting by Y or Index values. + + + + + + This class is using for sorting by Y or Index values. + + + + + + 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. + + Neither x nor y implements the interface.-or- x and y are of different types and neither one can handle comparisons with the other. + + + + This class is using for descending order sorting by X or Index values. + + + + + + Initializes a new instance of the class. + + + + + 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. + + Neither x nor y implements the interface.-or- x and y are of different types and neither one can handle comparisons with the other. + + + + + + + + + Initializes a new instance of the class. + + + + + Compares two objects and returns a value indicating whether one is equal to the other. + + + + + + + + Initializes a new instance of the class. + + + + + Compares two objects and returns a value indicating whether one is equal to the other. + + + + + This class is using for descending order sorting by Y or Index values. + + + + + + Initializes a new instance of the class. + + + + + 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. + + Neither x nor y implements the interface.-or- x and y are of different types and neither one can handle comparisons with the other. + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + Draws the specified point in specified style + + Graphics object + Chart Point + Style of the point + + + + Renders the specified args. + + The args. + + + + Renders the specified args. + + The args. + + + + Renders the adornment. + + + The point. + + + + Gets the point by value for series. + + The . + Returns PointF. + + + + Computes the necessary range of X axis. + + Returns the DoubleRange. + + + + Calculates the sides. + + The . + The side-by-side info. + The x1. + The x2. + + + + Gets the column bounds. + + The args. + The styped point. + The x1. + The y1. + The x2. + The y2. + Returns RectangleF. + + + + Checks the column bounds. + + if set to true axes is inverted. + The rect. + + + + Checks the column bounds. + + if set to true axes is inverted. + The rect. + + + + Calculates the sides. + + The . + The side-by-side info. + The x1. + The x2. + + + + Gets the symbol coordinates. + + The point. + Returns Synbol Coordinates. + + + + Brush information is retrieved from the style associated with the index of the point to be rendered. + It is then changed for special cases such as when automatic highlighting is enabled. + + + Brush information that is to be used for filling elements displayed at this index. + + + + + Brush information is retrieved from the style associated with the index of the point to be rendered. + It is then changed for special cases such as when automatic highlighting is enabled. + + Index value of the point for which the brush information is required. + + Brush information that is to be used for filling elements displayed at this index. + + + + + Draws the icon on the legend. + + Instance of . + Bounds of icon. + If is true method draws the shadow. + of shadow. + + + + Indicated how much space this type will fill. + + + + + + Gets count of require Y values of the points. + + + + + + Get description of regions. + + + + + + Gets a value indicating whether this instance is fixed width. + + + true if this instance is fixed width; otherwise, false. + + + + + Initializes a new instance of the class. + + The ChartSeries. + + + + Draw the specified point with specified style + + Graphics + Chart Point + Point Style + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + Renders the specified args. + + The ChartRenderArgs3 args. + + + + Draws the icon on the legend. + + Instance of . + Bounds of icon. + If is true method draws the shadow. + of shadow. + + + + Gets count of require Y values of the points. + + The Require YValues Count. + + + + Get description of regions. + + The RegionDescription. + + + + + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + Renders chart by the specified args. + + The args. + + + + Renders chart by the specified args. + + The args. + + + + Draws icon. + + The to render icon. + The bounds of icon. + The value indicates that draw shadow. + The shadow . + + + + Gets count of require Y values of the points. + + + + + + + + + + + Initializes a new instance of the class. + + + + + + Get description of regions. + + + + + + + + + + + Initializes the class. + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The . + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + Draws the icon on the legend. + + Instance of . + Bounds of icon. + If is true method draws the shadow. + of shadow. + + + + Calculates the Y range. + + The index. + + + + + Gets count of require Y values of the points. + + + + + + Get description of regions. + + + + + + This setting allows chart types that are normally not rendered inverted to be combined with those that are + normally rendered inverted. For example Bar charts are rendered inverted. The Bubble chart can be combined with + Bar charts because it sets IgnoreSeriesInversion to true. When this property is set to true the renderer will ignore + the inversion setting on the series being rendered. + + + + + + Summary description for ColumnRangeRenderer. + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + Draws the specified point in specified style + + Graphics object + Chart Point + Style of the point + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + Gets count of require Y values of the points. + + + + + + Get description of regions. + + + + + + Gets a value indicating whether this instance is fixed width. + + + true if this instance is fixed width; otherwise, false. + + + + + The ChartCustomPoints Renderering class. + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + Gets count of require Y values of the points. + + + + + + Summary description for ChartStackedColumn100PercentRenderer. + + + + + Represents the stacking-column type renderer. + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + Draws the specified point in specified style + + Graphics object + Chart Point + Style of the point + + + + Renders the specified args. + + The args. + + + + Renders the specified args. + + The args. + + + + Gets the point by value for series. + + The . + + + + + Measures the X range. + + + + + + Indicated how much space this type will fill. + + + + + + Get description of regions. + + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + Get description of regions. + + + + + + The FullStackingArea Renderering class. + + + + + The StackingArea chart renderering class. + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + Renders chart by the specified args. + + The args. + + + + + + + + + + Draws the icon on the legend. + + Instance of . + Bounds of icon. + If is true method draws the shadow. + of shadow. + + + + Measures the X range. + + + + + + + + + + + Gets count of require Y values of the points. + + + + + + Get description of regions. + + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + Get description of regions. + + + + + + The FullStackingBar Renderering class. + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + Get description of regions. + + + + + + Represents the funnel type renderer. + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + Renders chart by the specified args. + + The args. + + + + Render the chart type. + + The . + if set to true title is shown. + + + + Render the chart type. + + The . + if set to true title is shown. + + + + Creates the layers and labels. + + The points. + The g. + The drawing rect. + + + + Optimizations the width of the func_ Y is. + + The k. + + + + + Optimizations the height of the func_ Y is. + + The CTG. + + + + + Calculates the layers and labels size loc and get their bounding rect. + + + + + + Fights the with labels intersection. + + + + + Fights the with labels and connection lines intersection. + + + + + Gets the labels rect. + + The labels. + + + + + Gets the layers rect. + + The layers. + + + + + Computes the size of necessary rectangle for the rendering. + + + + of minimal rectangle. + + + + + Gets all value. + + + + + + Calculate value indicates that rectangles are stacked. + + The first rectangle to check. + The second rectangle to check. + True if given rectangles are stacked, otherwise false. + + + + Gets the total depth. + + + + + + Indicates how much space this type will use. + + + + + + Gets count of require Y values of the points. + + + + + + The AccumulationChartsLayer class. + + + + + Gets the height of the gap ratio. + + + + + + Gets the angle tangent. + + + + + + Gets the min drawing rect. + + + + + + Gets the outer drawing rect. + + + + + + Gets the inner drawing rect. + + + + + + Gets down drawing rect. + + + + + + Gets up drawing rect. + + + + + + Gets the full drawing rect. + + + + + + Determines whether this instance is widding. + + + true if this instance is widding; otherwise, false. + + + + + Needs the top side. + + + + + + Initializes the class. + + + + + Creates instance of the AccumulationChartsLayer. + + The layer index. + The top center point. + The layer height. + The value indicates that is 3D series. + The offset ratio. + The chart funnel mode. + + + + Creates instance of the AccumulationChartsLayer. + + The layer index. + The top center point. + The upper width. + The down width. + The layer height. + The gap ratio. + The value indicates that is 3D series. + The offset ratio. + The chart funnel mode. + + + + Draw funnel series. + + The to renderer series. + The to fill series. + The to render series border. + Calculated output . + + + + Draw 3D. + + The brush info. + The pen. + + + + + Gets the index. + + The index. + + + + Gets or sets up width. + + Up width. + + + + Gets or sets down width. + + Down width. + + + + Gets or sets the height. + + The height. + + + + Gets or sets the gap ratio. + + The gap ratio. + + + + Gets or sets the width of the min. + + The width of the min. + + + + Gets or sets the top center point. + + The top center point. + + + + Gets a value indicating whether [series3 D]. + + true if [series3 D]; otherwise, false. + + + + Gets or sets a value indicating whether [top level]. + + true if [top level]; otherwise, false. + + + + Gets the funnel mode. + + The funnel mode. + + + + + Gets or sets the figure base. + + The figure base. + + + + Gets or sets the rotation ration. + + The rotation ration. + + + + Gets or sets the offset3 D ration. + + The offset3 D ration. + + + + Gets or sets the series. + + The series. + + + + Gets or sets the depth position. + + The depth position. + + + + The AccumulationChartsLabel class. + + + + + Initializes a new instance of the class. + + The index. + The point. + The style. + The layer. + The attach mode. + + + + Initializes a new instance of the class. + + The index. + The point. + The style. + The layer. + The attach mode. + The series. + Index of the LBL. + + + + Calculatess the size. + + The g. + + + + + Calculates the location. + + The column in rect. + + + + + Gets the connectio line points. + + The p1. + The p2. + + + + Tries to avoid rectangle intersection. + + The r1. + + + + Tries to avoid line intersection. + + The p1. + The p2. + + + + Draws the specified graphics. + + The g. + + + + Draw 3D. + + + + + + Calculates the connection point. + + + + + + Gets the index. + + The index. + + + + Gets or sets the rectangle. + + The rectangle. + + + + Gets the style. + + The style. + + + + Gets the point. + + The point. + + + + Gets or sets the connect point. + + The connetc point. + + + + Gets the not correct point. + + The not correct point. + + + + Gets or sets the value. + + The value. + + + + Gets or sets the width of the max text. + + The width of the max text. + + + + Gets the layer. + + The layer. + + + + Gets the attach mode. + + The attach mode. + + + + Gets or sets the label placement. + + The label placement. + + + + Gets or sets the label style. + + The label style. + + + + Gets a value indicating whether [allow Y offset]. + + true if [allow Y offset]; otherwise, false. + + + + Gets or sets the vertical padding. + + The vertical padding. + + + + Gets or sets the horizontal padding. + + The horizontal padding. + + + + Gets or sets the series. + + The series. + + + + Gets or sets the index of the label. + + The index of the label. + + + + The AccumulationChartsLabelComparer class. + + + + + 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 is less than . Zero equals . Greater than zero is greater than . + + Neither nor implements the interface.-or- and are of different types and neither one can handle comparisons with the other. + + + + The AccumulationChartsLabelAttachMode enumerator. + + + + + AccumulationChartsLabelAttachMode is Top. + + + + + AccumulationChartsLabelAttachMode is Center. + + + + + AccumulationChartsLabelAttachMode is Bottom. + + + + + The Gantt chart rendering class. + + + + + Initializes a new instance of the class. + + The ChartSeries. + + + + Draws the specified point in specified style + + Graphics object + Chart Point + Style of the point + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + Gets the connection line. + + From. + To. + The offset. + Returns the PointF array. + + + + Gets count of require Y values of the points. + + + + + + Get description of regions. + + + + + + + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + Renders chart by the specified args. + + The args. + + + + Renders chart by the specified args. + + The args. + + + + Draws the color swatch element. + + The args. + + + + + Arranges elements in vertical. + + The rects. + The bounds. + + + + Arranges elements in horizontal. + + The rects. + The bounds. + + + + Arranges elements in ractangles. + + The rects. + The bounds. + + + + Draws the rectangle. + + The args. + The rect. + + + + + Return the truncate text. + + The text. + The config item. + + + + + Returns the maximal length of rectangle. + + The rects. + The index. + The bounds. + if set to true [vertival]. + + + + + Computes the area coeficient. + + The rects. + + + + + + Leprs the color. + + The item. + The value. + + + + + Compares the heat rectangles. + + The x. + The y. + + + + + Overloaded. Renders elements such as Text and Point Symbols. + + The graphics object that is to be used. + + + + Renders elements such as Text and Point Symbols. + + The graphics object that is to be used. + + + + Get description of regions. + + + + + + Gets count of require Y values of the points. + + + + + + Indicates how much space this type will use. + + + + + + + + + + + The HiLoOpenClose Renderering class. + + + + + The Chart HiLo Renderering class. + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + Draws the specified point in specified style + + Graphics object + Chart Point + Style of the point + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + Brush information is retrieved from the style associated with the index of the point to be rendered. + It is then changed for special cases such as when automatic highlighting is enabled. + + + Brush information that is to be used for filling elements displayed at this index. + + + + + Brush information is retrieved from the style associated with the index of the point to be rendered. + It is then changed for special cases such as when automatic highlighting is enabled. + + Index value of the point for which the brush information is required. + + Brush information that is to be used for filling elements displayed at this index. + + + + + Draws chart's icon. + + The to render icon. + The icon bounds. + The value indicates to draw shadow or not. + The to render shadow. + + + + Get description of regions. + + + + + + Gets count of require Y values of the points. + + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + Draws the specified point in specified style + + Graphics object + Chart Point + Style of the point + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + Get description of regions. + + + + + + Gets count of require Y values of the points. + + + + + + The Histogram Renderering class. + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + Normal Distribution function. + + The x. + The m. + The sigma. + + + + + Brush information is retrieved from the style associated with the index of the point to be rendered. + It is then changed for special cases such as when automatic highlighting is enabled. + + + Brush information that is to be used for filling elements displayed at this index. + + + + + Brush information is retrieved from the style associated with the index of the point to be rendered. + It is then changed for special cases such as when automatic highlighting is enabled. + + Index value of the point for which the brush information is required. + + Brush information that is to be used for filling elements displayed at this index. + + + + + Draws the icon on the legend. + + Instance of . + Bounds of icon. + If is true method draws the shadow. + of shadow. + + + + Measures the Y range. + + + + + + Gets the histogram intervals values. + + The cpwi A. + The histogram intervals. + The histogram values. + + + + Gets the maximal value of histogram. + + + + + + Gets the histogram mean and deviation. + + The cpwi A. + The mean. + The standart deviation. + + + + Gets count of require Y values of the points. + + + + + + + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + + + + + + + + + + Gets count of required Y values of the points. + + + + + + Represents the layout information of point label. + + + + + Creates instance of the ChartLabel. + + The connection point. + The symbol point. + The size of the label. + The label offset. + + + + Draw pointing line. + + The to render line. + Line style. + The Chart Series + + + + Gets the size. + + The size. + + + + Gets the offset. + + The offset. + + + + Gets the connect point. + + The connect point. + + + + Gets the symbol point. + + The symbol point. + + + + Gets or sets the rect. + + The rect. + + + + Provides the 'SmartLabels' feature. + + + + + Initializes a new instance of the class. + + The work area. + + + + Add label to collection. + + The label to add. + + + + Add point to collection. + + Point to add. + + + + Clears the labels. + + + + + Draws the labels to the specified . + + The . + + + + + + + + + + Exclude2s the specified rect. + + The rect. + + + + Excludes the specified rect. + + The rect. + + + + Excludes the specified p. + + The p. + + + + Finds the free space. + + The label. + + + + + Calculates the best place. + + The label. + The rect. + + + + + Checks the size of the with min. + + The rect. + The result. + + + + + Calculates the radius. + + The PT1. + The PT2. + + + + + Calculates the center. + + The rect. + + + + + Gets or sets the size of the minimal. + + The size of the minimal. + + + + Gets the count of labels. + + The count. + + + + Gets the at the specified index. + + + + + + Compares by the area value. + + + + + 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. + + Neither x nor y implements the interface.-or- x and y are of different types and neither one can handle comparisons with the other. + + + + The Line chartrendering class. + + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + Renders the specified args. + + The args. + + + + Renders chart by the specified args. + + The args. + + + + Renders the adornment. + + + The point. + + + + Draws chart's icon. + + The to render icon. + The icon bounds. + The value indicates to draw shadow or not. + The to render shadow. + + + + Updates the points cache. + + The instance containing the event data. + + + + Updates by specified flags. + + The flags. + + + + Measures the X range. + + + + + + Measures the Y range. + + + + + + Get description of regions. + + + + + + Gets count of require Y values of the points. + + + + + + Gets a value indicating whether points should be sort. + + true if points should be sorted; otherwise, false. + + + + Represents the polygon with the tangent. + + + + + Initializes a new instance of the class. + + The polygon. + The tangent. + + + + Gets or sets the polygon. + + The polygon. + + + + Gets or sets the tangent. + + The tangent. + + + + Compares the by value. + + + + + 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. + + Neither x nor y implements the interface.-or- x and y are of different types and neither one can handle comparisons with the other. + + + + + + + + + + + + + + + + + + + + Renders chart by the specified args. + + The args. + + + + + + + + + + + + + + + + + + + + center angle of the slice + + + + + + + callout label bounds + sector center position + pie label + + + + Changing the callout bounds position when it was rendering outside the chart area. + + The callout shape x and y position. + The callout shape width and height. + + + + + + + point callout + callout rectangle bounds + point position + + + + + + + + + + + + + + + + + + + + Overloaded. Renders elements such as Text and Point Symbols. + + The graphics object that is to be used. + + + + Renders elements such as Text and Point Symbols. + + The graphics object that is to be used. + + + + + + + + + + + + Gets the cost. + + The segment. + + + + + Gets the cost. + + The angle. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Measures the labels. + + The labels. + The g. + The radius. + + + + + + + + + + + + + + Method to wrap overlapping labels + ChartGraph object + Array of labels in the pie + + + + + + + + + + + + + + + + + + + + + + + + + Draws the icon of pie chart on the legend. + + Index of point. + Instance of . + Bounds of icon. + If is true method draws the shadow. + of shadow. + + + + Indicates how much space this type will use. + + + + + + Gets count of require Y values of the points. + + + + + + + + + + + + + + + + Initializes a new instance of the class. + + The point. + The out side rect. + The inner bounds. + The start angle. + The end angle. + The depth. + + + + Renders this instance. + + + + + + Draws sector. + + The graph. + The br info. + The pen. + The type. + The gradient. + + + + Gets the lower region. + + The region data. + + + + + Creates the segment. + + The start angle. + The end angle. + if set to true left side will be created. + if set to true right side will be created. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Gets the inner bounds. + + The inner bounds. + + + + Gets the outer bounds. + + The outer bounds. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Measures the specified g. + + The g. + Width of the max. + + + + + Sets the connect point. + + The point to connect. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Gets the styled point. + + The styled point. + + + + + + + + + + + + + + + + + + + + + + + + Set True if the label placed on top or bo + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Draws the specified graph. + + The graph. + The interior. + The pen. + The ChartSeries. + + + + Gets the region. + + The region data. + + + + + Summary description for PointAndFigureRenderer. + + + + + Constructor. + + + + + + Renders the specified args. + + The args. + + + + Renders the specified args. + + The args. + + + + + + + + + + + + + + + + + + + + Computes the rectangles. + + The series. + + + + + + + + + + + + + + Get description of regions. + + + + + + Gets count of require Y values of the points. + + + + + + + + + + + Represents the pyramid type renderer. + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + Renders chart by the specified args. + + The args. + + + + Creates the layers and labels. + + The points. + The g. + The drawing rect. + + + + Optimizations the func_ pyramid. + + The CTG. + + + + + Optimizations the func_ surface pyramid. + + The CTG. + Returns double. + + + + The Radar chart renderering class. + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + Renders chart by the specified args. + + The args. + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + Brush information is retrieved from the style associated with the index of the point to be rendered. + It is then changed for special cases such as when automatic highlighting is enabled. + + + Brush information that is to be used for filling elements displayed at this index. + + + + + Brush information is retrieved from the style associated with the index of the point to be rendered. + It is then changed for special cases such as when automatic highlighting is enabled. + + Index value of the point for which the brush information is required. + + Brush information that is to be used for filling elements displayed at this index. + + + + + Draws the icon on the legend. + + Instance of . + Bounds of icon. + If is true method draws the shadow. + of shadow. + + + + Gets count of require Y values of the points. + + + + + + Get description of regions. + + + + + + + + + + + + + + + + + Renders chart by the specified args. + + The args. + + + + + + + + + + Draws icon. + + The to render icon. + The bounds of icon. + The value indicates that draw shadow. + The shadow . + + + + + + + + + Get description of regions. + + + + + + Summary description for ChartRenkoRenderer. + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + + + + + + + + + + + + + + + + + + + + + + Gets count of require Y values of the points. + + + + + + + + + + + The Spline chart renderering class. + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + Renders the specified args. + + The args. + + + + Renders the specified args. + + The args. + + + + Draws the 3D bezier line. + + The args. + The pen. + The interior. + The start point. + The first control point. + The second control point. + The end point. + The geometry of line. + + + + Computes the extremums of bezier line. + + The start point. + The end point. + The first control point. + The second control point. + The first intelator. + The second intelator. + Index of the Y value. + + true if extremums is present. otherwise, false. + + + + + Draw icon. + + The graphics to render icon. + The bounds of the icon. + The value indicates draw shadow or not. + The shadow color. + + + + Gets count of require Y values of the points. + + + + + + Gets description of regions. + + + + + Gets a value indicating whether points should be sort. + + true if points should be sorted; otherwise, false. + + + + Initializes a new instance of the class. + + + + + + Gets description of regions. + + + + + + + + + + + + Renders the specified args. + + The args. + + + + + + + + + + + + + Renders the adornment. + + + The point. + + + + + + + + + + + + Brush information is retrieved from the style associated with the index of the point to be rendered. + It is then changed for special cases such as when automatic highlighting is enabled. + + + Brush information that is to be used for filling elements displayed at this index. + + + + + Brush information is retrieved from the style associated with the index of the point to be rendered. + It is then changed for special cases such as when automatic highlighting is enabled. + + Index value of the point for which the brush information is required. + + Brush information that is to be used for filling elements displayed at this index. + + + + + Draws the icon on the legend. + + Instance of . + Bounds of icon. + If is true method draws the shadow. + of shadow. + + + + Gets count of require Y values of the points. + + + + + + Abstract class of series segment. + + + + + The bounds of segment. + + + + + + Clips Rectangle for the segment + + + + + Specifies whether segment region + + + + + The drawing order of segment. + + + + + + Draws the segment to specified . + + The instance. + + + + Gets the region of segment. + + + + + + Gets or sets the bounds of the segement. + + The bounds. + + + + Gets or sets the drawing order of segment. + + The drawing order. + + + + Represents the simple geometry element. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The . + The . + The . + + + + Initializes a new instance of the class. + + The . + The . + The . + The . + + + + Adds the graphical primitive. + + The . + The . + The . + + + + Adds the graphical primitive. + + The . + The . + The . + The . + + + + Draws the segment to specified . + + The instance. + + + + Draws the segment to specified . + + The . + + + + Draws the segment to specified . + + The . + The . + + + + Gets the region of segment. + + + + + + Gets or sets the region data. + + The region data. + + + + The ChartUpdateFlags enumerator. + + + + + None was changed + + + + + Points was changed + + + + + Styles was changed + + + + + Config items was changed + + + + + Indexed mode was changed + + + + + Need update regions + + + + + Axes was changed + + + + + All was changed + + + + + Provides the series render arguments. + + + + + Initializes a new instance of the class. + + The . + The series. + + + + Determines whether the specified coordinates is visible. + + The x. + The y. + + true if the specified x is visible; otherwise, false. + + + + + Determines whether the specified ranges is visible. + + The x range. + The y range. + + true if the specified x range is visible; otherwise, false. + + + + + Gets the rendering point. + + The x. + The y. + + + + + Gets the rectangle. + + The x1. + The y1. + The x2. + The y2. + + + + + Gets or sets the actual X axis. + + The actual X axis. + + + + Gets or sets the actual Y axis. + + The actual Y axis. + + + + Gets the visible range of X axis. + + The X range. + + + + Gets the visible range of Y axis. + + The Y range. + + + + Gets the series is being drawn. + + The series. + + + + Gets or sets the chart. + + The chart. + + + + Gets the index of the series. + + The index of the series. + + + + Gets or sets a value indicating whether this axes is inverted. + + + true if this axes is inverted; otherwise, false. + + + + + Gets a value indicating whether regions should be updated. + + true if regions should be updated; otherwise, false. + + + + Gets or sets the series position in the depth. + + The placement. + + + + Gets or sets the rectangle that represents the bounds of the series that is being drawn. + + The bounds. + + + + Gets or sets the side by side info. + + The side by side info. + + + + Provides the series render arguments in 2D mode. + + + + + Initializes a new instance of the class. + + The . + The series. + + + + Gets the rendering point. + + The x. + The y. + + + + + Gets or sets the object. + + The graph. + + + + Gets or sets the offset. + + The offset. + + + + Gets or sets the depth offset. + + The depth offset. + + + + Gets or sets a value indicating whether is 3D mode. + + true if is 3D mode; otherwise, false. + + + + Provides the series render arguments in 3D mode. + + + + + Initializes a new instance of the class. + + The . + The series. + + + + Gets the by chart values. + + The X value. + The Y value. + + + + + Gets or sets the graph. + + The graph. + + + + Gets or sets the Z. + + The Z. + + + + Gets or sets the depth. + + The depth. + + + + + + + + + + + + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + + + + + + + + + + + + + + + + + Draws icon. + + The to render icon. + The bounds of the icon. + The value indicates that need draw shadow. + The to render shadow. + + + + Gets count of require Y values of the points. + + + + + + The StackingBar chart Renderering class. + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + Get description of regions. + + + + + + + + + + + + + + + + + Renders chart by the specified args. + + The args. + + + + + + + + + + + + + + + + + + Gets count of require Y values of the points. + + + + + + Get description of regions. + + + + + + The StepLine chart Renderering class. + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + Renders the specified args. + + The args. + + + + Renders chart by the specified args. + + The args. + + + + Get description of regions. + + + + + + Gets count of require Y values of the points. + + + + + + Summary description for ThreeLineBreakRenderer. + + + + + Initializes a new instance of the class. + + ChartSeries that will be rendered by this renderer instance. + + + + Renders the specified args. + + The args. + + + + In the base it does not do anything. In derived classes this function does + the rendering. + + The graphics object that is to be used for rendering. + + + + Calculates the tree line break. + + + + + + Gets the rectangle. + + The TLBR. + + + + + Draws the icon on the legend. + + Instance of . + Bounds of icon. + If is true method draws the shadow. + of shadow. + + + + Gets count of require Y values of the points. + + + + + + The TLBRectangle structure. + + + + + Initializes a new instance of the struct. + + The f point. + The s point. + if set to true [neg val]. + The renderer. + + + + Gets the min Y. + + The min Y. + + + + Gets the max Y. + + The max Y. + + + + Gets a value indicating whether [negative value]. + + true if [negative value]; otherwise, false. + + + + Gets or sets the first point. + + The first point. + + + + Gets or sets the second point. + + The second point. + + + + Gets the empty. + + The empty. + + + + The Tornado chart Renderering class. + + + + + Initializes a new instance of the class. + + + + + + Draws the specified point in specified style + + Graphics object + Chart Point + Style of the point + + + + Renders the specified args. + + The args. + + + + Renders the specified args. + + The args. + + + + Indicated how much space this type will fill. + + + + + + Gets count of require Y values of the points. + + + + + + Get description of regions. + + + + + + Compares the segments by the position. + + + + + Initializes a new instance of the class. + + if set to true comparering inversed. + + + + 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. + + Neither x nor y implements the interface.-or- x and y are of different types and neither one can handle comparisons with the other. + + + + Provides the sorting and rendering of segments. + + + + + Adds the segment. + + The segment. + + + + Adds segments form the specified render. + + The render. + + + + Sorts this instance. + + + + + + Draws to the specified . + + The . + + + + Clears this instance. + + + + + Gets or sets a value indicating whether need update regions. + + true if need update regions; otherwise, false. + + + + Gets or sets a value indicating whether axis is inverted. + + true if axis inverted; otherwise, false. + + + + Gets or sets the regions. + + The regions. + + + + Represents the horizontal scrollbar. + + + + + Abstract class that implements the basic functionality of interface. + + + + + + This interface codifies interaction of scrollbars with the . + + + + + Informs this scroll bar that it's complementary scroll bar's visibilty has changed. + + + + Visibility flag. + + + + + + Sets the position of this scroll bar if the scroll bar is contained within the chart. + + + + Bounding rectangle. + + + + + + Resets the scroll bar. + + + + + Event that is to be raised when the zoom buttom that is associated with this scroll bar is clicked. + + + + + Event that is to be raised when value of scroll bar changes. + + + + + Returns the dimensions of the scroll bar. That is the width for vertical scroll bars and the height for horizontal ones. + + + + + Gets or sets the ccroll bar's large change value. + + + + + Gets or sets the scroll bar's maximum value. + + + + + Gets or sets the scroll bar's minimum value. + + + + + Returns the Windows scrollbar instance. + + + + + Gets the zoom button. + + The zoom button. + + + + Indicates whether the chart should attempt to position this scrollbar. + + + + + Gets or sets the scroll bar's small change value. + + + + + Gets or sets the scroll bar's current value. + + + + + Indicates the scroll bar's visibility flag. + + + + + Used for storing chart area reference. + + + + + Used for storing chart area reference. + + + + + The instance. + + + + + The instance. + + + + + Indicates whether complementary scrollbar is visible. + + + + + Indicates the visibility of control. + + + + + Initializes a new instance of the class. + + + + + Informs this scroll bar that it's complementary scroll bar's visibilty has changed. + + Visibility flag. + + + + Sets the position of this scroll bar if the scroll bar is contained within the chart. + + Bounding rectangle. + + + + Creates the scroll bar. + + + + + + Arranges controls. + + + + + Resets the scrollbar. + + + + + + Zooms the button location changed. + + The sender. + The instance containing the event data. + + + + Called when zoom button is size changed. + + The sender. + The instance containing the event data. + + + + Called when zoom button is visible changed. + + The sender. + The instance containing the event data. + + + + Handles the Click event of the zoomButton control. + + The source of the event. + The instance containing the event data. + + + + Handles the ValueChanged event of the scrollbar control. + + The sender. + The instance containing the event data. + + + + Raises the event. + + An that contains the event data. + + + + Gets or sets the scroll bar's large change value. + + + + + + Gets or sets the scroll bar's maximum value. + + + + + + Gets or sets the scroll bar's minimum value. + + + + + + Returns the Windows scrollbar instance. + + + + + + Gets the zoom button. + + The zoom button. + + + + Indicates whether the chart should attempt to position this scrollbar. + + + + + + Gets or sets the scroll bar's small change value. + + + + + + Gets or sets the scroll bar's current value. + + + + + + Gets or sets value indicates visibility of scroll bar. + + + + + Used for storing chart area reference. + + + + + + Used for storing chart area reference. + + + + + + Returns the dimensions of the scroll bar. That is the width for vertical scroll bars and the height for horizontal ones. + + + + + + + Occurs when zoom button is clicked. + + + + + Occurs when scroll value is changed. + + + + + Initializes a new instance of the class. + + + + + + Creates the scroll bar. + + + + + + + Arranges controls. + + + + + Resets the scrollbar. + + + + + + Represents the vertical scrollbar. + + + + + + Initializes a new instance of the class. + + + + + + Creates the scroll bar. + + + + + + + Arranges controls. + + + + + Resets the scrollbar. + + + + + + + + + + + + + + + Placeholder for additional information. Currently does not hold any additional information. + + + + + + + + + Delegate that is to be used when the chart scroll bar value changes. + + + + + Sender. + + + + + Argument. + + + + + + Placeholder for additional information. Currently does not hold any additional information. + + + + + + + + + Delegate that is to be used when the zoom button associated with a chart scroll bar is clicked. + + + + + Sender. + + + + + Argument. + + + + + + Initializes a new instance of the class. + + + + + Gets or sets column space of the each point. + + + + + Gets or sets columncolor of the column series. + + + + + It contains the source list of ColumnSparkline. + + + + + Initializes a new instance of the class. + + + + + Renders the Column type SparkLine. + + The instance containing the event data. + + + + + + + + + + + + + + + + Used to get the negative points of sparkline control. + + + + + Gets or sets the data source of the sparkline control. + + + + + Gets or sets the start point of the sparkline control. + + + + + Gets or sets the end point of the sparkline control. + + + + + Gets or sets the low point of the sparkline control. + + + + + Gets or sets the high point of the sparkline control. + + + + + Gets or sets the control width of the sparkline control. + + + + + Gets or sets the control height of the sparkline control. + + + + + Gets or sets the marker of the sparkline control. + + + + + Gets or sets the line style of the sparkline control. + + + + + Gets or sets the column style of the sparkline control. + + + + + Gets or sets the negative values of the sparkline control. + + + + + Initializes a new instance of the class. + + + + + Gets or sets line color of the Line series. + + + + + Gets or sets width of the line. + Internally Only + + + + + It contains the source list of LineSparkline. + + + + + Initializes a new instance of the class. + + + + + Renders the line type SparkLine. + + The instance containing the event data. + Spakrline. + + + + Initializes a new instance of the class. + + + + + Gets or sets a value indicating whether the High point marker are shown. + + + + + Gets or sets a value indicating whether the Low point marker are shown. + + + + + Gets or sets a value indicating whether the Start point marker are shown. + + + + + Gets or sets a value indicating whether the End point marker are shown. + + + + + Gets or sets a value indicating whether the marker are shown for all line points. + + + + + Gets or sets a value indicating whether the Negative point marker are shown. + + + + + Gets or sets Markercolor for all points. + + + + + Gets or sets Markercolor of the High point. + + + + + Gets or sets Markercolor of the Low point. + + + + + Gets or sets Markercolor of the Start point. + + + + + Gets or sets Markercolor of the End point. + + + + + Gets or sets Markercolor of the Negative point. + + + + + It contains the source list of Sparkline. + + + + + Initializes a new instance of the class. + + + + + Convert the object source item to IEnumerable item. + + + + + It contains the source list of WinLossSparkline. + + + + + Initializes a new instance of the class. + + + + + Renderer the WinLoss type series. + + The instance containing the event data. + + + + + Get interior BrushInfo for points + + + + + The BasicStatisticalFormulas class provides the functionality for the Basic Statistical formulas Mean,Median, . + + + Statistical formulas help end-users to analyze their information as well as create more meaningful data. Statistical formulas are implemented using the Statistics class and can be organized into three general groups: Statistical Tests, Basic Statistical Functions and Utility functions.Statistical formulas help end-users to analyze their information as well as create more meaningful data. + Statistical formulas are implemented using the Statistics class and can be organized into three general groups: Statistical Tests, Basic Statistical Functions and Utility functions. + + + + + Initializes a new instance of the class. + + + + + Calculates mean value of series X values. + + The name of the Series object that stores the first group's data for which an average is required. + Returns a double value that represents the average of all the data points in the given series. + +

The following code demonstrate how to get the average of the data points in a series. +

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ............ + double Mean1=BasicStatisticalFormulas.Mean(series1); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ............. + Dim Mean1 As Double + Mean1=BasicStatisticalFormulas.Mean(series1) + +
+ +

Use this method to calculate the mean (i.e. average) of the points stored in a series.

+

If the specified input series does not exist in the SeriesCollection at the time of the method call than an exception will be thrown.

+
+
+ + + Calculates mean value of series Y values. + + The name of the Series object that stores the first group's data for which an average is required. + Index of the Y value. + + Returns a double value that represents the average of all the data points in the given series. + + +

The following code demonstrate how to get the average of the data points in a series. +

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ............ + double Mean1=BasicStatisticalFormulas.Mean(series1, 0); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ............. + Dim Mean1 As Double + Mean1=BasicStatisticalFormulas.Mean(series1, 0) + +
+ +

Use this method to calculate the mean (i.e. average) of the points stored in a series.

+

If the specified input series does not exist in the SeriesCollection at the time of the method call than an exception will be thrown.

+
+
+ + + Calculates variance of series X values. + + The name of the Series object that stores the group of data. + + A double that represents the variance within the group of data. + + +

The following Code demonstrate how to gets the VarianceUnBasedEstimator of the data points in a series

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ............ + double VarianceUnBased1= Statistics.BasicStatisticalFormulas.VarianceUnBiasedEstimator(series); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ............. + Dim VarianceUnBased1 As Double + VarianceUnBased1=BasicStatisticalFormulas.VarianceUnBiasedEstimator(series) + +
+ +

This method estimates the variance for a sample.

+

If the specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.

+
+
+ + + Calculates variance of series Y values. + + The name of the Series object that stores the group of data. + Index of the Y value. + + A double that represents the variance within the group of data. + + +

The following Code demonstrate how to gets the VarianceUnBasedEstimator of the data points in a series

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ............ + double VarianceUnBased1= Statistics.BasicStatisticalFormulas.VarianceUnBiasedEstimator(series, 0); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ............. + Dim VarianceUnBased1 As Double + VarianceUnBased1=BasicStatisticalFormulas.VarianceUnBiasedEstimator(series, 0) + +
+ +

This method estimates the variance for a sample.

+

If the specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.

+
+
+ + + Calculates variance of series X values. + + The name of the Series object that stores the group of data. + + A double that represents the variance within the group of data. + + /// +

The following Code demonstrate how to gets the VarianceBasedEstimator of the data points in a series

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ............ + double VarianceBased1= Statistics.BasicStatisticalFormulas.VarianceBiasedEstimator(series); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ............. + Dim VarianceBased1 As Double + VarianceBased1=BasicStatisticalFormulas.VarianceBiasedEstimator(series) + +
+ +

This method estimates the variance for a sample.

+

If the specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.

+
+
+ + + Calculates variance of series Y values. + + The name of the Series object that stores the group of data. + Index of the Y value. + + A double that represents the variance within the group of data. + + /// + +

The following Code demonstrate how to gets the VarianceBasedEstimator of the data points in a series

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ............ + double VarianceBased1= Statistics.BasicStatisticalFormulas.VarianceBiasedEstimator(series, 0); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ............. + Dim VarianceBased1 As Double + VarianceBased1=BasicStatisticalFormulas.VarianceBiasedEstimator(series, 0) + +
+ +

This method estimates the variance for a sample.

+

If the specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.

+
+
+ + + Calculates variance of series X values. + + The name of the Series object that stores the group of data. + + True if the data is a sample of a population, false if it is the entire population. + A double that represents the variance within the group of data. + + +

The following Code demonstrate how to gets the Variance of the data points in a series

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ............ + double Variance1= Statistics.BasicStatisticalFormulas.Variance(series,true); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ............. + Dim Variance1 As Double + Variance1=BasicStatisticalFormulas.Variance(series,true) + +
+ +

This method estimates the variance for a sample.

+

If the specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.

+
+
+ + + Calculates variance of series Y values. + + The name of the Series object that stores the group of data. + Index of the Y value. + True if the data is a sample of a population, false if it is the entire population. + + A double that represents the variance within the group of data. + + +

The following Code demonstrate how to gets the Variance of the data points in a series

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ............ + double Variance1= Statistics.BasicStatisticalFormulas.Variance(series,true); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ............. + Dim Variance1 As Double + Variance1=BasicStatisticalFormulas.Variance(series,true) + +
+ +

This method estimates the variance for a sample.

+

If the specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.

+
+
+ + + Calculates variance of series X values. + + The name of the Series object that stores the group of data. + + True if the data is a sample of a population, false if it is the entire population. + A double that represents the Standard Deviation within the group of data. + + +

The following Code demonstrate how to gets the Standard Deviation of the data points in a series

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ............ + double Standard1= Statistics.BasicStatisticalFormulas.StandartDeviation(series,false); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ............. + Dim Standard1 As Double + Standard1=BasicStatisticalFormulas.StandartDeviation(series,false) + +
+ +

This method estimates the Standard Deviation for a sample.

+

If the specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.

+
+
+ + + Calculates variance of series Y values. + + The name of the Series object that stores the group of data. + Index of the Y value. + True if the data is a sample of a population, false if it is the entire population. + + A double that represents the Standard Deviation within the group of data. + + +

The following Code demonstrate how to gets the Standard Deviation of the data points in a series

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ............ + double Standard1= Statistics.BasicStatisticalFormulas.StandardDeviation(series,0,false); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ............. + Dim Standard1 As Double + Standard1=BasicStatisticalFormulas.StandardDeviation(series,0,false) + +
+ +

This method estimates the Standard Deviation for a sample.

+

If the specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.

+
+
+ + + Calculates covariance of series X values. + + The name of the Series object that stores the first group's data. + + The name of the Series object that stores the second group's data. + An exception will be raised if the input series do not have the same number of data points. + A double that represents the covariance value between the two groups of data. + + +

The following Code demonstrate how to gets the Covariance of the data points in a series

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ............ + double Covariance1= Statistics.BasicStatisticalFormulas.Covariance(series1,series2); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ............. + Dim Covariance1 As Double + Covariance1=BasicStatisticalFormulas.Covariance(series1,series2) + +
+ +

This method returns the average of the product of deviations of the data points from their respective means.

+

Covariance is a measure of the relationship between two ranges of data, and can be used to determine whether two ranges of data move together - that is, whether large values of one set are associated with large values of the other (positive covariance), whether small values of one set are associated with large values of the other (negative covariance), or whether values in both sets are unrelated (covariance near zero).

+

If a specified input series does not exist in the series collection at the time of the method call than an exception will be thrown. An exception will also be raised if the series do not have the same number of data points.

+
+
+ + + Calculates covariance of series Y values. + + The name of the Series object that stores the first group's data. + The name of the Series object that stores the second group's data. + An exception will be raised if the input series do not have the same number of data points. + Index of the Y index. + + A double that represents the covariance value between the two groups of data. + + +

The following Code demonstrate how to gets the Covariance of the data points in a series

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ............ + double Covariance1= Statistics.BasicStatisticalFormulas.Covariance(series1,series2, 0); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ............. + Dim Covariance1 As Double + Covariance1=BasicStatisticalFormulas.Covariance(series1,series2, 0) + +
+ +

This method returns the average of the product of deviations of the data points from their respective means.

+

Covariance is a measure of the relationship between two ranges of data, and can be used to determine whether two ranges of data move together - that is, whether large values of one set are associated with large values of the other (positive covariance), whether small values of one set are associated with large values of the other (negative covariance), or whether values in both sets are unrelated (covariance near zero).

+

If a specified input series does not exist in the series collection at the time of the method call than an exception will be thrown. An exception will also be raised if the series do not have the same number of data points.

+
+
+ + + Calculates correlation of series X values. + + The name of the Series object that stores the first group's data. + + The name of the Series object that stores the second group's data. + An exception will be raised if the input series do not have the same number of data points. + A double that represents the Correlation value between the two groups of data. + + +

The following Code demonstrate how to gets the Correlation of the data points in a series

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ............ + double Correlation1= Statistics.BasicStatisticalFormulas.Correlation(series1,series2); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ............. + Dim Correlation1 As Double + Correlation1=BasicStatisticalFormulas.Correlation(series1,series2) + +
+ +

Correlation measures the relationship between two data sets that are scaled to be independent of the unit of measurement. This correlation method returns the covariance of two data sets divided by the product of their standard deviations, and always ranges from -1 to 1. + Use correlation to determine whether two ranges of data move together that is, whether large values of one set are associated with large values of the other (positive correlation), whether small values of one set are associated with large values of the other (negative correlation), or whether values in both sets are unrelated (correlation near zero).

+

If a specified input series does not exist in the series collection at the time of the method call than an exception will be thrown. An exception will also be raised if the series do not have the same number of data points.

+
+
+ + + Calculates correlation of series Y values. + + The name of the Series object that stores the first group's data. + The name of the Series object that stores the second group's data. + An exception will be raised if the input series do not have the same number of data points. + Index of the Y value. + + A double that represents the Correlation value between the two groups of data. + + +

The following Code demonstrate how to gets the Correlation of the data points in a series

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ............ + double Correlation1= Statistics.BasicStatisticalFormulas.Correlation(series1,series2,0); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ............. + Dim Correlation1 As Double + Correlation1=BasicStatisticalFormulas.Correlation(series1,series2,0) + +
+ +

Correlation measures the relationship between two data sets that are scaled to be independent of the unit of measurement. This correlation method returns the covariance of two data sets divided by the product of their standard deviations, and always ranges from -1 to 1. + Use correlation to determine whether two ranges of data move together that is, whether large values of one set are associated with large values of the other (positive correlation), whether small values of one set are associated with large values of the other (negative correlation), or whether values in both sets are unrelated (correlation near zero).

+

If a specified input series does not exist in the series collection at the time of the method call than an exception will be thrown. An exception will also be raised if the series do not have the same number of data points.

+
+
+ + + Calculates Median of series X values. + + The input series + +

The following Code demonstrate how to gets the median of the data points in a series

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ............ + double Median1= Statistics.BasicStatisticalFormulas.Median(series1); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ............. + Dim Median1 As Double + Median1=BasicStatisticalFormulas.Median(series1) + +
+ +

Use this method to calculate the median of the points stored in a series. + The median is the middle value of a sample set, where half of the members are greater in size and half the members are lesser in size.

+

if the specified input series does not exist in the SeriesCollection at the time of the method call than an exception will be thrown.

+
+
+ + + Calculates Median of series Y values. + + The input series + Index of the Y index. + + +

The following Code demonstrate how to gets the median of the data points in a series

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ............ + double Median1= Statistics.BasicStatisticalFormulas.Median(series1, 0); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ............. + Dim Median1 As Double + Median1=BasicStatisticalFormulas.Median(series1, 0) + +
+ +

Use this method to calculate the median of the points stored in a series. + The median is the middle value of a sample set, where half of the members are greater in size and half the members are lesser in size.

+

if the specified input series does not exist in the SeriesCollection at the time of the method call than an exception will be thrown.

+
+
+ + + Performs Z test on input series. This test assumes that + there is some difference between mean values of input series populations. + Input series are regarded as samples from normally distributed populations + with known variances. + + Difference between populations means. + Variance of the first series population. + Variance of the second series population. + Probability that gives confidence level. (Typically 0.05) + The name of the series that stores the first group of data.. + The name of the series that stores the second group of data.. + ZTestResult Class + +

The following code demonstrate how to calculate Ztest

+ + ZTestResult ztr = BasicStatisticalFormulas.ZTest( Convert.ToDouble(TextBox6.Text.ToString()),sqrtVarianceOfFirstSeries*sqrtVarianceOfFirstSeries,sqrtVarianceOfSecondSeries* sqrtVarianceOfSecondSeries,0.05,series1,series2); + + + Dim ztr As ZTestResult = BasicStatisticalFormulas.ZTest(Convert.ToDouble(TextBox6.Text.ToString()), sqrtVarianceOfFirstSeries*sqrtVarianceOfFirstSeries, sqrtVarianceOfSecondSeries*sqrtVarianceOfSecondSeries, 0.05, series1, series2) + +
+ +

This method performs a Z test for two groups of data, and returns the results using a ZTestResult object.

+

Two and only two groups of data must be specified. If either input series does not exist in the series collection at the time of the method call than an exception will be thrown.

+
+
+ + + Performs Z test on input series. This test assumes that + there is some difference between mean values of input series populations. + Input series are regarded as samples from normally distributed populations + with known variances. + + Difference between populations means. + Variance of the first series population. + Variance of the second series population. + Probability that gives confidence level. (Typically 0.05) + The name of the series that stores the first group of data.. + The name of the series that stores the second group of data.. + Index of the Y value. + ZTestResult Class + +

The following code demonstrate how to calculate Ztest

+ + ZTestResult ztr = BasicStatisticalFormulas.ZTest( Convert.ToDouble(TextBox6.Text.ToString()),sqrtVarianceOfFirstSeries*sqrtVarianceOfFirstSeries,sqrtVarianceOfSecondSeries* sqrtVarianceOfSecondSeries,0.05,series1,series2, 0); + + + Dim ztr As ZTestResult = BasicStatisticalFormulas.ZTest(Convert.ToDouble(TextBox6.Text.ToString()), sqrtVarianceOfFirstSeries*sqrtVarianceOfFirstSeries, sqrtVarianceOfSecondSeries*sqrtVarianceOfSecondSeries, 0.05, series1, series2, 0) + +
+ +

This method performs a Z test for two groups of data, and returns the results using a ZTestResult object.

+

Two and only two groups of data must be specified. If either input series does not exist in the series collection at the time of the method call than an exception will be thrown.

+
+
+ + + Performs T test on input series. This test assumes that + there is some difference between mean values of input series populations. + Input series are regarded as samples from normally distributed populations. + The population variances are assumed to be equal. This is a key feature of the test, because + there is no exact T test for two samples from populations with different variances. + + Difference between populations means. + Probability that gives confidence level. (Typically 0.05) + The name of the series that stores the first group of data. + The name of the series that stores the second group of data. + TTestResult class + +

The following code demonstrate how to calculate TTest Equal Variance

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ........ + TTestResult ttr = BasicStatisticalFormulas.TTestEqualVariances (0.2, 0.05, series1, series2); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ........ + Dim ttr As TTestResult = BasicStatisticalFormulas.TTestEqualVariances (0.2, 0.05, series1, series2) + +
+ +

This method performs a T test for two groups of data, and assumes equal variances between the two groups (i.e. series).

+

If either input series does not exist in the series collection at the time of the method call an exception will be thrown.

+
+
+ + + Performs T test on input series. This test assumes that + there is some difference between mean values of input series populations. + Input series are regarded as samples from normally distributed populations. + The population variances are assumed to be equal. This is a key feature of the test, because + there is no exact T test for two samples from populations with different variances. + + Difference between populations means. + Probability that gives confidence level. (Typically 0.05) + The name of the series that stores the first group of data. + The name of the series that stores the second group of data. + Index of the Y index. + TTestResult class + +

The following code demonstrate how to calculate TTest Equal Variance

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ........ + TTestResult ttr = BasicStatisticalFormulas.TTestEqualVariances (0.2, 0.05, series1, series2, 0); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ........ + Dim ttr As TTestResult = BasicStatisticalFormulas.TTestEqualVariances (0.2, 0.05, series1, series2, 0) + +
+ +

This method performs a T test for two groups of data, and assumes equal variances between the two groups (i.e. series).

+

If either input series does not exist in the series collection at the time of the method call an exception will be thrown.

+
+
+ + + Performs T test on input series. This test assumes that + there is some difference between mean values of input series populations. + Input series are regarded as samples from normally distributed populations. + The population variances are assumed to be unequal. So this method is not statistically exact, + but it works well, and sometimes is called robust T test. + + Difference between populations means. + Probability that gives confidence level. (Typically 0.05) + The name of the series that stores the first group of data. + The name of the series that stores the second group of data. + TTestResult class + +

The following code demonstrate how to calculate TTest UnEqual Variance

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ........ + TTestResult ttr = BasicStatisticalFormulas.TTestUnEqualVariances (0.2, 0.05, series1, series2); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ........ + Dim ttr As TTestResult = BasicStatisticalFormulas.TTestUnEqualVariances (0.2, 0.05, series1, series2) + +
+ +

This method performs a T test for two groups of data, and assumes unequal variances between the two groups (i.e. series).

+

This analysis tool is referred to as a heteroscedastic t-test, and can be used when the groups under study are distinct. Use a paired test when there is one group before and after a treatment.

+

If either input series does not exist in the series collection at the time of the method call an exception will be thrown.

+
+
+ + + Performs T test on input series. This test assumes that + there is some difference between mean values of input series populations. + Input series are regarded as samples from normally distributed populations. + The population variances are assumed to be unequal. So this method is not statistically exact, + but it works well, and sometimes is called robust T test. + + Difference between populations means. + Probability that gives confidence level. (Typically 0.05) + The name of the series that stores the first group of data. + The name of the series that stores the second group of data. + Index of the Y value. + TTestResult class + +

The following code demonstrate how to calculate TTest UnEqual Variance

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ........ + TTestResult ttr = BasicStatisticalFormulas.TTestUnEqualVariances (0.2, 0.05, series1, series2, 0); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ........ + Dim ttr As TTestResult = BasicStatisticalFormulas.TTestUnEqualVariances (0.2, 0.05, series1, series2, 0) + +
+ +

This method performs a T test for two groups of data, and assumes unequal variances between the two groups (i.e. series).

+

This analysis tool is referred to as a heteroscedastic t-test, and can be used when the groups under study are distinct. Use a paired test when there is one group before and after a treatment.

+

If either input series does not exist in the series collection at the time of the method call an exception will be thrown.

+
+
+ + + Performs T test on input series. This test assumes that + there is some difference between mean values of input series populations. + Input series are regarded as samples from normally distributed populations. + The population variances are assumed to be unequal. So this method is not statistically exact, + but it works well, and sometimes is called robust T test. + + Difference between populations means. + Probability that gives confidence level. (Typically 0.05) + The name of the series that stores the first group of data. + The name of the series that stores the second group of data. + TTestResult class + +

The following code demonstrate how to calculate TTestPaired

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ........ + TTestResult ttr = BasicStatisticalFormulas.TTestPaired(0.2, 0.05, series1, series2); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ........ + Dim ttr As TTestResult = BasicStatisticalFormulas.TTestPaired (0.2, 0.05, series1, series2) + +
+ +

This method performs a paired two-sample student's t-test to determine whether a sample's means are distinct. This form of the t-test does not assume that the variances of both populations are equal.

+

Use a paired test when there is a natural pairing of observations in the samples, such as a sample group that is tested twice (e.g. before and after an experiment).

+

If either input series does not exist in the series collection at the time of the method call an exception will be thrown.

+
+
+ + + Performs T test on input series. This test assumes that + there is some difference between mean values of input series populations. + Input series are regarded as samples from normally distributed populations. + The population variances are assumed to be unequal. So this method is not statistically exact, + but it works well, and sometimes is called robust T test. + + Difference between populations means. + Probability that gives confidence level. (Typically 0.05) + The name of the series that stores the first group of data. + The name of the series that stores the second group of data. + Index of the Y value. + TTestResult class + +

The following code demonstrate how to calculate TTestPaired

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ........ + TTestResult ttr = BasicStatisticalFormulas.TTestPaired(0.2, 0.05, series1, series2, 0); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ........ + Dim ttr As TTestResult = BasicStatisticalFormulas.TTestPaired (0.2, 0.05, series1, series2, 0) + +
+ +

This method performs a paired two-sample student's t-test to determine whether a sample's means are distinct. This form of the t-test does not assume that the variances of both populations are equal.

+

Use a paired test when there is a natural pairing of observations in the samples, such as a sample group that is tested twice (e.g. before and after an experiment).

+

If either input series does not exist in the series collection at the time of the method call an exception will be thrown.

+
+
+ + + Performs F test on input series. This test looks whether first series variance is smaller than second series variance. + If FValue in FTestResult is bigger than FCriticalValueOneTail than we can't deduce that it is truly smaller. + The test tests ratio of two variances s1^2/s2^2 which is proved to be distributed + according F distribution. The null hypothesis is that variances are equal. + + Probability that gives confidence level. (Typically 0.05) + The name of the series that stores the first group of data. + The name of the series that stores the second group of data. + FTestResult class + +

The following code demonstrate how to calculate FTest.

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ........ + FTestResult ftr = BasicStatisticalFormulas.FTest(0.05, series1, series2); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ........ + Dim ftr As FTestResult = BasicStatisticalFormulas.FTest(0.05, series1, series2) + +
+ +

This method returns the results of the F-test using an FTestResult object.

+

FTest performs a two-sample F-test to compare two population variances. For example, it can be used to determine whether the time scores in a swimming meet have a difference in variance for samples from two teams.

+

If a specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.

+
+
+ + + Performs F test on input series. This test looks whether first series variance is smaller than second series variance. + If FValue in FTestResult is bigger than FCriticalValueOneTail than we can't deduce that it is truly smaller. + The test tests ratio of two variances s1^2/s2^2 which is proved to be distributed + according F distribution. The null hypothesis is that variances are equal. + + Probability that gives confidence level. (Typically 0.05) + The name of the series that stores the first group of data. + The name of the series that stores the second group of data. + Index of the y. + FTestResult class + +

The following code demonstrate how to calculate FTest.

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ........ + FTestResult ftr = BasicStatisticalFormulas.FTest(0.05, series1, series2, 0); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ........ + Dim ftr As FTestResult = BasicStatisticalFormulas.FTest(0.05, series1, series2, 0) + +
+ +

This method returns the results of the F-test using an FTestResult object.

+

FTest performs a two-sample F-test to compare two population variances. For example, it can be used to determine whether the time scores in a swimming meet have a difference in variance for samples from two teams.

+

If a specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.

+
+
+ + + Performs Anova (Analysis of variance test) on input series. All series should have the same + number of points. The tests null hypothesis assumes that all series means are equal and + that all variances of series are also equal. The alternative to null hypothesis is that there + is one inequality between means of series. For better understanding of this test, we recommend to read: + Dowdy, S. M. + Statistics for research / Shirley Dowdy, Stanley Weardon, Daniel Chilko. + p. cm. � (Wiley series in probability and statistics; 1345) + + Probability that gives confidence level. (Typically 0.05) + Series array + AnovaResult class + +

The following code demonstrate how to calculate AnovaTest

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ........ + AnovaResult ar = BasicStatisticalFormulas.Anova(0.5,new ChartSeries[]{ series1, series2, series3} ); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ........ + Dim ar As AnovaResult = BasicStatisticalFormulas.Anova(0.5, New ChartSeries(){ series1, series2, series3}) + +
+ +

An ANOVA test is used to test the difference between the means of two or more groups of data.

+

Two or more groups of data (series) must be specified, and each series must have the same number of data points otherwise an exception will be raised.

+

If a specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.

+
+
+ + + Performs Anova (Analysis of variance test) on input series. All series should have the same + number of points. The tests null hypothesis assumes that all series means are equal and + that all variances of series are also equal. The alternative to null hypothesis is that there + is one inequality between means of series. For better understanding of this test, we recommend to read: + Dowdy, S. M. + Statistics for research / Shirley Dowdy, Stanley Weardon, Daniel Chilko. + p. cm. � (Wiley series in probability and statistics; 1345) + + Probability that gives confidence level. (Typically 0.05) + Series array + Index of the Y value. + AnovaResult class + +

The following code demonstrate how to calculate AnovaTest

+ + using Syncfusion.Windows.Forms.Chart.Statistics; + ........ + AnovaResult ar = BasicStatisticalFormulas.Anova(0.5,new ChartSeries[]{ series1, series2, series3}, 0 ); + + + Imports Syncfusion.Windows.Forms.Chart.Statistics + ........ + Dim ar As AnovaResult = BasicStatisticalFormulas.Anova(0.5, New ChartSeries(){ series1, series2, series3}, 0) + +
+ +

An ANOVA test is used to test the difference between the means of two or more groups of data.

+

Two or more groups of data (series) must be specified, and each series must have the same number of data points otherwise an exception will be raised.

+

If a specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.

+
+
+ + + Calculates new series by substracting corresponding values of second series from firs series. + + The name of the series that stores the first group of data. + The name of the series that stores the second group of data. + Return difference between the two series points + + + + Calculates new series by substracting corresponding values of second series from firs series. + + The name of the series that stores the first group of data. + The name of the series that stores the second group of data. + Index of the Y value. + + Return difference between the two series points + + + + + The result of statistical Z test is stored in this class. + If the Z value is closer to 0.0 than ZCriticalValueTwoTail or + even ZCriticalValueOneTail, then we can't deduce that D(hypothesized difference) is not + good mean value difference. In other case ( ZCriticalValueTwoTail is closer to 0.0 + than ZValue), there is a huge probability that hypothesized difference D hadn't been + chosen correctly. + + + + + Initializes a new instance of the class. + + + + + Gets first series mean value. Series represents sample from studied population. + + The first series mean. + + + + Gets first series variance. Series represents sample from studied population. + + The first series variance. + + + + Gets the probability that the random variable has values at the tail, assuming that null hypothesis is true. + + The probability Z one tail. + + + + Gets the probability that the random variable has values at the tails, assuming that null hypothesis is true. + + The probability Z two tail. + + + + Gets second series mean value. Series represents sample from studied population. + + The second series mean. + + + + Gets second series variance. Series represents sample from studied population. + + The second series variance. + + + + Gets critical value of Z which corresponds to Alpha probability. + The area under normal probability density curve of tail is equal to alpha probability. + + The Z critical value one tail. + + + + Gets critical value of Z which corresponds to Alpha probability. + The area under normal probability density curve of two symmetrical tails is equal to alpha probability. + + The Z critical value two tail. + + + + Gets calculated z value. ( Value of normally distributed random variable with mean=0, and variance=1 ). + + The Z value. + + + + The result of statistical T test is stored in this class. + If the T value is closer to 0.0 than TCriticalValueTwoTail or + even TCriticalValueOneTail, then we can't deduce that D(hypothesized difference) is not + good mean value difference. In other case ( TCriticalValueTwoTail is closer to 0.0 + than TValue), there is a huge probability that hypothesized difference D hadn't been + chosen correctly. + + + + + Initializes a new instance of the class. + + + + + Gets number of degrees of freedom of T variable student's distribution. + + The degree of freedom. + + + + Gets first series mean value. Series represents sample from studied population. + + The first series mean. + + + + Gets first series variance. Series represents sample from studied population. + + The first series variance. + + + + Gets the probability that the random variable has values at the tail, assuming that null hypothesis is true. + + The probability T one tail. + + + + Gets the probability that the random variable has values at the tails, assuming that null hypothesis is true. + + The probability T two tail. + + + + Gets second series mean value. Series represents sample from studied population. + + The second series mean. + + + + Gets second series variance. Series represents sample from studied population. + + The second series variance. + + + + Gets critical value of T which corresponds to Alpha probability. + The area under normal probability density curve of tail is equal to alpha probability. + + The T critical value one tail. + + + + Gets critical value of T which corresponds to Alpha probability. + The area under normal probability density curve of two symmetrical tails is equal to alpha probability. + + The T critical value two tail. + + + + Gets calculated T value. ( Value of normally distributed random variable with mean=0, and variance=1 ). + + The T value. + + + + The result of statistical F test is stored in this class. + If the F value is closer to 1.0 than FCriticalValueOneTail, then we can't deduce that first variance + is smaller than second. But if F value is bigger than 1.0, then replace the series and run the + test again. Maybe second series variance is smaller than first. + Note: That if the second test also fails, this doesn't automatically prove that your variances + are equal. + + + + + Initializes a new instance of the class. + + + + + Gets first series mean value. Series represents sample from studied population. + + The first series mean. + + + + Gets first series variance. Series represents sample from studied population. + + The first series variance. + + + + Gets the probability that the random variable has values at the tail, assuming that null hypothesis is true. + + The probability F one tail. + + + + Gets second series mean value. Series represents sample from studied population. + + The second series mean. + + + + Gets second series variance. Series represents sample from studied population. + + The second series variance. + + + + Gets critical value of F which corresponds to Alpha probability. + The area under normal probability density curve of tail is equal to alpha probability. + + The F critical value one tail. + + + + Gets calculated F value. ( Value of normally distributed random variable with mean=0, and variance=1 ). + + The F value. + + + + Result of Anova test is stored in this class. + If AnovaResult.FRatio is farther from unity than FCritical value, then the null hypothesis + (that all means are equal) fails. + + + + + Initializes a new instance of the class. + + + + + Gets degrees of freedom between groups. This is simply a - 1, where a is number of series in anova test. + + The degree of freedom between groups. + + + + Gets total degrees of freedom. This is simply n*a - 1, where a is number of series in anova test, and n is number of points in series. + + The degree of freedom total. + + + + Gets degrees of freedom within groups ( returns a*(n - 1) ). + + The degree of freedom within groups. + + + + Gets critical value of FRatio which corresponds to specified confidence probability. + + The F critical value. + + + + Gets FRatio ( ratio of between group variance and within group variance). This ratio should be + compared with FCritical value, and if it is farther from unity than FCritical value, then the null hypothesis + (that all means are equal) fails. + + The F ratio. + + + + Gets mean square variance between groups. + + The mean square variance between groups. + + + + Gets mean square variance within groups. + + The mean square variance within groups. + + + + Gets sum of squares between groups. + + The sum of squares between groups. + + + + Gets total sum of squares. + + The sum of squares total. + + + + Gets sum of squares within groups. + + The sum of squares within groups. + + + + The Syncfusion.Windows.Forms.Chart.Statistics namespace conatins the different types of statistical methods to perform tests such as AnovaResult, BasicStatisticalFormulas, FTestResult, TTestResult, UtilityFunctions, ZTestResult on Histogram chart. + + + + + Class contains Gamma, factorial, Beta and other functions used in statistical distributions formulas. + + + + + Natural logarithm of gamma function ( for y > 0 ). + + + + + + Gamma function ( for y > 0 ). + + + + + + Factorial n! ( for n >= 0 ). + + + + + + Logarithm of factorial n! ( for n >= 0 ). + + + + + + Binomial coefficient n!/(k!(n-k)!) ( for n >= k >= 0 ). + + + + + + + Logarithm of Beta function. + + + + + + + + Beta function. + + + + + + + Returns Normal Distribution density function. + + Value at which the distribution density is evaluated. + Expected value of distribution (Mean value) + Variance of distribution + + + + + Returns Logarithm of Normal Distribution density function. + + Value at which the distribution density is evaluated. + Expected value of distribution (Mean value) + Variance of distribution + + + + + Error function. + + . + Returns error function. + + + + Inverse Normal Distribution function. + This is rational approximation of Normal Distribution function. + The absolute value of the relative error is less than 1.15�10-9 in the entire region. + Lower tail quantile for standard normal distribution function. + This function returns an approximation of the inverse cumulative + standard normal distribution function. I.e., given P, it returns + an approximation to the X satisfying P = Pr{Z is smaller than X} where Z is a + random variable from the standard normal distribution. + + Probability at which function is evaluated. p must be in ( 0,1 ) range. + Returns Inverse cumulative distribution. + + + + Normal Distribution function. + + Value at which the distribution is evaluated. + Returns cumulative distribution. ( Returns probability that normally distributed random variable (X - mean)/sigma is smaller than x.). + + + + Inverse Error function. + This is rational approximation of erf function. + The absolute value of the relative error is less than 1.15�10-9 in the entire region. + + value x is in (-1 , 1) range. + Returns Value that corresponds to given x. + + + + Returns cumulative gamma distribution. http://en.wikipedia.org/wiki/Gamma_distribution + ( for x >= 0, a > 0 ) + + + + Returns cumulative gamma distribution. (http://en.wikipedia.org/wiki/Gamma_distribution) ( for x >= 0, a > 0 ) + + + + Returns cumulative beta distribution. + ( for x >= 0, a > 0, b > 0 ) + + + + + Returns cumulative beta distribution. http://en.wikipedia.org/wiki/Beta_distribution) ( for x >= 0, a > 0, b > 0 ) + + + + Returns inverse cumulative beta distribution. + ( for 1 >= p >= 0 , a > 0, b > 0 ) + + Beta function parameter + Beta function parameter + Probability + Returns inverse cumulative beta distribution. http://en.wikipedia.org/wiki/Beta_distribution) ( for p in [0,1], a > 0, b > 0 ) + + + + Returns cumulative T distribution. + ( for degreeOfFreedom > 0 ) + + + + + Returns T cumulative distribution. http://en.wikipedia.org/wiki/T_distribution) ( for degreeOfFreedom > 0 ) + + + + Inverse cumulative T distribution. + ( for degreeOfFreedom > 0 ) + + Probability (must be in range [0, 1]. ) + + + Inverse T cumulative distribution. http://en.wikipedia.org/wiki/T_distribution) ( for degreeOfFreedom > 0 ) + + + + Returns cumulative F distribution. + ( for firstDegreeOfFreedom >= 1 and firstDegreeOfFreedom >= 1 ) + + + + + Returns T cumulative distribution. http://en.wikipedia.org/wiki/F_distribution) ( for degreeOfFreedom > 0 ) + + + + Inverse cumulative F distribution. + ( for firstDegreeOfFreedom >= 1 and firstDegreeOfFreedom >= 1 ) + + Probability (must be in range [0, 1]. ) + + + Inverse F cumulative distribution. http://en.wikipedia.org/wiki/F_distribution) ( for firstDegreeOfFreedom >= 1 and firstDegreeOfFreedom >= 1 ) + + + + Gammas the cumulative S. + + A. + The x. + + + + + Gammas the cumulative CF. + + A. + The x. + + + + + Btas the cumulative CF. + + A. + The b. + The x. + + + + + Inverses the bta cumulative brent. + + The aa. + The bb. + The prblty. + The x1. + The x2. + The tol. + + + + + + + + Releases all resources used by the component. + + + + + + Initializes a new instance of the class. + + The style info map. + + + + 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. + + + + + + Gets the base styles map. + + The base styles map. + + + + BaseStyles are styles that are used to uniformly affect an arbitrary set of styles that they are applied to. + BaseStyles are applied to a style by associating them with a style using its BaseStyle property (). + + + + + This class contains appearance information for each ChartPoint . + + + + + Abstract implementation of StyleInfoBase. + + + + + Initializes a new instance of the class. + + The identity. + The store. + + + + Initializes a new instance of the class. + + The store. + + + + Gets or sets a value indicating whether this instance should cache values + for resolved base style properties. + + + + + A list of listeners that will be referenced using a WeakReference. The listeners + must implement the Syncfusion.Styles.IStyleChanged interface. When this style + object Syncfusion.Styles.StyleInfoBase.OnStyleChanged(Syncfusion.Styles.StyleInfoProperty) + method is called it will then loop through all objects in this list and call + each objects Syncfusion.Styles.IStyleChanged.StyleChanged(Syncfusion.Styles.StyleChangedEventArgs) + method. + + + + + Initializes the new instance of the class. + + + + + Overloaded constructor. Initializes a new style object. + + + + + Initializes a new style object and copies all data from an existing style object. + + The style object that contains the original data. + + + + Initializes a new style object and associates it with an existing . + + A that holds data for this . + All changes made in this style object will be saved in the object. + + + + Initializes a new style object and associates it with an existing . + + A that holds the identity for this . + + + + + Initializes a new style object and associates it with an existing . + + A that holds the identity for this . + + A that holds data for this . + All changes made in this style object will be saved in the 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. + + + + Method to dispose ChartStyleInfo object + + + + + Override this method to create a product-specific identity object for a sub object. + + + + An identity object for a subobject of this style. + + + + + + Override this method to return a default style object for your derived class. + + A default style object. + + + + + Serializes this style to XML. + + + + + + Resets TextColor. + + + + + Resets the base style. + + + + + + Resets font information. + + + + + Should the serialize font. + + + + + + Resets line information. + + + + + Should the serialize border. + + True if the element should serialize otherwise false. + + + + Resets interior information. + + + + + Should the serialize interior. + + True if the element should serialize otherwise false. + + + + Resets text information. + + + + + Should the serialize text. + + True if the element should serialize otherwise false. + + + + Resets ToolTip information. + + + + + Should the serialize tool tip. + + True if the element should serialize otherwise false. + + + + Resets TooltipFormat. + + + + + Should the serialize tool tip format. + + True if the element should serialize otherwise false. + + + + Resets ImageList information. + + + + + Should the serialize images. + + True if the element should serialize otherwise false. + + + + Resets image index information. + + + + + Should the index of the serialize image. + + True if the element should serialize otherwise false. + + + + Resets symbol information. + + + + + Should the serialize symbol. + + True if the element should serialize otherwise false. + + + + Resets Callout information. + + + + + Should the serialize Callout. + + True if the element should serialize otherwise false. + + + + Resets System. + + + + + Should the serialize system. + + True if the element should serialize otherwise false. + + + + Resets Name. + + + + + Resets TextOrientation. + + + + + Should the serialize text orientation. + + True if the element should serialize otherwise false. + + + + Resets DisplayShadow. + + + + + Should the serialize display shadow. + + True if the element should serialize otherwise false. + + + + Resets ShadowOffset. + + + + + Resets ShadowInterior. + + + + + + + + + + + + + + Resets DimmedInterior. + + + + + Resets HitTestRadius. + + + + + Resets Label. + + + + + Resets TextFormat. + + + + + Resets the Format. + + + + + Resets DisplayText. + + + + + Resets PointWidth. + + + + + Reset TextOffset. + + + + + Resets border information. + + + + + Resets RelatedPoints. + + + + + Resets Url information. + + + + + Should the serialize Url. + + True if the element should serialize otherwise false. + + + + Gets the object that holds all the data for this style object. + + + + + Returns a with default settings. + + + + + Gets or sets custom shape in the background of the displaytext. + Before use this, enable "DrawTextShape" property of series style. + + + + + Gets or sets the color of the text that is to be rendered for a . + + + + + Gets a value indicating whether this instance has text color. + + + true if this instance has text color; otherwise, false. + + + + + + Gets or sets the base style with default settings that is to be used + for the appearance of the . + + + + + Gets or sets the alt tag with default settings that is to be used. this is used in ASP.NET chart to define the format of "alt" tag value. + for the appearance of the . + + + + + Gets a value indicating whether this instance has base style. + + + true if this instance has base style; otherwise, false. + + + + + + Creates or returns a cached GDI+ font generated from font information of + the object. + + The gdip font. + + + + Gets /sets the font that is to be used for drawing text. + + The font. + + + + Gets a value indicating whether font information has been initialized for the current object. + + true if this instance has font; otherwise, false. + + + + Creates or returns a cached GDI+ font generated from font information of + the object. + + The gdip pen. + + + + Gets or sets the information that is to be used for drawing lines. + + The border. + + + + Gets a value indicating whether line information has been initialized for the current object. + + + true if this instance has border; otherwise, false. + + + + + Gets or sets a solid backcolor, gradient or pattern style with both back and forecolor for a 's background. + + The interior. + + + + Gets a value indicating whether interior information has been initialized for the current object. + + + true if this instance has interior; otherwise, false. + + + + + Returns a collection of custom property objects that have + at least one initialized value. The primary purpose of this + collection is to support design-time code serialization of + custom properties. + + + + + Gets or sets the text that is to be associated with a . This text will be rendered at a position near the point if + is set to True. + + The text. + + + + Gets a value indicating whether text information has been initialized for the current object. + + true if this instance has text; otherwise, false. + + + + Gets or sets the ToolTip that is to be associated with the . + + The tool tip. + + + + Gets a value indicating whether ToolTip information has been initialized for the current object. + + + true if this instance has tool tip; otherwise, false. + + + + + Gets or sets the formatting that is to be applied to values that are displayed as ToolTips. + + The tool tip format. + + + + Gets a value indicating whether this instance has tool tip format. + + + true if this instance has tool tip format; otherwise, false. + + + + + + Gets or sets the imagelist that is to be associated with this . This property is used in conjunction with the + property to display images associated with this point. + + The images. + + + + Gets a value indicating whether ImageList information has been initialized for the current object. + + + + + Gets or sets the image index from the associated property. + + The index of the image. + + + + Gets a value indicating whether image index information has been initialized for the current object. + + + + + Gets or sets the attributes of the symbol that is to be displayed at this point. + + The symbol. + + + + Gets a value indicating whether symbol information has been initialized for the current object. + + + true if this instance has symbol; otherwise, false. + + + + + Gets or sets the attributes of the Callout that is to be displayed at this point. + + The Callout. + + + + Gets a value indicating whether Callout information has been initialized for the current object. + + + true if this instance has Callout; otherwise, false. + + + + + Gets or sets a value indicating whether [_ system]. + + true if [_ system]; otherwise, false. + + + + Gets a value indicating whether [_ has system]. + + true if [_ has system]; otherwise, false. + + + + Gets or sets the name of the _. + + The name of the _. + + + + Gets or sets the orientation of text that is to be displayed at this point. + + + + + Gets a value indicating whether this instance has text orientation. + + + true if this instance has text orientation; otherwise, false. + + + + + + Gets a value indicating whether a shadow should be rendered when this point is displayed. + + true if [display shadow]; otherwise, false. + + + + + + + Gets or sets the offset that is to be used when a shadow is rendered for this . + + + + + Gets a value indicating whether this style contains the local value of ShadowOffset property. + + + true if this instance contains the local value of ShadowOffset property; otherwise, false. + + + + + + Gets or sets the interior attributes of the shadow displayed underneath this point. + + + + + Gets a value indicating whether this style contains the local value of ShadowInterior property. + + + true if this instance contains the local value of ShadowInterior property; otherwise, false. + + + + + + Gets a value indicating whether this point should be highlighted when the mouse moves over it. + + + + + Gets a value indicating whether this style contains the local value of HighlightOnMouseOver property. + + + true if this instance contains the local value of HighlightOnMouseOver property; otherwise, false. + + + + + + Gets or sets the attributes of the brush that are to be used to highlight this point when the mouse moves over it and + is enabled. + + + + + Gets or sets the attributes of the brush that are to be used to hide this point when the mouse moves over on other point. + + + + + Gets a value indicating whether this style contains the local value of HighlightInterior property. + + + true if this instance contains the local value of HighlightInterior property; otherwise, false. + + + + + + Gets a value indicating whether this style contains the local value of DimmedInterior property. + + + true if this instance contains the local value of DimmedInterior property; otherwise, false. + + + + + + Controls the circle around this point that would be considered as being within the bounds of this + point for hit-testing purposes. + + + + + Gets a value indicating whether this style contains the local value of HitTestRadius property. + + + true if this instance contains the local value of HitTestRadius property; otherwise, false. + + + + + + Gets or sets the Label value. + + + + + Gets a value indicating whether this style contains the local value of Label property. + + + true if this instance contains the local value of Label property; otherwise, false. + + + + + + Gets or sets the format that is to be applied to values that are displayed as text. + + + + + Gets a value indicating whether this style contains the local value of TextFormat property. + + + true if this instance contains the local value of TextFormat property; otherwise, false. + + + + + + Gets or sets the stringformat. + + The format. + + + + Gets or Sets whether text should be displayed at this point. + + + + + Gets or sets whether text should be draw with shape in the background at this point. + + + + + Gets a value indicating whether this style contains the local value of DisplayText property. + + + true if this instance contains the local value of DisplayText property; otherwise, false. + + + + + + Gets or sets the width of this point relative to the total width available. It is specially useful with Gantt charts to render + series that overlap. + + + + + Gets a value indicating whether this style contains the local value of PointWidth property. + + + true if this instance contains the local value of PointWidth property; otherwise, false. + + + + + + Gets or sets the offset of the text from the position of the . + + + + + Gets a value indicating whether this style contains the local value of TextOffset property. + + + true if this instance contains the local value of TextOffset property; otherwise, false. + + + + + + Gets or sets the border settings for elements associated with the chart point. You can specify the inner and outer border. It is currently used + only by symbols rendered by the ChartPoint. + + + + + Gets a value indicating whether this style contains the local value of ElementBorders property. + + + true if this instance contains the local value of ElementBorders property; otherwise, false. + + + + + Gets or sets the offset of the text from the position of the . + + + + + Gets a value indicating whether this instance has related points. + + + true if this instance has related points; otherwise, false. + + + + + Gets or sets the Url that is to be associated with a . This Url will be applied to the point if + EnableUrl and CalcRegion property is set to True.This property is applicable only for ChartWeb. + + The Url. + + + + Gets a value indicating whether Url information has been initialized for the current object. + + true if this instance has Url; otherwise, false. + + + + Initializes a new instance of the class. + + + + The name of this base style. + + + + + + Indicates whether this base style is a system registered base style. System registered base styles are + preregistered by the charting style system and are needed for the proper functioning of Essential + Chart. + + true if system; otherwise, false. + + + + Gets a value indicating whether this instance has local value of System property. + + + true if this instance has local value of System property; otherwise, false. + + + + + + Gets or sets the name for this base style object. + + The name. + + + + Gets a value indicating whether this instance has name. + + true if this instance has name; otherwise, false. + + + + + Gets ChartBaseStylesMap object. Base styles are registered with and managed by a object at the chart level. + + The base styles map. + + + + Specifies the style of a specific point border in the class. + + + + + No edge style is set. + + + + + No border is drawn. + + + + + Border style that consists of a dashed line. + + + + + Border style that consists of a dotted line. + + + + + Border style that consists of a series of a dash and a dot. + + + + + Border style that consists of a series of a dash and two dots. + + + + + Border style that consists of a solid line. + + + + + Use border as specified in the Chart. + + + + + Specifies the weight of a specific point border in the class. + + + + + A thin line with 1 pixel. + + + + + A thin line with dots. + + + + + A thick line with 4 pixels. + + + + + The ChartBorder class holds formatting information for the border associated with a point. + + + + + + Creates an exact copy of this object. + + A object. + + + + Overloaded constructor. + + + Initializes a new instance of the ChartBorder class. + + + + + Initializes a new instance of the ChartBorder class with the specified . + + + The line style that is to be applied to the border. + + + + + Initializes a new instance of the ChartBorder class with the + specified and + . + + + A that is to be applied to the border. + + + A specifying the color of the border. + + + + + Initializes a new instance of the ChartBorder class with the + specified and + . + + + A that is to be applied to the border. + + + A specifying the color of the border. + + + A specifying the thickness of the border. + + + + + 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. + + + + 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. + + + + Returns a copy of this border object replacing the color with . + + A black colored . + + + + Method to dispose ChartBorder object + + + + + Returns a compact string representation of the ChartBorder. + All information in ChartBorder will be encoded. + + + A that represents the current . + + + Overloaded. Overridden. Returns a compact string representation of the ChartBorder. + All information in ChartBorder will be encoded. + + + + + Returns a compact string representation of the ChartBorder. + All information in ChartBorder will be encoded. + + Format in which string representation should be rendered. "compact" for compact text; default is full text version. + The String. + + + + Overridden. Returns True if the ChartBorder object passed is equal. + + The object to compare to. + + True if both are equal; false otherwise. + + + + + 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. + + + + + The basic == operator. + + The left-hand side of the operator. + The right-hand side of the operator. + + Boolean value. + + + + + Overridden. Returns the hash code for the current ChartBorder instance. + + + A hash code for the current . + + + + + gets whether this ChartBorder is uninitialized. + + True if this instance is empty; otherwise, false. + + + + Gets what type of border line style this border has. This value + comes from the enumeration. + + The style. + + + + Gets the weight of the border the chart. This value + comes from the enumeration. + + The weight. + + + + Specifies the color of the chart border. This value + comes from the enumeration. + + The color. + + + + Gets the width in pixels of the chart border. + + The width. + + + + Implements the data store for the object. + + + + + + + The Outer Property which is used to set outer border. + + + + + + The Inner Property which is used to set inner border. + + + + + + Initializes a new instance of the class. + + + + + + Initializes the class. + + + + + Internal method to initialize static variables of ChartBordersInfoStore object after disposing it + + ChartBordersInfoStore + + + + Initializes a new instance of the class. + + The info. + The context. + + + + Method to dispose ChartBordersInfoStore object + + + + + Creates an exact copy of the current object. + + + A with same data as the current object. + + + + + + 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 Static Data Store. + + + + + + Provides a object for borders in a symbol. The inner / outer border of + the symbol can be configured individually with a value. Borders that + have not been initialized will inherit default values from a base style. + + + + + Abstract implementation of StyleInfoSubObjectBase. + + + + + Initializes a new instance of the class. + + The identity. + The store. + + + + Initializes a new instance of the class. + + The store. + + + + Gets or sets a value indicating whether this instance should cache values + for resolved base style properties. + + + + + A list of listeners that will be referenced using a WeakReference. The listeners + must implement the Syncfusion.Styles.IStyleChanged interface. When this style + object Syncfusion.Styles.StyleInfoBase.OnStyleChanged(Syncfusion.Styles.StyleInfoProperty) + method is called it will then loop through all objects in this list and call + each objects Syncfusion.Styles.IStyleChanged.StyleChanged(Syncfusion.Styles.StyleChangedEventArgs) + method. + + + + + Initializes a new instance of the class. + + + + + Initalizes a new instance and associates it with an existing . + + A that holds the identity for this . + + + + + Initalizes a new object and associates it with an existing . + + A that holds the identity for this . + A that holds data for this . + All changes made in this style object will be saved in the object. + + + + + Method to dispose ChartBordersInfo object + + + + + + + + Overridden. Returns a ChartBordersInfo object with default values. + + A object with default values. + + + + + Resets the inner and outer border with one command. + + + + + Resets the inner border. + + + + + Should the serialize inner. + + Returns bool. + + + + Resets the outer border. + + + + + Returns a default to be used with a default style. + + + The of the class + will return the default border info that this method generates through it's + overridden version of . + + + + + Sets the inner and outer border with one command. + + All. + + + + Gets or sets the inner border. + + The inner. + + + + Indicates whether the inner border has been initialized. + + + + + Gets or sets the outer border. + + + + + Implements the data store for the object. + + + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Internal method to initialize static variables in ChartFontInfoStore object after disposing it + + ChartFontInfoStore + + + + Overloaded Contructor. + + + Initializes an empty . + + + + + Constructor. 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. + + + + + + + Method to dispose ChartFontInfoStore object + + + + + + + + + Provides a object for font settings associated with a point. + Each font property of the point can be configured individually. + Font properties that have not been initialized will inherit default + values from a base style. + + + The following code changes font information for a point: + + + this.chart.Series[0].Styles[0].Font.Facename = "Arial"; + + + + + + Clears all resources used by the component. + + + + + Overloaded constructor. + + + Initializes a . + + + + + Initalizes a new object and associates it with an existing . + + A that holds the identity for this . + + + + + Initalizes a new object and associates it with an existing . + + A that holds the identity for this . + A that holds data for this . + All changes made in this style object will be saved in the object. + + + + + + + + Gets the em-size of the specified font object in world-units. + + The font object. + The size in world units. + + + + + + + Returns a default to be used with a default style. + + + + + + Resets the property. + + + + + Indicates whether the Facename property should be serialized + + + + + + + Resets the property. + + + + + Indicates whether the Size property should be serialized + + + + + + + Resets the property. + + + + + Indicates whether the Orientation property should be serialized + + + + + + + Resets the property. + + + + + Indicates whether the Bold property should be serialized + + + + + + + Resets the property. + + + + + Indicates whether the Italic property should be serialized + + + + + + + Resets the property. + + + + + Indicates whether the Underline property should be serialized + + + + + + + Resets the property. + + + + + Indicates whether the Strikeout property should be serialized + + + + + + + Resets the property. + + + + + Indicates whether the Unit property should be serialized + + + + + + + Resets the property. + + + + + Indicates whether the FontFamily property should be serialized + + + + + + + Returns a default to be used with a default style. + + + The of the class + will return the default border info that this method generates through its + overridden version of . + + + + + Creates or returns a cached GDI+ font generated from font information of + this object. + + + + + Gets or sets the style information for the font. + + + + + Gets or sets the face name of this object. + + + + + Indicates whether the property has been initialized. + + + + + Gets or sets the size in pixels of this object. + + + + + Indicates whether the property has been initialized. + + + + + Gets or sets the orientation of this object. + + + + + Indicates whether the property has been initialized. + + + + + Indicates whether this object is bold. + + + + + Indicates whether the property has been initialized. + + + + + Indicates whether this object is italic. + + + + + Indicates whether the property has been initialized. + + + + + Indicates whether this object is underlined. + + + + + Indicates whether the property has been initialized. + + + + + Indicates whether this object + should draw a horizontal line through the text. + + + + + Indicates whether the property has been initialized. + + + + + Gets or sets the graphics unit for this object. + + + + + Indicates whether the property has been initialized. + + + + + Gets or sets the font family of this object. + + + + + Indicates whether the property has been initialized. + + + + + Implements the data store for the object. + + + + + + + The Static Data class. + + + + + Gets or sets the color of the line. + + + + + + Gets or sets the width in pixels of the line represented by this object. + + + + + + Gets or sets the pen alignment of the line represented by this object. + + + + + + Gets or sets the style of the line represented by this object. + + + + + + Gets or sets the dash pattern of the line represented by this object. + + + + + + Internam method to initialize static variables in ChartLineInfoStore object after disposing it + + ChartLineInfoStore + + + + 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. + + + + Method to dispose ChartlineInfoStore object + + + + + Creates an exact copy of the current object. + + + A with same data as the current object. + + + + + + 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). + + + + + + + + Provides a object for border line settings associated with a point. + Properties that have not been initialized will inherit default + values from a base style. + + + + + Store default . + + + + + Store pen to draw. + + + + + Store value indicates that need recreate pen. + + + + + Resets the property. + + + + + Should the color of the serialize. + + Returns true whether it should serialize the element else false. + + + + Resets the property. + + + + + Should the width of the serialize. + + Returns true whether if it should serialize the element else false. + + + + Resets the property. + + + + + Should the serialize alignment. + + Returns true whether if it should serialize the element else false. + + + + Resets the property. + + + + + Should the serialize dash style. + + Returns true whether if it should serialize the element else false. + + + + Resets the property. + + + + + Should the serialize dash pattern. + + + Returns true whether if it should serialize the element else false. + + + + + Initializes the class. + + + + + Overloaded. Constructor. + + + + + Initializes a new object and associates it with an existing . + + A that holds the identity for this . + + + + + Initializes a new object and associates it with an existing . + + A that holds the identity for this . + A that holds data for this . + All changes made in this style object will be saved in the object. + + + + + Notifies the associated identity object that a specific property was changed. + + Identifies the property to look for. + + + + + Calculate default style. + + Default style. + + + + + 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. + + + + + + Resets the changes made in the ChartLineInfo class. + + Returns default ChartLineInfo. + + + + Calulates the pen. If is set to TRUE create new Pen otherwise return . + + Pen to draw. + + + + Method to dispose ChartLineInfo object + + + + + Gets a default to be used with a default style. + + The default. + + The of the class + will return the default line info that this method generates through its + overridden version of . + + + + + Gets pen associated with style. + + The gdip pen. + + + + Gets or sets the color of the line. For line based charts it works only when 3D is enabled. + + The color. + + + + Gets a value indicating whether the property has been initialized. + + True if this instance has color; otherwise, false. + + + + Gets or sets the width in pixels of the line represented by this object. + + The width. + + + + Gets a value indicating whether the property has been initialized. + + True if this instance has width; otherwise, false. + + + + Gets or sets the pen alignment of the line represented by this object. + + The alignment. + + + + Gets a value indicating whether the property has been initialized. + + + True if this instance has alignment; otherwise, false. + + + + + Gets or sets the style of the line represented by this object. + + + The dash style. + + + + Gets a value indicating whether the property has been initialized. + + + True if this instance has dash style; otherwise, false. + + + + + Gets or sets the dash pattern of the line represented by this object. + + The dash pattern. + + + + Gets a value indicating whether the property has been initialized. + + + True if this instance has dash pattern; otherwise, false. + + + + + For certain chart types such as Gantt charts, it is required to have relationships between points. + These are called 'Related Points'. This class represents symbol information that links such related points. + + + + + Initializes a new instance of the class. + + The shape. + Index of the image. + The color. + The size. + + + + Gets the shape of the symbol. + + + + + Gets the index value of the image that is to be used by the symbol. + + + + + + Gets the color of this symbol. + + + + + Gets the size of this symbol. + + + + + Implements the data store for the object. + + + + + + + Gets or sets an array of indices of related points. + + + + + + Color that is to be used for any visual representation. + + + + + + Width that is to be used for any visual representation. + + + + + + Pen alignment that is to be used for any visual representation. + + + + + + Gets a value indicating whether the DashStyle property has been initialized. + + + + + + Gets a value indicating whether the DashPattern property has been initialized. + + + + + + Start symbol that is to be used for any visual representation linking this related point with others. + + + + + + The end symbol that is to be used for any visual representation linking this related point with others. + + + + + + Gets or sets the border that is to be used for any visual representation linking this related point with others. + + + + + + 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. + + + + Creates an exact copy of the current object. + + + A with same data as the current object. + + + + + + Initializes the class. + + + + + 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 Static Data. + + + + + + For certain chart types such as Gantt charts, it is required to have relationships between points. + These are called 'Related Points'. This class represents such related points. + + + + + Clears all the resources used by the component. + + + + + Initializes a new instance of the class. + + + + + Initializes a new object and associates it with an existing . + + A that holds the identity for this . + + + + + Initializes a new object and associates it with an existing . + + A that holds the identity for this . + A that holds data for this . + All changes made in this style object will be saved in the object. + + + + + 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. + + + + + + Resets the gdip font. + + + + + Gets the gdip pen. + + Returns GdipPen object. + + + + + + + + + Override this method to return a default style object for your derived class. + + A default style object. + + + + + + Resets the property. + + + + + Should the serialize points. + + True if the instance should serialize otherwise False. + + + + Resets the property. + + + + + Should the color of the serialize. + + True if the instance should serialize otherwise False. + + + + Resets the property. + + + + + Should the width of the serialize. + + True if the instance should serialize otherwise False. + + + + Resets the property. + + + + + Should the serialize alignment. + + True if the instance should serialize otherwise False. + + + + Resets the property. + + + + + Should the serialize dash style. + + True if the instance should serialize otherwise False. + + + + Resets the property. + + + + + Should the serialize dash pattern. + + True if the instance should serialize otherwise False. + + + + Resets the property. + + + + + Should the serialize start symbol. + + True if the instance should serialize otherwise False. + + + + Resets the property. + + + + + Should the serialize end symbol. + + True if the instance should serialize otherwise False. + + + + Resets the property. + + + + + Should the serialize border. + + True if the instance should serialize otherwise False. + + + + Returns a default that is to be used with a default style. + + + The of the class + will return the default border info that this method generates through its + overridden version of . + + + + + Gets the GDI+ pen. + + The GDI+ pen. + + + + + Gets the number of points. + + + + + + Gets or sets an array of indices of related points. + + + + + Gets a value indicating whether the property has been initialized. + + + true if this instance has points; otherwise, false. + + + + + Gets or sets the color that is to be used for any visual representation. + + The color. + + + + Gets a value indicating whether the property has been initialized. + + true if this instance has color; otherwise, false. + + + + Gets or sets the width that is to be used for any visual representation. + + The width. + + + + Gets a value indicating whether the property has been initialized. + + true if this instance has width; otherwise, false. + + + + Gets or sets the pen alignment that is to be used for any visual representation. + + The alignment. + + + + Gets a value indicating whether the property has been initialized. + + + true if this instance has alignment; otherwise, false. + + + + + Gets or sets the dash style that is to be used for any visual representation. + + The dash style. + + + + Gets a value indicating whether the property has been initialized. + + + true if this instance has dash style; otherwise, false. + + + + + Gets or sets the dash pattern that is to be used for any visual representation. + + The dash pattern. + + + + Gets a value indicating whether the property has been initialized. + + + true if this instance has dash pattern; otherwise, false. + + + + + Gets or sets the start symbol that is to be used for any visual representation linking this related point with others. + + The start symbol. + + + + Gets a value indicating whether the property has been initialized. + + + true if this instance has start symbol; otherwise, false. + + + + + Gets or sets the end symbol that is to be used for any visual representation linking this related point with others. + + The end symbol. + + + + Gets a value indicating whether the property has been initialized. + + + true if this instance has end symbol; otherwise, false. + + + + + Gets or sets the border that is to be used for any visual representation linking this related point with others. + + The border. + + + + Gets a value indicating whether the property has been initialized. + + + true if this instance has border; otherwise, false. + + + + + This class contains border information that is to be used for any visual representation linking a related point with others. + + + + + Overloaded constructor. + + + + Color of the border line. + + + + + Width of the line. + + + + + Pen alignment to be used to render the line. + + + + + Dash style of the line. + + + + + Dash pattern of the line. + + + + + + Initializes a new instance of the class. + + The color. + The width. + + + + Initializes a new instance of the class. + + The color. + + + + Initializes a new instance of the class. + + + + + Gets the GDI+ pen. + + Returns the GdipPen. + + + + Gets the GDI+ pen. + + The GDI+ pen. + + + + + Gets the color of the line. + + + + + Gets the width of the line. + + + + + Gets the pen alignment of the line. + + + + + Gets the dash style of the line. + + + + + Gets the dash pattern of the line. + + + + + The ChartSeriesComposedStylesModel class. + + + + + This interface represents the 'composed' state of styles for a single series. When composed, styles have all their attributes + initialized from their base styles and any other styles that forms a part of their inheritance structure. Composed styles are used + by the chart directly. + + + + + + + + Overloaded. Returns an 'offline' version of the series style. Offline styles do not propagate changes made, back to the data store. + + + + + Returns an 'offline' version of the point style. Offline styles do not propagate changes made, back to the data store. + + Index value of the style. + Returns ChartStyleInfo object. + + + + Removes any information that is cached. + + + + + Looks up base style information for any object. + + + The style object for which base style information is to be retrieved. + The index value of the style. + Returns ChartStyleInfo array. + + + + Changes the style stored at the specified index to be the same as the specified style. Affects the data store. + + + + Style object whose information is to be stored. + + + + + The index value of the style to be changed. + + + + + + Returns the style object that is common to the series (for which this model holds style information). + + + + + Gets the at the specified index. + + + + + + Initializes a new instance of the class. + + The chart series. + + + + Overloaded. Returns an 'offline' version of the series style. Offline styles do not propagate changes made, back to the data store. + + Returns ChartStyleInfo object. + + + + Returns an 'offline' version of the point style. Offline styles do not propagate changes made, back to the data store. + + Index value of the style. + Returns ChartStyleInfo object. + + + + Looks up base style information for any object. + + + The style object for which base style information is to be retrieved. + The index value of the style. + Returns ChartStyleInfo array. + + + + Changes the style stored at the specified index to be the same as the specified style. Affects the data store. + + Style object whose information is to be stored. + The index value of the style to be changed. + + + + Changes the style. + + The style. + + + + Removes any information that is cached. + + + + + Gets the style. + + The index. + if set to true [off line]. + Returns ChartStyleInfo object. + + + + Gets the style object that is common to the series (for which this model holds style information). + + + + + + The ChartStyleInfo indexer. + + + + + + + Indexer helper class to access individual point styles. + + + + + Initializes a new instance of the class. + + The chart series. + + + + Returns the ChartStyleInfo object at the specified index. + + + + + The ChartSeriesStylesModel class. + + + + + This interface represents the complete style information for a series in the chart. + + + + + Returns the style information at the specified index. This is the actual style information and not composed style information. + + + + The index value of the point for which style information is needed. + + + + Style information at the specified index. + + + + + Changes style information at the specified index. + + + + Style whose attributes are to be stored. + + + + + Index value where they need to be stored. + + + + + + Changes series style information. + + + + Style whose attributes are to be stored in the series style. + + + + + + Accesses base style information for the specified style. + + + + Style for which base style information is needed. + + + + + Index value where the style is stored. + + + + + + Gets the series style information. + + + + + Completely composed styles can be accessed using the interface returned by this property. + Composed styles have all information initialized from base styles and any other styles along their + inheritance hierarchy. + + + + + Event that is raised when style information is changed. + + + + + Initializes a new instance of the class. + + The host. + + + + Returns the style information at the specified index. This is the actual style information and not composed style information. + + The index value of the point for which style information is needed. + + Style information at the specified index. + + + + + Changes style information at the specified index. + + Style whose attributes are to be stored. + Index value where they need to be stored. + + + + Changes series style information. + + Style whose attributes are to be stored in the series style. + + + + Accesses base style information for the specified style. + + Style for which base style information is needed. + Index value where the style is stored. + Returns ChartStyleInfo array. + + + + Raises the style changed. + + The index. + + + + Occurs when model is changed + + + + + Gets the series style information. + + + + + + Gets the ComposedStyles. Completely composed styles can be accessed using the interface returned by this property. + Composed styles have all information initialized from base styles and any other styles along their + inheritance hierarchy. + + + + + + Delegate that is to be used for events that broadcast changes to . + + + + Sender. + + + + + Argument. + + + + + + + + + Argument that is to be used in the delegate. + + + + + The Invalid Index. + + /// + + + + Creates the Reset typeof arguments. + + Returns ChartStyleChangedEventArgs object. + + + + + Initializes a new instance of the class. + + The type. + Index of the x. + + + + Gets the type of the event. + + + + + Gets the index value of the changed style. + + + + + Specifies the types of changes. + + + + + Style has been changed. + + + + + Style has been reset to default. + + + + + This class holds arbitrary style information. + + + + + The object that holds and + gets the data for this custom property object. + + + + + + Overloaded. Initializes the object + with a that the properties of this + class will belong to. + + The object that holds and + gets the data for this custom property object. + + + + + Initializes the object + with an empty object. When you later + set the property, the changes in this object + will be copied over to the new object. + + + + + + _s the create style info property. + + Type of the component. + The sd. + The type. + Name of the property. + Returns StyleInfoProperty object. + + + + Overloaded. Registers a new custom property. + > + + Registers a new custom property. + + The type of your derived custom property class. + The type of the property. + The name of the property. This must match a property member in your class. + A object that you should use for getting and setting + values. + + + + + Registers a new custom property. + + The type of your derived custom property class. + The name of the property. This must match a property member in your class. + A object that you should use for getting and setting + values. + + + + + Gets or sets the that holds and + gets the data for this custom property object. When you + set the property all prior changes in this object + will be copied over to the new object. + + + + + Implements a collection of custom property objects that have + at least one initialized value. The primary purpose of this + collection is to support design-time code serialization of + custom properties. + + + + + Initializes a with a reference + to the parent style object. + + + + + + Copies the initialized properties of the specified custom property + to the parent style object and attaches the custom property object + with the parent style object. + + A ChartStyleInfoCustomProperties with + custom properties. + + + + Copies the elements to a one-dimensional at the specified index. + + The one-dimensional which is the destination of the objects from the instance. The must have zero-based indexing. + The zero-based index in at which copying begins. + + + + Copies the elements of the to an , starting at a particular index. + + The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. + The zero-based index in at which copying begins. + + is null. + + + is less than zero. + + + is multidimensional. + -or- + is equal to or greater than the length of . + -or- + The number of elements in the source is greater than the available space from to the end of the destination . + + + The type of the source cannot be cast automatically to the type of the destination . + + + + + Returns an enumerator that iterates through a collection. + + + An object that can be used to iterate through the collection. + + + + + Gets the number of objects in this collection. + + + + + Gets an object that can be used to synchronize access to the . + + + + An object that can be used to synchronize access to the . + + + + + is an abstract base class for classes + to be used as sub-objects 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 sub-object from a . A sub-object needs to + have knowledge about its parent object and be able to walk the base styles from the + parent object. + Examples for implementation of is the font + class in Essential Chart. + Programmers can derive their own style classes from + and add type-safe (and Intelli-sense) + supported custom properties to the style class. + + See the overview of for further discussion about style objects. + + + + + 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 made in this style object will be saved in the object. + + + + + Initializes a new object and associates it with an existing . + + A that holds data for this object. + All changes made in this style object will be saved in the object. + + + + + Returns the that this sub-object belongs to. + + The parent style object. + + + + Initializes a new instance of the class. + + The data. + The index. + if set to true style is in offline. + + + + 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. + + + + Implements the data store for the object. + + + + + + + Initializes the class. + + + + + Initializes a new instance of the class. + + + + + + Initializes a new instance of the class. + + The info. + The context. + + + + + Internal method to initialize static variables of the object after disposing it + + + + + + Method to dispose ChartStyleInfoStore object + + + + + Clones this instance. + + Returns clone object of StyleInfoStore. + + + + Returns the specifies the correct store. + + Returns new instance of XmlSchema object. + + + + + Gets the static data. + + The static data. + + + + 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). + + + + + + + + This class acts as a repository for common styles (base styles). Such styles are registered and held in this repository. + This enables them to be referenced by their registered names. When changes are made to registered base styles, they are + propagated through the system. + + + + + Initializes a new instance of the class. + + + + + Registers the specified base style with the styles map. + + + + The style that is to be registered. The property will be used as the registration name. + + + + + + Look ups and returns the base style with the specified name. + + + + Name to look for. + + + + A base style if look up is successful; NULL otherwise. + + + + + Removes the base style registered under the specified name from this repository. + + + + Name of base style to remove. + + + + + + Remove references to all registered styles. + + + + + Gets the base styles. + + The style info. + Returns ChartStyleInfo array. + + + + + Gets the sub base styles. + + The style info. + The base style info. + Returns ChartStyleInfo array. + + + + + Gets the sub base styles. + + The style info. + The styles. + Returns ChartStyleInfo array. + + + + + Returns the ChartBaseStyleInfo object registered with the specified name. + + + + + Specifies the various available symbols that may be displayed at a ChartPoint. + + + + + No symbol is displayed. + + + + + Arrow is displayed. + + + + + Inverted Arrow is displayed. + + + + + Circle is displayed. + + + + + Cross is displayed. + + + + + Horizontal Line is displayed. + + + + + Vertical Line is displayed. + + + + + Diamond is displayed. + + + + + Square is displayed. + + + + + Triangle is displayed. + + + + + Inverted triangle is displayed. + + + + + Hexagon is displayed. + + + + + Pentagon is displayed. + + + + + Star is displayed. + + + + + Image specified in ImageIndex is displayed. + + + + + Circle is displayed. + + + + + Square is displayed. + + + + + Hexagon is displayed. + + + + + Pentagon is displayed. + + + + + This class implements the data store for the object. + + + + + + + + Gets or sets the style of the symbol that is to be displayed. + + + + + + Gets or sets the image index that is to be used to access the image from the associated ChartStyleInfo object's ImageList. + + + + + + Gets or sets the color that is to be used with the symbol. + + + + + + Gets a value indicating whether this instance has highlight color. + + + + + + Gets or sets the color of the dimmed symbol. + + + + + + Gets or sets the size of the symbol. + + + + + + Gets or sets the offset of the symbol. + + + + + Gets or sets the marker of the symbol. + + + + + + + Gets or sets the information that is to be used for drawing border. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Internal method to initialize static variables of ChartSymbolInfoStore object + + + + + + Method to dispose ChartSymbolInfoStore object + + + + + Creates an exact copy of the current object. + Base class implementation of this method calls Activator.CreateInstance to achieve the same result. + I assume calling new directly is more efficient. Otherwise this override is obsolete. + + + A with same data as the current object. + + + + + + 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). + + + + + + + + This class implements the data store for the object. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Initializes a new instance of the class. + + + + + Internal method to initialize static variables of ChartCalloutInfoStore object + + + + + + Method to dispose ChartCalloutInfoStore object + + + + + Creates an exact copy of the current object. + Base class implementation of this method calls Activator.CreateInstance to achieve the same result. + I assume calling new directly is more efficient. Otherwise this override is obsolete. + + + A with same data as the current object. + + + + + + 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). + + + + + + + + + Gets or sets border to the custom shape. + + + + + + Gets or sets the type of custom shape to be used. + + + + + + Gets or sets border to the custom shape. + + + + + Initializes a new instance of class. + + + + + Internal method to initialize static variables of this object after disposing it + + + + + + Method to dispose ChartCustomShapeInfoStore object + + + + + 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). + + + + + + + + Initializes the new instance of the class. + + + + + Initializes a new instance of the class. + + + + + Initializes a new object and associates it with an existing . + + A that holds the identity for this . + + + + + Initializes a new instance of object and associates it with an existing . + + A that holds the identity for this . + A that holds data for this . + All changes made in this style object will be saved in the object. + + + + + Method to dispose ChartCustomShapeInfo object + + + + + Returns . + + A object with default values. + + + + + Gets a default that is to be used with a default custom shape. + + + + + Gets or sets the color that is to be used with the symbol. + + The color. + + + + Gets or sets the style of the shape that is to be displayed. + Default shape is square. + It will support the limitted shape(Square, Circle, Hexagon, Pentagon) draw around the custom point + + + + + Gets or sets border to the custom shape. + + + + + This class provides a object for symbols associated with a ChartPoint. + + + + + Initializes the new instance of the class. + + + + + Initializes a new instance of the class. + + + + + Initializes a new object and associates it with an existing . + + A that holds the identity for this . + + + + + Initializes a new instance of object and associates it with an existing . + + A that holds the identity for this . + A that holds data for this . + All changes made in this style object will be saved in the object. + + + + + Resets the symbol style. + + + + + Should the serialize shape. + + True if the element should serialize otherwise False. + + + + Resets the image index. + + + + + Should the index of the serialize image. + + True if the element should serialize otherwise False. + + + + Resets the symbol's color. + + + + + Should the color of the serialize. + + True if the element should serialize otherwise False. + + + + Resets the color of the highlighted symbol. + + + + + Shoulds the color of the serialize highlighted symbol. + + + + + + Resets the color of the dimmed. + + + + + Shoulds the color of the serialize dimmed. + + + + + + Resets the size. + + + + + Should the size of the serialize. + + True if the element should serialize otherwise False. + + + + Resets the offset. + + + + + Should the serialize offset. + + True if the element should serialize otherwise False. + + + + Resets line information. + + + + + Should the serialize border. + + True if the element should serialize otherwise False. + + + + Resets the marker. + + + + + Method to dispose ChartSymbolInfo object + + + + + Creates the new class. + + The identity. + The store. + Returns new ChartSymbolInfo instance. + + + + Override this method to create a product-specific identity object for a sub object. + + + + An identity object for a subobject of this style. + + + + + + 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 . + + A object with default values. + + + + Gets a default that is to be used with a default style. + + + + + Gets or sets the style of the symbol that is to be displayed. + + + + + Gets a value indicating whether the style has been initialized. + + true if this instance has shape; otherwise, false. + + + + Gets or sets the image index that is to be used to access the image from the associated object's ImageList. + + The index of the image. + + + + Gets a value indicating whether the ImageIndex has been initialized. + + + true if this instance has image index; otherwise, false. + + + + + Gets or sets the color that is to be used with the symbol. + + The color. + + + + Gets a value indicating whether the symbol's color has been initialized. + + true if this instance has color; otherwise, false. + + + + Gets or sets the color of the highlighted symbol. + + The color of the highlighted symbol. + + + + Gets a value indicating whether this instance has highlight color. + + + true if this instance has highlight color; otherwise, false. + + + + + Gets or sets the color of the dimmed symbol. + + The color of the dimmed symbol. + + + + Gets a value indicating whether this instance has dimmed color. + + + true if this instance has dimmed color; otherwise, false. + + + + + Gets or sets the size of the symbol. + + The size. + + + + Gets a value indicating whether the size of the symbol has been initialized. + + true if this instance has size; otherwise, false. + + + + Gets or sets the offset of the symbol. + + The offset. + + + + Gets a value indicating whether the offset of the symbol has been initialized. + + + true if this instance has offset; otherwise, false. + + + + + Gets or sets the information that is to be used for drawing border. + + The border. + + + + Gets a value indicating whether line information has been initialized for the current object. + + + + + Gets or sets the marker of the symbol. + + + + + Indicates whether the marker of the symbol has been initialized. + + + + + This class provides a object for callout associated with a ChartPoint. + + + + + Initializes the new instance of the class. + + + + + Initializes a new instance of the class. + + + + + Initializes a new object and associates it with an existing . + + A that holds the identity for this . + + + + + Initializes a new instance of object and associates it with an existing . + + A that holds the identity for this . + A that holds data for this . + All changes made in this style object will be saved in the object. + + + + + Resets enable calloutr. + + + + + Should the enable of the serialize. + + True if the element should serialize otherwise False. + + + + Resets TextOffset information. + + + + + Should the serialize TextOffset. + + True if the element should serialize otherwise false. + + + + Resets OffsetX information. + + + + + Should the serialize OffsetX. + + True if the element should serialize otherwise false. + + + + Resets OffsetY information. + + + + + Should the serialize OffsetY. + + True if the element should serialize otherwise false. + + + + Resets Font information. + + + + + Should the serialize Font. + + True if the element should serialize otherwise false. + + + + Resets textFormat information. + + + + + Should the serialize textFormat. + + True if the element should serialize otherwise false. + + + + + + + + Should the serialize text Position. + + True if the element should serialize otherwise false. + + + + Resets the callout's color. + + + + + Should the color of the serialize. + + True if the element should serialize otherwise False. + + + + Resets the callout's text color. + + + + + Should the text color of the serialize. + + True if the element should serialize otherwise False. + + + + Resets line information. + + + + + Should the serialize border. + + True if the element should serialize otherwise False. + + + + Method to dispose ChartCalloutInfo object + + + + + Creates the new class. + + The identity. + The store. + Returns new ChartCalloutInfo instance. + + + + Override this method to create a product-specific identity object for a sub object. + + + + An identity object for a subobject of this style. + + + + + + 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 . + + A object with default values. + + + + + Gets a default that is to be used with a default style. + + + + + Gets or sets the boolean value that is to be used with the callout. + + The Enable. + + + + Gets a value indicating whether the callout feature is enabled. + + true if this instance has boolean; otherwise, false. + + + + This is associated with a Text property and used for internal purpose. + duplicate for displaytextandformat. + + duplicate value. + + + + This is associated with a Text property and used for internal purpose. + offset for text. + + TextOffset value. + + + + Gets a value indicating whether TextOffset information has been initialized for the current object. + + true if this instance has TextOffset; otherwise, false. + + + + This is associated with a Text property and used for internal purpose. + offset for text. + + OffsetX value. + + + + Gets a value indicating whether OffsetX information has been initialized for the current object. + + true if this instance has OffsetX; otherwise, false. + + + + This is associated with a Text property and used for internal purpose. + offset for text. + + OffsetY value. + + + + Gets a value indicating whether OffsetY information has been initialized for the current object. + + true if this instance has OffsetY; otherwise, false. + + + + Gets or sets the font that is to be associated with a . This font will be rendered at a position near the point if + is set to True. + + The font. + + + + Gets a value indicating whether Font information has been initialized for the current object. + + true if this instance has text; otherwise, false. + + + + Gets or sets the textFormat that is to be associated with a . This text will be rendered with prefix or sufix text with the format of {0},{1},{2} + is set to True. + + The text. + + + + Gets a value indicating whether textFormat information has been initialized for the current object. + + true if this instance has textFormat; otherwise, false. + + + + Gets or sets the Position of text that is to be displayed at this point. + + + + + Gets a value indicating whether this instance has text Position. + + + true if this instance has text orientation; otherwise, false. + + + + + + This is associated with the label position placement on mouse dragging. + + duplicate value. + + + + This is associated with the label position placement on mouse dragging. + + duplicate value. + + + + + This is associated with the label placement on mouse dragging. + + duplicate value. + + + + + Gets or sets the color that is to be used with the callout. + + The color. + + + + Gets a value indicating whether the callout's color has been initialized. + + true if this instance has color; otherwise, false. + + + + Gets or sets the text color that is to be used with the callout. + + The text color. + + + + Gets a value indicating whether the callout's text color has been initialized. + + true if this instance has color; otherwise, false. + + + + Gets or sets the information that is to be used for drawing border. + + The border. + + + + Gets a value indicating whether line information has been initialized for the current object. + + + + + Represents the data of . + + + + + + Initializes a new instance of the class. + + The properties. + + + + Gets the properties. + + The properties. + + + + Represents the method that handles the event. + + + + + + Represents the proxy of instance. + + + + + + Initializes a new instance of the class. + + The g. + + + + Creates GraphProxy instance by the specified handle. + + The handle. + The proxy. + Returns Graphics object. + + + + Creates GraphProxy instance by the specified . + + The img. + The proxy. + Returns Graphics object. + + + + When overridden in a derived class, invokes the method that is specified in the provided on the remote object that is represented by the current instance. + + A that contains a of information about the method call. + + The message returned by the invoked method, containing the return value and any out or ref parameters. + + + + + + Occurs when methods is called. + + + + + This class contains the data of geomerty path. + + + + + + Initializes a new instance of the class. + + The data. + + + + Initializes a new instance of the class. + + The data. + + + + Returns a that represents the current . + + + A that represents the current . + + + + + Parses the string. + + The value. + + + + Gets the path data. + + The path data. + + + + Gets the . + + The path. + + + + Gets the data regex. + + The data regex. + + + + Represents the value of ClipRule attribute of SVG DOM. + + + + + + Initializes a new instance of the class. + + The name. + + + + Returns the fully qualified type name of this instance. + + + A containing a fully qualified type name. + + + + + Implements the operator ==. + + The v1. + The v2. + The result of the operator. + + + + Implements the operator !=. + + The v1. + The v2. + The result of the operator. + + + + 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. + + + + + Gets the "Nonzero" value. + + The nonzero. + + + + Gets the "Evenodd" value. + + The evenodd. + + + + Represents the value of FontStretch attribute of SVG DOM. + + + + + + Initializes a new instance of the class. + + The name. + + + + Returns the fully qualified type name of this instance. + + + A containing a fully qualified type name. + + + + + Parses the specified STR. + + The STR. + Returns EFontStretch object. + + + + 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. + + + + + Gets the normal. + + The normal. + + + + Gets the wider. + + The wider. + + + + Gets the narrower. + + The narrower. + + + + Gets the ultra condensed. + + The ultra condensed. + + + + Gets the extra condensed. + + The extra condensed. + + + + Gets the condensed. + + The condensed. + + + + Gets the semi condensed. + + The semi condensed. + + + + Gets the semi expanded. + + The semi expanded. + + + + Gets the expanded. + + The expanded. + + + + Gets the extra expanded. + + The extra expanded. + + + + Gets the ultra expanded. + + The ultra expanded. + + + + Represents the value of FontStyle attribute of SVG DOM. + + + + + + Initializes a new instance of the class. + + The name. + + + + Returns the fully qualified type name of this instance. + + + A containing a fully qualified type name. + + + + + Implements the operator ==. + + The v1. + The v2. + The result of the operator. + + + + Implements the operator !=. + + The v1. + The v2. + The result of the operator. + + + + 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. + + + + + Gets the normal. + + The normal. + + + + Gets the italic. + + The italic. + + + + Gets the oblique. + + The oblique. + + + + Represents the value of FontVariant attribute of SVG DOM. + + + + + + Initializes a new instance of the class. + + The name. + + + + Gets the normal. + + The normal. + + + + Gets the small caps. + + The small caps. + + + + Represents the value of FontWeight attribute of SVG DOM. + + + + + + Initializes a new instance of the class. + + The name. + + + + Returns the fully qualified type name of this instance. + + + A containing a fully qualified type name. + + + + + Implements the operator ==. + + The v1. + The v2. + The result of the operator. + + + + Implements the operator !=. + + The v1. + The v2. + The result of the operator. + + + + 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. + + + + + Gets the normal. + + The normal. + + + + Gets the bold. + + The bold. + + + + Gets the bolder. + + The bolder. + + + + Gets the lighter. + + The lighter. + + + + Gets the value100. + + The value100. + + + + Gets the value200. + + The value200. + + + + Gets the value300. + + The value300. + + + + Gets the value400. + + The value400. + + + + Gets the value500. + + The value500. + + + + Gets the value600. + + The value600. + + + + Gets the value700. + + The value700. + + + + Gets the value800. + + The value800. + + + + Gets the value900. + + The value900. + + + + Represents the value of LengthAdjust attribute of SVG DOM. + + + + + + Initializes a new instance of the class. + + The name. + + + + Returns the fully qualified type name of this instance. + + + A containing a fully qualified type name. + + + + + Parses the specified STR. + + The STR. + Returns ELengthAdjust. + + + + Gets the spacing. + + The spacing. + + + + Gets the spacing and glyphs. + + The spacing and glyphs. + + + + Specifies the spread methods. + + + + + + The pad value + + + + + The reflect value + + + + + The repeat value + + + + + Specifies the types of length object. + + + + + + Unknown length type. + + + + + Number type of length. + + + + + Percentage type of length. + + + + + "EMS" type of length. + + + + + "EXS" type of length. + + + + + "PX" type of length. + + + + + "CM" type of length. + + + + + "MM" type of length. + + + + + "IN" type of length. + + + + + "PT" type of length. + + + + + "PC" type of length. + + + + + Specifies the types of angle object. + + + + + + "UNKNOWN" type of angle. + + + + + "UNSPECIFIED" type of angle. + + + + + "DEG" type of angle. + + + + + "RAD" type of angle. + + + + + "GRAD" type of angle. + + + + + Represents the value of StrokeLinecap attribute of SVG DOM. + + + + + + The Name. + + + + + Initializes a new instance of the class. + + The name. + + + + Returns a that represents the current . + + + A that represents the current . + + + + + Parses the specified string. + + The string. + Returns EStrokeLinecap. + + + + Implements the operator ==. + + The v1. + The v2. + The result of the operator. + + + + Implements the operator !=. + + The v1. + The v2. + 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. + + + + + Serves as a hash function for a particular type. + + + A hash code for the current . + + + + + Gets the butt. + + The butt. + + + + Gets the round. + + The round. + + + + Gets the square. + + The square. + + + + Represents the value of StrokeLinejoin attribute of SVG DOM. + + + + + + Initializes a new instance of the class. + + The name. + + + + Returns the fully qualified type name of this instance. + + + A containing a fully qualified type name. + + + + + Parses the specified STR. + + The STR. + Returns EStrokeLinejoin. + + + + Implements the operator ==. + + The v1. + The v2. + The result of the operator. + + + + Implements the operator !=. + + The v1. + The v2. + The result of the operator. + + + + 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. + + + + + Gets the miter. + + The miter. + + + + Gets the round. + + The round. + + + + Gets the bevel. + + The bevel. + + + + Represents the value of StrokeLinejoin attribute of SVG DOM. + + + + + + Initializes a new instance of the class. + + The name. + + + + Returns the fully qualified type name of this instance. + + + A containing a fully qualified type name. + + + + + Parses the specified string. + + The string. + Returns + + + + Implements the operator ==. + + The v1. + The v2. + The result of the operator. + + + + Implements the operator !=. + + The v1. + The v2. + The result of the operator. + + + + 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. + + + + + Gets the user space on use. + + The user space on use. + + + + Gets the object bounding box. + + The object bounding box. + + + + Implements the array. + + + + + + The array float numbers. + + + + + Initializes a new instance of the class. + + The array. + + + + Initializes a new instance of the class. + + The value. + + + + Initializes a new instance of the class. + + + + + Returns a that represents the current . + + + A that represents the current . + + + + + Performs an implicit conversion from to . + + The array. + The result of the conversion. + + + + Parses the string. + + The value. + + + + Gets the array. + + The array. + + + + Gets the at the specified index. + + + + + + + + + Initializes a new instance of the class. + + The value. + + + + Initializes a new instance of the class. + + The value. + The type. + + + + Initializes a new instance of the class. + + The value. + + + + Parses the specified value. + + The value. + Returns SVG.Length. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The length. + The result of the conversion. + + + + Returns the fully qualified type name of this instance. + + + A containing a fully qualified type name. + + + + + Gets the value by specified max value. + + The max. + Returns maximum 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. + + + + + Parses the string. + + The value. + + + + Gets the type. + + The type. + + + + Gets the value. + + The value. + + + + Gets a value indicating whether this instance is empty. + + true if this instance is empty; otherwise, false. + + + + Gets the empty length. + + The empty length. + + + + Gets the primary string. + + The primary string. + + + + Gets the length regex. + + The length regex. + + + + Stores the location and size of a rectangle. + + + + + + Initializes a new instance of the struct. + + The rect. + + + + Initializes a new instance of the struct. + + The primary. + + + + Initializes a new instance of the class. + + The x. + The y. + The width. + The height. + + + + Parses the specified value. + + The value. + Returns the new LengthRect instance. + + + + Returns the fully qualified type name of this instance. + + + A containing a fully qualified type name. + + + + + Parses the string. + + The text. + + + + Gets the X coordinate. + + The X. + + + + Gets the Y coordinate. + + The Y. + + + + Gets the width of rectangle. + + The width. + + + + Gets the height of rectangle. + + The height. + + + + Gets a value indicating whether this instance is empty. + + true if this instance is empty; otherwise, false. + + + + Gets the empty. + + The empty. + + + + Represents the color object of SVG DOM. + + + + + + Initializes a new instance of the class. + + The color. + + + + Initializes a new instance of the class. + + The color. + + + + Performs an implicit conversion from to . + + The color. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The color. + The result of the conversion. + + + + Returns the fully qualified type name of this instance. + + + A containing a fully qualified type name. + + + + + Parses the string. + + The color. + + + + Gets the color. + + The color. + + + + Gets the color regex. + + The color regex. + + + + Gets the color regex percent. + + The color regex percent. + + + + Gets the hex6 color regex. + + The hex6 color regex. + + + + Gets the hex3 color regex. + + The hex3 color regex. + + + + Gets a value indicating whether this instance is none. + + true if this instance is none; otherwise, false. + + + + Gets the primaty value. + + The primaty value. + + + + + + + Initializes a new instance of the struct. + + The value. + + + + Initializes a new instance of the struct. + + The value. + + + + Parses the specified value. + + The value. + + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Returns the fully qualified type name of this instance. + + + A containing a fully qualified type name. + + + + + Gets the value. + + The value. + + + + Gets the string value of number. + + The primary. + + + + Gets the empty . + + The empty. + + + + Represents the value of Opacity attribute. + + + + + + Initializes a new instance of the struct. + + The value. + + + + Initializes a new instance of the struct. + + The value. + + + + Initializes a new instance of the struct. + + The alpha. + + + + Initializes a new instance of the struct. + + The color. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Returns the fully qualified type name of this instance. + + + A containing a fully qualified type name. + + + + + Parses the specified string. + + The value. + + + + + Gets or sets the value. + + The value. + + + + Gets or sets the alpha. + + The alpha. + + + + Represents the points array object of SVG DOM. + + + + + + Initializes a new instance of the class. + + The array. + + + + Initializes a new instance of the class. + + The value. + + + + Initializes a new instance of the class. + + The points. + + + + Creates the float array by the specified array of . + + The points. + Returns Float array from Point array. + + + + Gets the points. + + The points. + + + + Represents the Font of SVG DOM. + + + + + + Represents the style of SVG DOM. + + + + + + Contains the fill members. + + + + + + Gets or sets the color to fill the background. + + The fill. + + + + Gets or sets the fill opacity. + + The fill opacity. + + + + Contains the stroke members. + + + + + + Gets or sets the stroke. + + The stroke. + + + + Gets or sets the width of the stroke. + + The width of the stroke. + + + + Gets or sets the stroke line caps. + + The stroke line caps. + + + + Gets or sets the stroke line join. + + The stroke line join. + + + + Gets or sets the stroke miter limit. + + The stroke miter limit. + + + + Gets or sets the stroke dash array. + + The stroke dash array. + + + + Gets or sets the stroke dash offset. + + The stroke dash offset. + + + + Gets or sets the stroke opacity. + + The stroke opacity. + + + + Contains the transformation attribute. + + + + + + Gets or sets the transform. + + The transform. + + + + Contains the opacity members. + + + + + + Gets or sets the opacity. + + The opacity. + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The value. + + + + Adds the specified attr. + + The attr. + The value. + + + + Returns a that represents the current . + + + A that represents the current . + + + + + Gets the attribute. + + The key. + The def value. + returns object. + + + + Sets the attribute. + + The key. + The value. + The def value. + + + + Parses the specified string. + + The value. + + + + Gets the attributes. + + The attributes. + + + + Gets the divisor. + + The divisor. + + + + Gets or sets the stroke. + + The stroke. + + + + Gets or sets the width of the stroke. + + The width of the stroke. + + + + Gets or sets the stroke line caps. + + The stroke line caps. + + + + Gets or sets the stroke line join. + + The stroke line join. + + + + Gets or sets the stroke miter limit. + + The stroke miter limit. + + + + Gets or sets the stroke dash array. + + The stroke dash array. + + + + Gets or sets the stroke dash offset. + + The stroke dash offset. + + + + Gets or sets the stroke opacity. + + The stroke opacity. + + + + Gets or sets the color to fill the background. + + The fill. + + + + Gets or sets the fill opacity. + + The fill opacity. + + + + Gets or sets the transform. + + The transform. + + + + Gets or sets the opacity. + + The opacity. + + + + Contains the SVG DOM constants (element, attributes names, defined values...). + + + + + + The name of "ENTITY" element of XML DOM. + + + + + The name of "line" element of SVG DOM. + + + + + The name of "ellipse" element of SVG DOM. + + + + + The name of "path" element of SVG DOM. + + + + + The name of "polygon" element of SVG DOM. + + + + + The name of "polyline" element of SVG DOM. + + + + + The name of "rect" element of SVG DOM. + + + + + The name of "text" element of SVG DOM. + + + + + The name of "svg" element of SVG DOM. + + + + + The name of "g" element of SVG DOM. + + + + + The name of "defs" element of SVG DOM. + + + + + The name of "linearGradient" element of SVG DOM. + + + + + The name of "radialGradient" element of SVG DOM. + + + + + The name of "pattern" element of SVG DOM. + + + + + The name of "stop" element of SVG DOM. + + + + + The name of "image" element of SVG DOM. + + + + + The name of "circle" element of SVG DOM. + + + + + The name of "clipPath" element of SVG DOM. + + + + + The name of "id" attribute of SVG DOM. + + + + + The name of "x" attribute of SVG DOM. + + + + + The name of "y" attribute of SVG DOM. + + + + + The name of "width" attribute of SVG DOM. + + + + + The name of "height" attribute of SVG DOM. + + + + + The name of "x1" attribute of SVG DOM. + + + + + The name of "x2" attribute of SVG DOM. + + + + + The name of "y1" attribute of SVG DOM. + + + + + The name of "y2" attribute of SVG DOM. + + + + + The name of "cx" attribute of SVG DOM. + + + + + The name of "rx" attribute of SVG DOM. + + + + + The name of "cy" attribute of SVG DOM. + + + + + The name of "cy" attribute of SVG DOM. + + + + + The name of "r" attribute of SVG DOM. + + + + + The name of "fx" attribute of SVG DOM. + + + + + The name of "fy" attribute of SVG DOM. + + + + + The name of "dx" attribute of SVG DOM. + + + + + The name of "dy" attribute of SVG DOM. + + + + + The name of "d" attribute of SVG DOM. + + + + + The name of "image" attribute of SVG DOM. + + + + + The name of "points" attribute of SVG DOM. + + + + + The name of "style" attribute of SVG DOM. + + + + + The name of "textLength" attribute of SVG DOM. + + + + + The name of "LengthAdjust" attribute of SVG DOM. + + + + + The name of "version" attribute of SVG DOM. + + + + + The name of "stroke" attribute of SVG DOM. + + + + + The name of "stroke-width" attribute of SVG DOM. + + + + + The name of "stroke-linecap" attribute of SVG DOM. + + + + + The name of "stroke-linejoin" attribute of SVG DOM. + + + + + The name of "stroke-miterlimit" attribute of SVG DOM. + + + + + The name of "stroke-dasharray" attribute of SVG DOM. + + + + + The name of "stroke-opacity" attribute of SVG DOM. + + + + + The name of "stroke-dashoffset" attribute of SVG DOM. + + + + + The name of "rotate" attribute of SVG DOM. + + + + + The name of "fill" attribute of SVG DOM. + + + + + The name of "fill-opacity" attribute of SVG DOM. + + + + + The name of "fill-rule" attribute of SVG DOM. + + + + + The name of "offset" attribute of SVG DOM. + + + + + The name of "stop-color" attribute of SVG DOM. + + + + + The name of "stop-opacity" attribute of SVG DOM. + + + + + The name of "spreadMethod" attribute of SVG DOM. + + + + + The name of "gradientUnits" attribute of SVG DOM. + + + + + The name of "opacity" attribute of SVG DOM. + + + + + The name of "font-family" attribute of SVG DOM. + + + + + The name of "font-weight" attribute of SVG DOM. + + + + + The name of "font-style" attribute of SVG DOM. + + + + + The name of "font-variant" attribute of SVG DOM. + + + + + The name of "font-stretch" attribute of SVG DOM. + + + + + The name of "font-size" attribute of SVG DOM. + + + + + The name of "font-size-adjust" attribute of SVG DOM. + + + + + The name of "transform" attribute of SVG DOM. + + + + + The name of "text-decoration" attribute of SVG DOM. + + + + + The name of "gradientTransform" attribute of SVG DOM. + + + + + The name of "patternTransform" attribute of SVG DOM. + + + + + The name of "viewBox" attribute of SVG DOM. + + + + + The name of "preserveAspectRatio" attribute of SVG DOM. + + + + + The name of "patternContentUnits" attribute of SVG DOM. + + + + + The name of "patternUnits" attribute of SVG DOM. + + + + + The name of "shape-rendering" attribute of SVG DOM. + + + + + The name of "clip-rule" attribute of SVG DOM. + + + + + The name of "clip-path" attribute of SVG DOM. + + + + + The name of "clipPathUnits" attribute of SVG DOM. + + + + + The name of "xlink:href" attribute of SVG DOM. + + + + + The "none" value. + + + + + The "M" value. + + + + + The "L" value. + + + + + The "C" value. + + + + + The "H" value. + + + + + The "V" value. + + + + + The "Q" value. + + + + + The "Z" value. + + + + + The "pad" value. + + + + + The "url" value. + + + + + The "bold" value. + + + + + The "lighter" value. + + + + + The "100" value. + + + + + The "200" value. + + + + + The "300" value. + + + + + The "400" value. + + + + + The "500" value. + + + + + The "600" value. + + + + + The "700" value. + + + + + The "800" value. + + + + + The "900" value. + + + + + The "butt" value. + + + + + The "bevel" value. + + + + + The "miter" value. + + + + + The "medium" value. + + + + + The "round" value. + + + + + The "square" value. + + + + + The "bolder" value. + + + + + The "italic" value. + + + + + The "normal" value. + + + + + The "wider" value. + + + + + The "narrower" value. + + + + + The "nonzero" value. + + + + + The "evenodd" value. + + + + + The "condensed" value. + + + + + The "semi-condensed" value. + + + + + The "extra-condensed" value. + + + + + The "ultra-condensed" value. + + + + + The "expanded" value. + + + + + The "semi-expanded" value. + + + + + The "extra-expanded" value. + + + + + The "ultra-expanded" value. + + + + + The "reflect" value. + + + + + The "reflect" value. + + + + + The "underline" value. + + + + + The "crispEdges" value. + + + + + The "objectBoundingBox" value. + + + + + The "userSpaceOnUse" value. + + + + + The "data:;base64," value. + + + + + The "oblique" value. + + + + + The "small-caps" value. + + + + + The "matrix" value. + + + + + The "translate" value. + + + + + The "scale" value. + + + + + The "rotate" value. + + + + + The "skewX" value. + + + + + The "skewY" value. + + + + + The "spacing" value. + + + + + The "spacingAndGlyphs" value. + + + + + The "%" value. + + + + + The "em" value. + + + + + The "ex" value. + + + + + The "px" value. + + + + + The "cm" value. + + + + + The "mm" value. + + + + + The "in" value. + + + + + The "pt" value. + + + + + The "pc" value. + + + + + The "cx" value. + + + + + The "cy" value. + + + + + The "fx" value. + + + + + The "fy" value. + + + + + The "#" value. + + + + + The "rgb" value. + + + + + The "r" value. + + + + + The "g" value. + + + + + The "b" value. + + + + + Contanins the 2D transformation. + + + + + + Initializes a new instance of the class. + + The matrix. + + + + Initializes a new instance of the class. + + The value. + + + + Returns a that represents the current . + + + A that represents the current . + + + + + Parses the string. + + The value. + + + + Gets the matrix. + + The matrix. + + + + Contains the helper methods and properties to parse the SVG DOM. + + + + + + Gets the float. + + The value. + Returns Float. + + + + Gets the float. + + The value. + Returns Float in String format. + + + + Gets the number. + + The value. + + + + + Gets the array of numbers. + + The string. + Returns Float array. + + + + Gets the GDI+ pen by the stroke attribute of specified element. + + The elem. + Returns Pen + + + + Sets the stroke attribute of specified the GDI+ pen. + + The elem. + The pen. + + + + Gets the GDI+ brush by the fill attribue of specified element. + + The element. + The SVG document. + Returns Brush. + + + + Sets the fill attribute by the specified GDI+ brush. + + The elem. + The br. + + + + Gets the GDI+ font by the font attributes of element. + + The elem. + Returns GDIFont. + + + + Sets the font attributes by the specified GDI+ font. + + The element. + The font. + + + + Gets the id from URL. + + The ulr. + Returns url string. + + + + Gets the URL from id. + + The id. + Returns url string from the ID. + + + + Gets the GDI+ brush (gradient or pattern brush) of elemet fill. + + The elemet. + Returns Brush. + + + + Gets the GDI+ brush of elemet fill. + + The element. + Returns GDIPBrush. + + + + Gets the GDI+ pen of element stroke. + + The element. + Returns Pen. + + + + Gets the float format. + + The float format. + + + + Gets the number chars. + + The number chars. + + + + Gets the number regex. + + The number regex. + + + + Gets the URL regex. + + The URL regex. + + + + Base implementation of interface. + + + + + + Base interface of each SVG element. + + + + + + Gets or sets the element identifier. + + The identifier. + + + + Gets the name of element. + + The name. + + + + Gets or sets the inner text of element. + + The text. + + + + Gets the owner document. + + The owner document. + + + + Initializes a new instance of the class. + + The name of element. + + + + Adds the child. + + The value. + + + + Draws the specified g. + + The g. + + + + Sets the document. + + The . + + + + Parses the XML document. + + The . + + + + Writes the XML. + + The writer. + + + + Writes the attributes to XML document. + + The . + + + + Gets the attribute value. + + The key. + The default value. + Returns object of the specified key. + + + + Sets the value of attribute. + + The key. + The value. + The default value. + + + + Determines whether the specified child is allowed to add to the this element. + + The elem. + + true if the specified child is allowed to add to the this element; otherwise, false. + + + + + Gets the name of element. + + The name. + + + + Gets the inner elements. + + The inner elements. + + + + Gets the attributes. + + The attributes. + + + + Gets the parent element. + + The parent element. + + + + Gets or sets the element identifier. + + The identifier. + + + + Gets the owner document. + + The owner document. + + + + Gets or sets the inner text of element. + + The text. + + + + Represents the indexer of the element children collection. + + + + + Initializes a new instance of the class. + + The list. + + + + 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. + + + + + + Gets the count. + + The count. + + + + Implements the all SVG interfaces. + + + + + + Contains the style attribute. + + + + + + Gets or sets the style. + + The style. + + + + Contains the font members. + + + + + + Gets or sets the font family. + + The font family. + + + + Gets or sets the font style. + + The font style. + + + + Gets or sets the font variant. + + The font variant. + + + + Gets or sets the font weight. + + The font weight. + + + + Gets or sets the font stretch. + + The font stretch. + + + + Gets or sets the size of the font. + + The size of the font. + + + + Gets or sets the font size adjust. + + The font size adjust. + + + + Gets or sets the font. + + The font. + + + + Contains the view box attribute. + + + + + + Gets or sets the view box. + + The view box. + + + + Contains clipping members. + + + + + + Gets or sets the clip rule. + + The clip rule. + + + + Gets or sets the identifier of clip path. + + The clip path. + + + + Initializes a new instance of the class. + + The name of element. + + + + Draws the element and the inner elements to the specified . + + The . + + + + Parses the XML document. + + The . + + + + Sets the XML attribute. + + The attr. + + + + Draws the element to specified . + + The . + + + + Gets or sets the stroke. + + The stroke. + + + + Gets or sets the width of the stroke. + + The width of the stroke. + + + + Gets or sets the stroke line caps. + + The stroke line caps. + + + + Gets or sets the stroke line join. + + The stroke line join. + + + + Gets or sets the stroke miter limit. + + The stroke miter limit. + + + + Gets or sets the stroke dash array. + + The stroke dash array. + + + + Gets or sets the stroke dash offset. + + The stroke dash offset. + + + + Gets or sets the stroke opacity. + + The stroke opacity. + + + + Gets or sets the color to fill the background. + + The fill. + + + + Gets or sets the fill opacity. + + The fill opacity. + + + + Gets or sets the transform. + + The transform. + + + + Gets or sets the style. + + The style. + + + + Gets or sets the font family. + + The font family. + + + + Gets or sets the font style. + + The font style. + + + + Gets or sets the font variant. + + The font variant. + + + + Gets or sets the font weight. + + The font weight. + + + + Gets or sets the font stretch. + + The font stretch. + + + + Gets or sets the size of the font. + + The size of the font. + + + + Gets or sets the font size adjust. + + The font size adjust. + + + + Gets or sets the font. + + The font. + + + + Gets or sets the view box. + + The view box. + + + + Gets or sets the opacity. + + The opacity. + + + + Gets or sets the clip rule. + + The clip rule. + + + + Gets or sets the identifier of clip path. + + The clip path. + + + + Implements the "circle" element of SVG DOM. + + + + + + Initializes a new instance of the class. + + + + + Parses the XML document. + + The . + + + + Draws the element to specified . + + The . + + + + Gets or sets the radius of circle. + + The radius of circle. + + + + Gets or sets the X coorditane of element center. + + The X coorditane of element center. + + + + Gets or sets the Y coorditane of element center. + + The Y coorditane of element center. + + + + Implements the "clipPath" element of SVG DOM. + + + + + + Initializes a new instance of the class. + + + + + Gets the result path. + + Returns GraphicsPath object. + + + + Implements the "defs" element of SVG DOM. + + + + + + Initializes a new instance of the class. + + + + + Implements the "ellipse" element of SVG DOM. + + + + + + Initializes a new instance of the class. + + + + + Creates the new instance by the specified . + + The rect. + Returns EllipseElement. + + + + Parses the XML document. + + The . + + + + Creates instance of the by its location and size. + + The x-location of the element. + The y-location of the element. + The width of the element. + The height of the element. + Calculated . + + + + Draws the element to specified . + + The . + + + + Gets or sets the horizontal radius. + + The horizontal radius. + + + + Gets or sets the vertical radius. + + The vertical radius. + + + + Gets or sets the X coordinate of the element center. + + The X coordinate of the element center. + + + + Gets or sets the Y coordinate of the element center. + + The Y coordinate of the element center. + + + + Implements the "g" element of SVG DOM. + + + + + + Initializes a new instance of the class. + + + + + + + + Initializes a new instance of the class. + + + + + Parses the XML document. + + The . + + + + Creates the instance by the specified . + + The . + The x-location of the element. + The y-location of the element. + The width of the element. + The height of the element. + The instance. + + + + Draws the element to specified . + + The . + + + + Gets or sets the element width. + + The width. + + + + Gets or sets the element height. + + The height. + + + + Gets or sets the X coordinate. + + The X coordinate. + + + + Gets or sets the Y coordinate. + + The Y coordinate. + + + + Gets or sets the image referance. + + The referance. + + + + Implements the "LinearGradient" element of SVG DOM. + + + + + + Initializes a new instance of the class. + + + + + Creates the GDI+ brush. + + Returns Brush element. + + + + Creates the element by the specified GDI+ brush. + + The brush. + Returns LinearGradientElement from LinearGradientBrush. + + + + Parses the XML document. + + The . + + + + Draws the element and the inner elements to the specified . + + The . + + + + Gets or sets the X coordinate of the gradient start. + + The X coordinate of the gradient start. + + + + Gets or sets the Y coordinate of the gradient start. + + The Y coordinate of the gradient start. + + + + Gets or sets the X coordinate of the gradient end. + + The X coordinate of the gradient end. + + + + Gets or sets the Y coordinate of the gradient end. + + The Y coordinate of the gradient end. + + + + Gets or sets the gradient transform. + + The gradient transform. + + + + Gets or sets the gradient units. + + The gradient units. + + + + Gets or sets the spread method. + + The spread method. + + + + Gets or sets the referense of inherited element. + + The referense. + + + + Implements the "line" element of SVG DOM. + + + + + + Initializes a new instance of the class. + + + + + Parses the XML document. + + The . + + + + Creates the from its coords. + + The first point. + The second point. + + Created . + + + + + Creates the from its coords. + + The x-location of the first point. + The y-location of the first point. + The x-location of the second point. + The y-location of the second point. + Created . + + + + Draws the element to specified . + + The . + + + + Gets or sets the X coordinate of start point. + + The X coordinate. + + + + Gets or sets the Y coordinate of start point. + + The Y coordinate. + + + + Gets or sets the X coordinate of end point. + + The X coordinate of end point. + + + + Gets or sets the Y coordinate of end point. + + The Y coordinate. + + + + Impements the "path" element of SVG DOM. + + + + + + Initializes a new instance of the class. + + + + + Parses the XML document. + + The . + + + + Draws the element to specified . + + The . + + + + Gets or sets the path data. + + The path data. + + + + Implements the "pattern" element of SVG DOM. + + + + + + Initializes a new instance of the class. + + + + + Parses the XML document. + + The . + + + + Creates the new instance by the specified . + + The . + Returns PatternElement from TextureBrush. + + + + Creates the new instance by the specified . + + The . + Returns PatternElement from HatchBrush. + + + + Creates the instance by the inner elements. + + Return Brush. + + + + Draws the element and the inner elements to the specified . + + The . + + + + Gets or sets the width. + + The width. + + + + Gets or sets the height. + + The height. + + + + Gets or sets the X coordinate of pettern. + + The X coordinate. + + + + Gets or sets the Y coordinate of pettern. + + The Y coordinate. + + + + Gets or sets the reference to a different "pattern" element within the current SVG document fragment. + + The reference. + + + + Gets or sets the pattern transform. + + The pattern transform. + + + + Gets or sets the pattern content units. + + The pattern content units. + + + + Gets or sets the pattern units. + + The pattern units. + + + + Implements the "polygon" element of SVG DOM. + + + + + + Initializes a new instance of the class. + + + + + Parses the XML document. + + The . + + + + Creates the new instance by the specified points. + + The points. + + + + + Draws the element to specified . + + The . + + + + Gets or sets the points. + + The points. + + + + Implemenets the "polyline" element of SVG DOM. + + + + + + Initializes a new instance of the class. + + + + + Parses the XML document. + + The . + + + + Draws the element to specified . + + The . + + + + Gets or sets the points. + + The points. + + + + Inherited from element of SVG DOM. + + + + + + Initializes a new instance of the class. + + + + + Creates the GDI+ brush. + + Returns Brush. + + + + Creates the by the specified GDI+ brush. + + The brush. + Returns RadialGradientElement from PathGradientBrush. + + + + Parses the XML document. + + The . + + + + Draws the element and the inner elements to the specified . + + The . + + + + Gets or sets the X coordinate of gradient center. + + The X coordinate of center. + + + + Gets or sets the Y coordinate of gradient center. + + The Y coordinate of center. + + + + Gets or sets the X coordinate of gradient factor. + + The X coordinate of factor. + + + + Gets or sets the Y coordinate of gradient factor. + + The Y coordinate of factor. + + + + Gets or sets the radius of gradient. + + The radius of gradient. + + + + Gets or sets the gradient transform. + + The gradient transform. + + + + Gets or sets the gradient units. + + The gradient units. + + + + Gets or sets the spread method. + + The spread method. + + + + Gets or sets the referense of inherited element. + + The referense. + + + + Implements the "rect" element of SVG DOM. + + + + + + Initializes a new instance of the class. + + + + + Creates the new instance by the specified . + + The . + Returns RectElement. + + + + Parses the XML document. + + The . + + + + Creates the from given coords. + + The x-location of the element. + The y-location of the element. + The width of the element. + The height of the element. + Returns RectElement. + + + + Draws the element to specified . + + The . + + + + Gets or sets the width of element. + + The width. + + + + Gets or sets the height of element. + + The height. + + + + Gets or sets the X coordinate of element. + + The X coordinate. + + + + Gets or sets the Y coordinate. + + The Y coordinate. + + + + Gets or sets the horizonral radius of corners. + + The horizonral radius. + + + + Gets or sets the vertical radius of corners. + + The vertical radius. + + + + Implemenets the "stop" element of SVG DOM. + + + + + + Initializes a new instance of the class. + + + + + Creates the stop element by the specified color and offset. + + The color. + The offset. + Returns StopElement. + + + + Parses the XML document. + + The . + + + + Gets or sets the offset. + + The offset. + + + + Gets or sets the color of the stop. + + The color of the stop. + + + + Gets or sets the stop opacity. + + The stop opacity. + + + + Implements the "svg" element of SVG DOM. + + + + + + Initializes a new instance of the class. + + + + + Draws the element and the inner elements to the specified . + + The . + + + + Writes the attributes to XML document. + + The . + + + + Sets the clip. + + The . + + + + Gets or sets the width. + + The width. + + + + Gets or sets the height. + + The height. + + + + Gets or sets the X. + + The X. + + + + Gets or sets the Y. + + The Y. + + + + Implements the "text" element of SVG DOM. + + + + + + Initializes a new instance of the class. + + + + + Draws the element to specified . + + The . + + + + Parses the XML document. + + The . + + + + Gets or sets the X coordinate of text. + + The X coordinate . + + + + Gets or sets the Y coordinate of text. + + The Y coordinate. + + + + Gets or sets the DX. + + The DX. + + + + Gets or sets the DY. + + The DY. + + + + Gets or sets the length of the text. + + The length of the text. + + + + Gets or sets the angle of rotatation. + + The angle. + + + + Gets or sets the length adjust. + + The length adjust. + + + + Represents the SVG document. + + + + + + Initializes a new instance of the class. + + + + + Finds the element. + + The id. + Returns the specific Element for the given id. + + + + Saves the SVG document in a stream + + The stream. + + + + Saves the specified filename. + + The filename. + + + + Loads the specified flianame. + + The flianame. + + + + Finds the element. + + The id. + The elem. + Returns the Element. + + + + Saves the element. + + The elem. + The parent. + The doc. + + + + Loads the elements. + + The XML element. + The parent element. + + + + Determines whether the specified child is allowed to add to the this element. + + The elem. + + true if the specified child is allowed to add to the this element; otherwise, false. + + + + + Optimazes the document. + + The doc. + + + + Creates the entity. + + The node. + The id. + Returns the HashTable. + + + + Sets the entity to node. + + The node. + The ents. + + + + Gets or sets the current id. + + The current id. + + + + Gets the SVG. + + The SVG. + + + + Gets the defs. + + The defs. + + + + Provides methods for drawing primitives to the SVG document. + + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + if set to true create default document. + + + + Draws the document to the specified . + + The . + + + + Saves the document to the file. + + The filename. + + + + Saves the document to the stream. + + The stream. + + + + Loads the document from the file. + + The filename. + + + + Draws the rectangle. + + The . + The x coordinare of rectangle. + The y coordinare of rectangle. + The width of rectangle. + The height of rectangle. + + + + Draws the ellipse. + + The . + The x coordinare of ellipse. + The y coordinare of ellipse. + The width of ellipse. + The height of ellipse. + + + + Draws the path. + + The . + The . + + + + Draws the string. + + The text. + The . + The . + The x coordinate of text. + The y coordinate of text. + + + + Draws the line. + + The . + The x coordinate of start point. + The y coordinate of start point. + The x coordinate of end point. + The y coordinate of end point. + + + + Draws the polygon. + + The . + The array of . + + + + Draws the lines. + + The . + The array of . + + + + Draws the image. + + The . + The x coordinare of image. + The y coordinare of image. + The width of image. + The height of image. + + + + Fills the path. + + The . + The . + + + + Fills the rectangle. + + The . + The x coordinare of rectangle. + The y coordinare of rectangle. + The width of rectangle. + The height of rectangle. + + + + Fills the ellipse. + + The . + The x coordinare of ellipse. + The y coordinare of ellipse. + The width of ellipse. + The height of ellipse. + + + + Fills the polygon. + + The . + The array of . + + + + Changes the origin of the coordinate system. + + The horizontal offset. + The vertival offset. + + + + Clears the specified color. + + The color. + + + + Sets the clip. + + The gp. + + + + Resets the clip. + + + + + Sets the clip. + + The elem. + The URI. + + + + Sets the transform. + + The elem. + + + + Generates the new document. + + + + + Gets the . + + The document. + + + + Gets or sets the world transformation for this . + + + + + Provides the methods to draw into SVG image. + + + + + + Initializes a new instance of the class. + + + + + Gets the for SVG by the specified size. + + The size. + Returns Graphics object. + + + + Method to set the size for SVG image + + The size. + + + + Saves SVG document the specified name. + + The name. + + + + Saves SVG document in the specified stream. + + The stream. + + + + Handles the methods. + + The sender. + The instance containing the event data. + + + + Draws . + + The array of parameters. + + + + PRXs the fill path. + + The array of parameters. + + + + PRXs the draw rectangle. + + The array of parameters. + + + + PRXs the fill rectangle. + + The array of parameters. + + + + PRXs the draw line. + + The array of parameters. + + + + PRXs the clear. + + The array of parameters. + + + + PRXs the draw string. + + The array of parameters. + + + + PRXs the draw ellipse. + + The array of parameters. + + + + PRXs the fill ellipse. + + The array of parameters. + + + + PRXs the draw polygon. + + The array of parameters. + + + + PRXs the fill polygon. + + The array of parameters. + + + + PRXs the draw image. + + The array of parameters. + + + + PRXs the set clip. + + The array of parameters. + + + + Resets clip. + + The array of parameters. + + + + Try cast parameters to , , or type. + + The array of parameters. + The parameter offset. + The output . + Returns true if casting parameters to Rectangle is possible otherwise false. + + + + Try cast parameters to type. + + The array of parameters. + The offset. + The output . + Returns true if casting parameters to GraphicsPath is possible otherwise false. + + + + + + + Initializes a new instance of the class. + + The type. + The descriptor. + + + + Initializes a new instance of the class. + + The type. + The descriptor. + The value. + + + + Adds the specified setter. + + The setter. + + + + Removes the specified setter. + + The setter. + + + + Applies the specified owner. + + The owner. + + + + Resets the specified owner. + + The owner. + + + + Reads the specified element. + + The element. + + + + Writes the specified element. + + The element. + + + + Scans the specified owner. + + The owner. + + + + Returns a that represents the current . + + + A that represents the current . + + + + + Should the serialize value. + + True if the element should serialize otherwise False. + + + + Resets the value. + + + + + Gets the setter. + + Name of the property. + Returns ChartSetter. + + + + Returns an enumerator that iterates through a collection. + + + An object that can be used to iterate through the collection. + + + + + Gets a value indicating whether this instance is empty value. + + + true if this instance is empty value; otherwise, false. + + + + + Gets a value indicating whether this instance is empty children. + + + true if this instance is empty children; otherwise, false. + + + + + Gets a value indicating whether this instance is empty. + + true if this instance is empty; otherwise, false. + + + + Gets the type. + + The type. + + + + Gets the name of the property. + + The name of the property. + + + + Gets the property descriptor. + + The property descriptor. + + + + Gets or sets the value. + + The value. + + + + Gets the at the specified index. + + The ChartSetter indexer. + + + + Gets the with the specified property. + + The ChartSetter indexer. + + + + Gets the count. + + The count. + + + + Provides the storing of chart properties. + + + + + + Initializes a new instance of the class. + + Type of the chart. + + + + Loads the specified chart. + + The chart. + The stream. + Returns ChartTemplate with stored properties. + + + + Loads the specified chart. + + The chart. + The filename. + Returns ChartTemplate with stored properties. + + + + Saves the specified chart. + + The chart. + The stream. + Returns ChartTemplate with stored properties. + + + + Saves the specified chart. + + The chart. + The filename. + Returns ChartTemplate with stored properties. + + + + Sets the value. + + The path. + The value. + + + + Gets the value. + + The path. + Returns object. + + + + Applies the specified chart. + + The chart. + + + + Scans the specified chart. + + The chart. + + + + Scans the specified series. + + The series. + + + + Scans the specified trendline. + + The series. + + + + Resets the properties of the specified chart. + + The chart. + + + + Saves the series in specified filename. + + The stream. + + + + Loads the specified filename. + + The filename. + + + + Loads the specified stream. + + The stream. + + + + Setting Properties value for series. + + series. + + + + Changing the valuetype for SeriesProperties. + + The PropertyDescriptor. + The propertyValue. + + + + Reads the specified element. + + The element. + + + + Saves the specified stream. + + The filename. + + + + Saves the specified stream. + + The stream. + + + + Generates tree of setters by the specified type. + + The type. + Returns ArrayList object. + + + + Generates tree of setters by the specified type. + + The type. + Type is series or not + Returns ArrayList object. + + + + Selects the by property path. + + The path. + The ChartSetter object. + + + + Gets the by the property name. + + Name of the property. + The ChartSetter object. + + + + Specifies whether styles applied to points should also be stored in template or not + + + + + Specifies whether series data should be stored in template or not + + + + + Specifies whether series style should be stored in template or not + + + + + Represents the type of property serialization. + + + + + + The value of property can be converted to the . + + + + + The value of property is collection. + + + + + The value of property is collection. + + + + + The property contains sub-properties. + + + + + The value of property can be converted to the . The property of this attribute is not related to appearance. + + + + + The value of property is collection. The property of this attribute is not related to appearance. + + + + + The value of property is collection. The property of this attribute is not related to appearance. + + + + + The property contains sub-properties. The property of this attribute is not related to appearance. + + + + + The ChartTemplateAttribute class. + + + + + + Initializes a new instance of the class. + + Type of the set. + + + + Initializes a new instance of the class. + + Type of the set. + Type of the item. + + + + Gets the type of the property. + + The type of the property. + + + + Gets the type of the collection items. + + The type of the item. + + + + The MarkerStyle Enumerator. + + + + + Marker Style will be of Rectangle. + + + + + Marker Style will be of Ellipse. + + + + + Marker Style will be of SmoothRectangle. + + + + + Defines the fancy tooltip rendered on data points. + + + + + Store top level form to show toolTop. + + + + + The ChartFancyToolTipInfo instance. + + + + + Store target point. + + + + + Store shift. + + + + + Store value indicates that draw symbol. + + + + + Store value indicates that ToolTip is visible. + + + + + Store client rectangle. + + + + + Store text property. + + + + + Initializes a new instance of the class. + + + + + Inits by the specified parent. + + The parent. + The controller. + + + + Shows this tooltip by specified parent. + + + + + Hides this tooltip. + + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Called when mouse is moved by hint window. + + The sender. + The instance containing the event data. + + + + Invalidates this instance. + + + + + Called when [tool tip paint]. + + The sender. + The instance containing the event data. + + + + Called when parent form deactivated. + + The sender. + The instance containing the event data. + + + + Gets the GraphicsPath of current ToolTip. + + The width. + The height. + GraphicsPath of the current ToolTip. + + + + Gets rectangle to draw text. + + Rectangle to draw text. + + + + Gets the path rectangle. + + The width. + The height. + Rectangle GraphicsPath of the current ToolTip. + + + + Gets the path smooth rectangle. + + The width. + The height. + Smooth rectangle GraphicsPath of the current ToolTip. + + + + Gets the path ellipse. + + The width. + The height. + Ellipse GraphicsPath of the current ToolTip. + + + + Adds the sector. + + The gp. + The rect. + The start. + The angle. + + + + Recalculates size and location + + The rectangle to check bounds. + + + + Gets the primary size. + + Primary size of hint. + + + + Converts degrees to radial. + + The angle to convert. + Radial representation of the angle. + + + + Gets the symbol path. + + GraphicsPath of the ToolTip + + + + Gets the center loaction. + + The rc. + The sz. + Returns the center location point. + + + + Draws the text. + + The graphics content. + The rectangle to draw text. + + + + Calculates the alignment. + + The current alignment. + The rectangle to check alignment. + Returns TabAlignment. + + + + Called when info was changed. + + The sender. + The instance containing the event data. + + + + Gets the info. + + The info. + + + + Gets or sets the shift. + + + + + Gets or sets a value indicating whether this is visible. + + true if visible; otherwise, false. + + + + Gets or sets the location. + + The location. + + + + Gets or sets the width. + + The width. + + + + Gets or sets the height. + + The height. + + + + Gets or sets the size. + + The size. + + + + Gets or sets the text. + + + + + Gets or sets the color of the symbol. + + The color of the symbol. + + + + Contains the appearance properties of fancy tooltip. + + + + + Initializes a new instance of the class. + + + + + Sets the characteristics of this tooltip same as the input Fancy tooltip + + + + + + Sets this characteristics for the input Fancy tooltip + + + + + + Sets the characteristics of this tooltip same as the input Fancy tooltip + + + + + + Sets this characteristics for the input Fancy tooltip + + + + + + Called when border settings was changed. + + The sender. + The instance containing the event data. + + + + Raises the changed event. + + The sender. + The instance containing the event data. + + + + Gets or sets the information that is used for specifying border properties. + + + + + Gets or sets a value indicating the visibility of the Fancy tooltip. Default is false. + + + + + Gets or sets a value indicating the Resize the Inside of Fancy Symbol. Default is false. + + + + + Gets or Sets MarkerStyle of the tool tip. Default is SmoothRectangle. + + + + + Gets or sets the space between the symbol and the marker. Default is 20f. + + + + + Gets or Sets the interval between the border and the tool tip text. Default is 4f. + + + + + Gets or Sets the alignment of the tab for the FancyToolTip. Default is Left. + + + + + Gets or Sets the angle of the arrow in the tooltip. Default is 15f. + + + + + Gets or sets the backcolor for the FancyToolTip. Default is Color.Info. + + + + + Gets or sets the forecolor for the FancyToolTip. Default is Color.Black. + + + + + Gets or sets the backcolor for the symbol on FancyToolTip. Default is Color.Red. + + + + + Gets or sets the font information of the FancyToolTip. + + + + + Gets or Sets this property. When this property is set to true, the Tool Tip will be auto aligned depending on the size. Default is true. + + + + + Gets or Sets the size of the Symbol associated with the FancyToolTip. Default is (10, 10). + + + + + Gets or Sets the symbol associated with the FancyToolTip. Default is Circle. + + + Image symbol isn't work for FancyToolTip. + + + + + The ToolTipController that controls tips visibility, position and style. + + + + + + Initializes a new instance of the class. + + The chart. + + + + Initializes a new instance of the class. + + The chart. + The host. + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Views the tool tips. + + + + + Gets the nearly point by X. + + The x-coord. + The series. + Nearest point to x-coord in given series + + + + Gets the text for display on tool tip. + + The series. + The point to get tool tip. + Returns text for tooltip. + + + + Gets the fancy tool tip. + + The series to get tool tip. + Tool tip assosiated with series. + + + + Called when mouse is moved. + + The sender. + The instance containing the event data. + + + + Handles the Changed event of the Series control. + + The source of the event. + The instance containing the event data. + + + + Handles the Invalidated event of the Parent control. + + The source of the event. + The instance containing the event data. + + + + Called when chart host is painting. + + The sender. + The instance containing the event data. + + + + An event that is raised when the text format is changed. + + + + + Represents the method that handles the event. + + + + + + Represents arguments of handler. + + + + + + Initializes a new instance of the class. + + The series. + The point. + + + + Gets the series. + + The series. + + + + Gets the point. + + The point. + + + + Gets or sets the text. + + The text. + + + + The Trendline type Enumerator. + + + + + Draws linear Trendline. + + + + + Draws Polynomial Trendline. + + + + + Draws Exponential Trendline. + + + + + Draws Moving Average Trendline. + + + + + Draws Logarithmic Trendline. + + + + + Draws Power Trendline. + + + + + Calculates the Trendline Elements . + + The Chartseries. + + + + Calculates the Trendline Elements . + + The Chartseries. + + + + Calculate Polynomial Trendline with order + + + + + Create the polynomial segments + + + + + Returns the controlPoints of the curve + + + + + + + + + + + Gets or sets the name of the trendline. + + + + + Gets or sets the color of the trendline. + + + + + Gets or sets the trendline style. + + + + + Gets or sets the width of the trendline. + + + + + Gets or sets the visibility of trendline. + + + + + Gets or sets the Backward Forecast of the trendline. + + + + + Gets or sets the Forward Forecast of the trendline. + + + + + Gets or sets the Polynomial Order in the Polynomial Trendline + + + + + Gets or sets the Period in the Moving Average Trendline + + + + + + Gets or sets the type of the trendline. + + + + + The ChartCustomPoint class can be used to set text or symbols at a particular point on the chart area. + + + + + Initializes a new instance of class. + + + + + Method to dispose ChartCustomPoint object + + + + + Assign the Shape class properties values to custom point to draw in the chartarea + + The chart custom point shape + + + + Draws the specified graph. + + The chartarea + The graph. + The point. + + + + + Draws the specified graph. + + The chartarea + The graph. + The point. + + + + + Raises the event. + + The instance containing the event data. + + + + + Called when border is changed. + + The sender. + The instance containing the event data. + + + + Gets the text point. + + The base point. + Size of the text. + Returns the Text point. + + + + Gets the Rectangle point. + + The base point. + Returns the Rectangle point. + + + + + An event that is triggered when settings is changed. + + + + + Gets or sets the image list to be used. + + + + + + Gets or sets the border information that is to be associated with this custom point. + + + + + Gets or sets the interior brush information that is to be associated with this custom point. + + + + + Gets or sets the offset of text that is to be associated with this point, from the rendering position of this point. + + + + + Gets or sets the index of the point to be followed. + + + + + + Gets or sets the index of the series that holds the point to be followed. + + + + + + Gets or sets the X value of the custom point when the primary X axis of the chart is DateTime. + + + + + Gets or sets the Y value of the custom point when the primary Y axis of the chart is DateTime. + + + + + Gets or sets the symbol information that is to be associated with the custom point. + + + + + Gets or sets a value indicating whether marker is visible. + + true if marker is visible; otherwise, false. + + + + Gets or sets the color of the text. + + + + + Gets or sets the font of the text. + + + + + Gets or sets the alignment of the text in relation to the point. + + + + + Gets or sets the text of the custom point. + + + + + Gets or sets the X value of the custom point when the primary X axis of the chart is of type double. + + + + + Gets or sets the Y value of the custom point when the primary Y axis of the chart is of type double. + + + + + Indicates how the XValue and YValue will be used. + + + + + The DrawShape class can be used to set shape to particular custom point on the chart area. + + + + + Initializes a new instance of the class. + + + + + Method to dispose DrawShape object. + + + + + Gets or sets the font of the text. + + + + + Gets or sets the style of the shape that is to be displayed. + Default shape is Square. + It will support the limitted shape(Square, Circle, Hexagon, Pentagon) draw around the custom point + + + + + Gets or sets the text of the custom point. + + + + + Gets or sets background color to the Shape. + Default color is "White" + + + + + Gets or sets text color to the custom shape. + Default color is "White" + + + + + Gets or sets size to the Shape to draw around the custom points + Default Size is (50, 50) + + + + + Gets or sets border to the custom shape. + + + + + Gets or sets the position of the shape in relation to the point. + + + + + Provides a base class that can be used to design value editors with the drop-down list. + + + + + Gets the values of DropDownUIEditor. + + Returns IList. + + + + + Edits the specified object's value using the editor style indicated by the method. + + An that can be used to gain additional context information. + An that this editor can use to obtain services. + The object to edit. + + The new value of the object. If the value of the object has not changed, this should return the same object it was passed. + + + + + Gets the editor style used by the method. + + An that can be used to gain additional context information. + + A value that indicates the style of editor used by the method. If the does not support this method, then will return . + + + + + Gets the item text. + + The item. + + + + + + Class represent palette drop down user interface. + + + + + Initializes a new instance of the class. + + The owner. + + + + Initializes the temporary variables. + + The . + The . + The value. + + + + Removes the temporary variables. + + + + + The OnSelectedIndexChanged method. + + Event object with the details + + + + 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. + + + + Gets the value. + + The value. + + + + + Custom for arrays of struct. + + + + + Initializes a new instance of the class. + + The data type of the items in the array. + + + + Paints a representation of the value of an object using the specified . + + A that indicates what to paint and where to paint it. + + + + Indicates whether the specified context supports painting a representation of an object's value within the specified context. + + An that can be used to gain additional context information. + + true if is implemented; otherwise, false. + + + + + Custom for enumeration. + + + + + Initializes a new instance of the class. + + + + + Paints a representation of the value of an object using the specified . + + A that indicates what to paint and where to paint it. + + + + Indicates whether the specified context supports painting a representation of an object's value within the specified context. + + An that can be used to gain additional context information. + + true if is implemented; otherwise, false. + + + + + Custom for enum. + + + + + + Initializes the new instance of the class. + + + + + Paints a representation of the value of an object using the specified . + + A that indicates what to paint and where to paint it. + + + + Indicates whether the specified context supports painting a representation of an object's value within the specified context. + + An that can be used to gain additional context information. + + true if is implemented; otherwise, false. + + + + + Gets the values of ChartColorPalette Enum. + + Returns IList. + + + + + Provides a for visually picking a . + + + + + + Store UI for edit value. + + + + + Initializes a new instance of the class. + + + + + Edits the specified object's value using the editor style indicated by the method. + + An that can be used to gain additional context information. + An that this editor can use to obtain services. + The object to edit. + + The new value of the object. If the value of the object has not changed, this should return the same object it was passed. + + + + + Gets the editor style used by the method. + + An that can be used to gain additional context information. + + A value that indicates the style of editor used by the method. If the does not support this method, then will return . + + + + + Represent user interface for edit class. + + + + + Required designer variable. + + + + + Store class for edit brush in property grid. + + + + + Store default brush. + + + + + Store + + + + + Initializes a new instance of the 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. + + + + + Starts the specified . + + The . + The value to edit. + + + + Ends this instance. + + + + + Raises the event. + + A that contains the event data. + + + + Raises the event. + + A that contains the event data. + + + + Handles the Click event of the btnOk control. + + The source of the event. + The instance containing the event data. + + + + Handles the Click event of the btnCancel control. + + The source of the event. + The instance containing the event data. + + + + Gets the value of the BrushInfo. + + + + + Class for edit BrushInfo in property grid. + + + + + Store brush. + + + + + Gets or sets brush. + + + + + Custom for arrays of enumeration. + + + + + + Initializes a new instance of the class. + + + + + Paints a representation of the value of an object using the specified . + + A that indicates what to paint and where to paint it. + + + + Indicates whether the specified context supports painting a representation of an object's value within the specified context. + + An that can be used to gain additional context information. + + true if is implemented; otherwise, false. + + + + + Specifies the drawing mode of chart. + + + + + Chart will be painted in 2D mode. + + + + + Chart will be painted in pseudo 3D mode. + + + + + Chart will be painted in real 3D mode. + + + + + Specifies type of coordinate system. + + + + + Any coortinate sysytem isn't used. + + + + + The circular coordinate system is used. + + + + + The rectangular coordinate system is used. + + + + + Lists the different ways in which multiple axes will be rendered on the same side (X or Y) + + + + + Multiple axes will be rendered one after the other, side-by-side. + + + + + Multiple axes will be rendered in parallel. + + + + + Represents No Skins. + + + + + Represents Office2007Black Skin. + + + + + Represents Office2007Blue Skin. + + + + + Represents Office2007Silver Skin. + + + + + Represents Office2016Black Skin. + + + + + Represents Office2016White Skin. + + + + + Represents Office2016DarkGray Skin. + + + + + Represents Office2016Colorful Skin. + + + + + Represents Almond Skin. + + + + + Represents Blend Skin. + + + + + Represents Blueberry Skin. + + + + + Represents Marble Skin. + + + + + Represents MidNight Skin. + + + + + Represents Monochrome Skin. + + + + + Represents Olive Skin. + + + + + Represents Sandune Skin. + + + + + Represents Turquoise Skin. + + + + + Represents Vista Skin. + + + + + Represents VS2010 Skin. + + + + + Represents VS2010 Skin. + + + + + Specifies flags that control the elements painting. + + + + + Indicates visibility of background. + + + + + Indicates visibility of border. + + + + + Indicates visibility of interactive cursors. + + + + + Indicates visibility of axes. + + + + + All elements will be painted. + + + + + Lists the options available for rendering the labels in the Pyramid, Funnel, Pie or Doughnut Chart. + + + + + Labels are not shown. + + + + + Labels are rendered inside the pie. + + + + + Lables are rendered outside the pie.In funnel or pyramid chart, if the label style is set to outside, then the label placement has be left or right. + + + + + Labels are rendered outside the pie and in columns. + + + + + Labels are rendered outside the pie and in chart area. + + + + + Lists the options for positioning the lables in an accumulation chart (Pyramid or Funnel) + + + + + Renders the label on top of the block, when rendered Inside. + + + + + Renders the label at the bottom of the block, when rendered Inside. + + + + + Renders the label to the left of the block, when rendered Outside. + + + + + Renders the label to the right of the block, when rendered Outside. + + + + + Renders the label at the center of the block, when rendered Inside. + + + + + Lists the options in which a pyramid base could be rendered in 3D mode. + + + + + Base is a square. + + + + + Base is a circle. + + + + + Lists the funnel mode options. + + + + + The specified Y value is used to compute the width of the corresponding block. + + + + + The specified Y value is used to compute the height of the corresponding block. + + + + + Specifies the mode in which the Y values should be interpreted in the Pyramid chart. + + + + + The Y values are proportional to the length of the sides of the pyramid. + + + + + The Y values are proportional to the surface area of the corresponding blocks. + + + + + Specifies how much 3D space will be used by chart. + + + + + Chart type doesn't use the 3D space. + + + + + Chart type uses the all 3D space. + + + + + Chart type uses the single layer of 3D space for each series. + + + + + Chart type uses the single layer of 3D space for all series with the same type. + + + + + Specifies the Docking position of a control. + + + + + The control will be docked to the Left of its container + + + + + The control will be docked to the Right of its container + + + + + The control will be docked to the Top of its container + + + + + The control will be docked to the Bottom of its container + + + + + The control will not be docked inside the container + + + + + Specifies the alignment of the control. + + + + + The control will be aligned Near. + + + + + The control will be aligned in the Center. + + + + + The control will be aligned Far. + + + + + Specifies the placement of element by the parent bounds. + + + + + Elements are located inside the parent. + + + + + Elements are located outside the parent. + + + + + Specifies the orientation. + + + + + The chart element is oriented horizontally. + + + + + The chart element is oriented vertically. + + + + + Specifies the mode of drawing the edge labels. + + + + + None of the edge label settings will be applied. + + + + + The margin labels will be auto set. + + + + + The margin labels will be user set. + + + + + Specifies the vertical alignment. + + + + + The element will be aligned in Top. + + + + + The element will be aligned in Center. + + + + + The element will be aligned in Bottom. + + + + + Specifies the options to control what happens if chart labels intersect each other due to lack of space. It is used in conjunction with + . + + + + + related changes affect all label text. + + + + + related changes affect only specific labels that may need to be changed. + + + + + Specifies the representation symbol that is to be used inside the legend box for a series. + + + + + A visual representation will be none. + + + + + A visual representation of the series type will be rendered. + + + + + The image associated with the series type will be rendered. + + + + + A rectangle will be rendered. + + + + + A line will be rendered. + + + + + A straight line will be rendered. + + + + + A circle will be rendered. + + + + + A diamond will be rendered. + + + + + A hexagon will be rendered. + + + + + A pentagon will be rendered. + + + + + A triangle will be rendered. + + + + + An inverted triangle will be rendered. + + + + + A cross will be rendered. + + + + + Specifies the options for how to position a custom point on the chart. + + + + + Coordinates of the custom point are taken as a percentage of the chart area. + + + + + Coordinates of the custom point are taken to be in pixels. + + + + + Coordinates of the custom point are taken as a percentage of the chart area. + + + + + The custom point will follow the regular point of any series it is assigned to. + + + + + Specifies the options for the action that is to be taken when labels intersect each other. + + + + + No special action is taken. Labels may intersect. + + + + + When labels would intersect each other, they are wrapped to avoid intersection. + + + + + When labels would intersect each other, they are wrapped into multiple rows to avoid intersection. + + + + + When labels would intersect each other, they are rotated to avoid intersection. + + + + + The ChartTitleDrawMode enumerator. + + + + + No special mode is taken. + + + + + Wraps title. + + + + + Removes the end of trimmed lines, and replaces them with an ellipsis. + + + + + Specifies the actual symbol rendered inside the legend box for a series based on hints / specifications given with + . + + + + + Visual representation is empty. + + + + + Visual representation is a line. + + + + + Visual representation is a rectangle. + + + + + Visual representation is a spline. + + + + + Visual representation is an area chart. + + + + + Visual representation is a pie slice. + + + + + Visual representation is an image. + + + + + Visual representation is a circle. + + + + + Visual representation is a diamond. + + + + + Visual representation is a hexagon. + + + + + Visual representation is a pentagon. + + + + + Visual representation is a triangle. + + + + + Visual representation is an inverted triangle. + + + + + Visual representation is a cross. + + + + + Visual representation is a spline area. + + + + + Visual representation is a Straight area. + + + + + Specifies the options for positioning of the Chart's text. + + + + + Text is positioned at the top of the chart area. + + + + + Text is positioned at the bottom of the chart area. + + + + + Text is positioned to the left of the chart area. + + + + + Text is positioned to the right of the chart area. + + + + + Specifies the different values that are natively used. + + + + + Double value. + + + + + DateTime value. + + + + + Custom value. + + + + + Category value. + + + + + Logarithmic value. + + + + + Specifies the representation classification. Generally used only when you are writing custom renderers. + + + + + Values are single series rendered. + + + + + Values are plotted side by side. + + + + + Values are independently rendered. + + + + + Values are plotted by circular (Radar, Polar). + + + + + Other non-standard rendering. + + + + + Specifies the representation classification. Generally used only when you are writing custom renderers. + + + + + Values are stacked. + + + + + Values are stacked. + + + + + Values are not stacked. + + + + + Specifies the different sort axis value types. + + + + + Sorts the ChartSeries based on X values. + + + + + Sorts the ChartSeries based on Y values. + + + + + Specifies the different sort direction. + + + + + Sorts the series in ascending order. + + + + + Sorts the series in descending order. + + + + + Specifies the different chart types. + + + + + Line chart. + + + + + Spline chart. + + + + + Rotated spline chart. + + + + + Scatter chart. + + + + + Column chart. + + + + + Bar chart. + + + + + Gantt chart. + + + + + Stacking bar chart. + + + + + Area chart. + + + + + Range Area chart. + + + + + Area chart with spline connectors. + + + + + Stacking area chart. + + + + + Stacking column chart. + + + + + Stacking area chart. + + + + + Stacking 100% bar chart. + + + + + Stacking 100% column chart. + + + + + Pie chart. + + + + + Funnel chart. + + + + + Pyramid chart. + + + + + HiLo chart. + + + + + HiLoOpenClose chart. + + + + + Candle chart. + + + + + Bubble chart. + + + + + StepLine chart. + + + + + StepArea chart. + + + + + Radar chart. + + + + + Kagi chart. + + + + + Renko chart. + + + + + Polar chart. + + + + + ColumnRange chart. + + + + + ThreeLineBreak chart. + + + + + PointAndFigure chart. + + + + + BoxAndWhisker chart. + + + + + Histogram chart. + + + + + This Chart is mainly used in sensitivity analysis. + It shows how different random factors can influence + the prognoses income. + + + + + HeatMap chart + + + + + Custom chart. Rendering is done by user. + + + + + Specifies chart axis ranges configuration options. + + + + + Bounds are automatically calculated based on values. + + + + + Bounds and intervals are explicitly set. + + + + + Specifies the orientation of text when rendered with a value point. + + + + + Text is rendered above and to the left of the point. + + + + + Text is rendered above the point. + + + + + Text is rendered above and to the right of the point. + + + + + Text is rendered to the left of the point. + + + + + Text is centered on the point. + + + + + Text is rendered to the right of the point. + + + + + Text is rendered below and to the left of the point. + + + + + Text is rendered below the point. + + + + + Text is rendered below and to the right of the point. + + + + + Text is rendered in a manner that is appropriate for the situation. + + + + + Text is rendered above the region that represents the point (Example: above the bar in a bar chart). + + + + + Text is rendered below the region that represents the point (Example: below the bar in a bar chart). + + + + + Text is centered in the region that represents the point (Example: centered inside the bar in a bar chart). + + + + + Text is centered to the symbol if one is associated with the point. + + + + + Specifies the Position of Callout data label when rendered with a value point. + + + + + Text is rendered above the point. + + + + + Text is rendered to the left of the point. + + + + + Text is rendered to the right of the point. + + + + + Text is centered on the point. + + + + + Text is rendered below the point. + + + + + Specifies the style of the radar chart. + + + + + Axes are rendered polygonal. + + + + + Axes are rendered as circles. + + + + + Indicates the style of the radar chart. + + + + + The width is specified in ChartPoint.YValues[1] in units of X-Axis range. + + + + + If width of columns aren't given in point YValues[1], in pixels. + If not specified, the column will be rendered in DefaultWidthMode. + + + + + The width of the columns will always be calculated to fill the space between columns. + + + + + Specifies the drawing mode of 3D column/bar charts + + + + + Columns are drawn in depth. + + + + + Column are drawn side-by-side. + + + + + Columns are drawn in depth with the same size. + + + + + Specifies the mode of drawing the Gantt chart + + + + + Plots the Gantt chart as overlapped. + + + + + Plots the Gantt chart as side-by-side. + + + + + Specifies the modes that is to be used for drawing tick labels on the axis. + + + + + The ticks and tick labels aren't drawing; + + + + + The ticks and tick labels are distributed uniformly along the axis + with specified interval. + + + + + The user can specify the positions of labels and text of labels . + + + + + The user can specify the positions of labels and text of labels. + The Automatic labels are also drawn. + + + + + Specifies how to print content that contains color or shades of gray. + + + + + The series Styles will be in monochrome scale during printing. + + + + + The series Styles will be in colored scale during printing. + + + + + The printer will be checked if it supports colors. If not then the GrayScale mode will be used. + + + + + Specifies type of connection between scatter points. + + + + + Connect type will be none. (Scatter chart) + + + + + Connect type will be of line (ScatterLine chart) + + + + + Connect type will be spline (ScatterSpline chart) + + + + + Specifies that Open and Close lines are displayed. + + + + + Draws both open and close lines. + + + + + Draws only Close line. + + + + + Draws only Open line. + + + + + + + + + + Renders rectangle layout for HeatMap series. + + + + + Renders vertical layout for HeatMap series. + + + + + Renders horizontal layout for HeatMap series. + + + + + Specifies the Orientation of Interactive Cursor. + + + + + Only Horizontal Cursor gets displayed. + + + + + Only Vertical Cursor gets displayed. + + + + + Both the Horizontal and Vertical Cursor gets displayed. + + + + + Specifies are zooming enabled only for single axis. + + + + + + Zoomx XAxis only. + + + + + Zooms YAxis only. + + + + + None of the zooming will be applied. + + + + + This class holds information on lines rendered as part of the chart's rendering system. + + + + + + + Initializes a new instance of the class. + + + + + Raises the event. + + The instance containing the event data. + + + + + + Resets the value of BackColor property. + + + + + + + Resets the value of ForeColor property. + + + + + + + Indicates whether the BackColor should be serialized. + + Returns true if the element should serialize otherwise false. + + + + + + Indicates whether the ForeColor property should be serialized + + Returns true if the element should serialize otherwise false. + + + + + + Refreshes the pen. + + + + + An event that is triggered when properties are changed. + + + + + + Gets or sets the backcolor that is to be associated with the line. + + + + + Gets the brush information that is to be used with the line. + + + + + Gets or sets the style of the line. + + + + + Gets or sets the forecolor of the line. + + + + + Gets the pen used to render the line. + + + + + Gets or sets the type of pen that is to be used with the line. + + + + + Gets or sets the width of the line. + + + + + ChartMarker is used in association with . + + + + + + Initializes a new instance of the class. + + + + + Method to dispose ChartMarker object. + + + + + Gets or sets the line cap that is to be used with this marker. + + + + + Gets or sets the line information associated with this marker. + + + + + ChartIndexedValues collects and sorts the X values of series. + + + + + + Initializes a new instance of the class. + + The model. + + + + Gets the indexed value by real value. + + The value. + Returns the Index. + + + + Gets the real value by indexed value. + + The index. + Returns double value for the given index. + + + + Updates this values. + + + + + Called when series changed. + + The sender. + The instance containing the event data. + + + + Gets the count of indexed values. + + The count. + + + + Gets the at the specified index. + + + + + + Closed range. + + + + + + Initializes a new instance of the struct. + + The start. + The end. + + + + Union operator + + First double range + Second double range + Returns DoubleRange. + + + + Union operator + + First double range + Second double range + Returns DoubleRange. + + + + Implements the operator >. + + The range. + The value. + The result of the operator. + + + + Implements the operator <. + + The range. + The value. + The result of the operator. + + + + Implements the operator >=. + + The range. + The value. + The result of the operator. + + + + Implements the operator <=. + + The range. + The value. + The result of the operator. + + + + Implements the operator ==. + + The left range. + The right range. + The result of the operator. + + + + Implements the operator !=. + + The left range. + The right range. + The result of the operator. + + + + Create the from the median. + + The median. + The size. + Returns DoubleRange. + + + + Create range by array of double. + + + Returns DoubleRange. + + + + Unions the specified left range with right range. + + The left range. + The right range. + Returns DoubleRange. + + + + Unions the specified range with value. + + The range. + The value. + Returns DoubleRange. + + + + Scales the specified range by value. + + The range. + The value. + Returns DoubleRange. + + + + Multiplies the specified range by value. + + The range. + The value. + Returns DoubleRange. + + + + Inflates the specified range. + + The range. + The value. + Returns DoubleRange. + + + + Offsets the specified range by value. + + The range. + The value. + Returns DoubleRange. + + + + Intersects the specified left range. + + The left range. + The right range. + Returns DoubleRange. + + + + Excludes the specified range. + + The range. + The excluder. + The left range. + The right range. + + + + + Checks whether intersection region of two ranges is not empty. + + + true if intersection is not empty + + + + Checks whether intersection region of two ranges is not empty. + + + + true if intersection is not empty + + + + Check the value whether it lies inside the end value or not. + + The value. + True if the ChartRanges is not Empty otherwise False. + + + + Insides the specified value. + + The value. + if set to true value can be equal with range. + True if the ChartRanges is not Empty otherwise False. + + + + Insides the specified range. + + The range. + True if the ChartRanges is not Empty otherwise False. + + + + Interpolates the specified value. + + The interpolator. + Returns Double. + + + + Extrapolates the specified value. + + The value. + Returns Double. + + + + 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. + + + + + Gets the start. + + The start. + + + + Gets the end. + + The end. + + + + Gets the delta. + + The delta. + + + + Gets the median. + + The median. + + + + Gets a value indicating whether this instance is empty. + + true if this instance is empty; otherwise, false. + + + + Gets the empty. + + The empty. + + + + Contains the icons of . + + + + + Initializes the class. + + + + + Gets the icon image by the specified . + + The . + Returns Image. + + + + The Syncfusion.Windows.Forms.Chart.Utils namespace contains common utility classes that are used in calculation for rendering chart. + + + + + The StripLine will be rendered over chart. + + + + + The StripLine will be rendered behind chart. + + + + + This class specifies information on rendering a strip line. A strip line is a horizontal or vertical band rendered on the background of a chart + to indicate some areas of interest. + + + + + Initializes a new instance of the class. + + + + + Method to dispose strip line. + + + + + Draws the striplines to the specified . + + The ChartGraph. + The array of bounds. + + + + Draws the specified . + + The . + The bounds. + The Z coordinate of . + + + + + Creates the string format. + + + + + + Creats the mirrow transform. + + The rect. + + + + + Raises the changed. + + The sender. + The instance containing the event data. + + + + Occurs when the properties was changed. + + + + + + Indicates the depth order of StripLine. + + + + + Indicates whether the strip line will start at the start of the axis range. + + + + + Indicates whether the text of strip line will be drawn vertical. + + + + + Gets or sets the alignment of text that is to be rendered within a strip line. + + + + + Gets or sets the font with which text associated with this strip line is to be rendered. + + + + + Gets or sets the color of the text rendered with this strip line. + + + + + Gets or sets the text associated with this strip line. + + + + + Gets or sets the background image associated with this strip line. + + + + + Gets or sets the interior brush information for this strip line. + + + + + Indicates whether the strip line is enabled. + + + + + Gets or sets the offset of the strip line if the chart's Primary X axis is of type DateTime and StartAtAxisPosition is True. + + + + + Gets or sets the offset of the strip line if the chart's Primary X axis is of type double and StartAtAxisPosition is True. + + + + + Gets or sets the period over which this strip line appears when the value is DateTime. + + + + + Gets or sets the period over which this strip line appears. + + + + + Gets or sets the width of each strip line as a TimeSpan. + + + + + Gets or sets the width of each strip line. + + + + + Gets or sets the fixed width of each strip line. This property value represents real value not range between two Chart Points. + + + + + Gets or sets the date from which the strip line is to start. + + + + + Gets or sets the date after which the strip line should not be displayed. + + + + + Gets or sets the start of this strip line. + + + + + Gets or sets the end range of this strip line. + + + + + The EnumEditComboBox class. + + + + + + Initializes a new instance of the class. + + + + + Raises the event. + + An that contains the event data. + + + + + Gets an object representing the collection of the items contained in this . + + + + + + + Gets or sets the type of the enum. + + The type of the enum. + + + + Gets or sets the selected enum value. + + The selected enum value. + + + + The InteriorEditor class. + + + + + + Gets or sets the interior. + + The interior. + + + + The OffsetEditor class. + + + + + + Gets or sets the offset. + + The offset. + + + + The FontEditor class. + + + + + + Gets or sets the font. + + The font. + + + + The TextEditor class. + + + + + + Gets or sets the text. + + The text. + + + + Gets or sets the color of the text. + + The color of the text. + + + + Gets or sets the text format. + + The text format. + + + + Gets or sets the text offset. + + The text offset. + + + + Gets or sets the text orientation. + + The text orientation. + + + + The SymbolEditor class. + + + + + + Gets or sets the symbol. + + The symbol. + + + + Default type converter. + + + + + Initializes a new instance of class. + + + + + Returns whether this converter can convert the object to the specified type, using the specified context. + + An that provides a format context. + A that represents the type you want to convert to. + + true if this converter can perform the conversion; otherwise, false. + + + + + Converts the given value object to the specified type, using the specified context and culture information. + + An that provides a format context. + A . If null is passed, the current culture is assumed. + The to convert. + The to convert the value parameter to. + + An that represents the converted value. + + The conversion cannot be performed. + The destinationType parameter is null. + + + + Specifies a range of indices. + + + + + + Initializes a new instance of the class. + + The first index of range. + The lase index of range. + + + + Gets or sets the first index of range. + + From. + + + + Gets or sets the last index of range. + + To. + + + + Converts instances of other types to and from a . + + + + + + Initializes a new instance of the class. + + + + + Returns whether this converter can convert the object to the specified type, using the specified context. + + An that provides a format context. + A that represents the type you want to convert to. + + true if this converter can perform the conversion; otherwise, false. + + + + + Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context. + + An that provides a format context. + A that represents the type you want to convert from. + + true if this converter can perform the conversion; otherwise, false. + + + + + Converts the given object to the type of this converter, using the specified context and culture information. + + An that provides a format context. + The to use as the current culture. + The to convert. + + An that represents the converted value. + + The conversion cannot be performed. + + + + Converts the given value object to the specified type, using the specified context and culture information. + + An that provides a format context. + A . If null is passed, the current culture is assumed. + The to convert. + The to convert the value parameter to. + + An that represents the converted value. + + The conversion cannot be performed. + The destinationType parameter is null. + + + + Creates an instance of the type that this is associated with, using the specified context, given a set of property values for the object. + + An that provides a format context. + An of new property values. + + An representing the given , or null if the object cannot be created. This method always returns null. + + + + + Returns whether changing a value on this object requires a call to to create a new value, using the specified context. + + An that provides a format context. + + true if changing a property on this object requires a call to to create a new value; otherwise, false. + + + + + Returns a collection of properties for the type of array specified by the value parameter, using the specified context and attributes. + + An that provides a format context. + An that specifies the type of array for which to get properties. + An array of type that is used as a filter. + + A with the properties that are exposed for this data type, or null if there are no properties. + + + + + Returns whether this object supports properties, using the specified context. + + An that provides a format context. + + true if should be called to find the properties of this object; otherwise, false. + + + + + Describes the margins of a frame around a rectangle. + Four float values describe the Left, Top, Right, and Bottom sides of the rectangle, respectively. + + + + + + Overloaded constructor. Creates a new instance. + + + + + Creates a new instance. + + Top. + Left. + Bottom. + Right. + + + + 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. + + + A hash code for the current . + + + + + 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 object that is a copy of the current instance. + + + A new object that is a copy of this instance. + + + + + Called when properties is changed. + + + + + + + An event that is triggered when margin properties are changed. + + + + + + Gets or sets the top value of margin. + + + + + + Gets or sets the left value of margin. + + + + + + Gets or sets the bottom value of margin. + + + + + + Gets or sets the right value of margin. + + + + + + Converts instances of other types to and from a . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Describes the thickness of a frame around a rectangle. + Four float values describe the Left, Top, Right, and Bottom sides of the rectangle, respectively. + + + + + Initializes a new instance of the class. + + The value. + + + + Initializes a new instance of the class. + + The left. + The top. + The right. + The bottom. + + + + Implements the operator ==. + + The x. + The y. + The result of the operator. + + + + Implements the operator !=. + + The x. + The y. + The result of the operator. + + + + Adds the specified x to the specified y. + + The x. + The y. + + + + + Inflates the specified rect. + + The rect. + + + + + Inflates the specified size. + + The size. + + + + + Inflates the specified rect. + + The rect. + + + + + Inflates the specified size. + + The size. + + + + + Deflates the specified rect. + + The rect. + + + + + Deflates the specified rect. + + The rect. + + + + + Deflates the specified size. + + The size. + + + + + Deflates the specified size. + + The size. + + + + + 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. + + + + + Returns the fully qualified type name of this instance. + + + A containing a fully qualified type name. + + + + + Parses the specified text. + + The text. + + + + + Gets the left. + + The left. + + + + Gets the top. + + The top. + + + + Gets the right. + + The right. + + + + Gets the bottom. + + The bottom. + + + + Specifies the usege of Y values. + + + + + Point value will not used. + + + + + This value used Y value for types like Line, Spline, Column... + + + + + This value used as low value for types like HiLo, Range... + + + + + This value used as high value for types like HiLo, Range... + + + + + This value used as open value for types like HiLoOpenClose, Candle... + + + + + This value used as close value for types like HiLoOpenClose, Candle... + + + + + This value used as error bar value for types like Column, Line... + + + + + This value used as size value for types like Column, Bubble... + + + + + Specifies the registry of + + + + + Initializes the class. + + + + + Initializes a new instance of the class. + + The series. + + + + Method to dispose ChartPointFormatsRegistry object + + + + + Registers the points format for the specified type. + + The type. + The usages. + + + + Called when series type changed. + + The type. + + + + Gets the index of necessary value with the specified type. + + + + + + + Gets the index of necessary value. + + + + + + + Gets the index of the Y value. + + The index of the Y value. + + + + + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The usages. + + + + This class contains appearance information of interactive zooming. + + + + + Initializes a new instance of the class. + + + + + Should the serialize interior. + + + + + + Gets or sets the opacity of zooming selection. + + The opacity. + + + + Gets or sets a value indicating whether border is shown. + + true if border is shown; otherwise, false. + + + + Gets or sets the information on line drawn during interactive zooming. + + + + + Gets or sets the interior of zooming selection. + + The instance. + + + + Describes the CMYK color. + + + + + + Converts the CMYK color of the RGB. + + + + + + Creates the CMYK color by the RBG components. + + The red component. + The green component. + The blue component. + + + + + Creates the CMYK color by the CMYK components. + + The C component. + The M component. + The Y component. + The K component. + + + + + Converts the RGB to CMYK color. + + Color of the RGB. + + + + + Converts the CMYK to RGB color. + + Color of the cmyk. + + + + + Gets the C component of color. + + The C component. + + + + Gets the M component of color. + + The M component. + + + + Gets the Y component of color. + + The Y component. + + + + Gets the K component of color. + + The K component. + + + + + + + + + Draws the point symbol. + + The graph. + The style. + The point. + + + + Draws the point symbol. + + The graph. + The shape. + The brush. + The pen. + Index of the img. + The images. + The point. + The size. + + + + Draws the marker. + + The . + The marker. + The p2. + The p1. + + + + Draws the related point symbol. + + The . + The symbol. + The border. + The img list. + The pt. + + + + Draws the point symbol. + + The . + The style. + The pt. + if set to true marker will be drawn. + + + + Draws the point symbol. + + The graphics object. + The style. + The point. + if set to true [draw marker]. + The brush info. + + + + Draws the point symbol. + + The . + The symbol shape. + The symbol marker. + Size of the symbol. + The symbol offset. + Index of the symbol image. + The brush. + The pen. + The images. + The pt. + if set to true marker will be drawn. + + + + Draws the point symbol. + + The graphics. + The symbol shape. + The symbol marker. + Size of the symbol. + The symbol offset. + Index of the img. + The brush. + The pen. + The images. + The point. + if set to true marker will be drawn. + + + + Draw Image symbol. + + The grapics. + Rectangle bound of the Symbol. + The image. + + + + Draw Circle symbol. + + The grapics. + Rectangle bound of the Symbol. + The brush. + The pen. + + + + Draw Cross Line symbol. + + The grapics. + Rectangle bound of the Symbol. + The brush. + + + + Draw Horizontal Line symbol. + + The grapics. + Rectangle bound of the Symbol. + The brush. + + + + Draw Vertical Line symbol. + + The grapics. + Rectangle bound of the Symbol. + The brush. + + + + Draw Diamond symbol. + + The grapics. + Rectangle bound of the Symbol. + The brush. + The pen. + + + + Draw Hexagon symbol. + + The grapics. + Rectangle bound of the Symbol. + The brush. + The pen. + + + + Draw inverted triangle symbol. + + The grapics. + Rectangle bound of the Symbol. + The brush. + The pen. + + + + Draw Arrow symbol. + + The grapics. + Rectangle bound of the Symbol. + The brush. + The pen. + + + + Draw Inverted Arrow symbol. + + The grapics. + Rectangle bound of the Symbol. + The brush. + The pen. + + + + Draw Pentagon symbol. + + The grapics. + Rectangle bound of the Symbol. + The brush. + The pen. + + + + Draw Star symbol. + + The grapics. + Rectangle bound of the Symbol. + The brush. + The pen. + + + + Draw Square symbol. + + The grapics. + Rectangle bound of the Symbol. + The brush. + The pen. + + + + Draw Triangle Arrow symbol. + + The grapics. + Rectangle bound of the Symbol. + The brush. + The pen. + + + + Draw text. + + The graphics. + Style of the text. + The point. + + + + Draw text. + + The graphics. + Style of the text. + The point. + The size. + + + + Adds the text path. + + The gp. + The g. + The text. + The font. + The rect. + The STR format. + + + + Adds the text gepmetry to . + + The gp. + The g. + The text. + The font. + The rect. + + + + Gets the font size in pixels. + + The font. + The . + + + + + Gets the font size in pixels. + + The font. + + + + + Gets the bounds. + + The index. + The count. + The bounds. + + + + + Gets the individual pie bounds. + + The index. + The count. + The bounds. + + + + + Returns the by the specified rectangle. + + specified rectanle. + The radius of corners. + The . + + + + Returns the by the specified rectangle. + + specified rectanle. + The radius. + The . + + + + Returns the by the specified rectangle. + + specified rectanle. + The tl radius. + The tr radius. + The br radius. + The bl radius. + The . + + + + Gets the rendom beziers points. + + The PT1. + The PT2. + The evr. + The fault. + + + + Gets the rendom beziers points. + + The PT1. + The PT2. + The count. + The fault. + + + + + Gets the rendom beziers points. + + The PT1. + The PT2. + The evr. + The fault. + + + + Gets the rendom beziers points. + + The PT1. + The PT2. + The count. + The fault. + + + + + + + + + + + + + + + Interpolates the colors. + + The start color. + The end color. + The interpolator. + + + + + Clones the specified and changes property by specified color. + + Source of result. + Specified color for property. + Cloned specified with the changed . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Draws rectangle with given . + + The to render rectangle. + The to draw rectangle. + Rectangle bounds to draw. + + + + Shortens the text. + + The graphics + The text. + The font. + The width. + + + + + Gets the centered format. + + The centered format. + + + + Represents the methods for creation of symbols geometry. + + + + + + Gets the brush for specified BrushInfo instance + + + + + + + + Draws the symbol with specified style at specified location + + Graphics instance + Style information for the symbol + Location of the symbol + + + + Draw filled with its border. + + The to render shape. + The to render. + The bounds of the shape. + The to draw shape border. + The to fill symbol. + + + + Draw . + + The to render shape. + The to render. + The bounds of the shape. + The to draw shape. + + + + Draw filled . + + The to render symbol. + The symbol to render. + The bounds to render symbol. + The to fill the symbol. + + + + Creates symbol path for given shape. + + + + + + + + Creates circle path for given rectangle. + + The rectangle to create path. + Circle path. + + + + Creates diamond path for given rectangle. + + The rectangle to create diamond path. + Diamond path. + + + + Creates square for given rectangle. + + The rectangle to create path. + Square path. + + + + Creates triangle for given rectangle. + + The bounds of the path. + Triangle path. + + + + Creates inverted triangle for given rectangle. + + Bounds of the path. + Inverted triangle path. + + + + Creates Arrow for given rectangle. + + Bounds of the path. + Arrow path. + + + + Creates inverted arrow for given rectangle. + + Bounds of the path. + Inverted arrow path. + + + + Creates hexagon for given rectangle. + + The bounds of the hexagon path. + Hexagon path. + + + + Creates pentagon for given rectangle. + + The bounds of the path. + Pentagon path. + + + + Creates cross for given rectangle. + + The bounds of the path. + Cross path. + + + + Creates star for given rectangle. + + The bounds of the path. + Star path. + + + + Creates horizontal line for given rectangle. + + The bounds of the path. + Horizontal line path. + + + + Creates vertical line for given rectangle. + + The bounds of the path. + Vertical line path. + + + + Contains the layout methods. + + + + + Aligns the rectangle. + + The bounds area. + The size rectangle. + The alignment. + + + + + Aligns the rectangle. + + The bounds area. + The size rectangle. + The horizontal alignment. + The vertical alignment. + + + + + Aligns the rectangle. + + The point. + The size. + The alignment. + + + + + Aligns the rectangle. + + The point. + The size. + The horizontal alignment. + The vertical alignment. + + + + + Provides constants and static methods for mathematical functions. + + + + + + A ratio of radials to degrees. + + + + + A ratio of degrees to radials. + + + + + A double PI. + + + + + A half of PI. + + + + + A the minimal value of (magical number). + + + + + Mods the angle. + + The angle. + The mod angle. + + + + + Rounds the specified value. + + The value to round. + The div. + + + + + Rounds the specified value. + + The value. + The div. + if set to true value will be rounded to greater value. + + + + + Gets the indices of two closest points by the specified value. + + The array of double. + The specified value. + The index of first point. + The index of second point. + + + + Computes the bisections by the specified function. + + The function handler. + The x1. + The x2. + The x accuracy. + The max iteration count. + + + + + Computes the bisections by the specified function. + + The function handler. + The x1. + The x2. + The x accuracy. + The max iteration count. + The table count. + + + + + Computes the point of lines intersection. + + The start point of first line. + The end point of first line. + The start point of second line. + The end point of second line. + + + + + Computes the determinant by the specified matrix. + + The first row of matrix. + The second row of matrix. + + + + + Indicates whether specified rectangle is intersects with the line. + + The rectangle. + The start of line. + The end of line. + + + + + Indicates whether specified rectangle is intersects with the line. + + The rectangle. + The start of line. + The end of line. + + + + + Checks whether specified value is inside of specified range. + + The value. + The minimal value. + The maximal value. + + + + + Checks whether specified value is inside of specified range. + + The value. + The minimal value. + The maximal value. + + + + + Checks whether specified value is inside of specified range. + + The value. + The minimal value. + The maximal value. + + + + + Mins the max. + + The value1. + The value2. + The min. + The max. + + + + Returns the minimal value from array. + + The array of values. + The minimal value. + + + + Returns the maximal value from array. + + The array of values. + The maximal value. + + + + Compute the bounds of rotated rectangle. + + The rectangle. + The rotation angle. + + + + + Compute the bounds of left-center rotated rectangle. + + The rectangle. + The rotation angle. + + + + + Compute the bounds of center rotated rectangle. + + The rectangle. + The rotation angle. + + + + + Calculates distance between two points. + + The point to calculate distance from. + The point to calculate distance to. + Distance between to point. + + + + Gets the point by angle. + + The rect. + The angle. + if set to true [is circle]. + + + + + Creates the by specified center and radius. + + The center. + The radius. + + + + + Returns the center of specified rectangle. + + The rect. + + + + + Returns the half size of rectangle. + + + + + + + Corrects the size of the specified rectangle. + + The rect. + + + + + Creates the by the specified points and corrects the size. + + The x1. + The y1. + The x2. + The y2. + + + + + Translates a given by a specified . + + The point. + The size. + + + + + Translates a given by a specified . + + The point. + The size. + + + + + Gets the normal. + + The start point of plane. + The v2. + The v3. + + + + + solves quadratic equation in form a*x^2 + b*x + c = 0 + + + + + + + + + + solves quadratic equation in form a*x^2 + b*x + c = 0 + + + + + + + + + + Interpolates the bezier. + + The p1. + The p2. + The p3. + The p4. + The count. + + + + + Splits the bezier curve. + + The start point of curve. + The first control point. + The second control point. + The end point of curve. + The interpolator. + The start point of first output curve. + The first control point of first output curve. + The second control point of first output curve. + The end point of first output curve. + The start point of second output curve. + The first control point of second output curve. + The second control point of second output curve. + The end point of second output curve. + + + + Splits the bezier curve. + + The start point of curve. + The first control point. + The second control point. + The end point of curve. + The interpolator. + The start point of first output curve. + The first control point of first output curve. + The second control point of first output curve. + The end point of first output curve. + The start point of second output curve. + The first control point of second output curve. + The second control point of second output curve. + The end point of second output curve. + + + + Represents the methods of double function. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Provides the rendering of "Box and Whisker" chart type. + + + + + Initializes a new instance of the class. + + + + + + Draws the specified point in specified style + + Graphics object + Chart Point + Style of the point + + + + Renders the specified args. + + The args. + + + + Renders chart by the specified args. + + The args. + + + + Measures the X range. + + + + + + Computes the statistical median. + + The values. + + + + + Gets count of require Y values of the points. + + + + + + Get description of regions. + + The Region Description. + + + + The ChartStyleDialogOptions class. + + + + + Initializes a new instance of the class. + + + + + Gets or sets a value indicating whether interior tab is visible. + + true if interior tab is visible; otherwise, false. + + + + Gets or sets a value indicating whether border tab is visible. + + true if border tab is visible; otherwise, false. + + + + Gets or sets a value indicating whether text tab is visible. + + true if text tab is visible; otherwise, false. + + + + Gets or sets a value indicating whether symbol tab is visible. + + true if symbol tab is visible; otherwise, false. + + + + Gets or sets a value indicating whether fancy tooltips tab is visible. + + true if fancy tooltips tab is visible; otherwise, false. + + + + Gets or sets a value indicating whether shadow tab is visible. + + true if shadow tab is visible; otherwise, false. + + + + Represents the dialog to edit the series style. + + + + + + Initializes a new instance of the class. + + The series. + Name of the series. + The series interior. + The options. + + + + + Initializes a new instance of the class. + + The series. + Name of the series. + The series interior. + + + + + Cleans up any resources that is being used. + + + + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + + + + + Handles the Load event of the SeriesStyleEditorForm control. + + The source of the event. + The instance containing the event data. + + + + Transfers the values from style info to controls. + + + + + Transfers the values from controls to style info. + + + + + Handles the Click event of the buttonOK control. + + The source of the event. + The instance containing the event data. + + + + Handles the ColorSelected event of the borderColorControl control. + + The source of the event. + The instance containing the event data. + + + + Handles the Click event of the buttonBorderColorReset control. + + The source of the event. + The instance containing the event data. + + + + Handles the Click event of the bttnResetInterior control. + + The source of the event. + The instance containing the event data. + + + + Gets the series style. + + The series style. + + +
+
diff --git a/DOCGEN/bin/Debug/Syncfusion.Shared.Base.dll b/DOCGEN/bin/Debug/Syncfusion.Shared.Base.dll new file mode 100644 index 00000000..3f60d10b Binary files /dev/null and b/DOCGEN/bin/Debug/Syncfusion.Shared.Base.dll differ diff --git a/DOCGEN/bin/Debug/Syncfusion.Shared.Base.xml b/DOCGEN/bin/Debug/Syncfusion.Shared.Base.xml new file mode 100644 index 00000000..013f21c2 --- /dev/null +++ b/DOCGEN/bin/Debug/Syncfusion.Shared.Base.xml @@ -0,0 +1,94432 @@ + + + + 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. + + + + + Variable to indicate the Text alignment for BannerTextInfo. + + + + + Static constructor. + + + + + Default constructor. + + + + + Copy constructor. + + + + + Specifies whether to serialize TextAlignment property + + Returns true when the value is not Near. + + + + Specifies whether to reset TextAlignment property + + + + + Specifies banner text. + + + + + Gets or sets the value to indicate the Text alignment for . + + + + + + 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. + + + + + Represents the class used to validate customization. + + + + + Helps to calculate the Path for CornerRadius customization in Control + + + + + 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. + + + + + Gets the button type images for new theme + + + + + + + + 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) + + + + + + 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) + + + + + + Represents the class to define the style for control. + + + + + Represents the base class for visual styles to define the elements style. + + + + + 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" + + + + + + 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" + + + + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + Initializes a new instance of the class and associates it with an existing . + + + + + Initializes a new instance of the class 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 instance of the class 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. + + + + + Updates the styles from the XML configured file to the target style. + + The control that is defined with the . + + + + Provide the default style of the . + + Default style object. + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Gets the default style value of the class. + + Returns the default style value. + + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for the control. + + + + + Gets or sets the value of the + control. + + + + + Gets or sets the value for corner radius of the + control. + + + + + Gets or sets the value used to draw the border of the + control. + + + + + Gets or sets the value used to draw the border of the + control in default state. + + The value is used to draw the border of the button. + The default value is null. + + + + Gets or sets the value used to draw the border of the + control in pressed state. + + The value is used to draw the border of the button. + The default value is null. + + + + + Gets or sets the value used to draw the border of the + control in disabled state. + + + + + Gets or sets the value used to draw the border of the + control in default state. + + The value is used to draw the border of the button. + The default value is null. + + + + Gets or sets the value used to draw the border of the + control in pressed state. + + The value is used to draw the border of the button. + The default value is null. + + + + + Gets or sets the value used to draw the border of the + control in disabled state. + + + + + Gets or sets the value used to draw the border of the + control in focused state. + + The value is used to draw the border of the button. + The default value is null. + + + + Gets or sets the value used to draw the font of the + control in hover state. + + The value is used to draw the font of the button. + The default value is null. + + + + Gets or sets the value used to draw the font of the + control in pressed state. + + The value is used to draw the font of the button. + The default value is null. + + + + Gets or sets the value used to draw the border of the + control in focused state. + + The value is used to draw the border of the button. + The default value is null. + + + + Implements the class that provide the identity information of + using . + + + + + 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. + + + + + Maintains the ButtonAdv for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Provides storage for the object. + + + + + Provides storage for the object. + + + + + 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. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets a 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). + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Represents a ButtonAdv control with advanced customization options on background, text, and border etc. + + + Button with advanced rendering features + + + + + Provides the functionalities for the control to provide theme support. + + + + + Interface for SkinManager + + + + + Gets the name of the active theme that is currently applied to the control. + + + + + Occurs when theme is changed. + + + + + Gets or sets the name of the theme. + + + + + Gets the name of the control. + + + + + Gets or sets the Base ThemeName of the theme + + + + + Gets or sets a value indicating whether the theme should be applied to the control. + Default value is true. + + + If true, will be applied to control. + Otherwise will be applied to control. + + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Specifies that this object supports . + + + + + Enables rendering with . + + + + + Specifies to use. + + + + + Specifies that this object subscribes to event. + + + + + 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. + + + + + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Gets the active theme name of the ButtonAdv control. + + Returns the active theme name. + + + + Returns the name of the control. + + + + + Raises the event when themename changed. + + The sender value. + A contains the event data. + + + + Helps to reset Layout customization of the ButtonAdv Control. + + + + + Updates the Style renderers of ButtonAdv Control based on applied Theme. + + + + + 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)); + } + + + + + It stores the value of the property. + + + + + + It contains the value of the property. + + + + + 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 + + + + + + + + + Occurs when theme name of the has changed. + + + + + Gets or sets a value indicating whether a theme style + has been applied to the control. + + The default value is true. + + + + Gets or sets the theme name of the ButtonAdv control. + + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets or sets the BaseTheme name of the theme + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + + Gets the name of the control. + + + + + 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 value for the control. + + + + + 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 overriding 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. + + + + + + + + Represents the class to define the Theme customization of control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + ButtonAdv + + + + Draws text over the button + + + + + + + Overrides the render method from base(ButtonRenderer) + + + + + + Design of background + + + + + + + + Design of border + + + + + + + + + Represents the class that provides the accessibility object for the + + + + + Specifies the accessibility control. + + + + + Initializes a new instance of the class. + + The which needs to create the accessibility object. + + + + Overridden. Retrieves the child object at the specified screen coordinates. + + The horizontal screen coordinate. + The vertical screen coordinate. + + + + + Gets the AccessibleRole of the control. + + + + + Gets the AccessibleName of the control. + + + + + Gets the bounds of the control. + + + + + Gets the AccessibleDescription of the control. + + + + + Gets the details about what the object does or how the object is used. + + + + + Gets the accessibility object of the parent. + + + + + Gets the state for the control. + + + + + Gets the selected color value of the control. + + + + + Represents the class that provides the accessibility object for the + + + + + Specifies the accessibility control. + + + + + Initializes a new instance of the class. + + The which needs to create the accessibility object. + + + + Gets the AccessibleRole of the . + + + + + Gets the AccessibleName of the . + + + + + Gets the bounds of the accessible object. + + + + + Gets the AccessibleDescription of the . + + + + + Gets the details about what the object does or how the object is used. + + + + + Gets the accessibility object of the parent. + + + + + Gets the state for the . + + + + + Gets the value of the . + + + + + Design the property values into the class. + + + + + Initialize a new instance of the ColorUIActionList 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 + + + + + Represents the class to define the style for control. + + + + + Maintains the default style of the . + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + The style object that contains the original data. + + + + + Initializes a new instance of the class. + + + A that holds data for this + . + All changes in this style object will be saved in the + object. + + + + + Initializes a new instance of the class. + + + The identity. + + + + + Initializes a new instance of the class. + + + The identity. + + + A that holds data for this + . + All changes in this style object will be saved in the + object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default ColorTabControlStyleInfo value. + + + + + Gets or sets the border color of ColorTabControl + + The value is used to set the border of the ColorTabControl. + + + + Gets or sets the background color of ColorTabControl + + The value is used to fill the background of the ColorTabControl. + + + + Gets or sets the background color of ColorTabControl + + The value is used to fill the background of the TabItem. + + + + Gets or sets the background color of ColorTabControl in selected state. + + The value is used to fill the background of the ColorTabControl in selected state. + + + + Gets or sets the fore color of the ColorTabControl. + + The value is used to set fore color of ColorTabControl. + + + + Gets or sets the fore color of control in selected state. + + The value is used to set fore color of ColorTabControl. + + + + Represents the class holds the plain data for a style object excluding identity information. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Maintains the static data. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Populates the SerializationInfo store with the name, type, and value of each piece of information it wants to serialize + Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. + + + + Creates a copy of the current object. + + A duplicate of the current object. + + + + Overridden to get the static data source. + + + + + Represents the class to define the style for control. + + + + + Maintains the default style of the . + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + The style object that contains the original data. + + + + + Initializes a new instance of the class. + + + A that holds data for this + . + All changes in this style object will be saved in the + object. + + + + + Initializes a new instance of the class. + + + The identity. + + + + + Initializes a new instance of the class. + + + The identity. + + + A that holds data for this + . + All changes in this style object will be saved in the + object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default ColorPaletteStyleInfo value. + + + + + Gets or sets the PressedBorder color of the color item. + + The value is used to set border color for color item. + + + + Gets or sets the Border color of the color item. + + The value is used to set border color for color item. + + + + Represents the class holds the plain data for a style object excluding identity information. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Maintains the static data. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Populates the SerializationInfo store with the name, type, and value of each piece of information it wants to serialize + Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. + + + + Creates a copy of the current object. + + A duplicate of the current object. + + + + Overridden to get the static data source. + + + + + Represents the class to define the style for control. + + + + + Maintains the default style of the . + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + The style object that contains the original data. + + + + + Initializes a new instance of the class. + + + A that holds data for this + . + All changes in this style object will be saved in the + object. + + + + + Initializes a new instance of the class. + + + The identity. + + + + + Initializes a new instance of the class. + + + The identity. + + + A that holds data for this + . + All changes in this style object will be saved in the + object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default ColorListStyleInfo value. + + + + + Gets or sets the back color of the list item. + + The value is used to set back color for list item. + + + + Gets or sets the border color of the color palette in list item. + + The value is used to set border color for color palette in list item. + + + + Gets or sets the fore color of the list item. + + The value is used to set fore color for list item. + + + + Represents the class holds the plain data for a style object excluding identity information. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Maintains the static data. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Populates the SerializationInfo store with the name, type, and value of each piece of information it wants to serialize + Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. + + + + Creates a copy of the current object. + + A duplicate of the current object. + + + + Overridden to get the static data source. + + + + + Represents the class to define the style for control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for the control. + + + + + Gets or sets the value of the + control. + + + + + Gets or sets the BackColor of + + The value is used to set BackColor of the control. + The default value is null. + + + + Gets or sets the ForeColor of the + control. + + The value is used to set ForeColor of the control. + The default value is null. + + + + Gets or sets style for ColorPalette of the control. + + + + + Gets or sets style for ListBox of the control. + + + + + Gets or sets style for ColorTabControl of the control. + + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Provides style identity information for nested expandable objects of the GridStyleInfo and TreeStyleInfo classes. + + + + + Creates a new object and associates it with a . + + The that owns this subobject. + The descriptor for this expandable subobject. + + + + + + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the SplitButton for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents 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 + + + + + + Represents a BaseControl with VisualStyle based theme customization settings. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Raises the event when theme name changed. + + The sender value. + A contains the event data. + + + + Gets the active theme name of the control. + + Returns the active theme name. + + + + Helps to override the ThemeName property settings + + ThemeName + + + + Helps to override the ThemeName property settings + + ThemeName + + + + Helps to override the CanApplyTheme property settings + + CanApplyTheme + + + + Helps to override the CanOverriderStyle property settings + + CanOverriderStyle + + + + Occurs when theme name of the control has changed. + + + + + Gets or sets the theme name of the control. + + + The default value is null. + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets or sets the Base Theme name of the theme + + + + + Gets or sets a value indicating whether a theme settings + can be applied to the control. + + The default value is true. + + This property must be initialized before applying the VisualTheme /> + + + + + Gets the name of the control. + + + + + Gets or sets the VisualTheme of the control. + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Helps to apply the ControlName settings in control + + ControlName + + + + 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. + + + + + Initialize 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 . + + + + + + + + + Creates a new accessibility object in . + + Returns a new System.Windows.Forms.AccessibleObject for the + + + + 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 colorUI control as a drop-down component. + + + + + Displays the control as a drop-down component. + + The initially selected color. + + + + Ends the color display drop-down. + + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Gets or sets a flag value. + + + + + 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 or 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. + + + + Gets or sets 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 or sets Control size before touch enabled. + + + + + Overrides the Font property. + + + + + 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. + + + + + Design the property values into class. + + + + + Color array. + + + + + Control for invalidate if color array was chenged. + + + + + Copies the element of the to an , starting at a particular index. + + + + + Returns the enumerator that iterates through the item collection. + + + + + + Gets or sets the color value of index. + + + + + Gets a value indicating whether access to the is synchronized. + + + + + Gets a count value. + + + + + Gets an object that can be used to synchronize access to the . + + + + + Assigns the value for Oldvalue + + + + + Assigns the scale factor + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + Overrides the base class font property. + + + + + Create a new instance of the ColorPalette class with the specified a colorUI. + + Provides a standard interface for selecting colors. + Retrieves the array of custom colors. + + + + Stretch color cell on resize. + + + + + Gets standard colors array; + + + + + Gets or sets stretch color cell on resize. + + + + + Gets custom colors array. + + + + + Gets or sets the current selected colors. + + + + + Initialize a new instance of the ColorPaletteAccessibleObject class. + + + + + + Overridden. See . + + It contains that index value. + + + + + Overridden. See . + + + + + Overridden. See + + + + + Gets the object name. + + + + + Gets a parent of an object. + + + + + Gets the role of colorcell. + + + + + Gets the value of an object. + + + + + Initialize a new instance of the CustomColorDialog class. + + + + + Represents the comparison between standard colors. + + It contains that first color value. + It contains that another color value. + + + + + Represens the comparison between system color. + + It contains that first color value. + It contains that another color value. + + + + + 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. + + + + + + + + + + A helper class that provides the options to paints window background based on the information. + + + + + Fills the interior of path based on the value. + + A context. + A context. + A value. + + + + Fills the interior of a path based on the information. + + A context. + A context. + A value. + + + + Fills the interior of a path based on the gradient style and color values. + + A context. + A context. + A value. + A array of the value. + + + + Fills the interior of a rectangle based on the information. + + A context. + A structure that represents the rectangle to fill. + object that determines the characteristics of the fill. + + + + Fills the interior of a rectangle based on the gradient style information. + + A context. + A structure that represents the rectangle to fill. + A value. + A used for the fore color of the gradient fill. + A used for the back color gradient fill. + + + + Fills the interior of a rectangle based on the gradient style information. + + A context + A structure that represents the rectangle to fill. + A value. + An array of used for the gradient fill. + + + + Fills the interior of a rectangle based on the pattern style and color values. + + A context + A structure that represents the rectangle to fill. + A information. + A used for the fore color of pattern fill. + A used for the back color of pattern fill. + + + + Fills the interior of a rectangle based on the color value. + + A context. + A structure that represents the rectangle to fill. + A value. + + + + Fills the interior of a region based on the information. + + A context. + A structure that represents the region to fill. + A object that determines the characteristics of the fill. + + + + Fills the interior of a region based on the gradient style. + + A context. + A structure that represents the region to fill. + A value. + An array of used for the gradient fill. + + + + Fills the interior of a region based on the information. + + A context. + A structure that represents the region to fill. + A value. + A used for the fore color of pattern fill. + A used for the back color of pattern fill. + + + + Fills the interior of a region based on the color value. + + A context. + A structure that represents the region to fill. + A value. + + + Fills a rectangle with gradient style based on the foreColors values. + A context. + A value. + A contains the colors details. + + + Fills a rectangle with gradient style based on the foreColors values. + A context. + A value. + A contains the colors details. + Boolean value indicates to draw in vertical or horizontal. + + + Fills the gradient style to rectangle based on the color values. + A context. + A value. + A contains the first color of gradient fill. + A contains the second color the gradient fill.> + + + Fills the gradient style to rectangle based on the color values. + A context. + A value. + A contains the first color of gradient fill. + A contains the second color the gradient fill.> + Boolean value indicates to draw in vertical or horizontal. + + + Draws a border based on the border style and border color information. + A context. + A value. + A context. + A context. + A context. + A context. + + + Draws a border based on the border style and border color. + A context. + A value. + A context. + A used for the border style. + A context. + A context. + A used for the 3-D border style. + + + + Draws the borders based on the specified styles information. + + A context. + A output rectangle. + A 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). + + + + Fills the interior of rectangle based on the information. + + A handle to the device context. + A context. + A context. + + + + Fills the interior of rectangle based on the information. + + A handle to the device context. + A context. + A context. + + + + Fills the gradient style to rectangle based on the color values. + + A handle to the device context. + Rectangle area. + Starting color of the gradient. + Ending color of the gradient. + + + + Fills the gradient style to rectangle based on the color values. + + A handle to the device context. + Rectangle area. + Starting color of the gradient. + Ending color of the gradient. + Boolean value indicates to draw in vertical or horizontal. + + + + Fills the region based on the color information. + + A handle to the device context. + A context. + A context. + + + + Fills the region based on the information. + + A handle to the device context. + A context. + A context. + + + + Fills the interior of a path based on the information. + + A handle to the device context. + A context. + A context. + + + + Fills the interior of a path based on the information. + + A handle to the device context. + A context. + A context. + + + + Draws the line based on the position values. + + A handle to the device context. + A context + Start X position + Start Y position + End X position + End Y position + + + + Draws the rectangle based on the information. + + A handle to the device context. + A context. + Rectangle area. + + + + Converts the ColorRef value into the RGB value. + + The integer value indicates the color value. + Returns the RGB value. + + + + Recalculates the rectangle based on the graphics matrix settings. + + A context. + A context. + Returns the transformed rectangle value. + + + + Converts the value to the value. + + A context. + Returns the value. + + + + Converts the color array to the value. + + A array of the color. + Returns the value. + + + Gets a new instance of the + based on the color values. + A value. + A contains the first color of gradient fill. + A contains the second color the gradient fill.> + Returns a class with the specified points and colors.Returns the value. + + + Returns a new instance of the + based on the color values. + A value. + A contains the first color of gradient fill. + A contains the second color the gradient fill.> + Returns a with the specified points and colors.Returns the value. + + + + Returns the Linear gradient brush value based on the path, gradient style and color collection values. + + The collection of colors used create a brush instance. + The rectangle area used to create a linear gradient brush. + The style of the gradient brush. + Returns the linear gradient brush. + + + + Returns the path gradient brush value based on the given path and color collection. + + The used to initialize the path gradient. + The color collection used to create a path gradient brush. + Returns the path gradient brush. + + + + Holds information on how to fill the background of a window or grid cell. + + + lets you specify a solid back color, gradient or pattern style with both + back and fore color. + + This information can be persisted with serialization. + + You can also convert the information to a string and recreate it from a string. + + is immutable (just like ). You cannot change its values. + Instead you have to create a new object. + + can also be persisted into code when used as a property in a component designer. + + + + + + The separator value. + + + + + The collection of separator values. + + + + + The empty brush value. + + + + + The of the . + + + + + The brush style information of the . + It contains the or + information of the . + + + + + The back color is the first entry in this list and the fore color is the last entry in the list. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class with the specified solid back color. + + A used as solid background. + + + + Initializes a new instance of the class with a solid back color and fore color. + + + The fore Color. + + + The back Color. + + + + + Initializes a new instance of the class with a hatch style and pattern colors. + + A . + A used for fore color of the pattern. + A used for back color the pattern. + + + + Initializes a new instance of the class with a hatch style and pattern colors. + + A value. + List of colors. + + + + Initializes a new instance of the class with a hatch style and pattern colors. + + A . + List of colors. + + + + Initializes a new instance of the class with a gradient style and gradient fill colors. + + A . + A used for fore color of the gradient fill. + A used for back color the gradient fill. + + + + Initializes a new instance of the class with a gradient style and gradient fill colors. + + A . + List of gradient fill colors. + + + + Initializes a new instance of the class with a hatch style and pattern colors. + + A . + List of colors. + + + + Initializes a new instance of the class with any BrushStyle. Internal only. + + + The style. + + + The style Info. + + + The fore Color. + + + The back Color. + + + + + Initializes a new instance of the class with a new alpha-blend value and copies other information from a given . + + + The alpha value that should be applied to the fore color and back color of the new brush. + + + A that holds information for this . + + + + + Initializes a new instance of the class and copies its information from a given . + + A that holds information for this . + + + + Initializes a new instance of the class. + + A serialization information. + A contains the information. + + + + Creates a new object and initializes it from a string. + + A string in the format BrushStyle;Style;ForeColor;BackColor. + A new object. + + + + Clears the information. + + + + + Overloaded. Returns the string representation of the brush in the format BrushStyle;Style;ForeColor;BackColor. + + + The value. + + + + + 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 value. + + + + Creates a new object that is a copy of the current instance. + + A new object that is a copy of this instance. + + + + Clean up any resources being used. + + + + + Populates a with the data needed to serialize the target object. + + The to populate with data. + The destination for this serialization. + + + + Creates a new object that is a copy of this instance. + + The copy of this will be return. + + + + Serializes the contents of this object into an XML stream. + + Represents the XML stream. + + + + Not implemented and returns NULL. + + Returns a null. + + + + De-serialize the contents of this object from an XML stream. + + Represents the XML stream. + + + + Gets the style of the . + + Returns the information. + + + + Sets the style for the . + + A context. + Returns the value. + + + + Gets the back color value of the . + + Returns the color value. + + + + Sets the back color for . + + A value. + Returns the value. + + + + Gets the pattern style of the . + + Returns the pattern style. + + + + Sets the for . + + The value. + Returns the value. + + + + Gets the of . + + Returns the value. + + + + Sets the of . + + The value. + Returns the value. + + + + Gets the fore color value of the . + + Returns the color value. + + + + Sets the fore color value for . + + A value. + Returns the value. + + + + Initializes the gradient colors based on the foreColor and backColor values. + + A value contains the back color value. + A value contains the fore color value. + + + + Initializes the gradient colors based on the value. + + A context. + + + + Sets the description for the . + + The string value. + Returns the information. + + + + Gets a empty . + + + + + Gets a value indicating whether a brush is an empty object. + + + + + Gets the back color. + + + + + Gets the fore color value. + + + + + Gets the colors list.The first entry in this list will be the same as the back color property, + the last entry will be same as the fore color property. + + A reference to the instance. + + + + Gets the pattern style. + + + + + Gets the gradient style. + + + + + Gets the brush style information (solid, gradient or pattern). + + + + + Represents a class that provides options to save list of objects. + + + + + Initializes a new instance of the class. + Overloaded. Creates a new instance of this class. + + + + + Initializes a new instance of the class with some colors. + + An array of color objects + + + + Initializes a new instance of the class 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. + + + + Overridden. See . + + The zero-based index at which the new elements should be inserted. + The whose elements should be inserted into the + . The collection itself cannot be null, but it can + contain elements that are null. + + + + Overridden. See . + + + + + Overridden. See . + + The zero-based index at which the new elements should be inserted. + The number of elements to remove.> + + + + Populates a with the data needed to serialize the target object. + + The to populate with data. + The destination for this serialization. + + + + Add the color value in collection. + + A value. + + + + Add the array of color values into the collection. + + A array of the objects. + + + + Populates a with the data needed to serialize the target object. + + The to populate with data. + The destination for this serialization. + + + + Gets or sets the color at the specified index. + + The index value. + Returns the color value. + + + + Provides a user interface that can edit most types of collections at design time. + + + + + Initializes a new instance of the class base on the specified collection type. + + The type of the collection for this editor to edit. + + + + Overridden. See . + + 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. + + + + Overridden. See . + + The collection to edit. + An array of objects to set as the collection items. + The newly created collection object or, otherwise, the collection indicated by the editValue parameter. + + + + Prevent deleting items when there are only 2 items (or less) in the collection. + + A value. + true if it is permissible to remove this value from the collection; otherwise, + false. The default implementation always returns true. + + + + Gets the items count in ListBox from the CollectionEditor. + + Returns the items count + + + + Provides a unified way of converting types of values to other types. + + + + + Overridden. See . + + An that provides a format context. + A . If null is passed, the current culture is assumed. + The to convert. + The to convert the value parameter to. + An that represents the converted value. + + + + Overridden. See . + + An that provides a format context. + A that represents the type you want to convert to. + true if this converter can perform the conversion; otherwise, false. + + + + + Represents a helper class for Net core. + + + + + Specifies the change in the ListProperty. Used by Changing and Changed 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. + + + + + Defines the constants that specifies the style of the tooltip. + + + + + Indicates that the tooltip should be drawn as regular rectangle. + + + + + Indicates that the tooltip should be drawn as balloon. + + + + + Defines the constants that specifies the options of image alignment. + + + + + Image is aligned at the left. + + + + + Image is aligned at the right. + + + + + Defines the constants that specifies the location of the tooltip. + + + + + Indicates that the tooltip will be shown in its mouse position. If ToolTipStyle is Balloon, will be shown in TopRight of mouse position. Otherwise, BottomRight of the mouse position. + + + + + Indicates that the tooltip should be shown in TopLeft of the mouse position. + + + + + Indicates that the tooltip should be shown in TopRight of the mouse position. + + + + + Indicates that the tooltip should be shown in TopCenter of the mouse position. + + + + + Indicates that the tooltip should be shown in BottomLeft of the mouse position. + + + + + Indicates that the tooltip should be shown in BottomRight of the mouse position. + + + + + Indicates that the tooltip should be shown in BottomCenter of the mouse position. + + + + + Indicates that the tooltip should be shown in RightCenter of the mouse position. + + + + + Indicates that the tooltip should be shown in LeftCenter of the mouse position. + + + + + Defines the constants that specifies the type of auto scrolling. + + + + + An user has dragged the mouse outside the auto scroll bounds. + + + + + An user is moving the mouse over the control during OLE drag-and-drop operation. + + + + + Defines the constants that specifies auto scrolling direction. + + + + + No auto scrolling. + + + + + Only horizontal auto scrolling. + + + + + Only vertical auto scrolling. + + + + + Both horizontal and vertical auto scrolling. + + + + + Defines the constants that specifies the scrollbar regions. + + + + + Sets no region. + + + + + Indicates the minimum button region. + + + + + Indicates the Maximum button region. + + + + + Indicates the Thumb region. + + + + + Indicates the up or left rectangle of the scrollbar thumb. + + + + + Indicates the right or bottom rectangle of the scrollbar thumb. + + + + + Defines the length of the scrollbar regions. + + + + + Specifies the state of a button. + + + + + The button has its normal appearance. + + + + + The button appears pressed. + + + + + The button is inactive. + + + + + The mouse hover on the button. + + + + + The focus state of the button. + + + + + Defines the constants that specify the various brush styles. + + + + + The is an empty object. + + + + + The represents a solid fill. + + + + + The represents a pattern fill. + + + + + The represents a gradient fill. + + + + + Defines the constants that specify various pattern styles. + + + + + A none value. + + + + + 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 cross-cross horizontal and vertical lines. + + + + + A pattern of cross-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 anti-aliased. + + + + + 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 anti-aliased. + + + + + 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 anti-aliased. + + + + + 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 anti-aliased. + + + + + 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 anti-aliased. + + + + + 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 anti-aliased. + + + + + 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 anti aliased. + + + + + Specifies a hatch that has the appearance of a checkerboard placed diagonally. + + + + + Defines the constants that specify various gradient styles. + + + + + A none value. + + + + + ForwardDiagonal Gradient. + + + + + BackwardDiagonal Gradient. + + + + + Horizontal Gradient. + + + + + Vertical Gradient. + + + + + PathRectangle Gradient. + + + + + PathEllipse Gradient. + + + + + Defines the constants that specify the gesture option for the control. + + + + + Does not allow to configure any touch gestures to control. + + + + + Allows the control to enable all gesture options. + + + + + Allows the control to enable the panning gesture. + + + + + Allows the control to enable the zooming gesture. + + + + + Allows the control to enable the rotate gesture. + + + + + Allows the control to enable the two finger tap gesture. + + + + + Allows the control to enable the press and tap gesture. + + + + + Defines the constants that specify touch panning option for control. + + + + + Does not allow the control to the perform any panning operations. + + + + + Allows the control to enable all panning options. + + + + + Allows the control to perform the panning operation in vertical direction. + + + + + Allows the control to perform the panning operation in horizontal direction. + + + + + Allows the control to perform the panning operation with gutter. + + + + + Allows the control to perform the panning operation with inertia. + + + + + Defines the constants that specify the shadow option to draw the image with shadow. + + + + + Does not allow to draw shadow for the image. + + + + + Allows to draw the shadow in all sides of the image. + + + + + Allows to draw the shadow at bottom and left sides of the image. + + + + + Allows to draw the shadow at top and right sides of the image. + + + + + Allows to draw the shadow at top and left sides of the image. + + + + + Allows to draw the shadow at bottom and right sides of the image. + + + + + Defines the constants that specifies the direction of the triangle. + + + + + A triangle pointing up. + + + + + A triangle pointing down. + + + + + A triangle pointing to the left. + + + + + A triangle pointing to the right. + + + + + Represents a class that provides support to get the current DPI value and calculate the values based on the current DPI values. + + + + + The which is used to calculate the DPI value. + + + + + Gets the image file from given assembly based on the DPI scaling factor. + If the DPI scaling is greater than 175 then returns the high DPI image, otherwise returns the default image. + + The used to read the image file. + The string contains the folder path. + The string value represents the name of the image file. + The imageName must contains the extension like AddNewRowIcon.png or AddNewRowIcon.bmp + Returns the image file from specified folder path. + + + + Converts a logical DPI value to it's equivalent device unit DPI value. + + The logical value to convert. + Returns the equivalent device unit DPI value. + + + + Gets the current DPI value of the device. + + Returns the current DPI value of the device. + + + + Gets the used to calculate the DPI value of the device. + + + + + + This class represents to maintain DPI based image + + + + + Instance of . + + + + + Instance of . + + Image in 125 scaling + Image in 150 scaling + Image in 200 scaling + + + + + Stores the value of DPI120Image + + + + + Stores the value of DPI144Image + + + + + Stores the value of DPI192Image + + + + + Stores the value of Index + + + + + Get or sets the image of the item in 125 scaling + + + + + Get or sets the image of the item in 150 scaling + + + + + Get or sets the image of the item in 200 scaling + + + + + Gets or sets the index of the default image. + + + + + + The class which represents the collection of DPI images. + + + + + 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. + + + + Removes given image from collection. + + Image to remove. + + + + Gets index of given image. + + Image to get index of. + Index of given image or -1 if image doesn't exist in collection. + + + + Adds array of images to collection. + + Array of images to add. + + + + Gets value indicating whether collection is empty. + + + + + Gets or sets image at specified index. + + Index of image. + Image at specified index + + + + + The class which represents the collection editor to store the DPI images. + + + + + Initializes a new instance of the class. + + The type of the collection for this editor to edit. + + + + Initializes the class. + + + + + Static instance of custom for s. + + + + + Static instance of . + + + + + 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. + + + + + + Custom provider 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 DPiImages 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. + + + + Represents a class which contains resource manager that provides convenient access to culture-specific resources at run time. + + + + + The loader. + + + + + The resource manager. + + + + + Initializes a new instance of the class. + + + + + Sets the resource manager based on the assembly and namespace. + It can be used to get the values from the application resource files + when the assembly name and the namespace of the control or application is different. + + The control assembly. + The namespace of the control. + + + + Gets the localized string for the current culture. + + The string that need to be localized. + Returns the localized string. + + + + Gets the static object. + + Returns the value. + + + + Gets the localized ResourceManager. + + The assembly of the control. + The namespace of the control. + Returns the resource manager. + + + + Represents a class that provides the native methods. + + + + + The GetDC function retrieves a handle to a device context (DC) for the client area of a specified window or for the entire screen. + + A handle to the window whose DC is to be retrieved. If this value is NULL, GetDC retrieves the DC for the entire screen. + If the function succeeds, the return value is a handle to the DC for the specified window's client area. + If the function fails, the return value is NULL. + + + + Updates the position, size, shape, content, and translucency of a layered window. + + A handle to a layered window. A layered window is created by specifying WS_EX_LAYERED when creating the window with the CreateWindowEx function. + A handle to a DC for the screen. + A pointer to a structure that specifies the new screen position of the layered window. + Specifies the new size of the layered window. + A handle to a DC for the surface that defines the layered window. + A pointer to a structure that specifies the location of the layer in the device context. + A structure that specifies the color key to be used when composing the layered window. + A pointer to a structure that specifies the transparency value to be used when composing the layered window. + Use flag as the blend function + If the function succeeds, the return value is nonzero. Otherwise zero + + + + This function creates a rectangular region with rounded corners. + + Specifies the x-coordinate of the upper-left corner of the region in device units. + Specifies the y-coordinate of the upper-left corner of the region in device units. + Specifies the x-coordinate of the lower-right corner of the region in device units. + Specifies the y-coordinate of the lower-right corner of the region in device units. + Specifies the width of the ellipse used to create the rounded corners in device units. + Specifies the height of the ellipse used to create the rounded corners in device units. + If the function succeeds, the return value is the handle to the region. Otherwise return NULL + + + + Calls the next hook process. + + The hook. + The code. + The window handle parameter. + The handle parameter. + Returns the pointer. + + + + Sets the windows hook process. + + The hook id. + The process hook. + The pointer value. + The thread id + Returns the pointer value. + + + + The get window process id. + + The handle. + process id. + Returns the integer value. + + + + Unhook the window handle. + + The hook. + Returns the boolean value. + + + + Translate the message. + + The message. + Returns true if translate success. + + + + Dispatch message. + + The message. + Returns integer value. + + + + Peek the message. + + The message. + The handle. + The message minimum. + The maximum message. + The integer value. + Returns boolean value. + + + + Gets the parent of the given handle. + + The handle. + Returns the parent handle. + + + + The system parameter information. + + The action. + The parameter used to get the system information. + The current action parameter, + Window handle. + returns the integer value. + + + + Checks the focus. + + Returns the handle. + + + + Gets the current thread id. + + Returns the current thread id. + + + + Gets the extra information for the mouse event. + + The extra information provided by Windows API. + + + + Gets the system information. + + The index + Returns the index. + + + + Configures the messages that are sent from a window for Windows Touch gestures. + + A handle to the window to set the gesture configuration. + Its a reserved parameter, must be set to 0. + A count of the gesture configuration structures that are being passed. + An array of gesture configuration structures that specify the gesture configuration. + The size of the gesture configuration (GESTURECONFIG) structure. + Returns true if the configuration succeed, otherwise returns false. + + + + Configures the messages that are sent from a window for Windows Touch gestures. + + A handle to the window to set the gesture configuration. + Its a reserved parameter, must be set to 0. + A count of the gesture configuration structures that are being passed. + An array of gesture configuration structures that specify the gesture configuration. + The size of the gesture configuration (GESTURECONFIG) structure. + Returns true if the configuration succeed, otherwise returns false. + + + + Retrieves a GESTUREINFO structure given a handle to the gesture information. + + The Gesture information handle. + A pointer to the Gesture information structure. + If the function succeeds, the return value is nonzero. + + + + Moves the cursor to the specified screen coordinates. + If the new coordinates are not within the screen rectangle set by the most recent ClipCursor function call, the system automatically adjusts the coordinates so that the cursor stays within the rectangle. + + The new x-coordinate of the cursor, in screen coordinates. + The new y-coordinate of the cursor, in screen coordinates. + Returns nonzero if successful or zero otherwise. + + + + Changes the size, position, and Z order of a child, pop-up, or top-level window. These windows are ordered according to their appearance on the screen. The topmost window receives the highest rank and is the first window in the Z order. + + A Handle to the window. + A handle to the window to precede the positioned window in the Z order. + The new position of the left side of the window, in client coordinates. + The new position of the top of the window, in client coordinates. + The new width of the window, in pixels. + The new height of the window, in pixels. + The window sizing and positioning flags. + Returns the boolean value when position has set. + + + + The ScrollWindowEx function scrolls the contents of the specified window's client area. + + Handle to the window where the client area is to be scrolled. + Specifies the amount, in device units, of horizontal scrolling. This parameter must be a negative value to scroll to the left. + Specifies the amount, in device units, of vertical scrolling. This parameter must be a negative value to scroll up. + The portion of the client area to be scrolled. If this parameter is NULL, the entire client area is scrolled. + Contains the coordinates of the clipping rectangle. Only device bits within the clipping rectangle are affected. Bits scrolled from the outside of the rectangle to the inside are painted; bits scrolled from the inside of the rectangle to the outside are not painted. This parameter may be NULL. + Handle to the region that is modified to hold the region invalidated by scrolling. This parameter may be NULL. + Pointer to a RECT structure that receives the boundaries of the rectangle invalidated by scrolling. This parameter may be NULL. + Specifies flags that control scrolling. + Returns the boolean value. + + + + The SetScrollInfo function sets the parameters of a scroll bar, including the minimum and maximum scrolling positions, the page size, and the position of the scroll box (thumb). The function also redraws the scroll bar, if requested. + + Handle to a scroll bar control or a window with a standard scroll bar, depending on the value of the functionBar parameter. + Specifies the type of scroll bar for which to set parameters. This parameter can be one of the following values. + Pointer to a SCROLLINFO structure. Before calling SetScrollInfo, set the size member of the structure to sizeof(SCROLLINFO), set the fMask member to indicate the parameters to set, and specify the new parameter values in the appropriate members. + Specifies whether the scroll bar is redrawn to reflect the changes to the scroll bar. If this parameter is TRUE, the scroll bar is redrawn, otherwise, it is not redrawn. + The return value is the current position of the scroll box. + + + + The GetScrollInfo function retrieves the parameters of a scroll bar, including the minimum and maximum scrolling positions, the page size, and the position of the scroll box (thumb). + + Handle to a scroll bar control or a window with a standard scroll bar, depending on the value of the functionBar parameter. + Specifies the type of scroll bar for which to retrieve parameters. + Pointer to a SCROLLINFO structure. Before calling GetScrollInfo, set the size member to sizeof(SCROLLINFO), and set the fMask member to specify the scroll bar parameters to retrieve. Before returning, the function copies the specified parameters to the appropriate members of the structure. + If the function retrieved any values, the return value is nonzero otherwise the return zero. + + + + The GetScrollBarInfo function retrieves information about the specified scroll bar. + + Handle to a window associated with the scroll bar whose information is to be retrieved. If the idObject parameter is OBJID_CLIENT, hwnd is a handle to a scroll bar control. Otherwise, hwnd is a handle to a window created with WS_VSCROLL and/or WS_HSCROLL style. + Specifies the scroll bar object. This parameter can be one of the following values. + Pointer to a SCROLLBARINFO structure to receive the information. Before calling GetScrollBarInfo, set the cbSize member to sizeof(SCROLLBARINFO). + If the function succeeds, the return value is nonzero. + + + + The GetRegionData function fills the specified buffer with data describing a region. This data includes the dimensions of the rectangles that make up the region. + + A handle to the region. + The size, in bytes, of the lpRgnData buffer. + A pointer to a RGNDATA structure that receives the information. The dimensions of the region are in logical units. If this parameter is NULL, the return value contains the number of bytes needed for the region data. + If the function succeeds and dwCount specifies an adequate number of bytes, the return value is always dwCount. If dwCount is too small or the function fails, the return value is 0. If lpRgnData is NULL, the return value is the required number of bytes. + If the function fails, the return value is zero. + + + + Changes the parent window of the specified child window. + + A handle to the child window. + A handle to the new parent window. If this parameter is NULL, the desktop window becomes the new parent window. If this parameter is HWND_MESSAGE, the child window becomes a message-only window. + + If the function succeeds, the return value is a handle to the previous parent window. + If the function fails, the return value is NULL. To get extended error information, call GetLastError. + + + + + Retrieves a handle to a window that has the specified relationship (Z-Order or owner) to the specified window. + + A handle to a window. The window handle retrieved is relative to this window, based on the value of the uCmd parameter. + The relationship between the specified window and the window whose handle is to be retrieved. This parameter can be one of the following values. + + If the function succeeds, the return value is a window handle. If no window exists with the specified relationship to the specified window, the return value is NULL. To get extended error information, call GetLastError. + + + + + Retrieves information about the specified window. The function also retrieves the 32-bit (DWORD) value at the specified offset into the extra window memory. + + A handle to the window and, indirectly, the class to which the window belongs. + The zero-based offset to the value to be retrieved. Valid values are in the range zero through the number of bytes of extra window memory, minus four; + + If the function fails, the return value is zero. To get extended error information, call GetLastError. + + + + + Retrieves the dimensions of the bounding rectangle of the specified window. The dimensions are given in screen coordinates that are relative to the upper-left corner of the screen. + + A handle to the window. + A pointer to a RECT structure that receives the screen coordinates of the upper-left and lower-right corners of the window. + If the function succeeds, the return value is nonzero, otherwise return zero. + + + + Draws formatted text in the specified rectangle. + + A handle to the device context. + A pointer to the string that specifies the text to be drawn. If the nCount parameter is -1, the string must be null-terminated. + The length, in characters, of the string. If count is -1, then the textString parameter is assumed to be a pointer to a null-terminated string and DrawText computes the character count automatically. + A pointer to a RECT structure that contains the rectangle (in logical coordinates) in which the text is to be formatted. + The method of formatting the text. + If the function succeeds, the return value is the height of the text in logical units, else return zero. + + + + This function fills a rectangle by using the specified brush. This function includes the left and top borders, but excludes the right and bottom borders of the rectangle. + + A handle to the device context. + A pointer to a RECT structure that contains the logical coordinates of the rectangle to be filled. + A handle to the brush used to fill the rectangle. + If the function succeeds, the return value is nonzero else return zero. + + + + The DeleteObject function 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. + + A handle to a logical pen, brush, font, bitmap, region, or palette. + If the function succeeds, the return value is nonzero, else return zero. + + + + The SelectObject function selects an object into the specified device context (DC). The new object replaces the previous object of the same type. + + A handle to the DC. + A 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. If the selected object is a region and the function succeeds, the return value is one of the following values. + + + + This method used to fill the gradient. + + A handle to the Device Context. + The array of objects. + The index of the vertex to be selected. + The array of objects. + The index of the object array to be selected. + The Gradient fill mode. + If the function fails, the return value is zero else return non zero value. + + + + The CreatePen function creates a logical pen that has the specified style, width, and color. The pen can subsequently be selected into a device context and used to draw lines and curves. + + The pen style. + The width of the pen, in logical units. If nWidth is zero, the pen is a single pixel wide, regardless of the current transformation. + A color reference for the pen color. + If the function succeeds, the return value is a handle that identifies a logical pen. If the function fails, the return value is NULL. + + + + This function fills a region by using the specified brush. + + A handle to the Device Context. + Handle to the region to be filled. The region's coordinates are presumed to be in logical units. + Handle to the brush to be used to fill the region. + If the function fails, the return value is zero else return non zero value. + + + + This function updates the current position to the specified point and optionally returns the previous position. + + A handle to the Device Context. + The x-coordinate of the upper-left corner of the rectangle. + The y-coordinate of the upper-left corner of the rectangle. + Pointer to a POINT structure that receives the previous current position. If this parameter is a NULL pointer, the previous position is not returned. + If the function fails, the return value is zero else return non zero value. + + + + This function draws a line from the current position up to, but not including, the specified point. + + A handle to the Device Context. + The x-coordinate of the upper-left corner of the rectangle. + The y-coordinate of the upper-left corner of the rectangle. + If the function fails, the return value is zero else return non zero value. + + + + This function creates a logical brush that has the specified style, color, and pattern. + + A pointer to a LOGBRUSH structure that contains information about the brush. + If the function succeeds, the return value identifies a logical brush. + If the function fails, the return value is NULL. + + + + This function creates a logical brush that has the specified solid color. + + The color of the brush. + If the function succeeds, the return value identifies a logical brush. If the function fails, the return value is NULL. + + + + This method used to draws the rectangle. + + A handle to the Device Context. + The left position of rectangle. + The top position of rectangle. + The right position of rectangle. + The bottom position of rectangle. + If the function succeeds, the return value is nonzero, else return zero. + + + + Creates a new image (icon, cursor, or bitmap) and copies the attributes of the specified image to the new one. + If necessary, the function stretches the bits to fit the desired size of the new image. + + A handle to the image to be copied. + The type of image to be copied. This parameter can be one of the following values. + The desired width, in pixels, of the image. If this is zero, then the returned image will have the same width as the original hImage. + The desired height, in pixels, of the image. If this is zero, then the returned image will have the same height as the original hImage. + This parameter can be one or more of the following values. + If the function succeeds, the return value is the handle to the newly created image. + If the function fails, the return value is NULL. + + + + This function displays an image and applies a visual effect to indicate a state, such as a disabled or default state. + + A handle to the device context to draw in. + A handle to the brush used to draw the image, if the state specified by the fuFlags parameter is DSS_MONO. This parameter is ignored for other states. + A pointer to an application-defined callback function used to render the image. This parameter is required if the image type in fuFlags is DST_COMPLEX. It is optional and can be NULL if the image type is DST_TEXT. + For all other image types, this parameter is ignored. + Information about the image. The meaning of this parameter depends on the image type. + The Information about the image. The meaning of this parameter depends on the image type. + The horizontal location, in device units, at which to draw the image. + The vertical location, in device units, at which to draw the image. + The width of the image, in device units. + The height of the image, in device units. + The image type and state. This parameter can be one of the following type values. + If the function fails, the return value is zero else return non zero value. + + + + Destroys an icon and frees any memory the icon occupied. + + A handle to the icon to be destroyed. The icon must not be in use. + If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. + + + + This function retrieves the dimensions of the tightest bounding rectangle that can be drawn around the current visible area on the device. + + A handle to the Device Context. + A pointer to a RECT structure that is to receive the rectangle dimensions, in logical units. + If the function succeeds, the return value specifies the clipping box's complexity and can be one of the following values. + + + + This function creates a new clipping region from the intersection of the current clipping region and the specified rectangle. + + A handle to the Device Context. + The x-coordinate, in logical units, of the upper-left corner of the rectangle. + The y-coordinate, in logical units, of the upper-left corner of the rectangle. + The x-coordinate, in logical units, of the lower-right corner of the rectangle. + The y-coordinate, in logical units, of the lower-right corner of the rectangle. + The return value specifies the new clipping region's type and can be one of the following values. + + + + Draws an image list item in the specified device context. + The function uses the specified drawing style and blends the image with the specified color. + + A handle to the image list + The index of the image to draw. + A handle to the destination device context. + The x-coordinate at which to draw within the specified device context. + The y-coordinate at which to draw within the specified device context. + The width of the portion of the image to draw relative to the upper-left corner of the image. + If width and height parameters are zero, the function draws the entire image. + The function does not ensure that the parameters are valid. + The height of the portion of the image to draw, relative to the upper-left corner of the image. + If width and height parameters are zero, the function draws the entire image. + The function does not ensure that the parameters are valid. + The background color of the image. + The foreground color of the image. + The drawing style and, optionally, the overlay image. + If the function fails, the return value is zero else return non zero value. + + + + This function selects a region as the current clipping region for the specified device context. + + A handle to the device context. + A handle to the region to be selected. + The return value specifies the region's complexity and can be one of the following values. + + + + This function creates a memory device context (DC) compatible with the specified device. + + A handle to an existing DC. If this handle is NULL, the function creates a memory DC compatible with the application's current screen. + If the function succeeds, the return value is the handle to a memory DC. If the function fails, the return value is NULL. + + + + This function retrieves the device context (DC) for the entire window, including title bar, menus, and scroll bars. + A window device context permits painting anywhere in a window, + because the origin of the device context is the upper-left corner of the window instead of the client area. + + A handle to the window with a device context that is to be retrieved. + If the function succeeds, the return value is a handle to a device context for the specified window. + If the function fails, the return value is NULL, indicating an error or an invalid windows handle parameter. + + + + Sends the specified message to a window or windows. + The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message. + + A handle to the window whose window procedure will receive the message. + The message to be sent. + Additional message-specific information. + A Additional message-specific information. + The return value specifies the result of the message processing; it depends on the message sent. + + + + Sends the specified message to a window or windows. + The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message. + + A handle to the window whose window procedure will receive the message. + The message to be sent. + Additional message-specific information. + A Additional message-specific information. + The return value specifies the result of the message processing; it depends on the message sent. + + + + Sends the specified message to a window or windows. + The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message. + + A handle to the window whose window procedure will receive the message. + The message to be sent. + Additional message-specific information. + A Additional message-specific information. + The return value specifies the result of the message processing; it depends on the message sent. + + + + This function creates a bitmap compatible with the device that is associated with the specified device context. + + A handle to a device context. + The bitmap width, in pixels. + The bitmap height, in pixels. + If the function succeeds, the return value is a handle to the compatible bitmap (DDB). + If the function fails, the return value is NULL. + + + + Places (posts) a message in the message queue associated with the thread that created + the specified window and returns without waiting for the thread to process the message. + + A handle to the window whose window procedure is to receive the message. + The message to be posted. + Additional message-specific information. + A Additional message-specific information. + If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. + + + + This function sets the text color for the specified device context to the specified color. + + A handle to the device context. + 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. + If the function fails, the return value is CLR_INVALID. + + + + This function sets the fore color for the specified device context to the specified color. + + A handle to the device context. + The background mode. + If the function succeeds, the return value specifies the previous background mode. + If the function fails, the return value is zero. + + + + Loads the specified module into the address space of the calling process. + The specified module may cause other modules to be loaded. + + The name of the module. + This can be either a library module or an executable module (an .exe file). + If the function succeeds, the return value is a handle to the module. + If the function fails, the return value is NULL. + + + + This function disables or enables drawing in the specified window. Only one window can be locked at a time. + + The window in which drawing will be disabled. If this parameter is NULL, drawing in the locked window is enabled. + + If the function succeeds, the return value is nonzero. + If the function fails, the return value is zero, indicating that an error occurred or another window was already locked. + + + + + This function posts messages when the mouse pointer leaves a window or hovers over a window for a specified amount of time. + + A pointer to a TRACKMOUSEEVENT structure that contains tracking information. + Returns zero if the function fails. Otherwise return non zero value + + + + This function creates a new clipping region that consists of the existing clipping region minus the specified rectangle. + + A handle to the device context. + The x-coordinate, in logical units, of the upper-left corner of the rectangle. + The y-coordinate, in logical units, of the upper-left corner of the rectangle. + The x-coordinate, in logical units, of the lower-right corner of the rectangle. + The y-coordinate, in logical units, of the lower-right corner of the rectangle. + The return value specifies the new clipping region's complexity + + + + This method performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source device context into a destination device context. + + A handle to the destination device context. + The x-coordinate, in logical units, of the upper-left corner of the destination rectangle. + The y-coordinate, in logical units, of the upper-left corner of the destination rectangle. + The width, in logical units, of the source and destination rectangles. + The height, in logical units, of the source and the destination rectangles. + A handle to the source device context. + The x-coordinate, in logical units, of the upper-left corner of the source rectangle. + The y-coordinate, in logical units, of the upper-left corner of the source rectangle. + A raster-operation code. These codes define how the color data for the source rectangle is to be combined with the color data for the destination rectangle to achieve the final color. + If the function succeeds the return value is nonzero, otherwise zero + + + + This function creates a rectangular region. + + Specifies the x-coordinate of the upper-left corner of the region. + Specifies the y-coordinate of the upper-left corner of the region. + Specifies the x-coordinate of the lower-right corner of the region. + Specifies the y-coordinate of the lower-right corner of the region. + If the function succeeds, the return value is the handle to the region. + If the function fails, the return value is NULL. + + + + This method determines the area within the window where the system permits drawing. + + A handle to the window whose window region is to be set. + A handle to a region.The function sets the window region of the window to this region. + Specifies whether the system redraws the window after setting the window region. + + If the function succeeds, the return value is the handle to the region. + If the function fails, the return value is NULL. + + + + + The DeleteDC function deletes the specified device context (DC). + + A handle to the device context. + + If the function succeeds, the return value is nonzero. + If the function fails, the return value is zero. + + + + + The RedrawWindow function updates the specified rectangle or region in a window's client area. + + A handle to the window to be redrawn. If this parameter is NULL, the desktop window is updated. + A pointer to a RECT structure containing the coordinates, in device units, of the update rectangle. This parameter is ignored if the region Update parameter identifies a region. + A handle to the update region. If both the region Update and Update parameters are NULL, the entire client area is added to the update region. + One or more redraw flags. This parameter can be used to invalidate or validate a window, control repainting, and control which windows are affected by RedrawWindow. + + If the function succeeds, the return value is nonzero. + If the function fails, the return value is zero. + + + + + The Offset Region function moves a region by the specified offsets. + + Handle to the region to be moved. + Specifies the number of logical units to move left or right. + Specifies the number of logical units to move up or down. + + The return value specifies the new region's complexity. + + + + + The Combine region function combines two regions and stores the result in a third region. The two regions are combined according to the specified mode. + + A handle to a new region with dimensions defined by combining two other regions. + A handle to the first of two regions to be combined. + A handle to the second of two regions to be combined. + A mode indicating how the two regions will be combined. + The return value specifies the type of the resulting region. + + + + Calculates the required size of the window rectangle. + + A pointer to a RECT structure that contains the coordinates of the top-left and bottom-right corners of the desired client area. + The window style of the window whose required size is to be calculated. + Indicates whether the window has a menu. + The extended window style of the window whose required size is to be calculated. + If the function succeeds, the return value is nonzero. + + + + Sets the value of Desktop Window Manager (DWM) non-client rendering attributes for a window. + + The handle to the window for which the attribute value is to be set. + A flag describing which value to set, specified as a value of the DWMWINDOWATTRIBUTE enumeration. + This parameter specifies which attribute to set, and the pvAttribute parameter points to an object containing the attribute value. + A pointer to an object containing the attribute value to set. The type of the value set depends on the value of the dwAttribute parameter. + The DWMWINDOWATTRIBUTE enumeration topic indicates, in the row for each flag, what type of value you should pass a pointer to in the pvAttribute parameter. + The size, in bytes, of the attribute value being set via the pvAttribute parameter. + The type of the value set, and therefore its size in bytes, depends on the value of the dwAttribute parameter. + If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error + + + + The hook process delegates. + + The code + The window parameter. + The handle parameter. + Returns the pointer. + + + + The BLENDFUNCTION structure controls blending by specifying the blending functions for source and destination bitmaps. + + + + + The source blend operation. + + + + + Must be zero. + + + + + Specifies an alpha transparency value to be used on the entire source bitmap. + The SourceConstantAlpha value is combined with any per-pixel alpha values in the source bitmap. + If you set SourceConstantAlpha to 0, it is assumed that your image is transparent. + Set the SourceConstantAlpha value to 255 (opaque) when you only want to use per-pixel alpha values. + + + + + This member controls the way the source and destination bitmaps are interpreted. + + + + + Used by the TrackMouseEvent function to track when the mouse pointer leaves a window + or hovers over a window for a specified amount of time. + + + + + The size of the TRACKMOUSEEVENT structure, in bytes. + + + + + The services requested. + + + + + A handle to the window to track. + + + + + The hover time-out (if TME_HOVER was specified in dwFlags), in milliseconds. + Can be HOVER_DEFAULT, which means to use the system default hover time-out. + + + + + The Message. + + + + + The handle. + + + + + The message. + + + + + The window parameter. + + + + + The handle parameter + + + + + The time. + + + + + The x position. + + + + + The y position + + + + + Contains information about the size and position of a window. + + + + + A handle to the window. + + + + + he position of the window in Z order (front-to-back position). + + + + + The position of the left edge of the window. + + + + + The position of the top edge of the window. + + + + + The window width, in pixels. + + + + + The window height, in pixels. + + + + + The window position. + + + + + Flags used by the DwmSetWindowAttribute function to specify the rounded corner preference for a window. + + + + + Options used by the DwmGetWindowAttribute and DwmSetWindowAttribute functions. + + + + + This function is an application-defined callback function that renders a complex image for the DrawState function. + + A handle to the Device Context. + Specifies information about the image, which the application passed to DrawState. + This specifies information about the image, which the application passed to DrawState. + The image width, in device units, as specified by the call to DrawState. + The image height, in device units, as specified by the call to DrawState. + If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE. + + + + Represents a class that provides the native methods for Painting. + + + + + Defines the constants that specify the type of inner and outer edges to draw. + + + + + Raised outer edge. + + + + + Sunken outer edge. + + + + + Raised inner edge. + + + + + Sunken inner edge. + + + + + Combination of BDR_RAISEDOUTER and BDR_SUNKENINNER + + + + + Combination of BDR_SUNKENOUTER and BDR_RAISEDINNER + + + + + Combination of BDR_RAISEDOUTER and BDR_RAISEDINNER. + + + + + Combination of BDR_SUNKENOUTER and BDR_SUNKENINNER. + + + + + Defines the constants that specify the type of border. + + + + + Left side of border rectangle. + + + + + Top of border rectangle. + + + + + Right side of border rectangle. + + + + + Bottom of border rectangle. + + + + + Entire border rectangle. + + + + + If this flag is passed, shrink the rectangle pointed to by the QRC parameter to exclude the edges that were drawn. + If this flag is not passed, then do not change the rectangle pointed to by the QRC parameter. + + + + + Flat border. + + + + + Interior of rectangle to be filled. + + + + + Defines the constants that specify the types of fill options for gradient style. + + + + + In this mode, two endpoints describe a rectangle. The rectangle is defined to have a constant color (specified by the TRIVERTEX structure) for the left and right edges. + GDI interpolates the color from the left to right edge and fills the interior. + + + + + In this mode, two endpoints describe a rectangle. The rectangle is defined to have a constant color (specified by the TRIVERTEX structure) for the top and bottom edges. + GDI interpolates the color from the top to bottom edge and fills the interior. + + + + + In this mode, an array of TRIVERTEX structures is passed to GDI along with a list of array indexes that describe separate triangles. + GDI performs linear interpolation between triangle vertices and fills the interior. Drawing is done directly in 24- and 32-bpp modes. + Dithering is performed in 16-, 8-, 4-, and 1-bpp mode. + + + + + Optional flag. + + + + + Defines the constants that specify the mouse handle types. + + + + + The journal record. + + + + + The journal play back. + + + + + The keyboard. + + + + + The get message. + + + + + The call window process. + + + + + The option + + + + + System message filter. + + + + + The mouse. + + + + + Hardware mode. + + + + + Debug mode. + + + + + The shell mode. + + + + + The fore ground idle mode. + + + + + Call window process. + + + + + Keyboard operations. + + + + + Mouse operations + + + + + Contains the information about the application and used to paint the client area of the window owned by that application. + + + + + Indicates whether the background must be erased. + This value is nonzero if the application should erase the background. + The application is responsible for erasing the background if a window class is created without a background brush. + + + + Left region of the rectangle. + + + Top region of the rectangle. + + + Right region of the rectangle. + + + Bottom region of the rectangle. + + + + Reserved; used internally by the system. + + + + + Reserved; used internally by the system. + + + + reserved value. + + + reserved value. + + + reserved value. + + + reserved value. + + + reserved value. + + + reserved value. + + + reserved value. + + + reserved value. + + + + A handle to the display DC to be used for painting. + + + + + Defines the coordinates of the upper-left and lower-right corners of a rectangle. + + + + + The left coordinate of the rectangle. + + + + + The top coordinate of the rectangle. + + + + + The right coordinate of the rectangle. + + + + + The bottom location of the rectangle. + + + + + Initializes a new instance of the struct. + + The Rectangle that need to convert to the RECT. + + + + Initializes a new instance of the struct. + + The x-coordinate of the upper-left corner of the rectangle. + The y-coordinate of the upper-left corner of the rectangle. + The x-coordinate of the lower-right corner of the rectangle. + The y-coordinate of the lower-right corner of the rectangle. + + + + Convert the RECT to System.Drawing.Rectangle structure. + + The RECT region of the control. + Returns the rectangle. + + + + Return the co-ordinates of the rectangle in a string format. + + The string value of the rectangle region. + + + + Returns the RECT from the given values. + + The x-coordinate of the upper-left corner of the rectangle. + The y-coordinate of the upper-left corner of the rectangle. + The width of the rectangle. + The height of the rectangle. + Returns the new RECT value based on the given values. + + + + Gets the width of the RECT. + + + + + Gets the Height of the RECT. + + + + + Provides the color information and position information. + + + + + The x-coordinate, in logical units, of the upper-left corner of the rectangle. + + + + + The y-coordinate, in logical units, of the upper-left corner of the rectangle. + + + + + The color information at the point of x, y. + + + + + The color information at the point of x, y. + + + + + The color information at the point of x, y. + + + + + The color information at the point of x, y. + + + + + Initializes a new instance of the struct. + + The X position. + The Y position. + The red color value. + The green color value. + The blue color value. + The alpha color value. + + + + Specifies the index of two vertices in the pVertex array in the GradientFill function. + These two vertices form the upper-left and lower-right boundaries of a rectangle. + + + + + The upper-left corner of a rectangle. + + + + + The lower-left corner of a rectangle. + + + + + Initializes a new instance of the struct. + + The top left position. + The bottom right position. + + + + Defines the style, color, and pattern of a physical brush. It is used by the CreateBrushIndirect and ExtCreatePen functions. + + + + + Specifies the brush style. + + + + + Specifies the color in which the brush is to be drawn. If LogBrushStyle is the BS_HOLLOW or BS_PATTERN style, + LogBrushColor is ignored. If LogBrushStyle is BS_DIBPATTERN or BS_DIBPATTERNBT, the low-order word of LogBrushColor specifies + whether the colors members of the BITMAPINFO structure contain explicit red, green, blue (RGB) + values or indices into the currently realized logical palette. + + + + + Specifies a hatch style. The meaning depends on the brush style defined by log brush Style. + + + + + Selects a red, green, blue (RGB) color based on the arguments supplied and the color capabilities of the output device. + + + + + The reserved fields. + + + + + The reserved fields. + + + + + The reserved fields. + + + + + The reserved fields. + + + + + Initializes a new instance of the struct. + + The color value. + + + + Convert the RGB color value to integer value. + + Returns the converted value. + + + + Information that a rich edit control uses to format its output for a particular device. + + + + + A HDC for the device to render to, if EM_FORMATRANGE is being used to send the output to a device. + + + + + An HDC for the target device to format for. + + + + + The area within the page rectangle to render to. + + + + + The entire area of a page on the rendering device. + + + + + The range of characters to format. + + + + + Specifies a range of characters in a rich edit control. + + + + + Character position index immediately preceding the first character in the range. + + + + + Character position immediately following the last character in the range. + + + + + Represents a mouse hook structure. + + + + + The X point + + + + + The y point + + + + + The pointer contains the window handle. + + + + + The hit test code. + + + + + The extra information. + + + + + The mouse hook structure. + + + + + The X position. + + + + + The Y position. + + + + + The mouse data. + + + + + The flags. + + + + + The time + + + + + The extra information. + + + + + Represents a class that provides the native methods for scrolling. + + + + + Defines the constant that used to specifies the scrollbar parameters. + + + + + The range of the scrollbar. + + + + + Page information. + + + + + Scroll position. + + + + + Returns or sets a value that determines whether scroll bars in the RichTextBox control are disabled. + + + + + Returns the position of the scrollbar thumb. + + + + + Specifies all the scrollbar information. + + + + + Defines the constants that used to specify the state of objects in an application UI. + + + + + 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. + + + + + Contains the information about the scroll bar component. + + + + + Specifies the size of the structure. + + + + + Coordinates of the scroll bar as specified in a RECT structure. + + + + + Height or width of the thumb. + + + + + Top/Left position of the thumb. + + + + + Indicates the bottom/right position of the thumb. + + + + + Reserved variable. + + + + + An array of DWORD elements. Each element indicates the state of a scroll bar component. + + + + + Contains the information about the scrollbar parameters that are set by using SetScrollInfo method. + + + + + The size of the scroll info. + + + + + The mask value of the scroll info. + + + + + Specifies the minimum scrolling position. + + + + + Specifies the maximum scrolling position. + + + + + The nPage member contains the page size for a proportional scroll bar. + + + + + This contains the scroll box position, which is not updated while the user drags the scroll box. + + + + + This contains the current position of the scroll box while the user is dragging it. + + + + + Gets the rectangle region for the given offset. + + + + + Cracks the region. + + The pointer to the region. + Returns the RECT array. + + + + Gets the rectangle region. + + The buffer. + The header value. + The count. + Returns the RECT array. + + + + Converts the value to integer. + + The byte array. + The offset value. + Returns the integer value. + + + + Represents a class that provides native methods for Touch support. + + + + + Stores the information about the gesture. + + + + + The size of the structure, in bytes. The caller must set this to sizeof(GESTUREINFO). + + + + + The state of the gesture. + + + + + The identifier of the gesture command. + + + + + handle to window targeted by this gesture. + + + + + Current location of this gesture. These coordinates are always relative to the origin of the screen. + + + + + Internally used identifier for structure. + + + + + Internally used identifier for sequence. + + + + + Arguments for gestures whose arguments fit in 8 BYTES. + + + + + The size, in bytes, of extra arguments that accompany this gesture. + + + + + Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane. + + + + + Gets or sets the x-coordinate of this Point. + + + + + Gets or sets the Y-coordinate value of this Point. + + + + + Converts the x and y coordinate values to the point. + + Returns the point value. + + + + Gets and sets the configuration for enabling gesture messages and the type of this configuration. + + + + + The identifier for the type of configuration that will have messages enabled or disabled. + + + + + Settings related to gesture ID that are to be turned on. + + + + + Settings related to gesture ID that are to be turned off. + + + + + Gets and sets the gesture notification information for enable the gesture. + + + + + The size of the structure. + + + + + Reserved for future use. + + + + + The target window for the gesture notification. + + + + + The location of the gesture in physical screen coordinates. + + + + + A specific gesture instance with gesture messages starting with GID_BEGIN and ending with GID_END. + + + + + Represents a class that provides the options to paint the text and rotated text. + + + + + The flag which is used for drawing the text using the native methods. + + + + + The instance of used to draw the rich text content. + + + + + Draws the text in the specified rectangle based on the value. + + A handle to the device context. + String to measure. + that defines the text format of the string. + that specifies the maximum layout area for the text. + True - we use RTL, otherwise normal drawing. + + + + Draws the text in the specified rectangle based on the and + values. + + A handle to the device context. + String to measure. + that defines the text format of the string. + that specifies the maximum layout area for the text. + The text color. + True - we use RTL, otherwise normal drawing. + + + + Measures the string bounds based on the angle information. + + The actual string size value. + The angle value. + Returns the measured rotated string size value. + + + + Measures the string bounds based on the angle information. + + The graphics. + The string value used to measure the size. + The font value used to calculate the string bounds. + The width value. + A context. + The rotation angle. + Returns the measured string size based on the angle. + + + + Draws the text based on the rotation angle information. + + The graphics. + The String value used to measure the size. + The Font value used to calculate the string bounds. + The Brush information used to draw the string. + The Rectangle value used to draw the rotated string. + A context. + The rotation angle. + + + + Draws the text based on the rotation angle information. + + The graphics. + The string value used to measure the size. + The font value used to calculate the string bounds. + The brush information used to draw the string. + The rectangle value used to draw the rotated string. + A context. + The rotation angle. + + + + Calculates the size of the rich text box based on the font and text values. + + The string value contains rich text. + The preferred size used to draw the rich text. + The value. + A boolean value indicates rich text allows wrap text or not. + A value indicates the right to left mode. + Returns the size of the rich text box. + + + + Draws the rich text on the given graphics based on the text, font, fore color and wrap text mode. + + The graphics context. + The string value contains the rich text content. + The rectangle value used to draw the rich text. + + + + Draws the rich text on the given graphics based on the text, font, fore color and wrap text mode. + + The graphics context. + The string value contains the rich text content. + The rectangle value used to draw the rich text. + The font value used to draw the rich text. + The fore color value used to draw the rich text. + A boolean value indicates rich text allows wrap text or not. + A value indicates the right to left mode. + + + + Calculates the outside rectangle value based on the angle information. + + The actual rectangle value. + The angle value. + Returns the calculated outside rectangle value. + + + + Calculates the center of the rectangle value based on the size information. + + The actual rectangle value. + The size value. + Returns the rectangle value. + + + + Calculates the outside rectangle based on angle value. + + The actual rectangle value. + The angle value. + Returns the calculated outside rectangle value. + + + + Occurs content within the RichTextBox are resized. + + The source of the event. + A that contains the event data. + + + + Returns the rotated point value based on the angle information. + + The Point value. + The angle value. + Returns the calculated point value. + + + + Returns the rotated point value based on the angle and origin point values. + + The point which used to calculate. + The angle. + The origin point. + Returns the calculated point value. + + + + Returns the rotated points for creating the rectangle based on the angle information. + + The actual rectangle value. + The angle which used for calculate. + Returns the array of points. + + + + Returns the rotated points for creating the rectangle based on the angle and origin point values. + + The actual rectangle value. + The angle. + The origin point. + Returns the array point values. + + + + Represents a class that provide options to draw the rich text on the . + + + + + The constant value. + + + + + The constant value for format range. + + + + + The constant value for the transparent range. + + + + + Draws the rich text box to the given device context. + + The device context. + The rectangle area to draw the rich text box. + + + + Gets the required creation parameters when the control handle is created. + + + + + Represents a class that provides the list of window messages that are used in window process callback function. + + + + + One of the fields in GESTUREINFO structure is type of (8 bytes). + The relevant gesture information is stored in lower 4 bytes. This + bit mask is used to get 4 lower bytes from this argument. + + + + + Provides the chance for configure the gestures. + + Handling the WM_GESTURENOTIFY message will change the gesture configuration for the lifetime of the Window, not just for the next gesture. + + + + + + Passes the information about the gesture. + + + + + Indicates all the gestures. + + + + + Indicates generic gesture is begin. + + + + + Indicates generic gesture is end. + + + + + Indicates zoom start, zoom move, or zoom stop. + The first GID_ZOOM command message begins a zoom but does not cause any zooming. + The second GID_ZOOM command triggers a zoom relative to the state contained in the first GID_ZOOM. + + + + + Indicates pan move or pan start. + + + + + Indicates rotate move or rotate start. + + + + + Indicates the two finger tap gesture. + + + + + Indicates the press and tap gesture. + + + + + A gesture is starting. + + + + + Set the gesture is triggered inertia. + + + + + A gesture is finished. + + + + + Indicates all pan gesture. + + + + + Indicates the vertical panning with single finger. + + + + + Indicates the horizontal panning with single finger. + + + + + Limits perpendicular movement to primary direction until a threshold is reached to break out of the gutter. + + + + + Indicates panning with inertia to smoothly slow when pan gestures stop. + + + + + Indicates the window request for the paint. + + + + + Sent to the clipboard owner by a clipboard viewer window when the clipboard contains data in the CF_OWNERDISPLAY format and the clipboard viewer's client area needs repainting. + + + + + The WM_PAINTICON message is sent to a minimized window when the icon is to be painted but only if the application is written for Windows 3.x. + A window receives this message only if a class icon is defined for the window; otherwise, WM_PAINT is sent instead. + + + + + Indicates that the frame must need a paint. + + + + + Indicates the window requests to the redrawn. + + + + + Indicates the invalidate. + + + + + Causes a WM_PAINT message to be posted to the window regardless of whether the window contains an invalid region. + + + + + Causes the window to receive a WM_ERASEBKGND message when the window is repainted. The RDW_INVALIDATE flag must also be specified; otherwise RDW_ERASE has no effect. + + + + + Occurs while validating the entire window. This flag does not affect internal WM_PAINT messages. + + + + + Suppresses any pending internal WM_PAINT messages. This flag does not affect WM_PAINT messages resulting from invalid areas. + + + + + Suppress the pending WM_ERASEBKGND messages. + + + + + Excludes child windows, if any, from the repainting operation + + + + + Includes the child windows in the repainting operation. + + + + + Causes the affected windows (as specified by the RDW_ALLCHILDREN and RDW_NOCHILDREN flags) to receive WM_NCPAINT, WM_ERASEBKGND, and WM_PAINT messages, if necessary, before the function returns. + + + + + Causes the affected windows (as specified by the RDW_ALLCHILDREN and RDW_NOCHILDREN flags) to receive WM_NCPAINT and WM_ERASEBKGND messages, if necessary, before the function returns. + WM_PAINT messages are received at the ordinary time. + + + + + Causes any part of the non-client area of the window that intersects the update region to receive a WM_NCPAINT message. + The RDW_INVALIDATE flag must also be specified; otherwise, RDW_FRAME has no effect. + The WM_NCPAINT message is typically not sent during the execution of RedrawWindow unless either RDW_UPDATENOW or RDW_ERASENOW is specified. + + + + + Causes the window to receive a WM_ERASEBKGND message when the window is repainted. + The RDW_INVALIDATE flag must also be specified; otherwise, RDW_ERASE has no effect. + + + + + Justifies the text to the top of the rectangle + + + + + Aligns text to the left. + + + + + Centers text horizontally in the rectangle. + + + + + Aligns text to the right. + + + + + Centers text vertically. This value is used only with the DT_SINGLELINE value. + + + + + Justifies the text to the bottom of the rectangle. This value is used only with the DT_SINGLELINE value. + + + + + Breaks words. Lines are automatically broken between words if a word would extend past the edge of the + rectangle specified by the rectangle parameter. A carriage return-line feed sequence also breaks the line. + If this is not specified, output is on one line. + + + + + Displays text on a single line only. Carriage returns and line feeds do not break the line. + + + + + Expands tab characters. The default number of characters per tab is eight. The DT_WORD_ELLIPSIS, DT_PATH_ELLIPSIS, and DT_END_ELLIPSIS values cannot be used with the DT_EXPANDTABS value. + + + + + Sets tab stops. Bits 15-8 (high-order byte of the low-order word) of the uFormat parameter specify the number of characters for each tab. The default number of characters per tab is eight. The DT_CALCRECT, DT_EXTERNALLEADING, DT_INTERNAL, DT_NOCLIP, and DT_NOPREFIX values cannot be used with the DT_TABSTOP value. + + + + + Draws without clipping. DrawText is somewhat faster when DT_NOCLIP is used. + + + + + Includes the font external leading in line height. Normally, external leading is not included in the height of a line of text. + + + + + Determines the width and height of the rectangle. If there are multiple lines of text, + DrawText uses the width of the rectangle pointed to by the lpRect parameter and extends the base of the rectangle to bound the last line of text. If the largest word is wider than the rectangle, the width is expanded. If the text is less than the width of the rectangle, the width is reduced. If there is only one line of text, DrawText modifies the right side of the rectangle so that it bounds the last character in the line. In either case, DrawText returns the height of the formatted text but does not draw the text. + + + + + Turns off processing of prefix characters. Normally, DrawText interprets the mnemonic-prefix character as a directive to underscore the character that follows, and the mnemonic-prefix characters as a directive to print a single. By specifying DT_NOPREFIX, this processing is turned off. + + + + + Uses the system font to calculate text metrics. + + + + + Duplicates the text-displaying characteristics of a multi line edit control. Specifically, the average character width is calculated in the same manner as for an edit control, and the function does not display a partially visible last line. + + + + + For displayed text, replaces characters in the middle of the string with ellipses so that the result fits in the specified rectangle. If the string contains backslash (\) characters, DT_PATH_ELLIPSIS preserves as much as possible of the text after the last backslash. + + + + + For displayed text, if the end of a string does not fit in the rectangle, it is truncated and ellipses are added. If a word that is not at the end of the string goes beyond the limits of the rectangle, it is truncated without ellipses. + + + + + Modifies the specified string to match the displayed text. This value has no effect unless DT_END_ELLIPSIS or DT_PATH_ELLIPSIS is specified. + + + + + Layout in right-to-left reading order for bidirectional text when the font selected into the hdc is a Hebrew or Arabic font. The default reading order for all text is left-to-right. + + + + + Truncates any word that does not fit in the rectangle and adds ellipses. + + + + + Prevents a line break at a DBCS (double-wide character string), so that the line breaking rule is equivalent to SBCS strings. For example, this can be used in Korean windows, for more readability of icon labels. This value has no effect unless DT_WORDBREAK is specified. + + + + + Ignores the ampersand prefix character in the text. The letter that follows will not be underlined, but other mnemonic-prefix characters are still processed. + + + + + Draws only an underline at the position of the character following the ampersand prefix character. Does not draw any other characters in the string. + + + + + Occurs when the horizontal scrolling is made on the control or scrollbar. + + + + + Occurs when the window scroll event is occur on the vertical scrollbar. + + + + + Sent to the clipboard owner by a clipboard viewer window when the clipboard contains data in the CF_OWNERDISPLAY format and an event occurs in the clipboard viewer's horizontal scroll bar. The owner should scroll the clipboard image and update the scroll bar values. + + + + + Sent to the clipboard owner by a clipboard viewer window when the clipboard contains data in the CF_OWNERDISPLAY format and an event occurs in the clipboard viewer's vertical scroll bar. The owner should scroll the clipboard image and update the scroll bar values. + + + + + Occurs while the scroll bar is drawn. by handling this message user can customize the background color of the scrollbar. + + + + + Occurs while enable or disable both arrows in scrollbar. + + + + + Occurs when GridScrollPos is called. + + + + + Occurs when GetSCrollRange function is called. + + + + + Sent by an application to retrieve information about the specified scroll bar. + + + + + Occurs when SetScrollPos is called. + + + + + Occurs while setting the min and maximum range of the scroll control. + + + + + Occurs while setting the minimum and maximum position values and to redraw the control. + + + + + Occurs while setting the scroll info. + + + + + Erases the newly invalidated region by sending a WM_ERASEBKGND message to the window when specified with the SW_INVALIDATE flag. + + + + + Invalidates the region identified by the hrgnUpdate parameter after scrolling. + + + + + Scrolls all child windows that intersect the rectangle pointed to by the prcScroll parameter. The child windows are scrolled by the number of pixels specified by the dx and dy parameters. The system sends a WM_MOVE message to all child windows that intersect the prcScroll rectangle, even if they do not move. + + + + + Scrolls using smooth scrolling. Use the HIWORD portion of the flags parameter to indicate how much time, in milliseconds, the smooth-scrolling operation should take. + + + + + The window's vertical scroll bar. + + + + + The window's Horizontal scroll bar. + + + + + A scroll bar control + + + + + The horizontal scroll bar of the specified window. + + + + + The Thumb position of the scroll bar. + + + + + The vertical scroll bar of the specified window. + + + + + Disables the bottom arrow on a vertical scroll bar. + + + + + Disables the left arrow on a horizontal scroll bar. + + + + + Disables the right arrow on a horizontal scroll bar. + + + + + Disables the top arrow on a vertical scroll bar. + + + + + Sets the list-view control first item. + + + + + Scrolls the content of a list-view control. + + + + + Activates the window and displays it as a minimized window. + + + + + Activates the window and displays it as a maximized window. + + + + + Hides the window and activates another window. + + + + + Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time. + + + + + Represents the reflect window message. + + + + + Sent to both the window being activated and the window being deactivated. If the windows use the same input queue, the message is sent synchronously, first to the window procedure of the top-level window being deactivated, then to the window procedure of the top-level window being activated. If the windows use different input queues, the message is sent asynchronously, so the window is activated immediately. + + + + + Sent when a window belonging to a different application than the active window is about to be activated. The message is sent to the application whose window is being activated and to the application whose window is being deactivated. + + + + + Represents the window message Affix first. + + + + + Represents the window message Affix last. + + + + + Used to define private messages, usually of the form WM_APP+x, where x is an integer value. + + + + + Sent to the clipboard owner by a clipboard viewer window to request the name of a CF_OWNERDISPLAY clipboard format. + + + + + Posted to an application when a user cancels the application's journaling activities. The message is posted with a NULL window handle. + + + + + 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. + + + + + Sent to the window that is losing the mouse capture. + + + + + Sent to the first window in the clipboard viewer chain when a window is being removed from the chain. + + + + + An application sends the WM_CHANGEUISTATE message to indicate that the UI state should be changed. + + + + + Posted to the window with the keyboard focus when a WM_KEYDOWN message is translated by the TranslateMessage function. The WM_CHAR message contains the character code of the key that was pressed. + + + + + Sent by a list box with the LBS_WANTKEYBOARDINPUT style to its owner in response to a WM_CHAR message. + + + + + Sent to a child window when the user clicks the window's title bar or when the window is activated, moved, or sized. + + + + + An application sends the WM_CHOOSEFONT_GETLOGFONT message to a Font dialog box to retrieve information about the user's current font selections. + + + + + An application sends a WM_CLEAR message to an edit control or combo box to delete (clear) the current selection, if any, from the edit control. + + + + + Sent as a signal that a window or an application should terminate. + + + + + Sent when the user selects a command item from a menu, when a control sends a notification message to its parent window, or when an accelerator keystroke is translated. + + + + + Represents the common action is performed. + + + + + Sent to all top-level windows when the system detects more than 12.5 percent of system time over a 30- to 60-second interval is being spent compacting memory. This indicates that system memory is low. + + + + + Sent to determine the relative position of a new item in the sorted list of an owner-drawn combo box or list box. Whenever the application adds a new item, the system sends this message to the owner of a combo box or list box created with the CBS_SORT or LBS_SORT style. + + + + + Notifies a window that the user clicked the right mouse button (right-clicked) in the window. + + + + + An application sends the WM_COPY message to an edit control or combo box to copy the current selection to the clipboard in CF_TEXT format. + + + + + An application sends the WM_COPYDATA message to pass data to another application. + + + + + Sent when an application requests that a window be created by calling the CreateWindowEx or CreateWindow function. (The message is sent before the function returns.) The window procedure of the new window receives this message after the window is created, but before the window becomes visible. + + + + + The WM_CTLCOLORBTN message is sent to the parent window of a button before drawing the button. The parent window can change the button's text and background colors. However, only owner-drawn buttons respond to the parent window processing this message. + + + + + Sent to a dialog box before the system draws the dialog box. By responding to this message, the dialog box can set its text and background colors using the specified display device context handle. + + + + + An edit control that is not read-only or disabled sends the WM_CTLCOLOREDIT message to its parent window when the control is about to be drawn. By responding to this message, the parent window can use the specified device context handle to set the text and background colors of the edit control. + + + + + Sent to the parent window of a list box before the system draws the list box. By responding to this message, the parent window can set the text and background colors of the list box by using the specified display device context handle. + + + + + Send to owner window before draws the MessageBox. + + + + + A static control, or an edit control that is read-only or disabled, sends the WM_CTLCOLORSTATIC message to its parent window when the control is about to be drawn. By responding to this message, the parent window can use the specified device context handle to set the text foreground and background colors of the static control. + + + + + An application sends a WM_CUT message to an edit control or combo box to delete (cut) the current selection, if any, in the edit control and copy the deleted text to the clipboard in CF_TEXT format. + + + + + The WM_DDE_ACK message notifies a Dynamic Data Exchange (DDE) application of the receipt and processing of the following messages: WM_DDE_POKE, WM_DDE_EXECUTE, WM_DDE_DATA, WM_DDE_ADVISE, WM_DDE_UNADVISE, WM_DDE_INITIATE, or WM_DDE_REQUEST (in some cases). + + + + + A Dynamic Data Exchange (DDE) client application posts the WM_DDE_ADVISE message to a DDE server application to request the server to supply an update for a data item whenever the item changes. + To post this message, call the PostMessage function with the following parameters. + + + + + A Dynamic Data Exchange (DDE) server application posts a WM_DDE_DATA message to a DDE client application to pass a data item to the client or to notify the client of the availability of a data item. + + + + + A Dynamic Data Exchange (DDE) client application posts a WM_DDE_EXECUTE message to a DDE server application to send a string to the server to be processed as a series of commands. The server application is expected to post a WM_DDE_ACK message in response. + + + + + A Dynamic Data Exchange (DDE) client application posts a WM_DDE_FIRST message to a DDE server application to send a string to the server to be processed as a series of commands. The server application is expected to post a WM_DDE_ACK message in response. + + + + + A Dynamic Data Exchange (DDE) client application sends a WM_DDE_INITIATE message to initiate a conversation with a server application responding to the specified application and topic names. Upon receiving this message, all server applications with names that match the specified application and that support the specified topic are expected to acknowledge it. + + + + + A Dynamic Data Exchange (DDE) client application posts a WM_DDE_LAST message to a DDE server application. + + + + + A Dynamic Data Exchange (DDE) client application posts a WM_DDE_POKE message to a DDE server application. A client uses this message to request the server to accept an unsolicited data item. The server is expected to reply with a WM_DDE_ACK message indicating whether it accepted the data item. + + + + + A Dynamic Data Exchange (DDE) client application posts a WM_DDE_REQUEST message to a DDE server application to request the value of a data item. + + + + + A Dynamic Data Exchange (DDE) application (client or server) posts a WM_DDE_TERMINATE message to terminate a conversation. + + + + + A Dynamic Data Exchange (DDE) client application posts a WM_DDE_UNADVISE message to inform a DDE server application that the specified item or a particular clipboard format for the item should no longer be updated. This terminates the warm or hot data link for the specified item. + + + + + Posted to the window with the keyboard focus when a WM_KEYUP message is translated by the TranslateMessage function. WM_DEADCHAR specifies a character code generated by a dead key. A dead key is a key that generates a character, such as the umlaut (double-dot), that is combined with another character to form a composite character. For example, the umlaut-O character (Ö) is generated by typing the dead key for the umlaut character, and then typing the O key. + + + + + Sent to the owner of a list box or combo box when the list box or combo box is destroyed or when items are removed by the LB_DELETESTRING, LB_RESETCONTENT, CB_DELETESTRING, or CB_RESETCONTENT message. The system sends a WM_DELETEITEM message for each deleted item. The system sends the WM_DELETEITEM message for any deleted list box or combo box item with nonzero item data. + + + + + Sent when a window is being destroyed. It is sent to the window procedure of the window being destroyed after the window is removed from the screen. + This message is sent first to the window being destroyed and then to the child windows (if any) as they are destroyed. During the processing of the message, it can be assumed that all child windows still exist. + + + + + Sent to the clipboard owner when a call to the EmptyClipboard function empties the clipboard. + + + + + Notifies an application of a change to the hardware configuration of a device or the computer. + + + + + The WM_DEVMODECHANGE message is sent to all top-level windows whenever the user changes device-mode settings. + + + + + The WM_DISPLAYCHANGE message is sent to all windows when the display resolution has changed. + + + + + Sent to the first window in the clipboard viewer chain when the content of the clipboard changes. This enables a clipboard viewer window to display the new content of the clipboard. + + + + + Sent to the parent window of an owner-drawn button, combo box, list box, or menu when a visual aspect of the button, combo box, list box, or menu has changed. + + + + + Sent when the user drops a file on the window of an application that has registered itself as a recipient of dropped files. + + + + + Sent when an application changes the enabled state of a window. It is sent to the window whose enabled state is changing. This message is sent before the EnableWindow function returns, but after the enabled state (WS_DISABLED style bit) of the window has changed. + + + + + The WM_ENDSESSION message is sent to an application after the system processes the results of the WM_QUERYENDSESSION message. The WM_ENDSESSION message informs the application whether the session is ending. + + + + + Sent to the owner window of a modal dialog box or menu that is entering an idle state. A modal dialog box or menu enters an idle state when no messages are waiting in its queue after it has processed one or more previous messages. + + + + + Notifies an application's main window procedure that a menu modal loop has been entered. + + + + + Sent one time to a window after it enters the moving or sizing modal loop. The window enters the moving or sizing modal loop when the user clicks the window's title bar or sizing border, or when the window passes the WM_SYSCOMMAND message to the DefWindowProc function and the wParam parameter of the message specifies the SC_MOVE or SC_SIZE value. The operation is complete when DefWindowProc returns. + The system sends the WM_ENTERSIZEMOVE message regardless of whether the dragging of full windows is enabled. + + + + + Sent when the window background must be erased (for example, when a window is resized). The message is sent to prepare an invalidated portion of a window for painting. + + + + + Notifies an application's main window procedure that a menu modal loop has been exited. + + + + + Sent one time to a window, after it has exited the moving or sizing modal loop. The window enters the moving or sizing modal loop when the user clicks the window's title bar or sizing border, or when the window passes the WM_SYSCOMMAND message to the DefWindowProc function and the wParam parameter of the message specifies the SC_MOVE or SC_SIZE value. The operation is complete when DefWindowProc returns. + + + + + An application sends the WM_FONTCHANGE message to all top-level windows in the system after changing the pool of font resources. + + + + + Sent to the window procedure associated with a control. By default, the system handles all keyboard input to the control; the system interprets certain types of keyboard input as dialog box navigation keys. To override this default behavior, the control can respond to the WM_GETDLGCODE message to indicate the types of input it wants to process itself. + + + + + Retrieves the font with which the control is currently drawing its text. + + + + + Sent to determine the hot key associated with a window. + + + + + Sent to a window to retrieve a handle to the large or small icon associated with a window. The system displays the large icon in the ALT+TAB dialog, and the small icon in the window caption. + + + + + Sent to a window when the size or position of the window is about to change. An application can use this message to override the window's default maximized size and position, or its default minimum or maximum tracking size. + + + + + Sent by both Microsoft Active Accessibility and Microsoft UI Automation to obtain information about an accessible object contained in a server application. + + + + + Copies the text that corresponds to a window into a buffer provided by the caller. + + + + + Determines the length, in characters, of the text associated with a window. + + + + + Represents the window message that handled first. + + + + + Represents the window message that handled last. + + + + + Indicates that the user pressed the F1 key. If a menu is active when F1 is pressed, WM_HELP is sent to the window associated with the menu; otherwise, WM_HELP is sent to the window that has the keyboard focus. If no window has the keyboard focus, WM_HELP is sent to the currently active window. + + + + + Posted when the user presses a hot key registered by the RegisterHotKey function. The message is placed at the top of the message queue associated with the thread that registered the hot key. + + + + + This message is sent to a minimized window when the background of the icon must be filled before painting the icon. A window receives this message only if a class icon is defined for the window; otherwise, WM_ERASEBKGND is sent. + + + + + Sent to an application when the IME gets a character of the conversion result. + + + + + Sent to an application when the IME changes composition status as a result of a keystroke. A window receives this message through its WindowProc function. + + + + + Sent to an application when the IME window finds no space to extend the area for the composition window. + + + + + Sent by an application to direct the IME window to carry out the requested command. The application uses this message to control the IME window that it has created. To send this message, the application calls the SendMessage function with the following parameters. + + + + + Sent to an application when the IME ends composition. A window receives this message through its WindowProc function. + + + + + Sent to an application by the IME to notify the application of a key press and to keep message order. + + + + + Sent to an application by the IME to notify the application of a key last and to keep message order. + + + + + Sent to an application by the IME to notify the application of a key release and to keep message order + + + + + Sent to an application to notify it of changes to the IME window. + + + + + Sent to an application when the operating system is about to change the current IME. + + + + + Sent to an application when a window is activated. + + + + + Sent immediately before the IME generates the composition string as a result of a keystroke. + + + + + Sent to the dialog box procedure immediately before a dialog box is displayed. Dialog box procedures typically use this message to initialize controls and carry out any other initialization tasks that affect the appearance of the dialog box. + + + + + Sent when a menu is about to become active. It occurs when the user clicks an item on the menu bar or presses a menu key. This allows the application to modify the menu before it is displayed. + + + + + Sent when a drop-down menu or submenu is about to become active. This allows an application to modify the menu before it is displayed, without changing the entire menu. + + + + + Sent to the topmost affected window after an application's input language has been changed. You should make any application-specific settings and pass the message to the DefWindowProc function, which passes the message to all first-level child windows. These child windows can pass the message to DefWindowProc to have it pass the message to their child windows, and so on. + + + + + Posted to the window with the focus when the user chooses a new input language, either with the hotkey (specified in the Keyboard control panel application) or from the indicator on the system taskbar. An application can accept the change by passing the message to the DefWindowProc function or reject the change (and prevent it from taking place) by returning immediately. + + + + + Posted to the window with the keyboard focus when a nonsystem key is pressed. A nonsystem key is a key that is pressed when the ALT key is not pressed. + + + + + This message filters for keyboard messages. + + + + + This message filters for keyboard messages. + + + + + Posted to the window with the keyboard focus when a nonsystem key is released. A nonsystem key is a key that is pressed when the ALT key is not pressed, or a keyboard key that is pressed when a window has the keyboard focus. + + + + + Sent to a window immediately before it loses the keyboard focus. + + + + + Posted when the user double-clicks the left mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse. + + + + + Posted when the user presses the left mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse. + + + + + Posted when the user releases the left mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse. + + + + + Posted when the user double-clicks the middle mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse. + + + + + Posted when the user presses the middle mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse. + + + + + Posted when the user releases the middle mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse. + + + + + An application sends the WM_MDIACTIVATE message to a multiple-document interface (MDI) client window to instruct the client window to activate a different MDI child window. + + + + + An application sends the WM_MDICASCADE message to a multiple-document interface (MDI) client window to arrange all its child windows in a cascade format. + + + + + An application sends the WM_MDICREATE message to a multiple-document interface (MDI) client window to create an MDI child window. + + + + + An application sends the WM_MDIDESTROY message to a multiple-document interface (MDI) client window to close an MDI child window. + + + + + An application sends the WM_MDIGETACTIVE message to a multiple-document interface (MDI) client window to retrieve the handle to the active MDI child window. + + + + + An application sends the WM_MDIICONARRANGE message to a multiple-document interface (MDI) client window to arrange all minimized MDI child windows. It does not affect child windows that are not minimized. + + + + + An application sends the WM_MDIMAXIMIZE message to a multiple-document interface (MDI) client window to maximize an MDI child window. The system resizes the child window to make its client area fill the client window. The system places the child window's window menu icon in the rightmost position of the frame window's menu bar, and places the child window's restore icon in the leftmost position. + The system also appends the title bar text of the child window to that of the frame window. + + + + + An application sends the WM_MDINEXT message to a multiple-document interface (MDI) client window to activate the next or previous child window. + + + + + An application sends the WM_MDIREFRESHMENU message to a multiple-document interface (MDI) client window to refresh the window menu of the MDI frame window. + + + + + An application sends the WM_MDIRESTORE message to a multiple-document interface (MDI) client window to restore an MDI child window from maximized or minimized size. + + + + + An application sends the WM_MDISETMENU message to a multiple-document interface (MDI) client window to replace the entire menu of an MDI frame window, to replace the window menu of the frame window, or both. + + + + + An application sends the WM_MDITILE message to a multiple-document interface (MDI) client window to arrange all of its MDI child windows in a tile format. + + + + + Sent to the owner window of a combo box, list box, list-view control, or menu item when the control or menu is created. + + + + + Sent when a menu is active and the user presses a key that does not correspond to any mnemonic or accelerator key. This message is sent to the window that owns the menu. + + + + + Sent to a menu's owner window when the user selects a menu item. + + + + + Sent when the cursor is in an inactive window and the user presses a mouse button. The parent window receives this message only if the child window passes it to the DefWindowProc function. + + + + + Specify the first mouse message. + + + + + Posted to a window when the cursor hovers over the client area of the window for the period of time specified in a prior call to TrackMouseEvent. + + + + + Posted to a window to get the last mouse position. + + + + + Posted to a window when the cursor leaves the client area of the window specified in a prior call to TrackMouseEvent. + + + + + Posted to a window when the cursor moves. If the mouse is not captured, the message is posted to the window that contains the cursor. Otherwise, the message is posted to the window that has captured the mouse. + + + + + Sent to the focus window when the mouse wheel is rotated. The DefWindowProc function propagates the message to the window's parent. There should be no internal forwarding of the message, since DefWindowProc propagates it up the parent chain until it finds a window that processes it. + + + + + Sent after a window has been moved. + + + + + Sent while window is in moving. + + + + + Sent to a window when its non client area needs to be changed to indicate an active or inactive state. + + + + + Sent when the size and position of a window's client area must be calculated. By processing this message, an application can control the content of the window's client area when the size or position of the window changes. + + + + + Sent prior to the WM_CREATE message when a window is first created. + + + + + Notifies a window that its non client area is being destroyed. The DestroyWindow function sends the WM_NCDESTROY message to the window following the WM_DESTROY message.WM_DESTROY is used to free the allocated memory object associated with the window. + The WM_NCDESTROY message is sent after the child windows have been destroyed. In contrast, WM_DESTROY is sent before the child windows are destroyed. + + + + + Sent to a window in order to determine what part of the window corresponds to a particular screen coordinate. This can happen, for example, when the cursor moves, when a mouse button is pressed or released, or in response to a call to a function such as WindowFromPoint. If the mouse is not captured, the message is sent to the window beneath the cursor. Otherwise, the message is sent to the window that has captured the mouse. + + + + + Posted when the user double-clicks the left mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. + + + + + Posted when the user presses the left mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. + + + + + Posted when the user releases the left mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. + + + + + Posted when the user double-clicks the middle mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. + + + + + Posted when the user presses the middle mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. + + + + + Posted when the user releases the middle mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. + + + + + Posted to a window when the cursor hovers over the non-client area of the window for the period of time specified in a prior call to TrackMouseEvent. + + + + + Posted to a window when the cursor leaves the non-client area of the window specified in a prior call to TrackMouseEvent. + + + + + Posted to a window when the cursor is moved within the non-client area of the window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. + + + + + Posted when the user double-clicks the right mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. + + + + + Posted when the user presses the right mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. + + + + + Posted when the user releases the right mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. + + + + + Sent to a dialog box procedure to set the keyboard focus to a different control in the dialog box. + + + + + Sent to an application when the right or left arrow key is used to switch between the menu bar and the system menu. + + + + + Sent by a common control to its parent window when an event has occurred or the control requires some information. + + + + + Determines if a window accepts ANSI or Unicode structures in the WM_NOTIFY notification message. WM_NOTIFYFORMAT messages are sent from a common control to its parent window and from the parent window to the common control. + + + + + Performs no operation. An application sends the WM_NULL message if it wants to post a message that the recipient window will ignore. + + + + + The WM_PALETTECHANGED message is sent to all top-level and overlapped windows after the window with the keyboard focus has realized its logical palette, thereby changing the system palette. This message enables a window that uses a color palette but does not have the keyboard focus to realize its logical palette and update its client area. + + + + + The WM_PALETTEISCHANGING message informs applications that an application is going to realize its logical palette. + + + + + Sent to a window when a significant action occurs on a descendant window. This message is now extended to include the WM_POINTERDOWN event. When the child window is being created, the system sends WM_PARENTNOTIFY just before the CreateWindow or CreateWindowEx function that creates the window returns. When the child window is being destroyed, the system sends the message before any processing to destroy the window takes place. + + + + + An application sends a WM_PASTE message to an edit control or combo box to copy the current content of the clipboard to the edit control at the current caret position. Data is inserted only if the clipboard contains data in CF_TEXT format. + + + + + The pend that creates first for the drawing. + + + + + The pend that creates last for the drawing. + + + + + Notifies applications that the system, typically a battery-powered personal computer, is about to enter a suspended mode. + + + + + Notifies applications that a power-management event has occurred. + + + + + The WM_PRINT message is sent to a window to request that it draw itself in the specified device context, most commonly in a printer device context. + + + + + The WM_PRINTCLIENT message is sent to a window to request that it draw its client area in the specified device context, most commonly in a printer device context. + Unlike WM_PRINT, WM_PRINTCLIENT is not processed by DefWindowProc. A window should process the WM_PRINTCLIENT message through an application-defined WindowProc function for it to be used properly. + + + + + Notifies the hook procedure of a Page Setup dialog box, PagePaintHook, that the dialog box is about to draw the envelope-stamp rectangle of the sample page. + + + + + Notifies a PagePaintHook hook procedure of the coordinates of the sample page rectangle in the Page Setup dialog box. The dialog box sends this message when it is about to draw the contents of the sample page. + + + + + Notifies the hook procedure of a Page Setup dialog box, PagePaintHook, that the dialog box is about to draw Greek text inside the margin rectangle of the sample page. + + + + + Notifies the hook procedure of a Page Setup dialog box, PagePaintHook, that the dialog box is about to draw the margin rectangle of the sample page. + + + + + Notifies a PagePaintHook hook procedure of the coordinates of the margin rectangle in the sample page. A Page Setup dialog box sends this message when it is about to draw the contents of the sample page. + + + + + Notifies a PagePaintHook hook procedure that the Page Setup dialog box is about to draw the contents of the sample page. The hook procedure can use this message to carry out initialization tasks related to drawing the contents of the sample page. + + + + + Notifies the hook procedure of a Page Setup dialog box, PagePaintHook, that the dialog box is about to draw the return address portion of an envelope sample page. + + + + + Sent to a minimized (iconic) window. The window is about to be dragged by the user but does not have an icon defined for its class. An application can return a handle to an icon or cursor. The system displays this cursor or icon while the user drags the icon. + + + + + The WM_QUERYENDSESSION message is sent when the user chooses to end the session or when an application calls one of the system shutdown functions. If any application returns zero, the session is not ended. The system stops sending WM_QUERYENDSESSION messages as soon as one application returns zero. + After processing this message, the system sends the WM_ENDSESSION message with the wParam parameter set to the results of the WM_QUERYENDSESSION message. + + + + + The WM_QUERYNEWPALETTE message informs a window that it is about to receive the keyboard focus, giving the window the opportunity to realize its logical palette when it receives the focus. + + + + + Sent to an icon when the user requests that the window be restored to its previous size and position. + + + + + An application sends the WM_QUERYUISTATE message to retrieve the UI state for a window. + + + + + Sent by a computer-based training (CBT) application to separate user-input messages from other messages sent through the WH_JOURNALPLAYBACK procedure. + + + + + Indicates a request to terminate an application, and is generated when the application calls the PostQuitMessage function. This message causes the GetMessage function to return zero. + + + + + Posted when the user double-clicks the right mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse. + + + + + Posted when the user presses the right mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse. + + + + + Posted when the user releases the right mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse. + + + + + Sent to the clipboard owner before it is destroyed, if the clipboard owner has delayed rendering one or more clipboard formats. For the content of the clipboard to remain available to other applications, the clipboard owner must render data in all the formats it is capable of generating, and place the data on the clipboard by calling the SetClipboardData function. + + + + + Sent to the clipboard owner if it has delayed rendering a specific clipboard format and if an application has requested data in that format. The clipboard owner must render data in the specified format and place it on the clipboard by calling the SetClipboardData function. + + + + + Sent to a window if the mouse causes the cursor to move within a window and mouse input is not captured. + + + + + Sent to a window after it has gained the keyboard focus. + + + + + Sets the font that a control is to use when drawing text. + + + + + Sent to a window to associate a hot key with the window. When the user presses the hot key, the system activates the window. + + + + + Associates a new large or small icon with a window. The system displays the large icon in the ALT+TAB dialog box, and the small icon in the window caption. + + + + + Sets the text of a window. + + + + + A message that is sent to all top-level windows when the SystemParametersInfo function changes a system-wide setting or when policy settings have changed. + + + + + Sent to a window when the window is about to be hidden or shown. + + + + + Sent to a window after its size has changed. + + + + + Sent to the clipboard owner by a clipboard viewer window when the clipboard contains data in the CF_OWNERDISPLAY format and the clipboard viewer's client area has changed size. + + + + + Sent to a window that the user is resizing. By processing this message, an application can monitor the size and position of the drag rectangle and, if needed, change its size or position. + + + + + The WM_SPOOLERSTATUS message is sent from Print Manager whenever a job is added to or removed from the Print Manager queue. + + + + + Sent to a window after the SetWindowLong function has changed one or more of the window's styles. + + + + + Sent to a window when the SetWindowLong function is about to change one or more of the window's styles. + + + + + Posted to the window with the keyboard focus when a WM_SYSKEYDOWN message is translated by the TranslateMessage function. It specifies the character code of a system character key — that is, a character key that is pressed while the ALT key is down. + + + + + The WM_SYSCOLORCHANGE message is sent to all top-level windows when a change is made to a system color setting. + + + + + A window receives this message when the user chooses a command from the Window menu (formerly known as the system or control menu) or when the user chooses the maximize button, minimize button, restore button, or close button. + + + + + Sent to the window with the keyboard focus when a WM_SYSKEYDOWN message is translated by the TranslateMessage function. WM_SYSDEADCHAR specifies the character code of a system dead key — that is, a dead key that is pressed while holding down the ALT key. + + + + + Posted to the window with the keyboard focus when the user presses the F10 key (which activates the menu bar) or holds down the ALT key and then presses another key. It also occurs when no window currently has the keyboard focus; in this case, the WM_SYSKEYDOWN message is sent to the active window. The window that receives the message can distinguish between these two contexts by checking the context code in the lParam parameter. + + + + + Posted to the window with the keyboard focus when the user releases a key that was pressed while the ALT key was held down. It also occurs when no window currently has the keyboard focus; in this case, the WM_SYSKEYUP message is sent to the active window. The window that receives the message can distinguish between these two contexts by checking the context code in the lParam parameter. + + + + + Sent to an application that has initiated a training card with Windows Help. The message informs the application when the user clicks an authorable button. An application initiates a training card by specifying the HELP_TCARD command in a call to the WinHelp function. + + + + + A message that is sent whenever there is a change in the system time. + + + + + Posted to the installing thread's message queue when a timer expires. The message is posted by the GetMessage or PeekMessage function. + + + + + An application sends a WM_UNDO message to an edit control to undo the last operation. When this message is sent to an edit control, the previously deleted text is restored or the previously added text is deleted. + + + + + An application sends the WM_UPDATEUISTATE message to change the UI state for the specified window and all its child windows. + + + + + Used to define private messages for use by private window classes, usually of the form WM_USER+x, where x is an integer value. + + + + + Sent to all windows after the user has logged on or off. When the user logs on or off, the system updates the user-specific settings. The system sends this message immediately after updating the settings. + + + + + Sent by a list box with the LBS_WANTKEYBOARDINPUT style to its owner in response to a WM_KEYDOWN message. + + + + + Sent to a window whose size, position, or place in the Z order has changed as a result of a call to the SetWindowPos function or another window-management function. + + + + + Sent to a window whose size, position, or place in the Z order is about to change as a result of a call to the SetWindowPos function or another window-management function. + + + + + An application sends the WM_WININICHANGE message to all top-level windows after making a change to the WIN.INI file. The SystemParametersInfo function sends this message after an application uses the function to change a setting in WIN.INI. + + + + + The window is an overlapped window. An overlapped window has a title bar and a border. Same as the WS_TILED style. + + + + + The windows is a pop-up window. This style cannot be used with the WS_CHILD style. + + + + + The window is a child window. A window with this style cannot have a menu bar. This style cannot be used with the WS_POPUP style. + + + + + The window is initially minimized. Same as the WS_ICONIC style. + + + + + The window is initially visible. + This style can be turned on and off by using the ShowWindow or SetWindowPos function. + + + + + The window is initially disabled. A disabled window cannot receive input from the user. To change this after a window has been created, use the EnableWindow function. + + + + + Clips child windows relative to each other; that is, when a particular child window receives a WM_PAINT message, the WS_CLIPSIBLINGS style clips all other overlapping child windows out of the region of the child window to be updated. If WS_CLIPSIBLINGS is not specified and child windows overlap, it is possible, when drawing within the client area of a child window, to draw within the client area of a neighboring child window. + + + + + Excludes the area occupied by child windows when drawing occurs within the parent window. This style is used when creating the parent window. + + + + + The window is initially maximized. + + + + + The window has a title bar (includes the WS_BORDER style). + + + + + The window has a thin-line border. + + + + + The window has a border of a style typically used with dialog boxes. A window with this style cannot have a title bar. + + + + + The window has a vertical scroll bar. + + + + + The window has a horizontal scroll bar. + + + + + The window has a window menu on its title bar. The WS_CAPTION style must also be specified. + + + + + The window has a sizing border. Same as the WS_SIZEBOX style. + + + + + The window is a control that can receive the keyboard focus when the user presses the TAB key. Pressing the TAB key changes the keyboard focus to the next control with the WS_TABSTOP style. + + + + + The window has a minimize button. Cannot be combined with the WS_EX_CONTEXTHELP style. The WS_SYSMENU style must also be specified. + + + + + The window has a maximize button. Cannot be combined with the WS_EX_CONTEXTHELP style. The WS_SYSMENU style must also be specified. + + + + + The window has a double border; the window can, optionally, be created with a title bar by specifying the WS_CAPTION style in the dwStyle parameter. + + + + + The window is a MDI child window. + + + + + The window is intended to be used as a floating toolbar. A tool window has a title bar that is shorter than a normal title bar, and the window title is drawn using a smaller font. A tool window does not appear in the taskbar or in the dialog that appears when the user presses ALT+TAB. If a tool window has a system menu, its icon is not displayed on the title bar. However, you can display the system menu by right-clicking or by typing ALT+SPACE. + + + + + The window has a border with a sunken edge. + + + + + The title bar of the window includes a question mark. When the user clicks the question mark, the cursor changes to a question mark with a pointer. If the user then clicks a child window, the child receives a WM_HELP message. The child window should pass the message to the parent window procedure, which should call the WinHelp function using the HELP_WM_HELP command. The Help application displays a pop-up window that typically contains help for the child window. + WS_EX_CONTEXTHELP cannot be used with the WS_MAXIMIZEBOX or WS_MINIMIZEBOX styles. + + + + + The window has generic "right-aligned" properties. This depends on the window class. This style has an effect only if the shell language is Hebrew, Arabic, or another language that supports reading-order alignment; otherwise, the style is ignored. + + + + + The window has generic left-aligned properties. This is the default. + + + + + If the shell language is Hebrew, Arabic, or another language that supports reading-order alignment, the window text is displayed using right-to-left reading-order properties. For other languages, the style is ignored. + + + + + If the shell language is Hebrew, Arabic, or another language that supports reading order alignment, the vertical scroll bar (if present) is to the left of the client area. For other languages, the style is ignored. + + + + + The window itself contains child windows that should take part in dialog box navigation. If this style is specified, the dialog manager recursive into children of this window when performing navigation operations such as handling the TAB key, an arrow key, or a keyboard mnemonic. + + + + + The window has a three-dimensional border style intended to be used for items that do not accept user input. + + + + + Forces a top-level window onto the task-bar when the window is visible. + + + + + The window is a layered window. This style cannot be used if the window has a class style of either CS_OWNDC or CS_CLASSDC. + + + + + The window should be placed above all non-topmost windows and should stay above them, even when the window is deactivated. To add or remove this style, use the SetWindowPos function. + + + + + The window has a border with a raised edge. + + + + + The window has a border with a raised edge. + + + + + If the shell language is Hebrew, Arabic, or another language that supports reading order alignment, the horizontal origin of the window is on the right edge. Increasing horizontal values advance to the left. + + + + + Sizes the window. + + + + + Moves the window. + + + + + Minimizes the window. + + + + + Maximizes the window. + + + + + Closes the window. + + + + + Retrieves the window menu as a result of a mouse click. + + + + + Retrieves the window menu as a result of a keystroke. For more information, see the Remarks section. + + + + + Restores the window to its normal position and size. + + + + + Changes the cursor to a question mark with a pointer. If the user then clicks a control in the dialog box, the control receives a WM_HELP message. + + + + + Selects the default item; the user double-clicked the window menu. + + + + + Activates the window associated with the application-specified hot key. The lParam parameter identifies the window to activate. + + + + + This message enables or disables the OK button for the Browse For Folder dialog box. + + + + + This message indicates that the selection in the dialog box changed. + + + + + This message sets the status text in the Browse For Folder dialog box. + + + + + Sets the text that is displayed on the dialog box's OK button. + + + + + Specifies the path of a folder to expand in the Browse dialog box. The path can be specified as a Unicode string or a PIDL. + + + + + The dialog box has finished initializing. + + + + + This message indicates that the selection in the dialog box changed. + + + + + The user typed an invalid name into the dialog's edit box. A nonexistent folder is considered an invalid name. + + + + + An IUnknown interface is available to the dialog box. + + + + + The retrieved handle identifies the window of the same type that is highest in the Z order. + + + + + The retrieved handle identifies the window of the same type that is lowest in the Z order. + + + + + The retrieved handle identifies the window below the specified window in the Z order. + + + + + The retrieved handle identifies the window above the specified window in the Z order. + + + + + The retrieved handle identifies the specified window's owner window, if any. For more information, see Owned Windows. + + + + + The retrieved handle identifies the child window at the top of the Z order, if the specified window is a parent window; otherwise, the retrieved handle is NULL. The function examines only child windows of the specified window. It does not examine descendant windows. + + + + + The retrieved handle identifies the enabled popup window owned by the specified window (the search uses the first such window found using GW_HWNDNEXT); otherwise, if there are no enabled popup windows, the retrieved handle is that of the specified window. + + + + + Sets a new address for the window procedure. + You cannot change this attribute if the window does not belong to the same process as the calling thread. + + + + + Index to change the parent of a child window. + + + + + Sets a new window style. + + + + + Sets a new extended window style. + + + + + Sets a new identifier of the child window. The window cannot be a top-level window. + + + + + Enables the drop shadow effect on a window. + + + + + Copies the source rectangle directly to the destination rectangle. + + + + + Returns a DC that corresponds to the window rectangle rather than the client rectangle. + + + + + Returns a DC from the cache, rather than the OWNDC or CLASSDC window. Essentially overrides CS_OWNDC and CS_CLASSDC. + + + + + The clipping region identified by hrgnClip is intersected with the visible region of the returned DC. + + + + + Allows drawing even if there is a LockWindowUpdate call in effect that would otherwise exclude this window. Used for drawing during tracking. + + + + + Uses the visible region of the parent window. The parent's WS_CLIPCHILDREN and CS_PARENTDC style bits are ignored. The origin is set to the upper-left corner of the window identified by hWnd. + + + + + Excludes the visible regions of all sibling windows above the window identified by hWnd. + + + + + Excludes the visible regions of all child windows below the window identified by hWnd. + + + + + The clipping region identified by hrgnClip is excluded from the visible region of the returned DC. + + + + + Creates the intersection of the two combined regions. + + + + + Creates the union of two combined regions. + + + + + Creates the union of two combined regions except for any overlapping areas. + + + + + Combines the parts of hrgnSrc1 that are not part of hrgnSrc2. + + + + + Creates a copy of the region identified by hrgnSrc1. + + + + + Gets the formatting rectangle of an edit control. + + + + + Gets information about the character closest to a specified point in the client area of an edit control. + + + + + A WM_KEYUP, WM_KEYDOWN, WM_SYSKEYUP, or WM_SYSKEYDOWN message is in the queue. + + + + + A WM_MOUSEMOVE message is in Queue. + + + + + A mouse-button message (WM_LBUTTONUP, WM_RBUTTONDOWN, and so on). + + + + + A posted message (other than those listed here) is in the queue. + + + + + A WM_TIMER message is in the queue. + + + + + A WM_PAINT message is in the queue. + + + + + A message sent by another thread or application is in the queue. + + + + + A WM_HOTKEY message is in the queue. + + + + + A posted message (other than those listed here) is in the queue. + + + + + A raw input message is in the queue. For more information, see Raw Input. + + + + + A WM_MOUSEMOVE message or mouse-button message (WM_LBUTTONUP, WM_RBUTTONDOWN, and so on). + + + + + An input message is in the queue. + + + + + An input, WM_TIMER, WM_PAINT, WM_HOTKEY, or posted message is in the queue. + + + + + Any message is in the queue. + + + + + The state of the specified object is signaled. + + + + + The time-out interval elapsed, and the object's state is non-signaled. + + + + + A constant used to specify an infinite waiting period, for threading methods that accept an Int32 parameter. + + + + + Retains the current size (ignores the cx and cy parameters). + + + + + Retains the current position (ignores X and Y parameters). + + + + + Retains the current Z order (ignores the hWndInsertAfter parameter). + + + + + Does not redraw changes. If this flag is set, no repainting of any kind occurs. This applies to the client area, the non-client area (including the title bar and scroll bars), and any part of the parent window uncovered as a result of the window being moved. When this flag is set, the application must explicitly invalidate or redraw any parts of the window and parent window that need redrawing. + + + + + Does not activate the window. If this flag is not set, the window is activated and moved to the top of either the topmost or non-topmost group (depending on the setting of the hWndInsertAfter parameter). + + + + + Applies new frame styles set using the SetWindowLong function. Sends a WM_NCCALCSIZE message to the window, even if the window's size is not being changed. If this flag is not specified, WM_NCCALCSIZE is sent only when the window's size is being changed. + + + + + Displays the window. + + + + + Hides the window. + + + + + Discards the entire contents of the client area. If this flag is not specified, the valid contents of the client area are saved and copied back into the client area after the window is sized or repositioned. + + + + + Does not change the owner window's position in the Z order. + + + + + Prevents the window from receiving the WM_WINDOWPOSCHANGING message. + + + + + Retrieves the bounding rectangle of the Windows task bar. + + + + + Retrieves the size of the work area on the primary display monitor. + + + + + Bottom edge. + + + + + Left edge. + + + + + Right edge. + + + + + Top edge. + + + + + Provides a representation of an object so it can be displayed as an embedded object inside of a container. + This value is typically specified for compound document objects. + The presentation can be provided for the screen or printer. + + + + + Represents the transparent or irregular parts of on object, typically parts that are expensive or impossible to clip out. + Objects may or may not support this aspect. + + + + + Represents the opaque, easy to clip parts of an object. Objects may or may not support this aspect. + + + + + Represents the bits per pixel. + + + + + Represents the adding of pixel in horizontal. + + + + + Represents the adding of pixel in vertical. + + + + + Represents the planes. + + + + + Activates the window, and does not discard the mouse message. + + + + + Activates the window, and discards the mouse message. + + + + + Does not activate the window, and does not discard the mouse message. + + + + + Does not activate the window, but discards the mouse message. + + + + + On the screen background or on a dividing line between windows (same as HTNOWHERE, except that the DefWindowProc function produces a system beep to indicate an error). + + + + + On the screen background or on a dividing line between windows. + + + + + In a client area. + + + + + In a title bar. + + + + + In a window menu or in a Close button in a child window. + + + + + In a size box (same as HTSIZE). + + + + + In a menu. + + + + + In a Minimize button. + + + + + In a Maximize button. + + + + + In the lower-left corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally). + + + + + In the lower-right corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally). + + + + + In the lower corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally). + + + + + In the right corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally). + + + + + In the top corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally). + + + + + In the top-left corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally). + + + + + In the top-right corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally). + + + + + In the left corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally). + + + + + In the border of a window that does not have a sizing border. + + + + + In a Close button. + + + + + In a Help button. + + + + + Places the window at the top of the Z order. + + + + + Places the window at the bottom of the Z order. If the hWnd parameter identifies a topmost window, the window loses its topmost status and is placed at the bottom of all other windows. + + + + + Places the window above all non-topmost windows. The window maintains its topmost position even when it is deactivated. + + + + + Places the window above all non-topmost windows (that is, behind all topmost windows). This flag has no effect if the window is already a non-topmost window. + + + + + The left mouse button is down. + + + + + The right mouse button is down. + + + + + The middle mouse button is down. + + + + + The CTRL key is down. + + + + + The middle mouse button is down. + + + + + Indicates the deactivated. + + + + + Activated by some method other than a mouse click (for example, by a call to the SetActiveWindow function or by use of the keyboard interface to select the window). + + + + + Activated by a mouse click. + + + + + A Notification is delivered as a WM_MOUSELEAVE message. + If the mouse is not over the specified window or area, + a leave notification is generated immediately and no further tracking is performed. + + + + + If the mouse is hover on or leave from the non client areas + a notification is delivered as WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages. + + + + + The constant value for scroll. + + + + + + + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Provides the design time functionality for control. + + + + + + + + + + + + + + + + Design the property values into the class. + + + + 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 + + + + Represents the class for drawing style option of the control. + + + + + + + + + + + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new accessibility object in . + + Returns a new System.Windows.Forms.AccessibleObject for the + + + + Creates a default instance of a . + + The instance. + + + + Returns the name of the control. + + + + + 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 . + + + + + Gets a reference to the drop-down ColorUIControl. + + A reference to the instance. + + + + Overrides the base class font property. + + + + + Gets or sets a value indicating whether the control should enable its Accessibility support. + + + + + Gets or sets the size of the drop-down . + + A Size value. + + + + Gets or sets the visibility drop down. + + True if the drop-down is visible; False otherwise. By default, it is False. + + + + Gets or sets the touchmode of is enable. + + + + + Gets or sets a value whether is set as the backcolor. + + True if the SelectedColor is used; False otherwise. By default, it is False. + + + + Gets or sets a value whether is set as the text. + + 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 tab associated with this colorgroup in 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. + + + + Gets a reference to the that will contain the . + + A reference to the instance. + + + + Gets/Sets if Dropdown opened using Touch Gesture + + + + + Defines the constant that specify 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. + + + + + Defines the constant that specify 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. + + + + + Defines the constant which specifies the possible source of 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. + + + + + Design the property values into class. + + + + + Designer ActionList collection + + + + + Initialize a new instance of the ColorUIDesigner 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); + + + + Represents the class to apply the theme for control. + + + + + 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. + + + + + Represents a class to apply the theme for the control. + + + 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. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Helps to apply the ThemeName settings in control + + ThemeName + + + + Helps to override the ControlName property settings + + ControlName + + + + Helps to draw text border of control + + + + + 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 + + + + + It contains the value of the property. + + + + + Gets the active theme name of the control. + + Returns the active theme name. + + + + 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 event when theme name changed. + + The sender value. + A contains the event data. + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Helps to override the CanApplyTheme property settings + + CanApplyTheme + + + + Helps to override the CanOverriderStyle property settings + + CanOverriderStyle + + + + 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. + + + + + + + + + Raises the System.Windows.Forms.Control.EnabledChanged event. + + An System.EventArgs that contains the event data. + + + + Helps to reset Control Layout Settings + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 or sets the Base Theme name of the theme + + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Gets the name of the control. + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Overrides the base class font property. + + + + + 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 theme name of the control. + + + The default value is null. + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + 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. + + + + + Occurs when theme name of the control has 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. + + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets or sets a value indicating whether a theme settings + can be applied to the control. + + The default value is true. + + This property must be initialized before applying the VisualTheme /> + + + + + Office2010 color scheme. + + + + + Gets color table for Office2010 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. + + + + + Update culture based on LCID. + + A Boolean that denotes whether to use the user-selected culture settings (true) + or the default culture settings (false). + CurrentCulture if LCID is not available. + + + + 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 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 ); + + + + + 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. + + + + 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 unmanage resources. + + + + Raises the System.Windows.Forms.Control.EnabledChanged event. + + An System.EventArgs that contains 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. + + + + + It contains the value of the property. + + + + + Checks whether the value is zero. + + True, if value is zero. + + + + Helps to apply the ThemeName settings in control + + ThemeName + + + + Helps to override the ThemeName property settings + + ThemeName + + + + Helps to override the OnGotFocus events + + An System.EventArgs that contains the event data. + + + + Helps to draw text border of control + + + + + 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 a value indicating whether the control should enable its Accessibility support. + + + + + 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. + + + + Represents a class to define the style for the control. + + + + + Represents a class to define the style for the control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for the control. + + + + + Gets or sets the value of the + control. + + + + + + Gets or sets the value used to draw the back color of the + control in the default state. + + The value is used to draw the back color of the TextBoxExt. + The default value is null. + + + + Gets or sets the value used to draw the back color of the + control in the disabled state. + + The value is used to draw the disabled back color of the TextBoxExt. + The default value is null. + + + + Gets or sets the value used to draw the fore color of the + control in the default state. + + The value is used to draw the fore color of the TextBoxExt. + The default value is null. + + + + Gets or sets the value used to draw the fore color of the + control in the disabled state. + + The value is used to draw the disabled fore color of the TextBoxExt. + The default value is null. + + + + Gets or sets the value used to draw the border color of the + control in the default state. + + The value is used to draw the border color of the TextBoxExt. + The default value is null. + + + + Gets or sets the value used to draw the border color of the + control in the focussed state. + + The value is used to draw the focussed border color of the TextBoxExt. + The default value is null. + + + + Gets or sets the value used to draw the border color of the + control in the disabled state. + + The value is used to draw the disabled border color of the TextBoxExt. + The default value is null. + + + + Gets or sets the value used to draw the border color of the + control in the hover state. + + The value is used to draw the hover border color of the TextBoxExt. + The default value is null. + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for the control. + + + + + Gets or sets the value used to draw the fore color of the + control when text value is negative. + + The value is used to fill the fore color of the textbox. + + + + Gets or sets the value used to draw the fore color of the + control when text value is zero. + + The value is used to fill the fore color of the textbox. + + + + Gets or sets the value used to draw the back color of the + control when text value is read only. + + The value is used to fill the back color of the textbox. + + + + Implements a class that provide the identity information of + using . + + + + + Implements a class that provide the identity information of + using . + + + + + Maintains the TextBoxExt for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Maintains the CurrencyTextBox for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + 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. + + + + + + + + + + + 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. + + + + + + + + Represents a class that provides support to get the current DPI value and calculate the values based on the current DPI values. + + + + + Indicates the logpixel. + + + + + Stores the current dpi value. + + + + + Stores the current device units. + + + + + Gets the image file from given assembly based on the DPI scaling factor. + If the DPI scaling is greater than 175 then returns the high DPI image, otherwise returns the default image. + + The used to read the image file. + The string contains the folder path. + The string value represents the name of the image file. + The imageName must contains the extension like AddNewRowIcon.png or AddNewRowIcon.bmp + Returns the image file from specified folder path. + + + + Gets an equivalent value based on the current DPI value. + + The float value. + Returns the value based on DPI value. + + + + Gets the current DPI value of the device. + + Returns the current DPI value of the device. + + + + + + + + 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. + + + + + + + + + + + Represents a class to define the style for the control. + + + + + Represents a class to define the style for the control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for the control. + + + + + Gets or sets the value used to draw the border thickness of the + control. + + The value is used to draw the border thickness of the GradientPanel. + + + + Gets or sets the value used to draw the back color of the + control in the default state. + + The value is used to draw the back color of the GradientPanel. + The default value is null. + + + + Gets or sets the value used to draw the back color of the + control in the disabled state. + + The value is used to draw the disabled back color of the GradientPanel. + The default value is null. + + + + Gets or sets the value used to draw the border color of the + control in the default state. + + The value is used to draw the border color of the GradientPanel. + The default value is null. + + + + Gets or sets the value used to draw the border color of the + control in the disabled state. + + The value is used to draw the disabled border color of the GradientPanel. + The default value is null. + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for the control. + + + + + Gets or sets the value used to draw the inner border color of the + control in default state. + + The value is used to draw the inner border color of the GradientPanelExt. + + + + Gets or sets the value used to draw the disabled inner border color of the + control in disabled state. + + The value is used to draw the disabled inner border color of the GradientPanelExt. + + + + Gets or sets the value used to draw the inner back color of the + control in default state. + + The value is used to draw the inner back color of the GradientPanelExt. + + + + Gets or sets the value used to draw the inner back color of the + control in disabled state. + + The value is used to draw the disabled inner back color of the GradientPanelExt. + + + + Gets or sets the value used to draw the CornerRadius of the + control. + + The value is used to draw the CornerRadius of the GradientPanelExt. + + + + Implements a class that provide the identity information of + using . + + + + + Implements a class that provide the identity information of + using . + + + + + Maintains the GradientPanel for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Maintains the GradientPanelExt for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Represents a class that provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable sub-object. + + + + + Represents a class to apply the theme for the control. + + + 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. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Get or Set of Skin Manager Interface + + + + + It contains the value of the property. + + + + + Gets the active theme name of the control. + + Returns the active theme name. + + + + Helps to override the CanOverriderStyle property settings + + CanOverriderStyle + + + + Helps to override the CanApplyTheme property settings + + CanApplyTheme + + + + Raises the event when theme name changed. + + The sender value. + A contains the event data. + + + + Helps to apply the ThemeName settings in control + + ThemeName + + + + Helps to override the ControlName property settings + + ControlName + + + + 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. + + + + + + Gets or sets the theme name of the control. + + + The default value is null. + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Get or Set of Visual theme + + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets or sets a value indicating whether a theme settings + can be applied to the control. + + The default value is true. + + This property must be initialized before applying the VisualTheme /> + + + + + Gets or sets the Base Theme name of the theme + + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Gets the name of the control. + + + + + 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 + + + + + Represents the class to apply the theme for control. + + + 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; + + + + + It contains the value of the property. + + + + + Helps to apply the ThemeName settings in control + + ThemeName + + + + Helps to override the ThemeName property settings + + ThemeName + + + + Helps to override the OnGotFocus events + + An System.EventArgs that contains the event data. + + + + Invoked when corner radius changed. + + + + + Sets correctly corner radius. + + + + + Gets maximum radius. + + + + + + Find maximum size of the primitive in the collection. + + + + + Refresh work sizes. + + + + + Gets size collapsed control. + + + + + 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. + + + + + Refresh location for all primitives + + + + + Sets correctly position of the primitive. + + + + + Gets IDesignerHost interface. + + + + + + Gets start point position primitive from given side. + + + + + Gets end point position of the primitive from given side. + + + + + Gets rectangle which primitive is drawing. + + + + + Sets size of the control. + + + + + Sets correctly border gap. + + + + + Gets minimum border gap for a specific side. + + + + + Find maximum size of the primitive in the collection for a specific side. + + + + + Gets maximum border gap for the specified side. + + + + + Gets minimum border gap. + + + + + Gets rounded path. + + + + + Gets rounded path. + + + + + 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 the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + 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. + + + + + Represents the class to define the style for control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for the control. + + + + + Gets or sets the value of the + control. + + + + + Gets or sets the background color of the control. + + The value is used to fill the background of the GroupViewItem. + + + + Gets or sets the background color of the control in selected state. + + The value is used to fill the background of the GroupViewItem. + + + + Gets or sets the hover background color of the control in selected state. + + The value is used to fill the background of the GroupViewItem. + + + + Gets or sets the hover foreground color of the control in selected state. + + + + + Gets or sets the hover border color of the control in selected state. + + + + + Gets or sets the background color of the control in mouse hover state. + + + + + Gets or sets the border color of the control. + + + + + Gets or sets the border thickness of the control. + + + + + Gets or sets the border color of the control in mouse hover state. + + + + + Gets or sets the border color of the control in selected state. + + + + + Gets or sets the border color of the control in disabled state. + + + + + Gets or sets the background color of the control in the disabled state. + + + + + Gets or sets the foreground color value of the control. + + + + + Gets or sets the foreground color of the control in hover state. + + + + + Gets or sets the foreground color of the control in selected state. + + + + + Gets or sets the foreground value of the control in disabled state. + + + + + Gets or sets the tooltip background color value of the control. + + + + + Gets or sets the tooltip foreground color value of the control in disabled state. + + + + + Gets or sets the tooltip border color value of the control in disabled state. + + + + + Implements the class that provide the identity information of + using . + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Represents the class to define the style for control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for the control. + + + + + Gets or sets the value used to draw the background of the + control in default state. + + The value is used to draw the background of the control. + The default value is null. + + + + Gets or sets the value used to draw the border of the + control. + + The value is used to draw the border of the control. + The default value is null. + + + + Gets or sets the borderthickness of control. + + + + + + Gets or sets the value used to draw the background color of the + scroll button in control. + + The value used to draw the background color of the scroll button. + The default value is null. + + + + Gets or sets the value used to draw the background color of the + scroll button in control in hover state. + + The value used to draw the background color of the scroll button. + The default value is null. + + + + Gets or sets the value used to draw the background color of the + scroll button in control in pressed state. + + The value used to draw the background color of the scroll button. + The default value is null. + + + + Gets or sets the value used to draw the foreground color of the + scroll button in control. + + The value used to draw the foreground color of the scroll button. + The default value is null. + + + + Gets or sets the value used to draw the foreground color of the + scroll button in control in hover state. + + + + + Gets or sets the value used to draw the foreground color of the + scroll button in control in selected state. + + + + + Gets or sets the value used to draw the border color of the + scroll button in control. + + The value used to draw the border color of the scroll button. + The default value is null. + + + + Gets or sets the value used to draw the hover border color of the + scroll button in control. + + The value used to draw the border color of the scroll button. + The default value is null. + + + + Gets or sets the value used to draw the pressed border color of the + scroll button in control. + + The value used to draw the border color of the scroll button. + The default value is null. + + + + Gets or sets the borderthickness used to draw the border of the scroll button in control. + + + + + Gets or sets style for of the control. + + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the GroupView for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents the class which provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Represents the partial class of the GroupView which contains the theme renderer properties and methods. + + + 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. + + + + + + + +
+ + + Specifies the name of the custom type used for drag-and-drop. + + + + + It contains the value of the property. + + + + + Helps to apply the ThemeName settings for the . + + ThemeName + + + + Helps to apply the ControlName settings for . + + ThemeName + + + + Gets the rectangle for the items to be drawn + + + + + + Helps to update the renderer settings of . + + PaintEventArgs + + + + Draws the highlighting of GroupViewitem. + + object. + The index of the groupViewItem. + value specifying the GroupViewItem bounds. + The state of the item. + + + + Returns the Backcolor according to the . + + of the GroupViewItem + + + + + Returns the forecolor according to the . + + of the GroupViewItem + + + + + Returns the border color according to the . + + of the GroupViewItem + + + + + Helps to draw text of the . + + object. + The index of the groupViewItem. + value specifying the GroupViewItem bounds. + The state of the item. + + + + Helps to draw the background of the . + + PaintEventArgs object + + + + Helps to draw the drag drop indicator of the . + + object. + Start point of the drag provider + End point of the drag provider + + + + Helps to draw the scroll button of the . + + object. + Rectangle of the ScrollButton + Button direction + + + + Draws the arrow of scrollbuttons for GroupView + + + + + 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 small icon width of the GroupViewItem based on DPI + + Width of the Icon + + + + Gets the large icon width of the GroupViewItem based on DPI + + Width of the Icon + + + + Gets the spacing between text and image + + spacing between text and image + + + + Gets the height between the highlighted edge of a GroupViewItem and the image. + + spacing between highligheted edge of item and image + + + + Gets the horizontal distance between a GroupViewItem and the control's left border. + + + + + + Gets the vertical distance between a GroupViewItem and the control's bottom border. + + + + + + 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. + + + + Retrieving Image with its default image size + + Expected size of the images + collection of images which is need to be changed + New image list with updated image size + + + + 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 . + + + + + Variable which denotes the value changed of TextSpacing property + + + + + Variable which denotes the value changed of ImageSpacing property + + + + + Variable which denotes the value changed of ItemYSpacing property + + + + + Variable which denotes the value changed of ItemXSpacing property + + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Gets or sets whether tooltips for GroupViewItems should be shown or not. + Use property to get\set ToolTip text. + + + + + Gets or sets the value of the control. + + + + + 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. + + + + Represents the class to define the style for CollapseButton present in control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for the GroupBarCollapseButton present in control. + + + + + Gets or sets the collapse button background color of the stack mode . + + + + + Gets or sets the collapse button background color of the stack mode in hover state. + + + + + Gets or sets the collapse button fore color of the stack mode . + + + + + Gets or sets the collapse button fore color of the stack mode in hover state. + + + + + Gets or sets the collapse image value of the stack mode control. + + + + + Gets or sets the expand image value of the stack mode control. + + + + + Implements the class that provide the identity information of + using . + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Represents the class to define the style for collapsed state of control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for collapsed state of control. + + + + + Gets or sets the background color of the navigation pane of control. + + + + + Gets or sets the background color of navigation pane of control in selected state. + + + + + Gets or sets the background color of navigation pane of control in hover state. + + + + + Gets or sets the border color of navigation pane of control. + + + + + Gets or sets the foreground color of navigation pane of control. + + + + + Gets or sets the foreground color of navigation pane of control in hover state. + + + + + Gets or sets the foreground color of navigation pane of control in selected state. + + + + + Gets or sets the value of the + navigation pane of control. + + + + + Gets or sets item style for collapsed state view of the control. + + + + + Implements the class that provide the identity information of + using . + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Represents the class to define the style for control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for the control. + + + + + Gets or sets the value of the + control. This property is not applicable for collapsed GroupBarItem. + + + + + Gets or sets the background color of the control. + + + + + Gets or sets the background color of the control in selected state. + + + + + Gets or sets the background color of the control in mouse hover state. + + + + + Gets or sets the border color of the control. + + + + + Gets or sets the border thickness of the control. + + + + + Gets or sets the background color of the control in the disabled state. + + + + + Gets or sets the foreground color of the control. This property is not applicable for collapsed GroupBarItem. + + + + + Gets or sets the foreground color of the control in hover state. This property is not applicable for collapsed GroupBarItem. + + + + + Gets or sets the foreground color of the control. This property is not applicable for collapsed GroupBarItem. + + + + + Gets or sets the foreground color of the control in disabled state. This property is not applicable for collapsed GroupBarItem. + + + + + Implements the class that provide the identity information of + using . + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Represents the class to define the style for control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for the control. + + + + + Gets or sets the value used to draw the background of the + control in default state. + + The value is used to draw the background of the control. + The default value is null. + + + + Gets or sets the value used to draw the border of the + control. + + The value is used to draw the border of the control. + The default value is null. + + + + Gets or sets the int value used to draw the border thickness of the + control. + + The int value is used to draw the border of the control. + The default value is null. + + + + Gets or sets style for of the control. + + + + + Gets or sets style for stack mode container of the control. + + + + + Gets or sets style for collapsed state container of the control. + + + + + Gets or sets style for collapsed state container of the control. + + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the GroupBar for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents the class which provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Represents the class to define the style for GroupBarOptionButton present in control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for the GroupBarOptionButton present in control. + + + + + Gets or sets the option button background color value of the stack mode control. + + + + + Gets or sets the option button background color value of the stack mode control in hover state. + + + + + Gets or sets the option button foreground color value of the stack mode control. + + + + + Gets or sets the option button foreground color value of the stack mode control in hover state. + + + + + Implements the class that provide the identity information of + using . + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Represents the class to define the style for stacked mode of control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for the stacked mode of > control. + + + + + Gets or sets the header background color of the stack mode control. + + + + + Gets or sets the header foreground color of the control. + + + + + Gets or sets the value of the + header of stack mode control. + + + + + Gets or sets the background color of the splitter of stack mode . + + + + + Gets or sets the foreground color of the splitter of stack mode . + + + + + Gets or sets style for collapse/expand button of the stacked mode control. + + + + + Gets or sets style for option button of the stacked mode control. + + + + + Gets or sets the collapse panel backcolor color value of the stack mode control. + + + + + Gets or sets style for collapsed of the stacked mode control. + + + + + Implements the class that provide the identity information of + using . + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Represents the class to define the style for ToolTip present in control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for the ToolTip present in control. + + + + + Gets or sets the value of the ToolTip present in control. + + + + + Gets or sets the background color of the ToolTip present in control. + + + + + Gets or sets the border color value of the ToolTip present in control. + + + + + Gets or sets the foreground color value of the ToolTip present in control. + + + + + Gets or sets the bool value indicates whether to show shadow of the ToolTip present in control. + + + + + Gets or sets the border thickness of the ToolTip present in control. + + + + + Implements the class that provide the identity information of + using . + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + 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. + + + + + + + +
+ + + 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 + + + + + Holds the style info collection for the scroll control elements. + + + + + 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 + + + + Checks whether current theme is VisualStyle based theme or not. + + + + + Helps to set the scrollbars based on visual style. + + + + + + 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. + + + + + Gets or sets a style of the ScrollControl components. + + + + + 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. + + + + + + + It contains the value of the property. + + + + + Helps to apply the ThemeName settings for the . + + ThemeName + + + + Helps to apply the ControlName settings for . + + ThemeName + + + + Draws GroupBarItem for theme renderer + + Graphics used for drawing + Zero-Based index of the GroupBarItem + Rectangle used to draw the GroupBarItem + + + + Draws text of the GroupBarItem for theme renderer + + Graphics used for drawing + Zero-Based index of the GroupBarItem + Rectangle used to draw the GroupBarItem text + + + + Draws border od the GroupBar + + Graphics used for drawing + Rectangle used to draw the border + + + + Draw header background of stacked groupbar + + Graphics used for drawing + Rectangle used to draw the header + + + + Draws Header text of the stacked groupbar + + Graphics used for drawing + Text to be drawn + Rectangle used to draw the header + + + + Gets the background color of the GroupBarItem according to the item state + + State of the GroupBarItem + Indicates the item enabled + + + + Sets the size of ToopTip based on the font. + + + + + + + Gets the foreground color of the GroupBarItem according to the item state + + State of the GroupBarItem + Indicates the item enabled + + + + Draws stacked GroupBar for theme renderer + + Graphics used for drawing + Rectangle used to draw the Stacked GroupBar + + + + Draws expand/collapse button for theme renderer + + Graphics used for drawing + + + + Draws Navigation pane for GroupBar Renderer + + Graphics used for drawing + Rectangle used to draw the navigation pane + + + + Draws DropDown button for GroupBar Renderer + + Graphics used for drawing + Rectangle used to draw the button + Indicates whether orientation is RightToLeft + + + + Draws collapsed client area background for GroupBar Renderer + + Graphics used for drawing + + + + Draws the collapse expand button + + Graphics used for drawing + Rectangle used to draw the button + + + + Draws the tooltip for theme + + Tooltip object invokes the event + DrawToolTipEventArgs of the tooltip + + + + Draws the navigation pane text for theme + + Graphics used for drawing + Indicates whether RightToLeft applied + + + + Draws background of the GroupBar + + + + + Draws border of the GroupBar + + + + + 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 item height for Office2019Theme + + + + + Indcates the touch down is enabled or not. + + + + + Default size of the control + + + + + Default size of the collapsebutton + + + + + Header font + + + + + barItem height + + + + + Header height + + + + + Collapsedwidth + + + + + Gets or sets a value indicating whether GroupBarItem background color is changed internally or not. + + + + + Method to apply office2016 style to Tooltip + + + + + Draws office2016 theme tooltip + + + + + + + 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 + + + + + Gets a value of GroupBarItem height based on DPI + + Height of GroupBar item + + + + Gets a value of GroupBar Header height based on DPI + + Height of GroupBar Header + + + + Gets a width of the collapsed GroupBar based on DPI + + Width of the collapsed group bar + + + + Gets a height of the navigation pane based on DPI + + Height of navigation pane + + + + Gets the width of the navigation button based on DPI + + Width of the navigation button + + + + 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. + + + + Helps to apply the background color of GroupBarItem. + + graphics to draw on + group bar item + rectangle to fill the back color + back color + + + + 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. + + + + + Variable to denotes the value changed of GroupBarItemHeight + + + + + Variable to denotes the value changed of GroupBarHeaderHeight + + + + + Variable to denotes the value changed of Collapsed width of GroupBar + + + + + Variable to denotes the value changed of Navigation Pane height of GroupBar + + + + + Variable to denotes the value changed of width of the navigation button + + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + 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. + + + + Defines the constant that specify the alignment of the check box. + + + + + Specifies that the check box will be left aligned. + + + + + Specifies that the check box will be right aligned. + + + + + Specifies the state of Controls + + + + + The Control has its normal appearance. + + + + + The Control appears pressed. + + + + + The mouse hover on the Control. + + + + + The focus state of the Control. + + + + + Defines the constants that specifies the mode of the caption bar height on maximized state. + + + + + Specifies that the caption bar height will be reduced when form is maximized. + + + + + Specifies that the caption bar height will be retained same when form is maximized. + + + + + Represents the method that will handle the event. + + A sender contains the control. + A that contains the event data. + + + + Provides data for the event. + + + + + The theme name. + + + + + Initializes a new instance of the class. + + Name of the theme. + + + + Gets the name of the theme. + + + + + Represents the class to define the FontFamily settings for the Controls + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Handles the refresh operation for all open forms in the application. + + + + + Gets or sets the FontFamily used to display text in the Control. + + + + FontHelper.FontFamily = new FontFamily("Times New Roman"); + + + + + + Gets or sets a value indicating whether control FontFamily can be overridden by settings. + + Default value is false. + + By default, the control's Font will not be overridden by settings if the Font is set in sample level. + If this property is enabled, control's Font will be overridden by settings event if it is set in sample level. + This property should be enabled or disabled before applying the property. + + + + + This class helps to register and render icon font in a Windows Forms application from *.ttf file. + + + + + Holds private/custom font collection. + + + + + Holds private/custom font collection. + + + + + Helps to register the private/custom icon fonts in the system memory for rendering in Windows Forms. + + + + + Helps to retrieve the icon font as string from its unicode for drawing purpose. + + Holds the icon font unicode. + + + + + Helps to dispose the instances used in IconFontHelper class. + + + + + Holds FontFamilies collection + + + + + Holds icon font unicode. + + + + + Represents the CustomAttribute class used to validate the property information that needs to be displayed in Theme Studio + + + + + It contains the value of + + + + + Initialize the instance of + + + + + + Initialize the instance of + + + + + Gets / Sets whether the marked property can be displayed in Theme Studio. + + + + + 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 class to define the style of control. + + + + + Maintains the default style of the . + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default AutoLabelStyleInfo value. + + + + + Gets or sets the value for corner radius of the + control. + + + + + Gets or sets the value for the drop down of + control. + + + + + Gets or sets the background color of the control. + + + + + Gets or sets the fore color value of the items of control in disabled state. + + + + + Gets or sets the fore color value of the control. + + + + + Gets or sets the fore color value of the items of control in disabled state. + + + + + Gets or sets the value used to draw the border of the + control in default state. + + + + + Gets or sets the fore color value of the items of control in disabled state. + + + + + Represents the class holds the plain data for a style object excluding identity information. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Maintains the static data. + + + + + + Initializes a new instance of the class. + + Populates the SerializationInfo store with the name, type, and value of each piece of information it wants to serialize + Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. + + + + Overridden to get the static data source. + + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the AutoLabel for create the identity. + + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents a control with advanced customization options on background, text, and border etc. + + + 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. + + + + + using System.Windows.Forms; + namespace AutoLabel + { + public partial class Form1 : Form + { + private Syncfusion.Windows.Forms.Tools.AutoLabel autoLabel1; + public Form1() + { + InitializeComponent(); + //Initialization + this.autoLabel1 = new Syncfusion.Windows.Forms.Tools.AutoLabel(); + //Set the properties + this.autoLabel1.Text = "autoLabel1"; + this.autoLabel1.BackColor = System.Drawing.Color.DarkGray; + this.autoLabel1.ForeColor = System.Drawing.Color.DarkBlue; + this.autoLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.autoLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // Add the AutoLabel control to the form. + this.Controls.Add(this.autoLabel1); + } + } + } + + + + + + Value for PreferredHeight adding when borders are present. + + + + + Value for PreferredHeight adding when borders are absent. + + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Gets the active theme name of the control. + + Returns the active theme name. + + + + Raises the event when themename changed. + + The sender value. + A contains the event data. + + + + Apply themes based on the theme name passing in the + + Represents style for the control + + + + Initializes a new instance of the class. + + + + + 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. + + + + + Sets the specified bounds of the label. + + + + + + + + Get location of the when the parameters that affect + the relative positions have changed (like the LabeledControl's position, size, etc.). + + + + + + + + + + + + + + Updates the position of the 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. + + + + + + + Gets or Sets of Interface. + + + + + Processes Windows messages. + + The Windows System.Windows.Forms.Message to process. + + + + Paints the control. + + + + + Draw the border to the contol. + + Represents the Graphics to draw. + Represents the dimension of border. + Represents the color of border. + + + + Calculates the size of the label's text. + + Text for measuring. + Current font. + Size of the text. + + + + Occurs when theme name of the has changed. + + + + + Gets or sets a value indicating whether a . + has been applied to the control. + + The default value is true. + + + + + Gets or sets the theme name of the control. + + + + + Gets or sets a value indicating whether control elements styles can be overridden by settings. + + Default value is false. + + By default, the control's element styles will not be overridden by settings if the style is set in sample level. + If this property is enabled, element style will be overridden by settings event if it is set in sample level. + This property should be enabled or disabled before calling the property of the control. + + + + + + + Gets or sets the BaseTheme name of the theme + + + + + Gets the name of the control. + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + + + Fired when the Control, and properties of this class changes. + + + + + Update the renderer for Office2016 style. + + + + + Gets or sets the to the . + + + + + + Gets or sets the control is enabled. + + + + + + + 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 or sets the relative position of the control and the . + + + + + + + + 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 and its labeled control. + + When == DX is the distance between the right of the labeled control + and the right of the . + + + + + + + + + Gets or sets the effective vertical distance between the top of the AutoLabel and its labeled control. + + + + + + + + + + Represents the class that manages the localization for syncfusion controls. + + + + + Holds the resource manager of the + + + + + Initializes new instance of . + + + + + Gets the assembly of the project. + + Returns assembly of the project. + + + + Gets the default namespace of the referred project. + + Control assembly default namespace. + + + + Gets the localized ResourceManager. + + The assembly from where the resource needs to be looked up. + The namespace of the control. + Returns the resource manager. + + + + Gets the localized text. + + String that has to be localized. + Control object + The localized string. + + + + Gets the localized text. + + String that has to be localized. + The localized string. + + + + Gets the localized text. + + Current UI culture. + String that has to be localized. + Control name. + The localized string + + + + Sets the resource manager based on the assembly and namespace. + It can be used to get the values from the application resource files + when the assembly name and the namespace of the control or application is different. + + The control assembly. + The namespace of the control. + + + + + + + Insance of . + + + + + + + + + + + Represents a class to define the style for the control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for the control. + + + + + Gets or sets the value used to draw the fore color of the + control when text value is negative. + + The value is used to fill the fore color of the textbox. + + + + Gets or sets the value used to draw the fore color of the + control when text value is zero. + + The value is used to fill the fore color of the textbox. + + + + Gets or sets the value used to draw the back color of the + control when text value is read only. + + The value is used to fill the back color of the textbox. + + + + Implements a class that provide the identity information of + using . + + + + + Maintains the DoubleTextBox for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Represents a class to define the style for the control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for the control. + + + + + Gets or sets the value used to draw the fore color of the + control when text value is negative. + + The value is used to fill the fore color of the textbox. + + + + Gets or sets the value used to draw the fore color of the + control when text value is zero. + + The value is used to fill the fore color of the textbox. + + + + Gets or sets the value used to draw the back color of the + control when text value is read only. + + The value is used to fill the back color of the textbox. + + + + Implements a class that provide the identity information of + using . + + + + + Maintains the IntegerTextBox for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Represents the class to apply the theme for control. + + + 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. + + + + + It contains the value of the property. + + + + + Helps to apply the ThemeName settings in control + + ThemeName + + + + Helps to draw text border of control + + + + + Helps to override the ThemeName property settings + + ThemeName + + + + Helps to override the OnGotFocus events + + An System.EventArgs that contains the event data. + + + + 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 . + + + + + Raises the System.Windows.Forms.Control.EnabledChanged event. + + An System.EventArgs that contains the event data. + + + + 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 unmanage resources. + + + + + + + + + + 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. + + + + + Gets or sets a value indicating whether the control should enable its Accessibility support. + + + + + 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. + + + + + Represents the class to apply the theme for control. + + + 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. + + + + + + It contains the value of the property. + + + + + Helps to draw text border of control + + + + + Helps to apply the ThemeName settings in control + + ThemeName + + + + Helps to override the ThemeName property settings + + ThemeName + + + + Helps to override the OnGotFocus events + + An System.EventArgs that contains the event data. + + + + 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 + + + + + + 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 unmanage resources. + + + + Raises the System.Windows.Forms.Control.EnabledChanged event. + + An System.EventArgs that contains the event data. + + + + + + + + + + Formats the given text according to the current setting. + + + + + + + Occurs when the property is changed. + + + + + Gets or sets a value indicating whether the control should enable its Accessibility support. + + + + + 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. + + + + + Represents the class that provides the accessibility object for the SfForm. + + + + + Specifies the SfForm for the accessibility object. + + + + + Initializes a new instance of the class. + + The SfForm. + + + + Overridden to update the child count of the SfForm. + + Returns the child count of the Form. + + + + Overridden to return the inner elements of the form. + + The index of the child. + Returns the accessibility object of the child. + + + + Gets the AccessibleRole of the . + + + + + Gets the AccessibleName of the . + + + + + Gets the accessibility object of the parent. + + + + + Gets the AccessibleDescription of the . + + + + + Gets the bounds of the . + + + + + Represents the class that provides the accessibility object for the SfForm TitleBar. + + + + + Specifies the parent form of the title bar. + + + + + Initializes a new instance of the class. + + The parent of the title bar. + + + + Gets the child count of the form. + + Returns the count of the accessibility object. + + + + Gets the child accessibility object of the TitleBar. + + The index of the child. + Returns the accessibility object of the child control with the given index. + + + + Gets the AccessibleRole of the . + + + + + Gets the AccessibleName of the . + + + + + Gets the accessibility object of the parent. + + + + + Gets the AccessibleDescription of the . + + + + + Gets the bounds of the . + + + + + Represents the class that provides the accessibility object for the SfForm TitleBar. + + + + + Specifies the parent for the Title bar. + + + + + Specifies the index of the child. + + + + + Initializes a new instance of the class. + + The parent form of the title bar. + The index of the child. + + + + Gets the AccessibleRole of the . + + + + + Gets the AccessibleName of the . + + + + + Gets the accessibility object of the parent. + + + + + Gets the AccessibleDescription of the . + + + + + Gets the bounds of the . + + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Represents the class that defines the MDI style information for the control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + 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. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Determines a value that indicates whether to serialize the CloseButtonSize property or not. + + returns true if serialized; Otherwise false + + + + Determines a value that indicates whether to serialize the MaximizeButtonSize property or not. + + returns true if serialized; Otherwise false + + + + Determines a value that indicates whether to serialize the MinimizeButtonSize property or not. + + returns true if serialized; Otherwise false + + + + Determines a value that indicates whether to serialize the HelpButtonSize property or not. + + returns true if serialized; Otherwise false + + + + 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. + + + + Provide the default style of the MDI form. + + Default style object. + + + + Gets the default style of the MDI form. + + + + + Gets or sets the background color of the MDI form titlebar. + + + + + Gets or sets the backcolor for the MDI form icon. + + + + + Gets or sets the horizontal alignment of the MDI form title bar icon. + + The default value is left. + + + + Gets or sets the vertical alignment of the MDI form title bar icon. + + The default value is center. + + + + Gets or sets the fore color of the MDI form close button. + + + + + Gets or sets the fore color of the MDI form maximize button. + + + + + Gets or sets the fore color of the MDI form minimize button. + + + + + Gets or sets the fore color of the MDI form help button. + + + + + Gets or sets the hover fore color for the MDI form close button. + + + + + Gets or sets the hover fore color for the MDI form maximize button. + + + + + Gets or sets the hover fore color for the MDI form minimize button. + + + + + Gets or sets the hover fore color for the MDI form help button. + + + + + Gets or sets the hover back color for the MDI form close button. + + + + + Gets or sets the hover back color for the MDI form maximize button. + + + + + Gets or sets the hover back color for the MDI form minimize button. + + + + + Gets or sets the hover back color for the MDI help button. + + + + + Gets or sets the pressed fore color of the MDI form close button. + + + + + Gets or sets the pressed fore color of the MDI form maximize button. + + + + + Gets or sets the pressed fore color of the MDI form minimize button. + + + + + Gets or sets the pressed fore color of the MDI form help button. + + + + + Gets or sets the pressed background color of the MDI form close button. + + + + + Gets or sets the pressed background color of the MDI form maximize button. + + + + + Gets or sets the pressed background color of the MDI form minimize button. + + + + + Gets or sets the pressed background color of the MDI form help button. + + + + + Gets or sets the image for the MDI form close button. + + The default value is null. + + + + Gets or sets the hover image for the MDI form close button. + + The default value is null. + + + + Gets or sets the pressed image for the MDI form close button. + + The default value is null. + + + + Gets or sets the image for the MDI form maximize button. + + The default value is null. + + + + Gets or sets the hover image for the MDI form maximize button. + + The default value is null. + + + + Gets or sets the pressed image for the MDI form maximize button. + + The default value is null. + + + + Gets or sets the image for the MDI form minimize button. + + The default value is null. + + + + Gets or sets the hover image for the MDI form minimize button. + + The default value is null. + + + + Gets or sets the pressed image for the MDI form minimize button. + + The default value is null. + + + + Gets or sets the image for the MDI form help button. + + The default value is null. + + + + Gets or sets the hover image for the MDI form help button. + + The default value is null. + + + + Gets or sets the pressed image for the MDI form help button. + + The default value is null. + + + + Gets or sets the height of the MDI form title bar. + + + + + Gets or sets the size of the MDI form close button. + + + + + Gets or sets the size of the MDI form maximize button. + + + + + Gets or sets the size of the MDI form minimize button. + + + + + Gets or sets the size of the MDI form help button. + + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Represents a window or dialog box that makes up an application's user interface with options to customize its appearance. + + + + + Indicates the close button of the form. + + + + + Indicates the maximize/restore button of the form. + + + + + Indicates the minimize button of the form. + + + + + Indicates the help button of the form. + + + + + Indicates the close button for the maximized MDI child. + + + + + Indicates the restore button of the maximized MDI child. + + + + + Indicates the minimize button of the maximized MDI child. + + + + + Indicates the help button of the maximized MDI child. + + + + + Indicates the scaling value for 100% dpi + + + + + Indicates the scaling value for 125% dpi + + + + + Indicates the scaling value for 150% dpi + + + + + Indicates the scaling value for 175% dpi + + + + + Indicates the scaling value for 200% dpi + + + + + Indicates the scaling value for 225% dpi + + + + + Indicates the scaling value for 250% dpi + + + + + Indicates the scaling value for 275% dpi + + + + + Indicates the scaling value for 300% dpi + + + + + It stores the value of property. + + + + + It stores the height of the title bar. + + + + + It stores the height of the mdi parent's title bar. + + + + + It stores the value of the Style property. + + + + + To track the mouse event. + + + + + Represents the width between the border and the client area in DesignMode + + + + + Represents the instance of the class. + + + + + Used to set bound for the form. + + + + + It stores the update count value. + + + + + It stores the TitleBarTextControl. + + + + + Represents the form shadow window. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Maintains the value indicating whether the title height should retain or not. + + + + + Value to store the title padding. + + + + + Value to indicate whether the form is disposed or not. + + + + + Indicates whether to allow rounded corners or not. + + + + + Initializes a new instance of the class. + + + + + Gets the active theme name of the . + + Returns the active theme name. + + + + Gets the control name. + + + + + Raises the event. + + The sender value. + A contains the event data. + + + + Suspends the painting of the control until the method is called. + + + + //Call BeginUpdate() to ensure the form is painted only once. + this.BeginUpdate(); + //Change the appearance of the form. + this.Style.TitleBar.ForeColor = Color.Red; + this.Style.TitleBar.BackColor = Color.SkyBlue; + //Call EndUpdate() when finish changing the appearance of the form. + this.EndUpdate(); + + + + + + Resumes the painting of the control suspended by calling the method. + + + + //Call BeginUpdate() to ensure the form is painted only once. + this.BeginUpdate(); + //Change the appearance of the form. + this.Style.TitleBar.ForeColor = Color.Red; + this.Style.TitleBar.BackColor = Color.SkyBlue; + //Call EndUpdate() when finish changing the appearance of the form. + this.EndUpdate(); + + + + + + Gets the height of the title bar. + + Returns the height of the caption bar + + + + Gets the height of the mdichild title bar. + + Returns the height of the mdi caption bar + + + + Gets the size of the close button. + + Returns the size of the close button + + + + Gets the size of the maximum button. + + Returns the size of the maximum button + + + + Gets the size of the minimum button. + + Returns the size of the minimum button + + + + Gets the size of the help button + + Returns the size of the help button + + + + Gets the size of the mdi close button + + Returns the size of the mdi close button + + + + Gets the size of the mdi maximum button + + Returns the size of the mdi maximum button + + + + Gets the size of the mdi minimum button + + Returns the size of the minimum button + + + + Get the size of the mdi help button + + Returns the size of the help button + + + + Refresh the form to update the appearance. + + + + + Method to determine whether the operating system is Windows 11. + + true if the operating system is Windows 11; otherwise false. + + + + Occurs when the form handle is created. + + The that contains the event data. + + + + Processes Windows messages. + + Windows message. + + + + Set the specified bound for the form. + + The Left property value of the form. + The Top property value of the form. + The Width property value of the form. + The Height property value of the form. + Specifies the bounds of the form. + + + + Sets the client size of the form. This will adjust the bounds of the form to make the client size the requested size. + + Requested width of the client region. + Requested height of the client region. + + + + Raises the System.Windows.Forms.Form.Load event. + + Event Arguments. + + + + Raises the System.Windows.Forms.Form.Shown event. + + Event args that contains the event data + + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. + + + + Overridden to set the accessibility object for the SfForm. + + Returns the accessibility object of the SfForm. + + + + Updates the title padding. + + Updates to retain the title bar height in maximized state. + + + + Invalidate the frame + + + + + Sets the text of a window. + + Received window message. + + + + Process the WM_NCACTIVATE Windows message. + Occurs when the form is activated or deactivated. + + Received window message. + + + + Process the WM_NCHITTEST Windows message. + To determine what part of the window corresponds to a particular screen coordinate + + Received window message. + + + + Determines the area on the form corresponding to the specified point. + + Specifies the cursor position. + Returns a value that indicates the mouse hit position. + + + + Process the WM_NCLBUTTONDBLCLK Windows message. + Occurs when the left mouse button is double clicked while the cursor is on the non client area of the form. + + Received window message. + + + + Process the WM_NCMOUSELEAVE Windows message + Occurs when the cursor leaves the non client area of the form. + + Received window message. + + + + Process the WM_NCMOUSEMOVE Windows message + Occurs when the cursor is moved within the non client area of the form. + + Received window message. + + + + Process the WM_NCLBUTTONDOWN Windows message + Occurs when the left mouse button is pressed while the cursor is on the non client area of the form. + + Received window message. + + + + Process the WM_NCLBUTTONUP Windows message + Occurs when the left mouse button is released while the cursor is on the non client area of the form. + + Received window message. + + + + Process the WM_NCPaint Windows message + To draw the title bar, border lines and background of the form. + + Received window message. + + + + Draw the non-client area of the form. + + Graphics object + Window rectangle + + + + Draw the border for the form with specified color and thickness. + + Graphics object. + Rectangle to draw border. + + + + Draw the region excluding the caption bar and client area of the form. + + Graphics object + Window rectangle. + + + + Process the WM_NCCALCSIZE Windows message + Calculates the size and position of the form's client area. + + Received window message. + + + + Calculate the client region of the form. + + Window rectangle. + Form border thickness. + Title bar height of the form.param> + Returns the client rectangle of the form. + + + + Calculate the client region of the form. + + Window rectangle. + Window rectangle of the parent form. + Form border thickness. + Returns the client rectangle of the child form. + + + + Process the WM_WINDOWPOSCHANGED Windows message + Occurs when the size, position or place of the form is changed. + + Received window message. + + + + Clip the required visible region within the window rectangle. + + Window Handle. + + + + To get the ID of the button present in the specified point. + + Specifies the cursor position. + Returns button ID. + + + + Get the cursor position. + + Returns the cursor position. + + + + Redraw the button when its state changed. + + Graphics object + + + + Apply rounded corners for the form. + + The handle to the window + Corner style for the round corners + + + + + Gets or sets padding within the form. + + + + + Gets or sets the control to be displayed in the title bar of the form instead of the title bar text. + + + + //Loads a Button control to the title bar of the form. + TitleBarTextControl = new Button(); + //Sets the text for the TitleBarTextControl. + TitleBarTextControl.Text = "Control1"; + + + Form.Text property value will be displayed on the title bar only when this property value is equal to null. + The default value is null. + + + + Gets the value used to customize the appearance of the form. + + + + + Gets or sets a value indicating whether the close button is displayed in the caption bar of the form. + + The default value is true. + + + + Gets or sets a value indicating the size of the form icon. + + + + + Gets or sets a value indicating whether the tooltip for the title bar button is enabled. + + The default value is true. + + + + Gets or sets a value indicating whether the rounded corners are enabled. + + The default value is false. + This option is only in effect with Windows 11. + + + + Gets or sets the back color of the form. + + + + + Gets or sets the fore color of the form. + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Gets or sets a value indicating whether the accessibility is enabled for the Form or not. + + + + + Gets or sets the instance of the TitleBar. + + + + + Gets or sets the initial width of the TitleBarTextControl. + + + + + Gets or sets a value indicating whether the form is active or not. + + + + + Gets the value indicating whether the current operating system is Windows11 or not. + + + + + Gets or sets the caption bar button on which the mouse pointer is hovered. + + + + + Gets the value indicating whether the current operating system is windows7 or not. + + + + + Occurs when theme name of the has been changed. + + + + + Gets or sets a value indicating whether a theme style settings can be applied to the control. + + The default value is true. + + + + Gets or sets the theme name of the . + + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets or sets the base theme name of the . + + + + + Gets or sets the VisualTheme of the . + + + + + Gets or sets the visual theme, which holds the applied from . + + + + + Gets the name of the control. + + + + + Sends the specified message to a window or windows. + The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message. + + A handle to the window whose window procedure will receive the message. + The message to be sent. + Additional message-specific information. + A Additional message-specific information. + The return value specifies the result of the message processing; it depends on the message sent. + + + + Represents the class that provides the shadow effect for the . + + + + + Represents an instance of class. + + + + + represents the shadow bitmap. + + + + + Represents the width of form shadow. + + + + + Initializes a new instance of the class. + + Base form for which the shadow should be provided. + + + + Set location of the ShadowForm. + + Sender object. + Event arguments. + + + + Draw the shadowForm and clip the region belongs to the Base Form from the ShadowForm. + + + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. + + + + Processes Windows messages. + + Windows message. + + + + Provide the shadow like appearance for the background window. + + Bitmap created from the background window. + + + + Returns a that contains the required creation parameters + when the handle to the control is created. + + + + + Represents the class to define the style for control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Override this method to create a product-specific identity object for a sub object. + + An identity object for a sub object of this style. + + The following code is an example how Essential form creates FormVisualStyleInfoSubObjectIdentity: + + public override StyleInfoSubObjectIdentity CreateSubObjectIdentity(StyleInfoProperty sip) + { + return new FormVisualStyleInfoSubObjectIdentity(this, sip); + } + + + The . + + + + Provide the default style of the form. + + Default style object. + + + + Gets the default style of the form. + + + + + Gets or sets the style information of the MDI form. + + + + + Gets or sets the style information of the caption bar. + + + + + Gets or sets the back color of the control. + + + + + Gets or sets the fore color of the control. + + + + + Gets or sets the selected state border of the control. + + + The width of the active state border and inactive state border should be same. + + + + + Gets or sets the inactive state border of the control. + + + The width of the active state border and inactive state border should be same. + + + + + Gets or sets the opacity of the form's shadow in selected state. + + The value should be from 0 to 255. + + + + Gets or sets the opacity of the form's shadow in normal state. + + The value should be from 0 to 255. + + + + Gets or sets the active state border of the control. + + + + + Gets or sets the inactive state border of the control. + + + + + Defines a class that provides style identity information for nested objects of the VisualStyleInfo class of the control. + + + + + Initializes a new instance of the class and associates it with a specified. + + The that owns this sub-object. + The descriptor for this expandable sub-object. + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the SfDataGrid for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents the class that draws the title bar of the form. + + + + + Rectangle to draw the close button of the caption bar. + + + + + Rectangle to draw the maximize/restore button of the caption bar. + + + + + Rectangle to draw the minimize button of the caption bar. + + + + + Rectangle to draw the help button of the caption bar. + + + + + Rectangle used to draw the title bar icon of the form. + + + + + Rectangle to draw the MDI close button of the caption bar. + + + + + Rectangle to draw the MDI maximize button of the caption bar. + + + + + Rectangle to draw the MDI minimize button of the caption bar. + + + + + Rectangle to draw the MDI help button of the caption bar. + + + + + Rectangle used to draw the MDI icon on the caption bar. + + + + + Rectangle used to draw the title bar text. + + + + + Rectangle that holds the close icon of the caption bar. + + + + + Rectangle used to draw the maximize icon of the caption bar. + + + + + Rectangle used to draw the restore up icon of the caption bar of minimized mdi child. + + + + + Rectangle that specifies the area in the caption bar that contains MDI buttons and icon. + + + + + Represents an instance of class. + + + + + Initializes a new instance of the class. + + Instance of class. + + + + Clean up the unmanaged resources + + + + + Draw the caption bar of the form. + + Graphics object. + Caption rectangle. + + + + Draw the close button of the caption bar. + + Graphics object + Caption button BackColor + Caption ButtonColor + Button image + + + + Draw the help button button of the caption bar. + + Graphics object + Caption button BackColor + Caption ButtonColor + Button image + + + + Draw the minimize button button of the caption bar. + + Graphics object + Caption button BackColor + Caption ButtonColor + Button image + + + + Draw the maximize button button of the caption bar. + + Graphics object + Caption button BackColor + Caption ButtonColor + Button image + + + + Draw the buttons on the caption bar. + + Graphics object + Caption Rectangle + + + + Draw MDI Help button on the caption bar. + + Graphics object. + ForeColor of the MDI help button. + MDI help button image. + + + + Draw MDI close button on the caption bar. + + Graphics object. + ForeColor of the MDI close button. + MDI close button image. + + + + Draw the MDI maximize button on the caption bar. + + Graphics object. + BackColor of the MDI maximize button. + ForeColor of the MDI maximize button. + MDI maximize button image. + + + + Draw the MDI minimize button on the caption bar. + + Graphics object. + ForeColor of the MDI minimize button. + MDI minimize button image. + + + + Draw the MDI buttons on the caption bar. + + Graphics object. + + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. + + + + Calculate the rectangle to draw the close button. + + Title bar rectangle. + Form border width. + Button Width. + Button height. + Button Y position. + Returns the rectangle to draw the close button. + + + + Calculate the rectangle to draw the maximize button. + + Close button rectangle. + Button width. + Button Height. + Button Y position. + Returns the rectangle to draw the maximize button. + + + + Calculate the rectangle to draw the minimize button. + + Maximize button rectangle. + Button width. + Button height. + Button Y position. + Returns the rectangle to draw the minimize button. + + + + Calculate the rectangle to draw the help button. + + Minimize button rectangle. + Button width. + Button height. + Button Y position. + Returns the rectangle to draw the help button. + + + + Calculate the rectangles to draw the mdi buttons. + + Title bar rectangle. + + + + Calculate the rectangle to draw the title bar of the form. + + Window rectangle. + Height of the title bar. + Returns the rectangle to draw the title bar of the form. + + + + Draw the form icon on the caption bar. + + Graphics object. + Rectangle to draw the form icon. + + + + Calculate the rectangle to draw the title bar icon. + + Title bar rectangle. + Returns the rectangle to draw the title bar icon. + + + + Calculate the rectangle to draw the mdi icon. + + + + + Fill the caption bar with the color specified by CaptionBackColor property. + + Graphics object. + Caption bar rectangle. + Caption bar backcolor. + + + + Draw the text in the caption bar + + Graphics object. + Caption bar rectangle. + + + + Calculate the rectangle to draw the title bar text. + + Title bar rectangle. + Returns the rectangle to draw the title bar text. + + + + Draw the caption image in the caption bar. + + Graphics object + Height of the caption bar. + + + + Draws the rich text on the given graphics. + + Graphics object. + The string value contains the rich text content. + The rectangle value used to draw the rich text. + + + + Gets the value indicating the rectangle to draw the close button. + + + + + Gets the value indicating the rectangle to draw the maximize button. + + + + + Gets the value indicating the rectangle to draw the minimize button. + + + + + Gets the value indicating the rectangle to draw the help button. + + + + + Gets the value indicating the rectangle to draw the form icon. + + + + + Gets the value indicating the rectangle to draw the mdi close button. + + + + + Gets the value indicating the rectangle to draw the mdi maximize button. + + + + + Gets the value indicating the rectangle to draw the mdi minimize button. + + + + + Gets the value indicating the rectangle to draw the mdi help button. + + + + + Represents the class that defines the title bar style information for the control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + + Initializes a new instance of the class and associates it with an existing . + + A that holds the identity for this . + + + + Determines a value that indicates whether to serialize the Font property or not. + + returns true if serialized; Otherwise false + + + + Determines a value that indicates whether to serialize the CloseButtonSize property or not. + + returns true if serialized; Otherwise false + + + + Determines a value that indicates whether to serialize the MaximizeButtonSize property or not. + + returns true if serialized; Otherwise false + + + + Determines a value that indicates whether to serialize the MinimizeButtonSize property or not. + + returns true if serialized; Otherwise false + + + + Determines a value that indicates whether to serialize the HelpButtonSize property or not. + + returns true if serialized; Otherwise false + + + + 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. + + + + Provide the default style of the TitleBar bar. + + Default style object. + + + + Determines a value that indicates whether to serialize the property or not. + + returns true if serialized; Otherwise false + + + + Determines a value that indicates whether to serialize the property or not. + + returns true if serialized; Otherwise false + + + + Determines a value that indicates whether to serialize the property or not. + + returns true if serialized; Otherwise false + + + + Gets the default style of the TitleBar bar. + + + + + Gets or sets a value indicating whether rich text can be provided as caption or not. + + The default value is false. + + + this.Style.TitleBar.AllowRichText = true; + // Set rich text for the Form.Text property. + this.Text = "{\\rtf\\ansi \\b Form1}"; + + + + + + Gets or sets the pressed fore color of the close button. + + + + + Gets or sets the pressed fore color of the maximize button. + + + + + Gets or sets the pressed fore color of the minimize button. + + + + + Gets or sets the pressed fore color of the help button. + + + + + Gets or sets the pressed background color of the close button. + + + + + Gets or sets the pressed background color of the maximize button. + + + + + Gets or sets the pressed background color of the minimize button. + + + + + Gets or sets the pressed background color of the help button. + + + + + Gets or sets the hover fore color for the close button. + + + + + Gets or sets the hover fore color for the maximize button. + + + + + Gets or sets the hover fore color for the minimize button. + + + + + Gets or sets the hover fore color for the help button. + + + + + Gets or sets the hover back color for the close button. + + + + + Gets or sets the hover back color for the maximize button. + + + + + Gets or sets the hover back color for the minimize button. + + + + + Gets or sets the hover back color for the help button. + + + + + Gets or sets the fore color of the close button. + + + + + Gets or sets the fore color of the maximize button. + + + + + Gets or sets the fore color of the minimize button. + + + + + Gets or sets the fore color of the help button. + + + + + Gets or sets the foreground color of the TitleBar. + + + + + Gets or sets the background color of the TitleBar. + + + + + Gets or sets the bottom border color of the TitleBar. + + + + + Gets or sets the height of the TitleBar. + + + + + Gets or sets the padding for the . + + + + + Gets or sets the backcolor for the icon + + + + + Gets or sets the horizontal alignment of the title bar icon. + + The default value is left. + + + + Gets or sets the vertical alignment of the title bar icon. + + The default value is center. + + + + Gets or sets the horizontal alignment of the title bar text. + + The default value is left. + + + + Gets or sets the vertical alignment of the title Bar text. + + The default value is center. + + + + Gets or sets the image for the close button. + + The default value is null. + + + + Gets or sets the hover image for the close button. + + The default value is null. + + + + Gets or sets the pressed image for the close button. + + The default value is null. + + + + Gets or sets the image for the maximize button. + + The default value is null. + + + + Gets or sets the hover image for the maximize button. + + The default value is null. + + + + Gets or sets the pressed image for the maximize button. + + The default value is null. + + + + Gets or sets the image for the minimize button. + + The default value is null. + + + + Gets or sets the hover image for the minimize button. + + The default value is null. + + + + Gets or sets the pressed image for the minimize button. + + The default value is null. + + + + Gets or sets the image for the help button. + + The default value is null. + + + + Gets or sets the hover image for the help button. + + The default value is null. + + + + Gets or sets the image to the caption bar. + + The default value is null. + + + + Gets or sets the location to the caption image. + + + + + Gets or sets the pressed image for the help button. + + The default value is null. + + + + Gets or sets the size of the close button. + + + + + Gets or sets the size of the maximize button. + + + + + Gets or sets the size of the minimize button. + + + + + Gets or sets the size of the help button. + + + + + Gets or sets the Font used to display text in the title bar. + + + + this.Style.TitleBar.Font = new Font("Segoe UI", 15, FontStyle.Bold); + + + + + + Gets a value indicating whether Font has been initialized for the TitleBar. + + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + Returns the property value. + + + + Gets the static data value of the class. + + + + + Represents a ToolTip window that displays a brief description about a control when user rests the mouse on that control. + + + This sample shows how to set tooltip text for a control. + + SfToolTip sfToolTip = new SfToolTip(); + sfToolTip.SetToolTip(this.button1, "Sample Tooltip"); + + + + This sample shows how to set for a control to show as a tooltip. + + SfToolTip sfToolTip = new SfToolTip(); + ToolTipInfo tooltipInfo1 = new ToolTipInfo(); + ToolTipItem toolTipItem1 = new ToolTipItem(); + toolTipItem1.Text = "Tooltip item 1 text"; + ToolTipItem toolTipItem2 = new ToolTipItem(); + toolTipItem2.Text = "Tooltip item 2 text"; + toolTipInfo.Items.AddRange(new ToolTipItem[] { toolTipItem1, toolTipItem2}); + sfToolTip.SetToolTipInfo( this.button2, toolTipInfo); + + + + + + Represents a BaseComponent with VisualStyle based theme customization settings. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Raises the event when theme name changed. + + The sender value. + A contains the event data. + + + + Gets the active theme name of the control. + + Returns the active theme name. + + + + Helps to override the ThemeName property settings + + ThemeName + + + + Helps to override the ThemeName property settings + + ThemeName + + + + Helps to override the CanApplyTheme property settings + + CanApplyTheme + + + + Helps to override the CanOverriderStyle property settings + + CanOverriderStyle + + + + Occurs when theme name of the control has changed. + + + + + Gets or sets the theme name of the control. + + + The default value is null. + + + The theme will be applied only when the particular theme for this control has included the Themes assembly. + + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets or sets the Base Theme name of the theme + + + + + Gets or sets a value indicating whether a theme settings + can be applied to the control. + + The default value is true. + + This property must be initialized before applying the VisualTheme /> + + + + + Gets the name of the control. + + + + + Gets or sets the VisualTheme of the control. + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + The collection of controls registered for tooltip with their ToolTipInfo. + + + + + The collection of controls registered for tooltip with text. + + + + + The timer for initial delay. + + + + + The timer for popup delay. + + + + + The information to be shown in tooltip for show method. + + + + + The tooltip item to be shown in tooltip for show method. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The container in which the SfToolTip component has to be added. + + + + Gets the of the Control. + + An object of control. + Returns the of the control. + + + + Associates the with the specified control. + + The control to associate with the . + The to be + displayed when the pointer is on the control. + + + + Associates the with the specified control. + + The control to associate with the . + The tooltip text to be displayed when the pointer is on the control. + + + + Gets the tooltip text of the Control. + + An object of control. + Returns the tooltip text of the control. + + + + Disables the ToolTip for the specified control. + + The control for which the ToolTip has to be disabled. + + + + Hides the ToolTip, if it is being displayed. + + + + + Shows the ToolTip with the at the specified relative position. + + to be displayed as ToolTip. + A point in which the ToolTip to be displayed. + + + + Shows the ToolTip with the at the specified relative position. + + to be displayed as ToolTip. + The horizontal offset position in which the ToolTip has to be displayed. + The vertical offset position in which the ToolTip has to be displayed. + + + + Shows the ToolTip with the at the specified relative position for a specified duration. + + to be displayed as ToolTip. + The horizontal offset position in which the ToolTip has to be displayed. + The vertical offset position in which the ToolTip has to be displayed. + The period of time that the ToolTip should remain visible. + + + + Shows the ToolTip with the at the specified relative position for a specified duration with specified initial delay. + ToolTip location will be adjusted with respect to the screen bounds, if adjustToScreenBounds value is true. + + to be displayed as ToolTip. + A point in which the ToolTip to be displayed. + The period of time that passes before the ToolTip appears. + The period of time that the ToolTip should remain visible. + Specifies whether to adjust the ToolTip location respective to the screen bounds. + + + + Shows the ToolTip with the at the specified relative position for a specified duration. + + to be displayed as ToolTip. + A point in which the ToolTip to be displayed. + The period of time that the ToolTip should remain visible. + + + + Shows the ToolTip with the tooltip text at the specified relative position. + + The text to be displayed as tooltip. + A point in which the ToolTip to be displayed. + + + + Shows the ToolTip with the tooltip text at the specified relative position. + + The text to be displayed as tooltip. + The horizontal offset position in which the ToolTip has to be displayed. + The vertical offset position in which the ToolTip has to be displayed. + + + + Shows the ToolTip with the tooltip text for the specified duration at the specified relative position. + + The text to be displayed as tooltip. + The horizontal offset position in which the ToolTip has to be displayed. + The vertical offset position in which the ToolTip has to be displayed. + The period of time that the ToolTip should remain visible. + + + + Shows the ToolTip with the tooltip text for the specified duration at the specified relative position. + + The text to be displayed as tooltip. + A point in which the ToolTip to be displayed. + The period of time that the ToolTip should remain visible. + + + + Shows the ToolTip with the tooltip text at the cursor position. + + The text to be displayed as tooltip. + + + + Shows the ToolTip with the at the cursor position. + + to be displayed as ToolTip. + + + + Helps to apply the ControlName settings in control + + The ControlName. + Returns the control name. + + + + Helps to apply the ThemeName settings in control + + The ThemeName. + + + + Specifies whether this object can provide its extender properties to the specified object. + + The Object to receive the extender properties. + true if this object can provide extender properties to the specified object; otherwise, false. + + + + Raises the event. + + An object of + that contains event data. + + + + Raises the event. + + An object of + that contains event data. + + + + Raises the event. + + An object of + that contains event data. + + + + Specifies whether this object can provide its extender properties to the specified object. + + The Object to receive the extender properties. + true if this object can provide extender properties to the specified object; otherwise, false. + + + + Raises the and event when theme name changed. + + The sender value. + A contains the event data. + + + + Releases the unmanaged resources used by the Component and optionally releases the managed resources. + + true to release both managed and unmanaged resources; false to release only unmanaged resources. + + + + Determines whether the extended property for ToolTip should be serialized or not. + + An object of component. + Returns true when it need to be serialized otherwise return false. + + + + Determines whether the extended property for ToolTip should be serialized or not. + + An object of component. + Returns true when it need to be serialized otherwise return false. + + + + Occurs when the mouse pointer leaves the control. + + The sender that contains the control from which the mouse pointer leaves. + A that contains the event data. + + + + Occurs when the mouse pointer rests on the control. + + The sender that contains the control in which the mouse pointer is hovered. + A that contains the event data. + + + + Occurs when the mouse down event of the control occurs. + + The sender that contains the control in which the mouse down is occurred. + A that contains the event data. + + + + Modifies the tooltip if any information is changed. + + A that contains the event data. + + + + Occurs when the popup delay timer interval has elapsed and the timer is enabled. + + The sender that contains the for tooltip popup delay. + A that contains the event data. + + + + Occurs when the initial delay timer interval has elapsed and the timer is enabled. + + The sender that contains the for tooltip initial delay. + A that contains the event data. + + + + Occurs when the Visible property value changes. + + The sender that contains the tooltip form. + A that contains the event data. + + + + Occurs when the tooltip is showing. + + + The event is raised whenever a ToolTip is displaying, + either by calling method or implicitly called by v. + The class contains all the information needed to customize the , including the location, . + This event can be canceled. + + + + + Occurs when the tooltip is shown. + + + The event is raised whenever a ToolTip is displayed, + either by calling method or implicitly called by v. + + + + + Occurs before drawing the tooltip item. + + + By using the event, the appearance of the can be customized. + The class contains all the information needed to paint the , including the ToolTip text, the Rectangle, and the Graphics object on which the drawing should be done. + This event can be canceled. + + + + + Occurs when theme name of the has changed. + + + + + Gets or sets the time that passes before the ToolTip appears. + + + By using property, you can shorten or lengthen the time that the ToolTip waits before displaying a ToolTip window. + + + + + Gets or sets the period of time the ToolTip remains visible if the pointer is stationary on a control. + + + The period of time, in milliseconds, that the ToolTip remains visible when the pointer is stationary on a control. The default value is 5000. + + + By using property, you can shorten or lengthen the time that the ToolTip window is displayed when the pointer is on a control. + + + + + Gets or sets a value indicating whether shadow should be drawn for the ToolTip. + + + + + Gets or sets the tooltip window for the . + + + + + Gets or sets the active associated control with the tooltip. + + + + + Gets or sets the value of the to customize the appearance of the tooltip. + + + + + Gets or sets a value indicating whether the location of the ToolTip can be adjusted respective to the screen bounds. + + + + + Represents a window as a tooltip. + + + + + The const for balloon size. + + + + + The object of component. + + + + + The height of the balloon. + + + + + The width of the balloon. + + + + + The value indicating whether shadow should be drawn for the ToolTip. + + + + + Initializes a new instance of the class. + + The object of SfToolTip. + + + + Gets the location of the ToolTip based on provided ToolTipLocation option. + + The cursor position. + Returns the Location of the tooltip to be shown. + + + + Adjusts the point respective to the Screen bounds. + + The location of the ToolTip which is to be adjusted with screen bounds. + Returns the adjusted position of the ToolTip. + + + + Raises the Layout event. + + A that contains the event data. + + + + Raises the Paint event. + + A that contains the event data. + + + + Occurs when the Visible property value changes. + + An EventArgs that contains the event data. + + This method is called when the Visible property of the tool tip form is changed. + It is called after the Visible property is set and before the form is shown or hidden. + + + + + Draws the background appearance of the . + + An object that graphics data. + The rectangle of the . + An object. + + + + Gets the based on the + property of the + + An object. + Returns the . + + + + Checks whether valid image is available in or not. + + An object. + true if valid image is available, otherwise false. + + + + Gets the image size of the . + + An object. + Returns the specified size if ImageSize is set, otherwise returns the size of the image itself. + + + + Sets the location of the . + + The current size of the tooltip. + The object of ToolTipItem. + The location in which the tooltip is to be shown. + The value indicating that the separator for previous item is enabled or not. + + + + Gets the GraphicsPath based on the tooltip location for balloon drawing. + + Value indicating to get graphics path based on region updating. + Returns the GraphicsPath for balloon drawing. + + + + Gets the GraphicsPath of the ballon beak area. + + Returns the GraphicsPath of the ballon beak area. + + + + Draws the appearance of the . + + An object that graphics data. + The rectangle of the . + An object. + The value indicating that the separator for previous item is enabled or not. + + + + Draws the ToolTip text of the . + + An object that graphics data. + The rectangle of the . + An object. + The value indicating that the separator for previous item is enabled or not. + + + + Draws the separator line of the , + if is true. + + An object that graphics data. + The rectangle of the . + An object. + + + + Draws the ToolTip image of the . + + An object that graphics data. + The rectangle of the . + An object. + The value indicating that the separator for previous item is enabled or not. + + + + Gets the rectangle of . + + The rectangle of the . + An object. + The value indicating that the separator for previous item is enabled or not. + Returns the rectangle of the . + + + + Gets the rectangle of the . + + The rectangle of the . + An object. + The value indicating that the separator for previous item is enabled or not. + Returns the rectangle of the . + + + + Gets or sets a value indicating whether the tooltip is shown through show method or not. + + + + + Gets or sets the location in which the tooltip to be shown. + Maintained temporarily to change the balloon drawing when the tooltip is clipped in screen bounds case. + + + + + Gets or sets the ToolTipInfo to be shown in the tooltip. + + + + + Gets or sets the point in which the tooltip is to be shown. + + + + + Gets or sets a value indicating whether shadow should be drawn for the ToolTip. + + + + + Gets or sets a value indicating whether the location of the tooltip is changed in tooltip showing event. + + + + + Gets a value indicating whether the window will be activated when it is shown. + + + Overridden to return true to avoid activating the tooltip. If not, parent form will lost focus when the tooltip is activated. + + + + + Gets the required creation parameters when the control handle is created. + + + Overridden to set the tooltip window's extended style as TopMost. + If not, tooltip will not be shown in front as we are not activating the tooltip window. + + + + + Used by Changing and Changed events of strong typed collections. + + The sender that contains the object of . + An object of that contains event data. + + + + Represents a class used by Changed event of strong typed collections. + + + + + The changed type of the List property. + + + + + The index. + + + + + The item object. + + + + + The property name. + + + + + The tag object. + + + + + Initializes a new instance of the class. + + ListPropertyChangedType value. + Index in which the list gets affected. + Item which affects the collection. + Property in which the collection gets affected. + + + + Initializes a new instance of the class. + + ListPropertyChangedType value. + Index in which the list gets affected. + Item which affects the collection. + Property in which the collection gets affected. + Tag for additional information. + + + + Gets the type in which the list changed. + + + + + Gets the index of the item that is changed. + + + + + Gets the reference to the affected item. + + + + + Gets the name of the affected property. + + + + + Gets the . + + If tag is EventArgs, then it returns the Tag casted to EventArgs. + + + + Gets or sets a tag. + + + + + Represents a class that contains the information to be displayed in the ToolTip. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + An object of ToolTipInfo. + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Releases the unmanaged resources used by the collection and optionally releases the managed resources. + + true to release both managed and unmanaged resources; false to release only unmanaged resources. + + + + Determines whether the + property should be serialized or not. + + Returns true when it need to be serialized otherwise return false. + + + + Determines whether the + property should be serialized or not. + + Returns true when it need to be serialized otherwise return false. + + + + Determines whether the + property should be serialized or not. + + Returns true when it need to be serialized otherwise return false. + + + + Determines whether the + property should be serialized or not. + + Returns true when it need to be serialized otherwise return false. + + + + Gets or sets the . + + + + + Gets or sets the BorderColor of the v. + + + + + Gets or sets the Minimum width of the v. + + + If is lesser than + , then the value of + will be considered as a maximum width for the ToolTip. + + + + + Gets or sets the Maximum width of the v. + + + If is lesser than + , then the value of + will be considered as a maximum width for the ToolTip. + + + + + Gets or sets a value indicating whether v + elements are aligned to support locales using right-to-left fonts. + + + + + Gets or sets the location of the ToolTip based on the mouse pointer. + + + If the Balloon tooltip style is enabled, the balloon beak will be shown near to the mouse pointer based on the corresponding tooltip location. + + + + + Gets or sets the style of the ToolTip. + + + + + Gets or sets the border thickness of the tooltip. + + + + + Gets or sets the beak background color of the balloon tooltip. + + + By default, beak back color will not be applied based on the corresponding ToolTip item's back color. + Beak back color can be applied manually based on the corresponding ToolTip item. + + + + + Implements a type converter for . + + + + + Returns whether this converter can convert the object to the specified type, using the specified context. + + An that provides a format context. + A that represents the type you want to convert to. + true if this converter can perform the conversion; otherwise, false. + + + + Converts the given value object to the specified type, using the specified context and culture information. + + An that provides a format context. + A . If null is passed, the current culture is assumed. + The to convert. + The to convert the value parameter to. + An that represents the converted value. + + + + Represents a class that maintains the information of the . + + + + + Initializes a new instance of the class. + + + + + Overriden. To return a string which represents the object instance. + + Returns a string which represents the objecr instance. + + + + Determines whether the + property should be serialized or not. + + Returns true when it need to be serialized otherwise return false. + + + + Determines whether the + property should be serialized or not. + + Returns true when it need to be serialized otherwise return false. + + + + Gets or sets the ToolTip text of the . + + + + + Gets or sets the with settings that control the appearance of the . + + + + + Gets or sets a value indicating whether gradient background drawing + for the should be enabled or not. + + + The gradient brush can be set to the tooltip item by using the property + which is available in the property. + + + + + Gets or sets a value indicating whether separator line between the + should be enabled or not. + + + If the is enabled for the tooltip item, the line will be drawn to the bottom of that tooltip item. + The separator line cannot be drawn for the last tooltip item. + + + + + Gets or sets the image of the tooltip item. + + + + + Gets or sets the of the tooltip item. + + + If the is specified, the tooltip will not consider the image from ImageList collection. + + ImageList collection will be only considered when is not specified. + + + + + Gets or sets the zero-based index of an image in a + collection to be displayed in a tooltip item. + + + + + Gets or sets a control to be added on the . + + + If the control is set to the tooltip item, the text, image and other customization cannot be applied to the tooltip item. + The assigned control only will be displayed in the tooltip item. + + + + + Gets or sets the padding of the tooltip item. + + + The padding is applicable for entire tooltip item i.e. tooltip item's image, text and control will be drawn based on the padding. + + + + + Gets or sets the size of the . + + + + + Gets or sets the text size of the . + + + + + Gets or sets the name of the tooltip item. + + + + + Represents the editor for Image of the tooltip item. + + + + + Gets the editor style used by the EditValue method. + + An that can be used to gain additional context information. + A value that indicates the style of editor used by the EditValue method. + If the does not support this method, then it will return None. + + + + Edits the specified object's value using the editor style indicated by the + method. + + An that can be used to gain additional context information. + An that this editor can use to obtain services. + The object to edit. + The new value of the object. If the value of the object has not changed, this should return the same object it was passed. + + + + Represents a collection of . + + + + + The list of ToolTipItem. + + + + + Initializes a new instance of the class. + + + + + Adds the in the + . + + An object of . + Returns the index in which the item is added. + + + + Adds the range of in the + . + + Collection of objects. + + + + Inserts the in the specified index. + + The index in which the element has to be inserted. + An object of . + + + + Inserts the range of in the specified index. + + The index in which the range of elements has to be inserted. + Collection of objects. + + + + Removes the from the + . + + An object of . + + + + Removes the at the specified index from the + . + + The index of the element to be removed. + + + + Removes the range of from the + . + + Collection of objects. + + + + Gets the index of the in the + . + + An object of . + Returns the index of the . + + + + Removes all the elements from the . + + + + + Determines whether an element exists in the . + + An object of . + true if item is found; otherwise, false. + + + + Overriden. To return the count of the collection. + + Returns the count of the collection. + + + + Copies the elements of the collection to an Array, starting at a particular index. + + The one-dimentioanl Array that is the destination of the elements copied from Collection. + Index in array at which copying begins. + + + + Returns an enumerator that iterates through a . + + An IEnumerator object that can be used to iterate through + the . + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Creates a new object that is a copy of the current instance. + + A new object that is a copy of this instance. + + + + Determines whether the contains a specific value. + + The object to locate in the . + true if the value is found in the ; otherwise, false. + + + + Determines the index of a specific item in the . + + The object to locate in the . + The index of value if found in the list; otherwise, -1. + + + + Inserts an item to the at the specified index. + + The zero-based index at which value should be inserted. + The object to insert into the . + + + + Removes the first occurrence of a specific object from the . + + The object to remove from the . + + + + Adds an item to the . + + The object to add to the . + The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection. + + + + Releases the unmanaged resources used by the collection and optionally releases the managed resources. + + true to release both managed and unmanaged resources; false to release only unmanaged resources. + + + + Raises the changed event of . + + An object of that contains event data. + + + + Occurs after a property in the collection is changed. + + + + + Gets a value indicating whether the has a fixed size. + + + + + Gets a value indicating whether the is read-only. + + + + + Gets the number of elements actually contained in the . + + + + + Gets a value indicating whether access to the is synchronized. + + + + + Gets an object that can be used to synchronize access to the Collection. + + + + + Gets or sets the at the specified index. + + The index of the element to get or set. + The element at the specified index. + + + + 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. + + + + Provides a user interface that can edit collections of tooltip items at design-time. + + + + + Initializes a new instance of the class. + + The type of the collection for this editor to edit. + + + + Gets the data type that this collection contains. + + The data type of the items in the collection. + + + + Indicates whether multiple collection items can be selected at once. + + true if it multiple collection members can be selected at the same time; otherwise, false. By default, this returns true. + + + + Implements a type converter for . + + + + + Returns whether this converter can convert the object to the specified type, using the specified context. + + An that provides a format context. + A that represents the type you want to convert to. + true if this converter can perform the conversion; otherwise, false. + + + + Converts the given value object to the specified type, using the specified context and culture information. + + An that provides a format context. + A . If null is passed, the current culture is assumed. + The to convert. + The to convert the value parameter to. + An that represents the converted value. + + + + Represents a store which holds the properties of the object. + + + + + Provides information about the BorderColor property. + + + + + Provides information about the BorderThickness property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the BeakBackColor property. + + + + + Provides the StaticData of the . + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the StaticData, if is null. + + Returns the StaticData. + + + + Provides the StaticData of the . + + + + + Implements the functionalities that holds all information stored for a . + + + + + The default ToolTipStyleInfo. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + 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. + + + + + 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. + + + + Override this method to create a product-specific identity object for a sub object. + + An identity object for a sub object 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); + } + + + The . + + + + Gets the default style of the . + + Default style of the . + + + + Determines whether the + property should be serialized or not. + + Returns true when it need to be serialized otherwise return false. + + + + Determines whether the + property should be serialized or not. + + Returns true when it need to be serialized otherwise return false. + + + + Determines whether the + property should be serialized or not. + + Returns true when it need to be serialized otherwise return false. + + + + Determines whether the + property should be serialized or not. + + Returns true when it need to be serialized otherwise return false. + + + + Gets the default style of the . + + + + + Gets or sets the foreground color of the . + + + + + Gets or sets the background color of the . + + + + + Gets or sets the font of the . + + + + + Gets or sets the TextAlignment of the . + + + + + Gets or sets the GradientBrush of the , + if is true. + + + + + Gets or sets the separator color of the to draw separator, + if is true. + + + + + Gets or sets the separator style of the to draw separator, + if is true. + + + + + Gets or sets the separator pattern of the to draw separator, + if is true, + when is set as Custom. + + + + + Gets or sets the alignment of the image on the . + + + If the has both the text and image and is set, + the image will be positioned based on the alignment settings and text will be positioned just opposite alignment. + i.e. if an image is aligned to left, text will be aligned to right position. + + + + + Gets or sets the size of the . + + + + + Gets or sets the offset space between the image and text of the tooltip item. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets or sets the border color of the ToolTipInfo. + + + + + Gets or sets the beak back color of the ToolTipInfo. + + + + + Provides style identity information for nested expandable objects of the ToolTipVisualStyle class. + + + + + Initializes a new instance of the class. + + The that owns this sub-object. + The descriptor for this expandable sub-object. + + + + Represents the method that will handles the event. + + The sender that contains the v. + An object that contains event data. + + + + Represents the method that will handles the event. + + The Sender that contains the v. + An object that contains event data. + + + + Represents the method that will handle the event. + + The sender that contains the v. + An object that contains event data. + + + + Provides data about the cancelable event when the tooltip is showing. + + + To abort the showing of tooltip, set to True. + + To change the of the tooltip, + use the property. + + To change the location of the tooltip, use the property. + + In order to set the location or ToolTipInfo of the tooltip, then the must be set to true. + + + + + The ToolTipInfo of the tooltip. + + + + + The location of the tooltip. + + + + + The control which shows the tooltip. + + + + + Initializes a new instance of the class. + + The control which shows the tooltip. + The of the tooltip to be shown. + The location of the that the tooltip is set to be shown. + + + + Gets a control which shows the tooltip. + + + + + Gets or sets the specified of the tooltip. + + + + + Gets or sets the location that the tooltip is to be shown. + + + + + Provides data sbout the event after the tooltip is shown. + + + The of the tooltip can be from property. + + The location that the tooltip was shown can be get from property. + + + + + The control which shown the tooltip. + + + + + The ToolTipInfo displayed in the tooltip. + + + + + The location that the tooltip was shown. + + + + + Initializes a new instance of the class. + + The control which shown the tooltip. + The of the tooltip shown. + The location that the tooltip was shown. + + + + Gets a control which shown tooltip. + + + + + Gets the of the shown tooltip. + + + + + Gets the location that the tooltip was shown. + + + + + Provides data about the event on drawing the tooltip item. + + + To abort the default drawing of the tooltip item, set property to true. + + + + + The graphics of the tooltip control. + + + + + The rectangle of the tooltip item. + + + + + The tooltip item. + + + + + Initializes a new instance of the class. + + An object that contains graphics data of tooltip. + The rectangle of the tooltip item. + An object. + + + + Gets the graphics of the tooltip. + + + + + Gets the rectangle of the tooltip item. + + + + + Gets the to be drawn. + + + + + Provide a user interface for representing and editing the values of objects. + + + + + Gets the editor style used by the EditValue method. + + An that can be used to gain additional context information. + A value that indicates the style of editor used by the EditValue method. + If the does not support this method, then it will return None. + + + + Edits the specified object's value using the editor style indicated by the + method. + + An that can be used to gain additional context information. + An that this editor can use to obtain services. + The object to edit. + The new value of the object. If the value of the object has not changed, this should return the same object it was passed. + + + + Provides a window for editing the objects. + + + Provides a window for editing the objects. + + + + + The property grid for showing the properties of ToolTipInfo. + + + + + Initializes a new instance of the class. + + An object of . + An object of . + + + + Initializes the design surface of the ToolTipEditorForm with related ToolTipInfo. + + An object of . + An object of . + + + + Occurs when OK button in the ToolTipEditorForm is clicked. + + The sender that contains the OK button. + An object of that contains event data. + + + + Occurs when Cancel button in the ToolTipEditorForm is clicked. + + The sender that contains the Cancel button. + An object of that contains event data. + + + + Required designer variable. + + + + + The design panel of the ToolTipEditorForm. + + + + + The button panel of the ToolTipEditorForm. + + + + + The Cancel button of the ToolTipEditorForm. + + + + + The Ok button of the ToolTipEditorForm. + + + + + 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 ToolTipInfo of the editor form. + + + + + A helper class that provides the functionality to merge the styles from the XML configuration to the element style. + + + + + Gets or sets the themes collection. + + + + + Gets or sets the assemblies to read the image resources. + + + + + Loads the assembly to register the theme XML configured files. + + An assembly that has the theme XML configuration file. + + + + Reads the control tag elements. + + The . + The object that needs to be merged. + The xml reader. + + + + Combines the styles defined in the XML document to the target style. + + The + The target object to combine. + + + + Combines the styles defined in the XML document to the target style. + + Name of control + The target object to combine. + + + + Helps to retrieve the Theme resource stream + + ThemeName of the Control + Control name. + Stream + + + + Reads the control tag elements. + + Name of the control. + The object that needs to be merged. + The xml reader. + + + + Reads the properties tag elements. + + The object that needs to be merged. + The xml reader. + + + + Reads the Attributes of the Elements tags of the control. + + The object that needs to be merged. + The xml reader. + + + + Sets the style objects properties from the XML attribute. + + The object that needs to be merged. + The property to set the property value of object. + The XmlReader. + + + + Reads the element tag attributes. + + The object that needs to be merged. + The xml reader. + + + + Reads the Attributes of the Elements. + + The object that needs to be merged. + The xml reader. + + + + Reads the Attributes of the Elements. + + The object that needs to be merged. + The xml reader. + + + + Read the inner elements of the XmlReader. + + The style info object. + The XmlReader. + + + + Read the font attributes of inner elements in the XmlReader. + + The object that needs to be merged. + The xml reader. + + + + Helps to retrieve the Theme resource stream + + ThemeName of the Control + Control + Stream + + + + Reads the properties tag elements. + + The . + The xml reader. + + + + Reads the element tag attributes. + + The . + The object that needs to be merged. + The xml reader. + + + + Reads the Attributes of the Elements. + + The . + The object that needs to be merged. + The object. + The xml reader. + + + + Reads the Attributes of the Elements. + + The . + The object that needs to be merged. + The xml reader. + + + + Read the inner elements of the XmlReader. + + The provider. + The style info object. + The XmlReader. + + + + Reads the Attributes of the Elements tags of the control. + + The . + The object that needs to be merged. + The xml reader. + + + + Read the font attributes of inner elements in the XmlReader. + + The . + The object that needs to be merged. + The xml reader. + + + + Sets the style objects properties from the XML attribute. + + The . + The object that needs to be merged. + The property to set the property value of object. + The XmlReader. + + + + Gets the Font + + The attribute value + The font + + + + Gets the color. + + The attribute value. + The color. + + + + Gets the brush. + + The attribute value. + The brush. + + + + Checks whether given string is Hex color code or not. + + The Hex color code string. + True if given string is Hex color code otherwise false. + + + + Gets the image from the XML configured file. + + The provider. + The image resource file name. + Name of the theme. + An image. + + + + Get the image from given assembly. + + The used to get the image. + The string value contains the image name. + Returns the image. + + + + Helps to retrieve whether the applied Theme is built-in or VisualStyle based theme. + + IThemeProvider + Whether the applied theme is VisualStyle based theme or not + + + + Represents a class that contains the properties for customizing the styles of the check box. + + + + + Maintains the default style of the currentcell to read. + + + + + Maintains the default style of the CurrentCellStyleInfo. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The that need to be initialized. + + + + Initializes a new instance of the class. + + The . + + + + Initializes a new instance of the class. + + . + + + + Initializes a new instance of the class. + + . + The . + + + + 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. + + + + Retrieves the default style of the current cell. + + Returns the default style of the current cell. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style of the . + + + + + Gets or sets the size of the check box. + + + + + Gets or sets the border color of the unchecked state check box. + + + + + Gets or sets the back color of the unchecked state check box. + + + + + Gets or sets the back color of the checked state check box. + + + + + Gets or sets the border color of the checked state check box. + + + + + Gets or sets the tick color of the checked state check box. + + + + + Gets or sets the color of the indeterminate state check box. + + + + + Gets or sets the border color of the indeterminate state check box. + + + + + Gets or sets the back color of the indeterminate state check box. + + + + + Gets or sets a value indicating the alignment of the check box. + + + + + Gets a value indicating whether padding has been initialized for the control. + + + + + Implements the data store for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Maintains the static data for the CheckBoxCellStyleInfo. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Populates the SerializationInfo store with the name, type, and value of each piece of information it wants to serialize + Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. + + + + Overridden to create the exact copy of the current instance. + + Returns the copied object. + + + + Initializes the , if is null. + + + + + + Overridden to gets the static data. + + + + + Represents a class that provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable sub-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 + + + + + Maintains the value indicating whether the caption height should retain or not. + + + + + Stores the value indicating whether the caption height has been initialized or not. + + + + + Value to store the title padding. + + + + + + + + + + To Reset the CaptionBarBrush + + + + + Indicates whether to serialize CaptionBarBrush + + + + + Hover Color for CaptionButton + + + + + Gets/Sets touch enabled + + + + + Updates the title padding. + + Updates to retain the title bar height in maximized state. + + + + 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 + + + + + + Method to determine whether the operating system is Windows 11. + + true if the operating system is Windows 11; otherwise false. + + + + Apply rounded corners for the form. + + The handle to the window + Corner style for the round corners + + + + To define whether the customization needs to be applied + + + + + Raises the System.Windows.Forms.Form.Shown event. + + Event args that contains the event data + + + + + + + + + + + + + + + + + + + + + + + + + + + Occurs when Form Location is changed + + + + + + + + + + + + + + + + + + + + + + + Helper method to raise the mouse enter event. + + + + + + + + + + + + + + + + + Calculates the non client area of the form + + reference message + retruns true if the method returns combiantion of values + returns false if the method return zero + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Helper method to raise caption image hover events. + + + + + Helper method to raise the caption image mouse move events. + + + + + + + + + + + + + + + + + + + Handles the mouse events of CaptionImage or CaptionLabels. + + + + + Handles the mouse events of CaptionImage or CaptionLabels. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + Method to draw the caption label. + + Graphics object + Rectangle to draw caption label + Metroform in which caption image should drawn. + Mdi caption height. + + + + + + + + + + + Paint the caption bar background + + Graphics Object. + Caption Bar rectangle. + Height of the Mdi caption bar. + Width of the caption bar. + Value for the adjustment. + Caption bar Height. + Color to fill the caption bar. + MetroForm. + + + + + + + + + + + Draws the icon for MDIChild. + + Graphics Object. + Rectangle to draw mdiform icon. + Value to adjust icon. + Form to load the Icon + + + + + + + + + + + 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 maintain the visibility of the inner border of the Form. + + + + + 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 + + + + + Indicates whether to allow rounded corners or not. + + + + + 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 the value indicating whether the caption bar of the form should retain its default height when form is maximized or not. + + + + + 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 or sets a value indicating whether the rounded corners are enabled. + + The default value is false. + This option is only in effect with Windows 11. + + + + + + + + + + + + + + + + + + + + + + + + Gets the value used to adjust the titlebar. + + + + + + + + + + + + + + + Gets / Sets whether to hide the CaptionButtons, when displayed in Secondary Monitor + + + + + Gets / Sets whether to apply the Multi Monitor appearance + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Gets the value indicating whether the current operating system is windows7 or not. + + + + + Gets / set the value to enable the MaximizeBox + + + + + Gets or sets the visibility of the inner border of the Form. + + + + + 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 + + + + + detailButtonSpace control using for increase the space in flow layout panel inbetween the detail button and message box buttons in while resizing. + + + + + Holds the height of the before the detail view is collapsed. + + + + + Holds the height of the before the detail view expand. + + + + + 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 + + + + + Method to set same width for all Buttons in the MessageBoxAdv + + Collection of buttons + Greater width + + + + + Method to calculate the height of the panel of MessageBoxAdv + + Panel height + + + + 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 + + + + Variable which indicates whether custom buttons are already initialized or not + + + + + 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. + + + + + Validate the messagebox height in while initialize the control + + + + + Handle the size of the message box while closing and expanding the details view. + + + + + 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 + + + + + Indicates whether to enable dpiaware or not. + + + + + Variable to Gets or Set Value to Drop Shadow to the form. + + + + + Gets or sets the managed color table value. + + + + + 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 + + + + + + Method to determine whether the operating system is Windows 11. + + true if the operating system is Windows 11; otherwise false. + + + + Apply rounded corners for the form. + + + + + Gets the closebox + + + + + + + To define whether the customization needs to be applied + + + + + Raises the System.Windows.Forms.Form.Shown event. + + Event args that contains the event data + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + Indicates whether to allow rounded corners or not. + + + + + Gets or Sets whether to enable Drop Shadow to the Office2010form + + + + + Gets or sets a value indicating whether the rounded corners are enabled. + + The default value is false. + This option is only in effect with Windows 11. + + + + Gets or sets a value indicating whether dpi aware should be enabled or not. + + + + + 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 the value indicating whether the current operating system is windows7 or not. + + + + + 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 + + + + + Method to set same width for all Buttons in the MessageBoxAdv + + Collection of buttons + Greater width + + + + + Method to calculate the height of the panel of MessageBoxAdv + + Panel height + + + + Initializes the new instance for Office2010StyleMessageBoxAdv class + + + + + Lock Window update function + + + + + Holds the height of the before the detail view is collapsed. + + + + + Holds the height of the before the detail view expand. + + + + + detailButtonSpace control using for increase the space in flow layout panel inbetween the detail button and message box buttons in while resizing. + + + + + 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 + + + + Variable which indicates whether custom buttons are already initialized or not + + + + + 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 + + + + Method to change the arrow color of the image. + + the bitmap of image after changing the arrow color + + + + 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. + + + + + Occurs when the mouse pointer leaves the control + + The sender that contains the control in which the mouse pointer is leaved + that contains the event data. + + + + Occurs when the mouse pointer rests on the control. + + The sender that contains the control in which the mouse pointer is hovered + that contains the event data. + + + + Validate the messagebox height in while initialize the control + + + + + Handle the size of the message box while closing and expanding the details view. + + + + + 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 + + + + + Method to set same width for all Buttons in the MessageBoxAdv + + Collection of buttons + Greater width + + + + + Method to calculate the height of the panel of MessageBoxAdv + + Panel height + + + + 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 + + + + detailButtonSpace control using for increase the space in flow layout panel inbetween the detail button and message box buttons in while resizing. + + + + + Holds the height of the before the detail view is collapsed. + + + + + Holds the height of the before the detail view expand. + + + + + 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 + + + + + Variable which indicates whether custom buttons are already initialized or not + + + + + 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. + + + + + Validate the messagebox height in while initialize the control + + + + + Handle the size of the message box while closing and expanding the details view. + + + + + 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. + + + + + Method to calculate the height of the panel of MessageBoxAdv + + Panel height + + + + 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 + + + + detailButtonSpace control using for increase the space in flow layout panel inbetween the detail button and message box buttons in while resizing. + + + + + Holds the height of the before the detail view is collapsed. + + + + + Holds the height of the before the detail view expand. + + + + + 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 + + + + + Variable which indicates whether custom buttons are already initialized or not + + + + + 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 + + + + + Method to set same width for all Buttons in the MessageBoxAdv + + Collection of buttons + Greater width + + + + + 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. + + + + + Validate the messagebox height in while initialize the control + + + + + Handle the size of the message box while closing and expanding the details view. + + + + + 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 + + + + + It contains the value of the property. + + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style values for + + + + + Gets or sets the font for DetailsView. + + + + + Gets or sets the background color for TitleBar. + + + + + Gets or sets the background color for TitleBar. + + + + + Gets or sets the fore color for TitleBar. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + It contains the value of the property. + + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style values for + + + + + Gets or sets the Font for TitleBar. + + + + + Gets or sets the background color for TitleBar. + + + + + Gets or sets the fore color for TitleBar. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for + + + + + Gets or sets the Font for MessageBoxAdv. + + + + + Gets or sets fore color for MessageBoxAdv. + + + + + Gets or sets the background color for MessageBoxAdv. + + + + + Gets or sets the border color for MessageBoxAdv. + + + + + Gets or sets the value for styles. + + + + + Gets or sets the value for styles. + + + + + Initializes the , if is null. + + + + + + Gets the static data value of the class. + + + + + Displays a message box with Office2007 style that can contain text, buttons, and symbols that inform and instruct the user. + + + + + It contains the value of the property. + + + + + + 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. + + + + + Helps to specify whether the MessageBoxStyle is changed at sample level or not. + + + + + 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 + + + + + Method to get the image from specifed folder + + Image to retrive from the folder + Bitmap image + + + + Method to get the width of the button + + ButtonAdv + Graphics variable + Width of the button + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Gets or sets the theme name of the control. + + + The default value is null. + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + 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 + + + + + Gets or sets value to determine whether can be resized. + + + + + 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 + + + + + Class for VisualStyle based theme. + + + + + Gets the horizontal padding + + + + + Gets the vertical padding + + + + + 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 + + + + + detailButtonSpace control using for increase the space in flow layout panel inbetween the detail button and message box buttons in while resizing. + + + + + Holds the height of the before the detail view is collapsed. + + + + + Holds the height of the before the detail view expand. + + + + + Variable for CancelEventHandler + + + + + Variable which indicates whether custom buttons are already initialized or not + + + + + Static variable for buttons + + + + + Static variable for s_buttonNames + + + + + Static variable for System defined strings + + + + + 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 VisualStyleMessageBoxAdv. + + owner window + text + form caption + buttons + form icon + default button + options + to show helpbutton + click event data + + + + Method to calculate the height of the panel of MessageBoxAdv + + Panel height + + + + Initialization of button names + + + + + Custom Button Initialization + + + + + Click Event for Custom Buttons + + + + + Method to set same width for all Buttons in the MessageBoxAdv + + Collection of buttons + Greater width + + + + + 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 used to set location for close button. + + + + + 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. + + + + 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. + + + + + Validate the messagebox height in while initialize the control + + + + + Handle the size of the message box while closing and expanding the details view. + + + + + Initializes the bordercolor variable. + + + + + Gets or sets whether the image is showing + + + + + Gets the button operations + + + + + 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. + + + + Represents the class to define the style of control. + + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default ProgressBarAdvStyleInfo value. + + + + + Gets or sets used to draw the progress value of the control. + + + + + Gets or sets an integer value that describes the thickness of border. + + + + + Gets or sets an interger integer value that describes the amount of space between a progress rectangle and its element border. + + + + + Gets or sets the background color of the control. + + + + + Gets or sets the background color of the control in the disabled state. + + + + + Gets or sets the fore color used to draw the progress value of the control. + + + + + Gets or sets the progress fill color value used to draw the progress rectangle of the control. + + + + + Gets or sets the progress fill color used to draw the progress rectangle of the control in the disabled state. + + + + + Gets or sets the border color used to draw the border of the control in the disabled state. + + + + + Gets or sets the foreground color value used to draw the text of the control to in the disabled state. + + + + + Gets or sets the value used to draw the border of the control in the default state. + + + + + Represents the class holds the plain data for a style object excluding identity information. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Maintains the static data. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Populates the SerializationInfo store with the name, type, and value of each piece of information it wants to serialize + Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. + + + + Overridden to get the static data source. + + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the progressBarAdv for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + 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; + + + + 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. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Draws the dual gradient color of the progress bar when office2016 theme is selected. + + + + + + + + + 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 active theme name of the ProgressBarAdv control. + + Returns the active theme name. + + + + Raises the event when themename changed. + + The sender value. + A contains the event data. + + + + Updates the Style renderers of ProgressBarAdv Control based on applied Theme. + + + + + Helps to reset Layout customization of the ProgressBarAdv 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 + + + + + Determines whether FontColor has been modified and its contents should be serialized at design-time. + + True if FontColor were changed; False otherwise. + + + + Resets the FontColor back to its default value. + + + + + Determines whether BackTubeStartColor has been modified and its contents should be serialized at design-time. + + True if BackTubeStartColor were changed; False otherwise. + + + + Resets the BackTubeStartColor back to its default value. + + + + + Determines whether BackTubeEndColor has been modified and its contents should be serialized at design-time. + + True if BackTubeEndColor were changed; False otherwise. + + + + Resets the BackTubeEndColor back to its default value. + + + + + Determines whether TubeEndColor has been modified and its contents should be serialized at design-time. + + True if TubeEndColor were changed; False otherwise. + + + + Resets the TubeEndColor back to its default value. + + + + + Determines whether TubeStartColor has been modified and its contents should be serialized at design-time. + + True if TubeStartColor were changed; False otherwise. + + + + Resets the TubeStartColor back to its default value. + + + + + Determines whether BackGradientStartColor has been modified and its contents should be serialized at design-time. + + True if BackGradientStartColor were changed; False otherwise. + + + + Resets the BackGradientStartColor back to its default value. + + + + + Determines whether BackGradientEndColor has been modified and its contents should be serialized at design-time. + + True if BackGradientEndColor were changed; False otherwise. + + + + Resets the BackGradientEndColor back to its default value. + + + + + 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. + + + + Occurs when theme name of the has changed. + + + + + Gets or sets the value used to customize the appearance of the . + + + + + Gets or sets a value indicating whether a theme style + has been applied to the control. + + The default value is true. + + + + Gets or sets the theme name of the ProgressBarAdv control. + + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets or sets the BaseTheme name of the theme + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Gets or sets the VisualTheme of the ProgressBarAdv control. + + + + + Gets the name of the control. + + + + + 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 used to draw the progress value of the control. + + + + + 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 + + + + + Represents the class to define the style of control. + + + + + Maintains the default style of the . + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default value. + + + + + Gets or sets the value used to draw the border of the + control. + + + + + Gets or sets the value for the + control. + + + + + Gets or sets the background color of the control. + + + + + Gets or sets the fore color value of the control. + + + + + Represents the class holds the plain data for a style object excluding identity information. + + + + + Provides information about the control's BorderColor property. + + + + + Provides information about the control's Font property. + + + + + Provides information about the control's ForeColor property. + + + + + Provides information about the control's BackColor property. + + + + + Maintains the static data. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Populates the SerializationInfo store with the name, type, and value of each piece of information it wants to serialize + Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. + + + + Overridden to get the static data source. + + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the CheckBoxAdv for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + This class represents the information to be displayed in the ToolTip. + + + 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 + + + + + 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 + + + + + + Defines an interface that a can take and parent itself to. + + + + provides a default implementation that should be useful for all + practical purposes. + + + + + + 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. + + + + + 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. + + + + 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. + + + + + 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 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. + + + + + 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 + + + + + + + + + Get the parent control of the popupcontrol container. + + The control + Returns the popup of the parent control + + + + 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. + + + + + + + + Gets or sets the value for the control. + + + + + 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; + } + + + + + + 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. + + + + + 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. + + + + // 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. + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + This value used to customize the apperance of the + + + + + Get or Set of Skin Manager Interface + + + + + Gets the active theme name of the ToolTipAdv control. + + Returns the active theme name. + + + + Raises the event when themename changed. + + The sender value. + A contains the event data. + + + + Updates the Style renderers of ToolTipAdv Control based on applied Theme. + + + + + + + + + + + + + + + + + + + + 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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Occurs when theme name of the has changed. + + + + + Gets or sets the theme name of the ToolTipAdv control. + + + + + Gets or sets a value indicating whether a theme style + has been applied to the control. + + The default value is true. + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets or sets the BaseTheme name of the theme + + + + + Gets the name of the control. + + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + + + + 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. + + + + + + + + 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 + + + Provides renderer for Office2010 theme. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Renderer for VisualStyle based theme + + + + + The metro renderer for scrollbar + + + + + 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 + + + + + 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 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. + + + + 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. + + + + + + + RadioButtonAdvActionList Class. + + + + + Initializes a new instance of the RadioButtonAdvActionList class. + + Represents component + + + + InitializeActionList method + + + + + Gets or sets thumb color. + + + + + Implements the functionalities that provides a StyleInfoBase object for ScrollBarStyleInfo properties in a ScrollBar. + + + + + Holds the default style info of the scrollbar. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + A that holds the identity for this + . + + + + + Initializes a new instance of the class. + + 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. + + + + + 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. + + + + Gets the default value for the ScrollBarStyleInfo. + + Returns the default value for the ScrollBarStyleInfo object. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style for the ScrollBarStyleInfo object. + + + + + Gets or sets the background color for the arrow button. + + + This is applicable for both the Min and Max buttons. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the background color for the arrow button in hovering state. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the background color for the arrow button in pressed state. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the foreground color for the arrow button. + + + This will set the background color for the arrow which is shown in the arrow button. + This is applicable for both the Min and Max buttons. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the foreground color for the arrow button in hovering state. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the foreground color for the arrow button in pressed state. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the background color for the scrollbar. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the background color for the thumb. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the background color for the thumb in hovering state. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the background color for the thumb in pressed state. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the border background color for the arrow button. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the border background color for the arrow button in hover state. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the border background color for the arrow button in pressed state. + + + + + Gets or sets the border background color for the arrow button in disabled state. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets a value for ThumbBorderColor. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets a value for ThumbBorderColor in hover state. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets a value for ThumbBorderColor in pressed state. + + + + + Gets or sets a value for ThumbBorderColor in disabled state. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets a value for ThumbDisabledColor. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the value for ArrowButtonDisabledForeColor. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the value for ArrowButtonDisabledBackColor. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Contains the collection of properties. + + + + + Gets the value for the ArrowButton BackColor property. + + + + + Gets the value for the ArrowButton hover BackColor property. + + + + + Gets the value for the ArrowButton pressed BackColor properly. + + + + + Gets the value for the ArrowButton ForeColor property. + + + + + Gets the value for the ArrowButton hover ForeColor property. + + + + + Gets the value for the ArrowButton pressed ForeColor property. + + + + + Gets the value for the ScrollBarBackColor property. + + + + + Gets the value for the ThumbColor property. + + + + + Gets the value for the ThumbHoverColor property. + + + + + Gets the value for the ThumbPressedColor property. + + + + + Gets the value for the ThumbWidth property. + + + + + Gets the value for the ArrowButtonBorderColor property. + + + + + Gets the value for the ArrowButtonHoverBorderColor property. + + + + + Gets the value for the ArrowButtonDisabledBorderColor property. + + + + + Gets the value for the ArrowButtonPressedBorderColor property. + + + + + Gets the value for the ThumbBorderColor property. + + + + + Gets the value for the ThumbHoverBorderColor property. + + + + + Gets the value for the ThumbPressedBorderColor property. + + + + + Gets the value for the ThumbDisabledBorderColor property. + + + + + Gets the value for ThumbDisabledColor property. + + + + + Gets the value for ArrowButtonDisabledForeColor property. + + + + + Gets the value for ArrowButtonDisabledBackColor property. + + + + + Holds the static data for the Scrollbar style info store. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 an exact copy of the current object. + + Copied object. + + + + Initializes the , if is null. + + + + + + Provides the static data of the ScrollBarStyleInfo. + + + + + Contains the list of properties that are used to customize the appearance of the scroll control. + + + This contains the elements that are available in the scroll control. i.e. Horizontal scrollbar, Vertical scrol bar and SizeGripper. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds data for this object. + All changes in this style object will be saved in the object. + + + + + Initializes a new instance of the class. + + 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. + + + + + Initializes a new instance of the class. + + + A to create the identity for ScrollBars. + + + + + Determines whether HorizontalScrollBar has been modified and its contents should be serialized at design-time. + + True if contents were changed; False otherwise. + + + + Determines whether VerticalScrollBar has been modified and its contents should be serialized at design-time. + + True if contents were changed; False otherwise. + + + + Override this method to create a product-specific identity object for a sub object. + + An identity object for a sub object of this style. + + The following code is an example how scroll bar creates ScrollerVisualStyleInfoSubObjectIdentity: + + public override StyleInfoSubObjectIdentity CreateSubObjectIdentity(StyleInfoProperty sip) + { + return new ScrollerVisualStyleInfoSubObjectIdentity(this, sip); + } + + + The . + + + + Provide the default style of the . + + Default style object. + + + + Disposes the unused resources. + + Specifies whether to dispose both managed and unmanaged resources or only the unmanaged resources. + + + + Determines whether SizeGrip has been modified and its contents should be serialized at design-time. + + True if contents were changed; False otherwise. + + + + Gets the default style of the . + + + + + Gets or sets the for the horizontal scrollbar of the scroll control. + + + + + Gets or sets the for the vertical scrollbar of the scroll control. + + + + + Gets or sets the for the size grip of the scroll control. + + + + + Defines a class that provides style identity information for nested objects of the VisualStyleInfo class of the control. + + + + + Initializes a new instance of the class and associates it with a specified. + + The that owns this sub-object. + The descriptor for this expandable sub-object. + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Contains the static data of the SizeGripStyleInfo class. + + + + + Gets the value of BackColor property. + + + + + Holds the static data of the size grip style info. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 an exact copy of the current object. + + Copied object. + + + + Initializes the , if is null. + + + + + + Gets the static data for the SizeGripStyleInfo. + + + + + Implements the class that provide an identity information of using + . + + + + + Maintains the SfScrollContol for create the identity. + + + + + Initializes a new instance of the class. + + + Control to create an identity for ScrollBars(HorizontalScrollBar/VerticalScrollBar). + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Implements the functionalities that holds all information stored for a SizeGrip of the scroll control. + + + ScrollBarSizeGripStyleInfo provides user-friendly access to all properties stored + in ScrollBarSizeGripStyleInfoStore. + + + + + Holds the default style info of the Scrollbar size grip. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + 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. + + + + + 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. + + + + Gets the default style of the SizeGrip. + + Returns the default style. + + + + Gets the default value for the SizeGripStyleInfo. + + + + + Gets or sets the BackColor for the SizeGrip. + + + + + Gets a value indicating whether the BackColor property has been modified or not. + + + + + 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. + + + + + Office 2019 style colorful theme. + + + + + High contrast tyle black theme. + + + + + Applies and manages the themes for the controls and components which are derived from the and + + + + + It stores the value of the property. + + + + + It stores the value of the property. + + + + + It helps to notify the Theme changes to all controls, when is modified. + + + + + It stores the value of the property. + + + + + This property helps to know, if the is loaded in Form. + + + + + It stores the VisualStyle settings applied in . + + + + + Constructor + + + + + + Loads the assembly to register the theme XML configured files. + + An assembly that has the theme XML configuration file. + + + + Sets the theme to given control and its inner controls which are derived from + + The to set the theme. + to be applied to the control + + This method will set the theme to controls which is derived from + + + + + Sets the theme to given control and its inner controls which are derived from the and + + The to set the theme. + A name of the theme to be set to control. + + This method will set the theme to controls which is derived from and + + + + + Sets the theme to given component and its inner controls which are derived from the + + The to set the theme. + A name of the visualTheme to be set to control. + + This method will set the theme to controls which is derived from + + + + + + Sets the theme to given controls and its inner controls which are derived from the and + + The to set the theme. + A name of the theme to be set to control. + + This method will set the theme to controls which is derived from the + + + + + Iterates the Forms loaded in Application and sets the theme to its inner controls which are derived from the and + + + + + Sets the theme to given Component which are derived from the and + + The to set the theme. + A name of the theme to be set to control. + + This method will set the theme to controls which is derived from and + + + + + Sets the theme to given Control which are derived from the and + + The to set the theme. + A name of the theme to be set to control. + + This method will set the theme to controls which is derived from and + + + + + Sets the theme to given Component and its inner controls which are derived from the and + + The to set the theme. + A name of the theme to be set to control. + + This method will set the theme to controls which is derived from and + + + + + Occurs when new control is added to the control which has the theme settings that is set by the . + + The sender. + A that contains events data. + + + + Occurs when new control is added to the control which has the theme settings that is set by the . + + The sender. + A that contains events data. + + + + Occurs when any control is removed from the control which has the theme settings that is set by the . + + The sender. + A contains events data. + + + + Wires the and + events of the given control and its child controls. + + The control. + + + + Unwires the and + events of the given controls. + + The control. + + + + Releases all resources used by the class. + + True to release both managed and unmanaged resources; + false to release only unmanaged resources. + + + + + Gets or sets the to apply the theme settings + + + + + Gets or sets a name of the theme to be applied to . + + + + + Gets / sets the VisualTheme to be applied to controls and components loaded in Application. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + + 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. + + + + + 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. + + + + + Holds the theme name of it's parent control. + + + + + 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. + + + + + 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. + + + + + 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 Panel Backcolor in Hover state + + + + + Holds the Collapsed DropDown button Backcolor on Selected state + + + + + Holds the Collapsed DropDown button Backcolor on Hover state + + + + + Holds the Collapsed DropDown button ForeColor + + + + + 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 + + + + + Holds the TootTip backcolor + + + + + Holds the TootTip backcolor + + + + + GroupBar Visual Style + + + + + Gets Splitter Dot Color + + + + + Gets the Splitter Color + + + + + Gets the Collapsed panel Backcolor in Normal state + + + + + Gets the Collapsed panel Backcolor in Hover state + + + + + Gets the Collapsed Dropdown Button Selected Backcolor + + + + + Gets the Collapsed Dropdown Button Hover Backcolor + + + + + Gets the Collapsed Dropdown Button ForeColor + + + + + 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 + + + + + Gets the TootTip backcolor + + + + + Gets the TootTip backcolor + + + + + 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. + + + + + Gets or sets a value indicating whether background color of GroupBarItem is changed or not. + + + + + 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. + + + + 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. + + + + + 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. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + + + Holds the ImageListAdv + + + + + Gets the image based on the current DPI + + Image Index + Returns image based on the current DPI + + + + 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. + + + + + Collections images based on DPI + + + + + 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 the DPI based 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. + + + + + Sets the value of Desktop Window Manager (DWM) non-client rendering attributes for a window. + + The handle to the window for which the attribute value is to be set. + A flag describing which value to set, specified as a value of the DWMWINDOWATTRIBUTE enumeration. + This parameter specifies which attribute to set, and the pvAttribute parameter points to an object containing the attribute value. + A pointer to an object containing the attribute value to set. The type of the value set depends on the value of the dwAttribute parameter. + The DWMWINDOWATTRIBUTE enumeration topic indicates, in the row for each flag, what type of value you should pass a pointer to in the pvAttribute parameter. + The size, in bytes, of the attribute value being set via the pvAttribute parameter. + The type of the value set, and therefore its size in bytes, depends on the value of the dwAttribute parameter. + If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error + + + + 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. + + + + + Flags used by the DwmSetWindowAttribute function to specify the rounded corner preference for a window. + + + + + Options used by the DwmGetWindowAttribute and DwmSetWindowAttribute functions. + + + + + 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. + + + + + Specifies the style with which some controls will appear and behave. + + + + + Classic appearance. + + + + + Office2016 Colorful + + + + + Office2016 White + + + + + Office2016 Black + + + + + Office2016 DarkGray + + + + + Represents the that lays out the children along the borders and + at the center, very similar to the Windows Form's control docking behavior. + + + + This 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 + 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 + . + + + When using , there can be only a single control that + can be docked to a border. + + + When using 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 . + + + + + Here is some sample code that tells you how to initialize a manager. + + // Binding a control to the 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); + + Also, take a look at the project in Tools/Samples/Layout Manager Package/ 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 class and sets its defaults. + + + + + Creates an instance of the class and sets its . + + + + + Creates an instance of the class and sets its Control. + + + + + Creates an instance of the class and sets its Control, + and . + + + + + Sets the for a child component. + + The child component whose position is to be set. + The . + + + + Removes a child component from the layout list. + + + The childcontrol which is need to remove from layout + + + + Adds a child component to the layout list with the specified constraints. + + + The childcontrol which is added to the layout + The + + + + 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. + + + The control whose perferred size is to be retrieved + Returns the PreferredSize of the control + + + + + + + Retrieves the minimum size associated with the specified control. + + + The control whose minimum size is to be retrieved + Returns the MinimumSize of the 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 right edge is docked to the right edge of its containing control. + + + + + The control's left edge is docked to the left edge of its containing control. + + + + + The control is resized to fit the area between the controls laid out in the other borders. + + + + + Convert the card names into String type. + + + + + Gets the Cards name as + + + + + + + Specifies how the children will be laid out. + + + In Default mode, the 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 that lays out the children as "Cards". + + + Each child component is a "Card" with a name attached to it. + The 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 class documentation for more information on + in general. + + + Here is some sample code that tells you how to initialize a manager: + + // Binding a Control to the 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(); + + Also, take a look at the project in Tools/Samples/Quick Start/ for an example. + + + + + Indicates the Base Name of the card. + + + + + Overloaded. Creates a new instance of the class and sets its defaults. + + + + + Creates a new instance of the class and adds itself to the specified container. + + The logical parent into which to add itself. + This constructor is used by the design-time to add a component to the form's + field so that it gets Disposed when the form gets Disposed. + Note that this is not the same as the 's container control. + + + + Creates a new instance of the class and sets its . + + + + + 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 .Default. + + + + Overridden. See . + + + + + + + Generates a new unique name for a card that could be added to this . + + A card name unique within this . + + + + Overridden. See . + + + + + + Overridden. See . + + The child control which is added to the Layout + The Card Name as string + + + + Overridden. See . + + The child control which is need to remove from layout + + + + 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 . + + The current . Default is .Default. + + + + Gets or sets the selected control. + + + + + 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 method before applying new bounds. + + + + + Represents the method that will handle the event of + the . + + 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. + + + 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 object (that is not empty). + + The default object. + + + + Overloaded. Creates a new instance of the class and sets its defaults. + + + + + Creates a new instance of the 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 object. + + The cloned object. + + + + Overridden. See + + + + + + Check the object equals with current object and properties. + True, If the object equals with . Otherwise false. Default is false. + + The object + bool + + + + 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 .Justify. + + + + Specifies the mode in which the child should be laid out within a column. + + A value. Default is .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 or sets the structure with its properties left uninitialized. + + + + + Convert the properties values into . + + + + + Overridden. See + + + + + Binds the assembly name and type to the assembly. + + + + + Binds the assembly type to the same type in a different assembly. + + + + + Overridden. See + + + + + Overridden. See + + + + + Overridden. See + + + + + 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 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 's changes, it automatically assigns default to the + children, for convenience sake, so that you don't + have to call for each child component. + Take a look at the class documentation for more information on + in general. + + + The following example shows you how to initialize a manager with a container control: + + // Binding a control to the 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 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 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; + + Also take a look at the project in Tools/Samples/Quick Start/ for an example. + + + + + Overloaded. Creates a new instance of the component and sets its defaults. + + + + + Creates a new instance of the class and adds itself to the specified container. + + The logical 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 's container control. + + + + Creates a new instance of the component and sets its . + + The logical parent into which to add itself. + + + + + + + + + + + + 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 . + + The control to associate the preferred size with. + The preferred size of the control. + + + + Overridden. See . + + + + + Overridden. See . + + The control which PreferredSize to be reset. + + + + Indicates whether to serialize the PreferredSize property. + + + + + Overridden. See . + + The Control which MinimumSize to be reset. + + + + Indicates whether to serialize the MinimumSize property. + + + + + Overridden. See . + + An EventArgs that contains the event data. + + + + + + + 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 . + + + + + Arrange the layout components horizontally in the layout container. + + + + + Arranged the layout components vertically in the layout container. + + + + + Overridden. See . + + + + + Gets or 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 bottom justified. + FlowAlignment.ChildConstraints will make the manager refer to the child's constraints. + + + + + Gets or 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 or 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 or 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. + + + + + Create the labeledcontrol with Autolabel which is presented in layout container. + + + + + Create the new instance for add added its controls bounds. + + Childcontrol's bounds values for the layout. + + + + Create the new instance for add added its controls bounds. + + AutoLabel's bounds values for the layout + Position for AutoLable + Horizontal space between the left of AutoLable and its labledcontrol. + Vertical space between the top ofthe AutoLable andIts labledcontrol. + Childcontrol's bounds values for the layout. + + + + Suspends updating the until is called. + + + + + Resumes updating the after a call. + + + + + Gets or sets the Location of the childcomponent. + + + + + Gets or sets the height of the childcomponent. + + + + + Gets or sets the width of the childcomponent. + + + + + InsetsCoverter sets the layout components left,right,top and bottom margins. + + + + + Overridden. See . + + + + + Overridden. See . + + + + + Overridden. See . + + + + + Overridden. See . + + + + + 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. + + + + Overriden.See . + + + + + Overriden.See . + + + + + Overriden. See . + + + + + 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 or sets the insets to the left of the component. + + + + + Gets or sets the insets to the right of the component. + + + + + Gets or sets the insets to the top of the component. + + + + + Gets or sets the insets to the bottom of the component. + + + + + Serialize and Deserialize the objects. + + + + + Convert the properties values into . + + + + + Binds the assembly name and type to the assembly. + + + + + Binds the assembly type to the same type in a different assembly. + + + + + Overridden. See . + + + + + Overridden. See . + + + + + Overridden. See . + + + + + Overridden. See . + + + + + 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. + + + 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 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 object that is also empty. + + The default object. + + + + Overloaded. Creates a new instance of the class and sets its defaults. + + + + + Creates a new instance of the class + with the specified values. + + Grid column beggining position. + Grid row beggining position. + The number of columns this component should span in the virtual grid. + The number of rows this component should span in the virtual grid. + The weight of the component to obtain the extra horizontal space. + The weight of the component to obtain the extra vertical space. + The justification of a component within its available layout bounds. + The filltype to resize the components in layout bounds. + Adding the extra space arround the components preferred bounds. + The amount of pixels to add to the component size while calculating the overall width. + The amount of pixels to add to the component size while calculating the overall height. + Represents the structure with its properties left uninitialized. + + + + Creates an exact copy of this object. + + The cloned object. + + + + Overridden. See + + + + + Overridden. See . + + The 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 or 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 or 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(.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 or 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 (.Remainder). + + When value is zero, the component will be the last one in its row. + + + + + Gets or 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 (.Remainder). + + When value is zero, the component will be the last one in its column. + + + + + Gets or 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 or 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 or 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 or 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 or 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 or 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 or 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 or sets the structure with its properties left uninitialized. + + + + + Raises when properties changed. + + + + + Initialize the layout bounds. + + + + + Represents the that performs . + + + The 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 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 manager with a container control and its children: + + // Binding a control to the 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; + + Also take a look at the project in Tools/Samples/Quick Start/ 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 class and sets its defaults. + + + + + Creates a new instance of the 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 's ContainerControl. + + + + Creates a new instance of the class and sets its ContainerControl. + + The logical ContainerControl parent into which to add itself. + + + + + + + + + + Overridden. See . + + The control which PreferredSize to be reset. + + + + Indicates whether to serialize the PreferredSize property. + + + + + Overridden. See . + + The Control which MinimumSize to be reset. + + + + Indicates whether to serialize the MinimumSize property. + + + + + 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 . + + The control to associate the preferred size with. + The preferred size of the control. + + + + 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 associated with this component. + If the second argument is not a , an exception will be thrown. + + + + + + + Overridden. See . + + The control to be removed. + + + + + Overridden. See . + + Reutrns the preferred size of the Container control. + + + + Overridden. See . + + Returns the MinimumSize of the ContainerControl. + + + + Overridden. See . + + + + + Overridden. See . + + + + + Represents the that lays out the child components as a + grid consisting of rows and columns. + + + The 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 and properties. + You can remove or add child controls through the SetParticipateInLayout + method. When the '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 during layout, however the and + methods do refer to the above settings to determine the sizes. + Take a look at the class documentation for more information on + in general. + + + The following example shows you how to initialize a manager with a container control: + + // Binding a Control to the 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 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; + + Also take a look at the project in Tools/Samples/Quick Start/ for an example. + + + + + Overloaded. Creates an instance of the class and sets its defaults. + + + + + Creates a new instance of the class and adds itself to the specified container. + + The logical 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 's ContainerControl. + + + + Creates an instance of the class and sets its ContainerControl. + + The logical parent into which to add itself. + + + + Creates an instance of the class and sets its ContainerControl, + rows and columns. + + The logical parent into which to add itself. + Number of rows to be displayed in the + Number of columns to be displayed in the + + + + Creates an instance of the class and sets its ContainerControl, + rows, columns, horizontal gap and vertical gap. + + The logical parent into which to add itself. + Number of rows to be displayed in the . + Number of columns to be displayed in the . + The horizontal space between the child controls. + The vertical space between the child controls. + + + + 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 . + + + + + + Retrieves the preferred size associated with the specified control. + + + + + + Retrieves the minimum size associated with the specified control. + + + + + + + + + Overridden. See . + + Returns the preferred layout size. + + + + Overridden. See . + + + + + Overridden. See . + + + + + Calculate the rows count when column count is zero. + + Number of columns + Number of rows + Number of controls + + + + Calculate the columns count when row count is zero. + + Number of columns + Number of rows + Number of controls + + + + Gets / sets the number of rows to be displayed in the . + + 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 to be displayed in the . + + 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; + } + } + } + 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); + } + + + + + + 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 + + + + + Gets the localized text. + + Current UI culture. + String that has to be localized. + Control name. + The localized string + + + + Gets the localized text. + + String that has to be localized. + The localized string + + + + Gets the localized text. + + String that has to be localized. + Control name. + The localized string + + + + Gets the localized text. + + String that has to be localized. + Control name. + The localized string + + + + Gets the localized text. + + Current UI culture. + String that has to be localized. + The localized string + + + + Gets the localized object. + + Current UI culture. + String that has to be localized. + The localized object + + + + Gets the localized object. + + String that has to be localized. + The localized object + + + + Gets the localized boolean object. + + Current UI culture. + String that has to be localized. + The localized boolean object + + + + Gets the localized boolean object. + + String that has to be localized. + The localized boolean object + + + + Gets the localized byte object. + + Current UI culture. + String that has to be localized. + The localized byte object + + + + Gets the localized byte object. + + String that has to be localized. + The localized byte object + + + + Gets the localized char object. + + Current UI culture. + String that has to be localized. + The localized char object + + + + Gets the localized char object. + + String that has to be localized. + The localized char object + + + + Gets the localized double object. + + Current UI culture. + String that has to be localized. + The localized double object + + + + Gets the localized double object. + + String that has to be localized. + The localized double object + + + + Gets the localized float object. + + Current UI culture. + String that has to be localized. + The localized float object + + + + Gets the localized float object. + + String that has to be localized. + The localized float object + + + + Gets the localized int object. + + String that has to be localized. + The localized int object + + + + Gets the localized int object. + + Current UI culture. + String that has to be localized. + The localized int object + + + + Gets the localized long object. + + String that has to be localized. + The localized long object + + + + Gets the localized long object. + + Current UI culture. + String that has to be localized. + The localized long object + + + + Gets the localized short object. + + Current UI culture. + String that has to be localized. + The localized short object + + + + Gets the localized short object. + + String that has to be localized. + The localized short object + + + + 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); + + + + + + 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. + + + + Sets the Mask for the MaskedEditBox with the given mask string + + Masked String + + + + 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. + + + + + Helps to apply the ControlName settings in control. + + Name of the Control. + + + + 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. + + + + Gets or sets a value indicating whether the control should enable its Accessibility support. + + + + + 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 + + + + + Normal font weight + + + + + Maintains the value indicating whether the caption height should retain or not. + + + + + Constructor for Office2007form with empty arguments + + + + + Variable to Gets or Set Value to Drop Shadow to the form. + + + + + Gets or sets the managed color table value. + + + + + Indicates whether to enable dpiaware or not. + + + + + Value to store the title padding. + + + + + Indicates whether to allow rounded corners or not. + + + + + 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 + + + + + + Updates the title padding. + + Updates to retain the title bar height in maximized state. + + + + applies the scaling + + + + + + Method to determine whether the operating system is Windows 11. + + true if the operating system is Windows 11; otherwise false. + + + + Apply rounded corners for the form. + + The handle to the window + Corner style for the round corners + + + + Gets the closebox + + + + + + + To define whether the customization needs to be applied + + + + + Raises the System.Windows.Forms.Form.Shown event. + + Event args that contains the event data + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 a value indicating whether dpi aware should be enabled or not. + + + + + Gets or Sets whether to enable Drop Shadow to the Office2007form + + + + + Gets or sets a value indicating whether the rounded corners are enabled. + + The default value is false. + This option is only in effect with Windows 11. + + + + 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 Office2007 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 Office2007 + + + + + + + + + + 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 indicating whether the current operating system is windows7 or not. + + + + + 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 height of the before the detail view is collapsed. + + + + + Holds the height of the before the detail view expand. + + + + + Holds the Button height + + + + + + Custom Button Collection + + + + + + Variable which indicates whether custom buttons are already initialized or not + + + + + detailButtonSpace control using for increase the space in flow layout panel inbetween the detail button and message box buttons in while resizing. + + + + + Method to set same width for all Buttons in the MessageBoxAdv + + Collection of buttons + Greater width + + + + + Method to calculate the height of the panel of MessageBoxAdv + + Panel height + + + + 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. + + + + + Validate the messagebox height in while initialize the control + + + + + Handle the size of the message box while closing and expanding the details view. + + + + + 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. + + + + 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. + + + Represents the class to apply the theme for control. + + + + + + + + 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. + + + + + + Raises the System.Windows.Forms.Control.EnabledChanged event. + + An System.EventArgs that contains the event data. + + + + + + + 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. + + + + + It contains the value of the property. + + + + + Helps to apply the ThemeName settings in control + + ThemeName + + + + Helps to override the ThemeName property settings + + ThemeName + + + + Helps to override the OnGotFocus events + + An System.EventArgs that contains the event data. + + + + Helps to draw text border of control + + + + + 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 or sets a value indicating whether the control should enable its Accessibility support. + + + + + 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. + + + + Represents a class to define the style for the control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for the control. + + + + + Gets or sets the value used to draw the fore color of the + control when text value is negative. + + The value is used to fill the fore color of the textbox. + + + + Gets or sets the value used to draw the fore color of the + control when text value is zero. + + The value is used to fill the fore color of the textbox. + + + + Gets or sets the value used to draw the back color of the + control when text value is read only. + + The value is used to fill the back color of the textbox. + + + + Implements a class that provide the identity information of + using . + + + + + Maintains the PercentTextBox for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + 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. + + + + + 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). + + + + + Draw the arrows in VisualStyle based theme. + 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 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. + + + + + Gets or sets the value for the control. + + + + + 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 + + + + + Return the bool value if BaseThemeName is Office2019Colorful or HighContrastBlack. + + + + + + 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. + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Gets the active theme of control. + + + + + + Raises the event when theme name changed. + + The sender value. + A 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. + + + + + Gets or sets the BaseTheme name of the theme + + + + + Gets or sets a value indicating whether a theme settings + can be applied to the control. + + The default value is true. + + This property must be initialized before applying the VisualTheme /> + + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets the name of the control. + + + + + Gets or sets the theme name of the control. + + + The default value is null. + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Occurs when theme name of the control 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. + + + + Provides the control name. + + + + + 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. + + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + 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. + + + + + + + + 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. + + + + The style info of the scrollbar. + + + + + 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. + + + + + Gets or sets the with settings that control the appearance of the scroll bar. + + + + + 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. + + + + + + + + + + + + + + + + + It contains the value of the property. + + + + + Helps to apply the ControlName settings in control + + ThemeName + + + + Helps to apply the CanOverriderStyle settings in control + + CanOverriderStyle + + + + Helps to apply the CanApplyTheme settings in control + + CanApplyTheme + + + + Helps to apply the ThemeName settings in control + + ThemeName + + + + Gets / sets ScrollButton highlighted state. + + + + + Gets / sets for correctly GradientBrush creation, so that background + is same as Parent's background. + + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Represents the class to define the style of control. + + + + + Maintains the default style of the . + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Provide the default style of the . + + Default style object. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default ScrollButtonsStyleInfo value. + + + + + + + + + + + + + + + + + + + Represents the class holds the plain data for a style object excluding identity information. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Maintains the static data. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Populates the SerializationInfo store with the name, type, and value of each piece of information it wants to serialize + Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. + + + + Overridden to get the static data source. + + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the ScrollButtons for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + 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 + + + + + Specifies the visual style for the ScrollerFrame. + + + + + 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. + + + + Occurs when the theme name is changed. + + The theme name. + + + + Overridden to gets the control name of the scroll frame. + + The control name. + Returns the name of the control. + + + + 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 or sets a style of the ScrollFrame components. + + + + + 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. + + + + 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. + + + + + 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; + } + + + + Serializing using Singleton: + + // To Save + AppStateSerializer.GetSingleton().SerializeObject("MyLabel", mydata, true); + // To Load + object loadedObj = AppStateSerializer.GetSingleton().DeserializeObject("MyLabel"); + + + + + + + Gets or sets the value to serialize or deserialize the properties based on either current UI culture or invariant culture. + Default value is null. + + + This is applicable only for Grid Control. + + + + + 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); + } + + + + + + + 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(); + } + + + 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. + + + + + Draw the AddNewSymbol and Ellipsis in VisualStyle based theme. + + + + + Gets/Sets whether AddNewButton needs to drawn in TabBar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Specifies office 2007 color scheme. + + + + + Style of the control. + + + + + Color table for Office2007 visual style. + + + + + Default splitter value. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Draw splitterBar in VisualStyle based theme. + + + + + Improve the Tabbarsplittersontrol appearance to draw the dotted icon in splitterbar. + + To handle the graphics objects. + Position to draw the dottedrectangle. + Vertical splitter bar position value in percentage. + Horizontal splitter bar position value in percentage. + + + + Draw the Dotted icon on Horizontal splitter button. + + To handle the graphic objects. + Position of the dotted rectangle. + Dotted rectangle fore color. + + + + Draw the Dotted icon on Vertical splitter button. + + To handle the graphic objects. + Position of the dotted rectangle. + Dotted rectangle fore color. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Gets or sets the visual style of the tabBarSplitterControl. + + + + + Gets or sets the style for Splitter. + + + + + 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. + + + + + 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. + + + + + + + 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. + + + + + + + + Clears the style objects from the storage. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + Get or Set of Skin Manager Interface + + + + + Serializing the ChangeAllText property + + + + + + Serializing the IsSpreadsheetLikeSpellChecker property + + + + + + Serializing the CloseReason property + + + + + + Determines whether VisualStyle has been modified and its contents should be serialized at design-time. + + True if VisualStyle were changed; False otherwise. + + + + Resets the VisualStyle back to its default value. + + + + + Determines whether MetroColor has been modified and its contents should be serialized at design-time. + + True if MetroColor were changed; False otherwise. + + + + Resets the MetroColor back to its default value. + + + + + 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 or sets a value indicating whether managed color is alive or not. + + + + + 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. + + + + + + + + + + Gets or sets a value indicating whether managed color is alive or not. + + + + + 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. + + + + + Gets the current theme name. + + + + + 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. + + + + Creates a new instance of class. + + The current theme name. + + + + 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. + + + + + Gets the current theme name. + + + + + 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. + + + + + Gets the current theme name. + + + + + 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. + + + + + Gets the current theme name. + + + + + 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. + + + + + Gets the current theme name. + + + + + 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. + + + + + Gets the current theme name. + + + + + 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. + + + + + Gets the current theme name. + + + + + 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. + + + + + Gets the current theme name. + + + + + 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)); + + + + + + 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. + + + + + 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. + + + + + + + Called while form is deactivated + + + + + + + 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. + + + + + Gets or sets the value for the control. + + + + + + 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 selection on mouse move is on. + + + + + Gets or sets a value indicating to show the Gray 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. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Gets the active theme name of the CheckBoxAdv control. + + Returns the active theme name. + + + + Raises the event when themename changed. + + The sender value. + A contains the event data. + + + + Updates the Style renderers of EditableList Control based on applied Theme. + + + + + Draws the ListBox and Button colors + + + + + + Draws the Background Color using renderer file + + + + + + + Draws the text. + + The instance containing the event data. + + + + 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. + + + + + Gets or sets a value indicating whether the control should enable its Accessibility support. + + + + + 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. + + + + + Occurs when theme name of the has changed. + + + + + Gets or sets the theme name of the EditableList control. + + + + + Gets or sets a value indicating whether a theme style + has been applied to the control. + + The default value is true. + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets or sets the BaseTheme name of the theme + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Gets the name of the control. + + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + 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. + + + + + + + + + + + Overrides the font property. + + + + + Gets/Sets whether to draw focus when item is selected. + + + + + Represents the class to define the style of ListItems. + + + + + Maintains the default style of the . + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default value. + + + + + Gets or sets the item background color of the ListItem. + + + + + Gets or sets the pressed item background color of the ListItem. + + + + + Gets or sets the hover item background color of the ListItem. + + + + + Gets or sets the disabled item background color of the ListItem. + + + + + Gets or sets the item forecolor of the ListItem. + + + + + Gets or sets the pressed item forecolor of the ListItem. + + + + + Gets or sets the hover item forecolor of the ListItem. + + + + + Gets or sets the disabled item forecolor of the ListItem. + + + + + Represents the class holds the plain data for a style object excluding identity information. + + + + + Provides information about the control's ItemBackColor property. + + + + + Provides information about the control's PressedItemBackColor property. + + + + + Provides information about the control's HoverItemBackColor property. + + + + + Provides information about the control's DisabledItemBackColor property. + + + + + Provides information about the control's ItemForeColor property. + + + + + Provides information about the PressedItemForeColor property. + + + + + Provides information about the control's HoverItemForeColor property. + + + + + Provides information about the control's DisabledItemForeColor property. + + + + + Maintains the static data. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Populates the SerializationInfo store with the name, type, and value of each piece of information it wants to serialize + Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. + + + + Overridden to get the static data source. + + + + + Implements the class that provide the identity information of + using . + + + + + Initializes a new instance of the class. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + 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 + + + + + Represents the class to define the style of control. + + + + + Maintains the default style of the . + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default value. + + + + + Gets or sets the border color of the textbox. + + + + + Gets or sets the background color of the . + + + + + Gets or sets style for ListItems of the control. + + + + + Gets or sets the disabled background color of the . + + + + + Gets or sets the button background color of the . + + + + + Gets or sets the button forecolor of the . + + + + + Gets or sets the button border color of the . + + + + + Gets or sets the value used to draw the button border of the . + + + + + Gets or sets the value used to draw the pressed button border of the . + + + + + Gets or sets the pressed button forecolor of the . + + + + + Gets or sets the hover button forecolor of the . + + + + + Represents the class holds the plain data for a style object excluding identity information. + + + + + Provides information about the BorderColor property. + + + + + Provides information about the BackColor property. + + + + + Provides information about the ButtonBackColor property. + + + + + Provides information about the ButtonForeColor property. + + + + + Provides information about the property. + + + + + Provides information about the DisabledBackColor property. + + + + + Provides information about the ButtonBorderColor property. + + + + + Provides information about the ButtonBorderThickness property. + + + + + Provides information about the PressedButtonBorderThickness property. + + + + + Provides information about the SelectedButtonForeColor property. + + + + + Provides information about the HoverButtonForeColor property. + + + + + Maintains the static data. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Populates the SerializationInfo store with the name, type, and value of each piece of information it wants to serialize + Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. + + + + Overridden to get the static data source. + + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the EditableList for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + 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"; + } + } + + + + + 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. + + + + + 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. + + + + + + + Draws the AddNewSymbol in VisualStyle based theme. + + + + + 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 the correcsponding render for Office2016 themes. + + + + + + + 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 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. + + + + + + + + + + + + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Provides the control name. + + + + + Apply the theme settings. + + Current theme name + + + + 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 a value indicating whether the control should enable its Accessibility support. + + + + + 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. + + + + + Gets or sets the theme name of the control. + + + The default value is null. + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + + CurrencyEdit + + + + + Constructor + + The RibbonControlAdv instance. + + + + Retrieves the child object at the specified screen coordinates. + + The horizontal screen coordinate. + The vertical screen coordinate. + An TabBarSplitterAccessibilityObject 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 state for the . + + + + + Gets the description of the TabBarSplitterAccessibilityObject + + A string describing the TabBarSplitterAccessibilityObject. + + + + 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. + + + + Implements the methods to draw the navigate buttons in RecordNavigationControl. + + + + + Initializes the instance for class. + + ThemeStyle + + + + Represents the class to define the style for arrow buttons in . + + + + + Represents the class to define the style for navigate buttons. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default values of instance. + + + + + Gets or sets the fore color of the arrow in normal state. + + + + + Gets or sets the fore color of the arrow in hover state. + + + + + Gets or sets the fore color of the arrow in pushed state. + + + + + Gets or sets the fore color of the arrow in disabled state. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default values of instance. + + + + + Gets or sets the background color of the arrow in normal state. + + + + + Gets or sets the background color of the arrow in hover state. + + + + + Gets or sets the background color of the arrow in pushed state. + + + + + Represents the class to define the style for . + + + + + Represents the class to define the style for . + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines whether HorizontalScrollBar has been modified and its contents should be serialized at design-time. + + True if contents were changed; False otherwise. + + + + Determines whether VerticalScrollBar has been modified and its contents should be serialized at design-time. + + True if contents were changed; False otherwise. + + + + Gets the default style value for the control. + + + + + Gets or sets the for the horizontal scrollbar of the scroll control. + + + + + Gets or sets the for the vertical scrollbar of the scroll control. + + + + + Gets or sets the value for styles. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for the control. + + + + + Gets or sets the for tabs. + + + + + Gets or sets the font style of RecordNavigationBar. + + + + + Gets or sets the back color of RecordNavigationBar. + + + + + Gets or sets the fore color of RecordNavigationBar. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Maintains the GridControl for create the identity. + + + + + Initializes a new instance of the class. + + + instance to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Maintains the GridControl for create the identity. + + + + + Initializes a new instance of the class. + + + instance to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Represents the class to define the style for control. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Overridden to create a product-specific identity object for the sub object. + + StyleInfoProperty descriptor for this sub object. + Identity for the sub object. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default values of instance. + + + + + Gets or sets the cell background color. + + + + + Gets or sets the splitter forecolor. + + + + + Provides information about the property. + + + + + Provide the information about the spitter forecolor property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Initializes a new instance of the class. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Initializes a new instance of the class. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents the class to define the style for . + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default style value for the control. + + + + + Gets or sets the for tabs. + + + + + Gets or sets the for tabs. + + + + + Gets or sets the back color of the tab bar. + + + + + Provides information about the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Maintains the GridControl for create the identity. + + + + + Initializes a new instance of the class. + + + instance to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Represents the class to define the style for control. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Overridden to create a product-specific identity object for the sub object. + + StyleInfoProperty descriptor for this sub object. + Identity for the sub object. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the default values of instance. + + + + + Gets or sets the font style of the active tab. + + + + + Gets or sets the font style of the active tab. + + + + + Gets or sets the fore color of the DottedIcon. + + + + + Gets or sets the back color of the tab in normal state. + + + + + Gets or sets the back color of the tab in pushed state. + + + + + Gets or sets the border color of the tab. + + + + + Gets or sets the bottom line color of the active tab. + + + + + Gets or sets the seperator line color of the tabs. + + + + + Gets or sets the fore color of the tab in normal state. + + + + + Gets or sets the fore color of the tab in hover state. + + + + + Gets or sets the fore color of the tab in pushed state. + + + + + Gets or sets the back color of the AddTab button. + + + + + Gets or sets the back color of the tab in normal state. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Initializes a new instance of the class. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Constructor + + + + + + Override method to draw the TabPage border. + + The Graphics object. + + + + Override + + + + + + + + + Gets the color of PushedTabBackColor + + + + + Gets the border color of PushedTab + + + + + Gets the HoverTabFore Color + + + + + Gets the PushedTabFore Color + + + + + Gets the AddTabButtonHoverColor + + + + + Gets the DottedIconColor + + + + + 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/DOCGEN/obj/Debug/DOCGEN.csproj.FileListAbsolute.txt b/DOCGEN/obj/Debug/DOCGEN.csproj.FileListAbsolute.txt index 648ab560..114bec8f 100644 --- a/DOCGEN/obj/Debug/DOCGEN.csproj.FileListAbsolute.txt +++ b/DOCGEN/obj/Debug/DOCGEN.csproj.FileListAbsolute.txt @@ -151,3 +151,7 @@ E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\bin\Debug\BarcodeLibVBDatamatrix.xml E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\bin\Debug\VBOffice.dll E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\bin\Debug\VBOffice.pdb E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\bin\Debug\VBOffice.xml +E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\bin\Debug\Syncfusion.Chart.Base.dll +E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\bin\Debug\Syncfusion.Shared.Base.dll +E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\bin\Debug\Syncfusion.Chart.Base.xml +E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\bin\Debug\Syncfusion.Shared.Base.xml diff --git a/DOCGEN/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/DOCGEN/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 90e3c948..5ebca61e 100644 Binary files a/DOCGEN/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/DOCGEN/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/DOCGEN/obj/Debug/DocGen.csproj.AssemblyReference.cache b/DOCGEN/obj/Debug/DocGen.csproj.AssemblyReference.cache index a966b33a..198f1dfc 100644 Binary files a/DOCGEN/obj/Debug/DocGen.csproj.AssemblyReference.cache and b/DOCGEN/obj/Debug/DocGen.csproj.AssemblyReference.cache differ diff --git a/DOCGEN/obj/Debug/DocGen.csproj.CoreCompileInputs.cache b/DOCGEN/obj/Debug/DocGen.csproj.CoreCompileInputs.cache index 39900709..bc04d6ec 100644 --- a/DOCGEN/obj/Debug/DocGen.csproj.CoreCompileInputs.cache +++ b/DOCGEN/obj/Debug/DocGen.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -64d91d76f5c9148565f8e8a8e85a25d3cd803ce356667c8a8e39a9e5b7a30928 +2683c48cbc400bc612c49122442eb254f7416d0852cd917397789686b7b36322 diff --git a/Database/bin/Debug/Database.dll b/Database/bin/Debug/Database.dll index fef1f8bf..bf2dd661 100644 Binary files a/Database/bin/Debug/Database.dll and b/Database/bin/Debug/Database.dll differ diff --git a/Database/bin/Debug/Database.pdb b/Database/bin/Debug/Database.pdb index 5c2d9153..eb46c762 100644 Binary files a/Database/bin/Debug/Database.pdb and b/Database/bin/Debug/Database.pdb differ diff --git a/Database/db.cs b/Database/db.cs index d642b2cf..d9e30cc1 100644 --- a/Database/db.cs +++ b/Database/db.cs @@ -1228,7 +1228,7 @@ namespace Database } } - public void insert_note(int ersteller, string gbetreff, string note, string dokumentid) + public int insert_note(int ersteller, string gbetreff, string note, string dokumentid) { Get_Tabledata_for_Update("Select top 1 * from notizen where notiznr=-1", false, true); DataRow dr = daten.Tables[0].NewRow(); @@ -1243,6 +1243,8 @@ namespace Database dr["ersteller"] = ersteller; daten.Tables[0].Rows.Add(dr); Update_Data(); + Get_Tabledata("select top 1 * from notizen where dokumentid='" + dokumentid + "' order by notiznr desc", false, true); + return Convert.ToInt32(dsdaten.Tables[0].Rows[0][0]); } public void Insert_Vorlagenfeld(int vorlagenfeldregelnr, int dokumenttypnr, int mitarbeiternr) @@ -2153,7 +2155,7 @@ namespace Database public bool dokument_reaktivieren(string dokumentid, string mitarbeiternr) { clear_parameter(); - add_parameter("@fnkt", "8"); + add_parameter("@fnkt", "11"); add_parameter("@dokumentid", dokumentid); add_parameter("@value1", mitarbeiternr); Get_Tabledata("sp_edoka_onbase", true, false); diff --git a/Database/obj/Debug/Database.dll b/Database/obj/Debug/Database.dll index fef1f8bf..bf2dd661 100644 Binary files a/Database/obj/Debug/Database.dll and b/Database/obj/Debug/Database.dll differ diff --git a/Database/obj/Debug/Database.pdb b/Database/obj/Debug/Database.pdb index 5c2d9153..eb46c762 100644 Binary files a/Database/obj/Debug/Database.pdb and b/Database/obj/Debug/Database.pdb differ diff --git a/DocIO_Demo_SHU/obj/Debug/DocIO_Demo_SHU.csproj.AssemblyReference.cache b/DocIO_Demo_SHU/obj/Debug/DocIO_Demo_SHU.csproj.AssemblyReference.cache index 8788f7d6..b9b342d3 100644 Binary files a/DocIO_Demo_SHU/obj/Debug/DocIO_Demo_SHU.csproj.AssemblyReference.cache and b/DocIO_Demo_SHU/obj/Debug/DocIO_Demo_SHU.csproj.AssemblyReference.cache differ diff --git a/Excel_Test/obj/Debug/Excel_Test.csproj.AssemblyReference.cache b/Excel_Test/obj/Debug/Excel_Test.csproj.AssemblyReference.cache index eace91bf..5e1a3be3 100644 Binary files a/Excel_Test/obj/Debug/Excel_Test.csproj.AssemblyReference.cache and b/Excel_Test/obj/Debug/Excel_Test.csproj.AssemblyReference.cache differ diff --git a/NativVorlagen/obj/Debug/NativVorlagen.csproj.AssemblyReference.cache b/NativVorlagen/obj/Debug/NativVorlagen.csproj.AssemblyReference.cache index d5dd3280..81d31a95 100644 Binary files a/NativVorlagen/obj/Debug/NativVorlagen.csproj.AssemblyReference.cache and b/NativVorlagen/obj/Debug/NativVorlagen.csproj.AssemblyReference.cache differ diff --git a/OnDocOffice/bin/Debug/Database.dll b/OnDocOffice/bin/Debug/Database.dll index fef1f8bf..bf2dd661 100644 Binary files a/OnDocOffice/bin/Debug/Database.dll and b/OnDocOffice/bin/Debug/Database.dll differ diff --git a/OnDocOffice/bin/Debug/Database.pdb b/OnDocOffice/bin/Debug/Database.pdb index 5c2d9153..eb46c762 100644 Binary files a/OnDocOffice/bin/Debug/Database.pdb and b/OnDocOffice/bin/Debug/Database.pdb differ diff --git a/OnDocOffice/bin/Debug/OnDocOffice.dll b/OnDocOffice/bin/Debug/OnDocOffice.dll index 90e447a0..ebafee9e 100644 Binary files a/OnDocOffice/bin/Debug/OnDocOffice.dll and b/OnDocOffice/bin/Debug/OnDocOffice.dll differ diff --git a/OnDocOffice/bin/Debug/OnDocOffice.pdb b/OnDocOffice/bin/Debug/OnDocOffice.pdb index c4b3995d..d0c62156 100644 Binary files a/OnDocOffice/bin/Debug/OnDocOffice.pdb and b/OnDocOffice/bin/Debug/OnDocOffice.pdb differ diff --git a/OnDocOffice/clsoffice.cs b/OnDocOffice/clsoffice.cs index d19c9cf2..2450d6b7 100644 --- a/OnDocOffice/clsoffice.cs +++ b/OnDocOffice/clsoffice.cs @@ -25,6 +25,8 @@ using System.Net; using Microsoft.VisualBasic.CompilerServices; using Database; using System.Runtime.InteropServices.ComTypes; +using Syncfusion.CompoundFile.DocIO; +using Helper; namespace OnDocOffice @@ -1654,28 +1656,22 @@ namespace OnDocOffice public void insert_unterschrift(string bookmark, string imagepath) { - Logging.Logging.Debug("Insert Unterschrift :"+ bookmark, "OnDoc", imagepath); - if (imagepath == "") return; - object missing = Type.Missing; - Microsoft.Office.Interop.Word.Range myRange = docWord.Bookmarks[bookmark].Range; - Microsoft.Office.Interop.Word.Bookmark bm = docWord.Bookmarks[bookmark]; - + Microsoft.Office.Interop.Word.Range myRange = docWord.Bookmarks[bookmark].Range; float vertical = bm.Range.Information[Microsoft.Office.Interop.Word.WdInformation.wdVerticalPositionRelativeToPage]; float horizontal = bm.Range.Information[Microsoft.Office.Interop.Word.WdInformation.wdHorizontalPositionRelativeToPage]; - vertical = vertical - 50; - - docWord.Bookmarks[bookmark].Select(); - - - - Microsoft.Office.Interop.Word.Shape myshape1 = docWord.Shapes.AddShape(1, horizontal, vertical, 120, 50); - myshape1.Fill.UserPicture(imagepath); - //myshape1.Line.Weight = -2; - myshape1.Name = "Unterschrift" + "_" + bookmark; - myshape1.Line.Visible = Microsoft.Office.Core.MsoTriState.msoFalse; - Logging.Logging.Debug("Shapename", "OnDoc", myshape1.Name); + Microsoft.Office.Interop.Word.Shape myShape = docWord.Shapes.AddPicture(@"E:\Software-Projekte\OnDoc\Unterschriften\1.jpg", false, true, 0, 0, 120, 50, myRange); + myShape.WrapFormat.Type = Microsoft.Office.Interop.Word.WdWrapType.wdWrapTight; + myShape.RelativeHorizontalPosition = Microsoft.Office.Interop.Word.WdRelativeHorizontalPosition.wdRelativeHorizontalPositionPage; + myShape.Left = horizontal; + myShape.RelativeVerticalPosition = Microsoft.Office.Interop.Word.WdRelativeVerticalPosition.wdRelativeVerticalPositionPage; + myShape.Top = vertical - myShape.Height; + myShape.Name= "Unterschrift" + "_" + bookmark; + myShape.WrapFormat.Type = Microsoft.Office.Interop.Word.WdWrapType.wdWrapBehind; + myShape.ZOrder(Microsoft.Office.Core.MsoZOrderCmd.msoSendBackward); + myShape.Select(); + return; @@ -1691,12 +1687,12 @@ namespace OnDocOffice //Microsoft.Office.Interop.Word.Shape myshape = docWord.Shapes.AddTextbox(Microsoft.Office.Core //.MsoTextOrientation.msoTextOrientationHorizontal, (float)horizontal, - //(float)vertical, 120, 50,bm); + //(float)vertical, 120, 50, missing); //myshape.Name = "Unterschrift" + "_" + bookmark; //myshape.TextFrame.ContainingRange.Borders.OutsideLineStyle = WdLineStyle.wdLineStyleNone; //myshape.TextFrame.ContainingRange.Borders.InsideLineStyle = WdLineStyle.wdLineStyleNone; //myshape.Fill.UserPicture(imagepath); - ////myshape.Fill.UserPicture(@"E:\Software-Projekte\OnDoc\Unterschriften\1.jpg"); + //myshape.Fill.UserPicture(@"E:\Software-Projekte\OnDoc\Unterschriften\1.jpg"); //myshape.WrapFormat.Type = Microsoft.Office.Interop.Word.WdWrapType.wdWrapBehind; //myshape.Line.Visible = Microsoft.Office.Core.MsoTriState.msoFalse; } diff --git a/OnDocOffice/obj/Debug/OnDocOffice.csproj.AssemblyReference.cache b/OnDocOffice/obj/Debug/OnDocOffice.csproj.AssemblyReference.cache index 56f3ed6b..ae7bd4f3 100644 Binary files a/OnDocOffice/obj/Debug/OnDocOffice.csproj.AssemblyReference.cache and b/OnDocOffice/obj/Debug/OnDocOffice.csproj.AssemblyReference.cache differ diff --git a/OnDocOffice/obj/Debug/OnDocOffice.dll b/OnDocOffice/obj/Debug/OnDocOffice.dll index 90e447a0..ebafee9e 100644 Binary files a/OnDocOffice/obj/Debug/OnDocOffice.dll and b/OnDocOffice/obj/Debug/OnDocOffice.dll differ diff --git a/OnDocOffice/obj/Debug/OnDocOffice.pdb b/OnDocOffice/obj/Debug/OnDocOffice.pdb index c4b3995d..d0c62156 100644 Binary files a/OnDocOffice/obj/Debug/OnDocOffice.pdb and b/OnDocOffice/obj/Debug/OnDocOffice.pdb differ diff --git a/OnDocWeb/bin/OnDocWeb.dll b/OnDocWeb/bin/OnDocWeb.dll index c67d636e..c3308ac4 100644 Binary files a/OnDocWeb/bin/OnDocWeb.dll and b/OnDocWeb/bin/OnDocWeb.dll differ diff --git a/OnDocWeb/bin/OnDocWeb.pdb b/OnDocWeb/bin/OnDocWeb.pdb index dc37baf3..43e6d8b3 100644 Binary files a/OnDocWeb/bin/OnDocWeb.pdb and b/OnDocWeb/bin/OnDocWeb.pdb differ diff --git a/OnDocWeb/obj/Debug/OnDocWeb.csproj.AssemblyReference.cache b/OnDocWeb/obj/Debug/OnDocWeb.csproj.AssemblyReference.cache index 571ce921..0569d7fb 100644 Binary files a/OnDocWeb/obj/Debug/OnDocWeb.csproj.AssemblyReference.cache and b/OnDocWeb/obj/Debug/OnDocWeb.csproj.AssemblyReference.cache differ diff --git a/OnDocWeb/obj/Debug/OnDocWeb.dll b/OnDocWeb/obj/Debug/OnDocWeb.dll index c67d636e..c3308ac4 100644 Binary files a/OnDocWeb/obj/Debug/OnDocWeb.dll and b/OnDocWeb/obj/Debug/OnDocWeb.dll differ diff --git a/OnDocWeb/obj/Debug/OnDocWeb.pdb b/OnDocWeb/obj/Debug/OnDocWeb.pdb index dc37baf3..43e6d8b3 100644 Binary files a/OnDocWeb/obj/Debug/OnDocWeb.pdb and b/OnDocWeb/obj/Debug/OnDocWeb.pdb differ diff --git a/Vorlagen_Viewer/bin/Debug/Database.dll b/Vorlagen_Viewer/bin/Debug/Database.dll index 18733ab2..3b6a758b 100644 Binary files a/Vorlagen_Viewer/bin/Debug/Database.dll and b/Vorlagen_Viewer/bin/Debug/Database.dll differ diff --git a/Vorlagen_Viewer/bin/Debug/Database.pdb b/Vorlagen_Viewer/bin/Debug/Database.pdb index 54302531..86f5f0be 100644 Binary files a/Vorlagen_Viewer/bin/Debug/Database.pdb and b/Vorlagen_Viewer/bin/Debug/Database.pdb differ diff --git a/Vorlagen_Viewer/obj/Debug/Vorlagen_Viewer.csproj.AssemblyReference.cache b/Vorlagen_Viewer/obj/Debug/Vorlagen_Viewer.csproj.AssemblyReference.cache index 2e6ae178..d9df0a90 100644 Binary files a/Vorlagen_Viewer/obj/Debug/Vorlagen_Viewer.csproj.AssemblyReference.cache and b/Vorlagen_Viewer/obj/Debug/Vorlagen_Viewer.csproj.AssemblyReference.cache differ diff --git a/ZZ_BarcpdeFromFont/bin/Debug/Database.dll b/ZZ_BarcpdeFromFont/bin/Debug/Database.dll index 18733ab2..3b6a758b 100644 Binary files a/ZZ_BarcpdeFromFont/bin/Debug/Database.dll and b/ZZ_BarcpdeFromFont/bin/Debug/Database.dll differ diff --git a/ZZ_BarcpdeFromFont/bin/Debug/Database.pdb b/ZZ_BarcpdeFromFont/bin/Debug/Database.pdb index 54302531..86f5f0be 100644 Binary files a/ZZ_BarcpdeFromFont/bin/Debug/Database.pdb and b/ZZ_BarcpdeFromFont/bin/Debug/Database.pdb differ diff --git a/ZZ_BarcpdeFromFont/bin/Debug/vbBarcodes.dll b/ZZ_BarcpdeFromFont/bin/Debug/vbBarcodes.dll index 2d6a4fbc..368c87de 100644 Binary files a/ZZ_BarcpdeFromFont/bin/Debug/vbBarcodes.dll and b/ZZ_BarcpdeFromFont/bin/Debug/vbBarcodes.dll differ diff --git a/ZZ_BarcpdeFromFont/bin/Debug/vbBarcodes.pdb b/ZZ_BarcpdeFromFont/bin/Debug/vbBarcodes.pdb index 50334496..f99eca97 100644 Binary files a/ZZ_BarcpdeFromFont/bin/Debug/vbBarcodes.pdb and b/ZZ_BarcpdeFromFont/bin/Debug/vbBarcodes.pdb differ diff --git a/ZZ_BarcpdeFromFont/obj/Debug/ZZ_BarcpdeFromFont.csproj.AssemblyReference.cache b/ZZ_BarcpdeFromFont/obj/Debug/ZZ_BarcpdeFromFont.csproj.AssemblyReference.cache index 214e1bd8..090391e2 100644 Binary files a/ZZ_BarcpdeFromFont/obj/Debug/ZZ_BarcpdeFromFont.csproj.AssemblyReference.cache and b/ZZ_BarcpdeFromFont/obj/Debug/ZZ_BarcpdeFromFont.csproj.AssemblyReference.cache differ diff --git a/ZZ_Signature_C/Form1.Designer.cs b/ZZ_Signature_C/Form1.Designer.cs index 1edd298b..94b2faed 100644 --- a/ZZ_Signature_C/Form1.Designer.cs +++ b/ZZ_Signature_C/Form1.Designer.cs @@ -28,9 +28,15 @@ /// private void InitializeComponent() { + Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings messageBoxSettings2 = new Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings(); + Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings pdfViewerPrinterSettings2 = new Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); + Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings textSearchSettings2 = new Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); + this.pdfViewerControl1 = new Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl(); + this.button4 = new System.Windows.Forms.Button(); this.SuspendLayout(); // // button1 @@ -63,11 +69,61 @@ this.button3.UseVisualStyleBackColor = true; this.button3.Click += new System.EventHandler(this.button3_Click); // + // pdfViewerControl1 + // + this.pdfViewerControl1.CursorMode = Syncfusion.Windows.Forms.PdfViewer.PdfViewerCursorMode.SelectTool; + this.pdfViewerControl1.EnableContextMenu = true; + this.pdfViewerControl1.EnableNotificationBar = true; + this.pdfViewerControl1.HorizontalScrollOffset = 0; + this.pdfViewerControl1.IsBookmarkEnabled = true; + this.pdfViewerControl1.IsTextSearchEnabled = true; + this.pdfViewerControl1.IsTextSelectionEnabled = true; + this.pdfViewerControl1.Location = new System.Drawing.Point(567, 25); + messageBoxSettings2.EnableNotification = true; + this.pdfViewerControl1.MessageBoxSettings = messageBoxSettings2; + this.pdfViewerControl1.MinimumZoomPercentage = 50; + this.pdfViewerControl1.Name = "pdfViewerControl1"; + this.pdfViewerControl1.PageBorderThickness = 1; + pdfViewerPrinterSettings2.Copies = 1; + pdfViewerPrinterSettings2.PageOrientation = Syncfusion.Windows.PdfViewer.PdfViewerPrintOrientation.Auto; + pdfViewerPrinterSettings2.PageSize = Syncfusion.Windows.PdfViewer.PdfViewerPrintSize.ActualSize; + pdfViewerPrinterSettings2.PrintLocation = ((System.Drawing.PointF)(resources.GetObject("pdfViewerPrinterSettings2.PrintLocation"))); + pdfViewerPrinterSettings2.ShowPrintStatusDialog = true; + this.pdfViewerControl1.PrinterSettings = pdfViewerPrinterSettings2; + this.pdfViewerControl1.ReferencePath = null; + this.pdfViewerControl1.ScrollDisplacementValue = 0; + this.pdfViewerControl1.ShowHorizontalScrollBar = true; + this.pdfViewerControl1.ShowToolBar = true; + this.pdfViewerControl1.ShowVerticalScrollBar = true; + this.pdfViewerControl1.Size = new System.Drawing.Size(908, 800); + this.pdfViewerControl1.SpaceBetweenPages = 8; + this.pdfViewerControl1.TabIndex = 3; + this.pdfViewerControl1.Text = "pdfViewerControl1"; + textSearchSettings2.CurrentInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(255)))), ((int)(((byte)(171)))), ((int)(((byte)(64))))); + textSearchSettings2.HighlightAllInstance = true; + textSearchSettings2.OtherInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); + this.pdfViewerControl1.TextSearchSettings = textSearchSettings2; + this.pdfViewerControl1.VerticalScrollOffset = 0; + this.pdfViewerControl1.VisualStyle = Syncfusion.Windows.Forms.PdfViewer.VisualStyle.Default; + this.pdfViewerControl1.ZoomMode = Syncfusion.Windows.Forms.PdfViewer.ZoomMode.Default; + // + // button4 + // + this.button4.Location = new System.Drawing.Point(148, 84); + this.button4.Name = "button4"; + this.button4.Size = new System.Drawing.Size(75, 23); + this.button4.TabIndex = 4; + this.button4.Text = "button4"; + this.button4.UseVisualStyleBackColor = true; + this.button4.Click += new System.EventHandler(this.button4_Click); + // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); + this.ClientSize = new System.Drawing.Size(1499, 837); + this.Controls.Add(this.button4); + this.Controls.Add(this.pdfViewerControl1); this.Controls.Add(this.button3); this.Controls.Add(this.button2); this.Controls.Add(this.button1); @@ -82,6 +138,8 @@ private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button3; + private Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl pdfViewerControl1; + private System.Windows.Forms.Button button4; } } diff --git a/ZZ_Signature_C/Form1.cs b/ZZ_Signature_C/Form1.cs index ac0a71d6..eae1e667 100644 --- a/ZZ_Signature_C/Form1.cs +++ b/ZZ_Signature_C/Form1.cs @@ -13,6 +13,13 @@ using Syncfusion.DocIO; using Syncfusion.DocIO.DLS; using Shape = Syncfusion.DocIO.DLS.Shape; using Syncfusion.DocIO.ReaderWriter; +using System.IO; +using Syncfusion.Pdf; +using Syncfusion.OfficeChart; +using Syncfusion.DocToPDFConverter; +using Syncfusion.OfficeChartToImageConverter; +using static System.Net.WebRequestMethods; + namespace ZZ_Signature_C { @@ -40,7 +47,7 @@ namespace ZZ_Signature_C word.Visible = true; - + word.ActiveDocument.SaveAs2(@"E:\Software-Projekte\OnDoc\Excel_Dateien\SignatureSigned.docx"); docWord = null; word = null; @@ -81,16 +88,33 @@ namespace ZZ_Signature_C float vertical = bm.Range.Information[Microsoft.Office.Interop.Word.WdInformation.wdVerticalPositionRelativeToPage]; float horizontal = bm.Range.Information[Microsoft.Office.Interop.Word.WdInformation.wdHorizontalPositionRelativeToPage]; - vertical = vertical - 50; + //vertical = vertical - 50; + + //word.ActiveDocument.Bookmarks[tmn].Select(); + + //Microsoft.Office.Interop.Word.Shape myshape1 = docWord.Shapes.AddShape(1, horizontal, vertical, 120, 50); + //myshape1.Fill.UserPicture(@"E:\Software-Projekte\OnDoc\Unterschriften\1.jpg"); + ////myshape1.Line.Weight = -2; + //myshape1.Name = "Unterschrift" + "_" + tmn; + //myshape1.Line.Visible= Microsoft.Office.Core.MsoTriState.msoFalse; + + ////Microsoft.Office.Interop.Word.InlineShape myshape3 = word.Selection.InlineShapes.AddPicture(@"E:\Software-Projekte\OnDoc\Unterschriften\1.jpg",false,true,myRange,); - word.ActiveDocument.Bookmarks[tmn].Select(); - Microsoft.Office.Interop.Word.Shape myshape1 = docWord.Shapes.AddShape(1, horizontal, vertical, 120, 50); - myshape1.Fill.UserPicture(@"E:\Software-Projekte\OnDoc\Unterschriften\1.jpg"); - //myshape1.Line.Weight = -2; - myshape1.Name = "Unterschrift" + "_" + tmn; - myshape1.Line.Visible= Microsoft.Office.Core.MsoTriState.msoFalse; - + docWord.Activate(); + Microsoft.Office.Interop.Word.Range myRange3 = bm.Range; + Microsoft.Office.Interop.Word.Range myRange4 = bm.Range.GoTo(); + + Microsoft.Office.Interop.Word.Shape myShape = docWord.Shapes.AddPicture(@"E:\Software-Projekte\OnDoc\Unterschriften\1.jpg", false, true, 0, 0, 120, 50, myRange); + myShape.WrapFormat.Type = Microsoft.Office.Interop.Word.WdWrapType.wdWrapTight; + myShape.RelativeHorizontalPosition = Microsoft.Office.Interop.Word.WdRelativeHorizontalPosition.wdRelativeHorizontalPositionPage; + myShape.Left = horizontal; + myShape.RelativeVerticalPosition = Microsoft.Office.Interop.Word.WdRelativeVerticalPosition.wdRelativeVerticalPositionPage; + myShape.Top = vertical - myShape.Height; + //myShape.LockAspectRatio = Microsoft.Office.Core.MsoTriState.msoTrue; + myShape.WrapFormat.Type = Microsoft.Office.Interop.Word.WdWrapType.wdWrapBehind; + myShape.ZOrder(Microsoft.Office.Core.MsoZOrderCmd.msoSendBackward); + myShape.Select(); return; Microsoft.Office.Interop.Word.Shape myshape = docWord.Shapes.AddTextbox(Microsoft.Office.Core @@ -104,8 +128,7 @@ namespace ZZ_Signature_C myshape.WrapFormat.Type = Microsoft.Office.Interop.Word.WdWrapType.wdWrapSquare; myshape.Line.Visible = Microsoft.Office.Core.MsoTriState.msoFalse; - //Microsoft.Office.Interop.Word.InlineShape myshape1 = word.Selection.InlineShapes.AddPicture(@"E:\Software-Projekte\OnDoc\Unterschriften\1.jpg", false, true, ref missing); - + } @@ -271,5 +294,29 @@ namespace ZZ_Signature_C docWord = null; word = null; } + + private void button4_Click(object sender, EventArgs e) + { + + + WordDocument wordDocument = new WordDocument(@"E:\Software-Projekte\OnDoc\Excel_Dateien\SignatureSigned.docx", Syncfusion.DocIO.FormatType.Automatic); + wordDocument.ChartToImageConverter = new ChartToImageConverter(); + wordDocument.ChartToImageConverter.ScalingMode = ScalingMode.Normal; + Syncfusion.DocToPDFConverter.DocToPDFConverter converter = new Syncfusion.DocToPDFConverter.DocToPDFConverter(); + + converter.Settings.EmbedFonts = true; + converter.Settings.UpdateDocumentFields = false; + converter.Settings.EnableAlternateChunks = true; + converter.Settings.AutoDetectComplexScript = true; + converter.Settings.ImageResolution = 1280; + converter.Settings.ImageQuality = 100; + using (PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument)) + { + pdfDocument.Save(Path.GetFullPath(@"E:\Software-Projekte\OnDoc\Excel_Dateien\SignatureSigned.pdf")); + this.pdfViewerControl1.Load(@"E:\Software-Projekte\OnDoc\Excel_Dateien\SignatureSigned.pdf"); + + + } + } } } diff --git a/ZZ_Signature_C/Form1.resx b/ZZ_Signature_C/Form1.resx index 1af7de15..aebc7d3b 100644 --- a/ZZ_Signature_C/Form1.resx +++ b/ZZ_Signature_C/Form1.resx @@ -117,4 +117,11 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 + dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABVTeXN0ZW0uRHJh + d2luZy5Qb2ludEYCAAAAAXgBeQAACwsCAAAAAAAAAAAAAAAL + + \ No newline at end of file diff --git a/ZZ_Signature_C/ZZ_Signature_C.csproj b/ZZ_Signature_C/ZZ_Signature_C.csproj index 04a50ae6..e9bc0889 100644 --- a/ZZ_Signature_C/ZZ_Signature_C.csproj +++ b/ZZ_Signature_C/ZZ_Signature_C.csproj @@ -51,12 +51,29 @@ False C:\Program Files (x86)\Syncfusion\Essential Studio\Windows\28.1.33\Assemblies\4.6.2\Syncfusion.DocIO.Base.dll
+ + False + ..\DOCGEN\bin\Debug\Syncfusion.DocToPdfConverter.Base.dll + False ..\DOCGEN\bin\Debug\Syncfusion.Licensing.dll + + False + C:\Program Files (x86)\Syncfusion\Essential Studio\Windows\28.1.33\Assemblies\4.6.2\Syncfusion.OfficeChart.Base.dll + + + False + C:\Program Files (x86)\Syncfusion\Essential Studio\Windows\28.1.33\Assemblies\4.6.2\Syncfusion.OfficeChartToImageConverter.WPF.dll + + + + + + diff --git a/ZZ_Signature_C/bin/Debug/Pdfium/x86/pdfium.dll b/ZZ_Signature_C/bin/Debug/Pdfium/x86/pdfium.dll new file mode 100644 index 00000000..a5f92eba Binary files /dev/null and b/ZZ_Signature_C/bin/Debug/Pdfium/x86/pdfium.dll differ diff --git a/ZZ_Signature_C/bin/Debug/Syncfusion.DocToPdfConverter.Base.dll b/ZZ_Signature_C/bin/Debug/Syncfusion.DocToPdfConverter.Base.dll new file mode 100644 index 00000000..7f35fc35 Binary files /dev/null and b/ZZ_Signature_C/bin/Debug/Syncfusion.DocToPdfConverter.Base.dll differ diff --git a/ZZ_Signature_C/bin/Debug/Syncfusion.DocToPdfConverter.Base.xml b/ZZ_Signature_C/bin/Debug/Syncfusion.DocToPdfConverter.Base.xml new file mode 100644 index 00000000..380764bc --- /dev/null +++ b/ZZ_Signature_C/bin/Debug/Syncfusion.DocToPdfConverter.Base.xml @@ -0,0 +1,5724 @@ + + + + Syncfusion.DocToPDFConverter.Base + + + + + + + + + + + + + + + + + + + + + + Get Curved Connector path + + + formulaColl.Add("x2","*/ w adj1 100000"); + formulaColl.Add("x1","+/ l x2 2"); + formulaColl.Add("x3","+/ r x2 2"); + formulaColl.Add("y3","*/ h 3 4"); + + + + + + This method is used to get the Curved connector 2 path. + + + + + + This method is used to call the Get Curved Connector 4 path. + + + + + + This method is used to get the curved connector5 path. + + + + + + Get Bent Connector path + + + formulaColl.Add("x1","*/ w adj1 100000"); + + + + + + This method is used to get the bend connector 2 path. + + + + + + This method is used to get the bend connector 4 path. + + + + + + This method is used to get the bend connector 5 path. + + + + + + Gets Rounded Rectangle Path + + + + + + Gets Snip Single Corner Rectangle Path + + + + + + Gets Snip Same Side Corner Rectangle Path + + + + + + Gets Snip Diagonal Corner Rectangle Path + + + + + + Gets Snip And Round Single Corner Rectangle Path + + + + + + Gets Round Single Corner Rectangle Path + + + + + + Gets Round Same Side Corner Rectangle Path + + + + + + Gets Round Diagonal Corner Rectangle Path + + + + + + Get Triangle path + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Gets the right arrow path. + + + + + + Gets the left arrow path. + + + + + + Gets down arrow path. + + + + + + Gets the left right arrow path. + + + + + + Gets the curved right arrow path. + + + + + + Gets the curved left arrow path. + + + + + + Gets the curved up arrow path. + + + + + + Gets the curved down arrow path. + + + + + + Gets up down arrow path. + + + + + + Gets the quad arrow path. + + + + + + Gets the left right up arrow path. + + + + + + Gets the bent arrow path. + + + + + + Gets the U trun arrow path. + + + + + + Gets the left up arrow path. + + + + + + Gets the bent up arrow path. + + + + + + Gets the striped right arrow path. + + + + + + Gets the notched right arrow path. + + + + + + Gets the pentagon path. + + + + + + Gets the chevron path. + + + + + + Gets the right arrow callout path. + + + + + + Gets down arrow callout path. + + + + + + Gets the left arrow callout path. + + + + + + Gets up arrow callout path. + + + + + + Gets the left right arrow callout path. + + + + + + Gets the quad arrow callout path. + + + + + + Gets the circular arrow path. + + + + + + Gets the math plus path. + + + + + + Gets the math minus path. + + + + + + Gets the math multiply path. + + + + + + Gets the math division path. + + + + + + Gets the math equal path. + + + + + + Gets the math not equal path. + + + + + + Gets the flow chart alternate process path. + + + + + + Gets the flow chart predefined process path. + + + + + + Gets the flow chart internal storage path. + + + + + + Gets the flow chart document path. + + + + + + Gets the flow chart multi document path. + + + + + + Gets the flow chart terminator path. + + + + + + Gets the flow chart preparation path. + + + + + + Gets the flow chart manual input path. + + + + + + Gets the flow chart manual operation path. + + + + + + Gets the flow chart connector path. + + + + + + Gets the flow chart off page connector path. + + + + + + Gets the flow chart card path. + + + + + + Gets the flow chart punched tape path. + + + + + + Gets the flow chart summing junction path. + + + + + + Gets the flow chart or path. + + + + + + Gets the flow chart collate path. + + + + + + Gets the flow chart sort path. + + + + + + Gets the flow chart extract path. + + + + + + Gets the flow chart merge path. + + + + + + Gets the flow chart online storage path. + + + + + + Gets the flow chart delay path. + + + + + + Gets the flow chart sequential access storage path. + + + + + + Gets the flow chart magnetic disk path. + + + + + + Gets the flow chart direct access storage path. + + + + + + Gets the flow chart display path. + + + + + + Gets the rectangular callout path. + + + + + + Gets the rounded rectangular callout path. + + + + + + Gets the oval callout path. + + + + + + Gets the cloud callout path. + + + + + + Gets the line callout1 path. + + + + + + Gets the line callout2 path. + + + + + + Gets the line callout3 path. + + + + + + Gets the line callout1 accent bar path. + + + + + + Gets the line callout2 accent bar path. + + + + + + Gets the line callout3 accent bar path. + + + + + + Gets the line callout1 no border path. + + + + + + Gets the line callout2 no border path. + + + + + + Gets the line callout3 no border path. + + + + + + Gets the line callout1 border and accent bar path. + + + + + + Gets the line callout2 border and accent bar path. + + + + + + Gets the line callout3 border and accent bar path. + + + + + + Gets the VML custom shape path path. + + + + + + Gets a custom shape (DrawingML) GraphicPath. + + Represent a bounds of custom shape. + Represent a GraphicPath/PdfPath object. + Represent a custom shape object. + Returns a GraphicPath/PdfPath with custom shape drawing points. + + + + Gets a geometry path of Path2D. + + Represent a GraphicPath. + Represent a input path elements. + Represent a width of Path. + Represent a height of Path. + Represent a bounds of Path. + + + + Gets a X value of Path. + + Represent a width of Path. + Represent a X value. + Represent a bounds of Path. + Returns a X value. + + + + Gets a Y value of Path. + + Represent a height of Path. + Represent a Y value. + Represent a bounds of Path. + Returns a Y value. + + + + Convert the path element of custom shape + + Represent a path element to convert. + Represent a converted path elements. + Represent a formula collection. + Represent a path object. + Represent formula with its values. + + + + Gets a new GraphicsPath object. + + Returns a new GraphicsPath object. + + + + + + + + + + + + + + + + + + + Get Path adjust value + + + + + + + Parse Shape Formula + + + + + + + Gets Formula Values + + + + + + + + + Gets Operand Values + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Represents the class which acts as an drawing context. + + + + + The default script factor for sub/super script. + + + + + The default factor values to fit the DinOffc font text into the corresponding font grid. + /// + + + + The default font size. + + + + + The default minimum font size for picture bullet. + + + + + The default scale factor for picture bullet. + + + + + Drawing Graphics. + + + + + Image Quality. + + + + + PreserveFormFields. + + + + + PdfFont collection + + + + + This collection contains the Pdf fonts which are created by SubstitutedFont event streams. + + + + + Drawing Graphics. + + + + + Holds the list of hyperlinks and its corrsponding bounds. + + + + + Used to skip a text highlighter between the comment ranges. + + + + + Auto tag index + + + + + Skips the bookmark add for all the textrange of paragraph. + + + + + We have hold the underline style properties and bounds to draw a line. + using this dictionary, we have draw the line after the text drawn. + + + + + We have hold the Strike-Through properties and bounds to draw a line. + using this dictionary, we have draw the line after the text drawn. + + + + + Clear the font cache. + + + + + Initializes a new instance of the PDFDrawingContext class. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the PDFDrawingContext class. + + The graphics. + The page unit. + The page unit. + The page unit. + + + + Draws the Overlapping shape widgets. + Currently handled only for Docx format documents + + + + + Create pdf font and maintain it in the collection, To improve the performance + + + + + + + + + + Paragraph has a color which is mismatched from the next sibling paragraph color + + + + + Create Auto tag. + + + + + + + + + + Creates Pdf structure element for headings and paragraph. + + The paragraph. + The layouted widge. + + + + + Gets the Pdf tag type enum value for heading style. + + The outline level of the heading style. + + + + + Creates Pdf structure element for table, table row and table data. + + The lt widget. + The owner widget. + The cell widget. + + + + Draws the paragraph. + + The paragraph. + The lt widget. + + + + Draws the text box. + + The text box. + The lt widget. + + + + We have handle for rotated childshapes. + + clipbounds value + return the clipbounds value + + + + Draw Bar Tab Stop of the paragraph + + + + + + + Get bounds to draw a paragraph back ground color and texture styles + + + + + + + + + + + Check whether Paragraph Containing list has break. + + ltWidget + + + + + Get the base entity + + + + + + + Get the text top position + + Represent the text + Represent the font + Represent the size + Return the Text drawing y position + + + + Decides whether, we should update the tab position or not. + + The widget. + Index of the entity. + + + + Updates the tab position. + + The widget. + The client area. + + + + Updates the decimal tab position. + + The lt widget. + The client area. + + + + Updates the decimal tab position in cell. + + The lt widget. + The client area. + + + + Determine whether is Decimal Tab Start + + + + + + + + + + + + Get Width To Shift the xposition of childwidget + + + + + + + + + + Get the paragraph format for current tab + + The Paragraph + Paragrph format + + + + Get Column Width + + The Paragraph + + + + + Get Left width of the Decimal seperator + + + + + + + + + Get Left width of the Decimal seperator + + The lt widget. + The decimal tab start. + The decimal tab end. + + + + + Get Index of Decimal Separator + Index denotes the TextRange which have a decimal separator + + + + + + + + + + + + Get Index of Decimal Separator + Index denotes the TextRange which have a decimal separator + + The lt widget. + The decimal tab start. + The decimal tab end. + Width of the left. + The decimal separator. + if set to true [is separator]. + + + + + Determine whether is Decimal Separator + + + + + + + + + Get Owner paragraph of the LayoutedWidget + + + + + + + Gets the tab end index. + Index denotes the item, previous of next subsequent tab. + + The lt widget. + The start index. + + + + + Get the current list size. + + + + + + + + + Draws the list. + + Paragraph + Layouted Widget + List Format + + + + Draws the list tab leader. + + The paragraph. + The paragraph info. + Width of the list. + The x position. + The y position. + + + + Gets the tab leader. + + The paragraph info. + + + + + Gets the ascet value for Equation field. + + Equation field + + + + + Check whether the current lines contains the equation field and it + contains the height of the corresponding line. + + + + + + + Determines whether the paragraph is empty + + paragraph + returns true if paragraph is empty + + + + Calculate a line points for the WCommentMark. + + + + + + + Draw the WCommentMark. + + + + + Draw AbsoluteTab + + + + + + + Update AbsoluteTab leader + + + + + + + + Draws the Footnote separator + + The TXT range. + The lt widget. + + + + Draws the Editable text range. + + The TXT range. + The lt widget. + + + + Inverse the specified character with suitable bidi character + + Specify the input character + Return the inversed character + + + + Determines whether the characters are inverses in the input text. + + Specify the input text + + + + Draws the text range. + + The TXT range. + The lt widget. + The text. + + + + Trim the space characters in the text. + + + + + + Check whether the widget is in field result or not. + + Hyper link field + Widget. + If the widget is in field result, return True;else false. + + + + Update Target position to the bookmark hyperlink + + + + + + + Create Bookmark reference link + + + + + + + Determine whether the tab stop is preserved after the text range in the current line + + + + + + + Update Tab Width. + + + + + Fill with dots for tab leader + + Font + Current layouted widget + Character format of layouted widget + String format + text + + + + Fill with sigle for tab leader + + Font + Current layouted widget + Character format of layouted widget + String format + text + + + + Fill with hyphens for tab leader + + Font + Current layouted widget + Character format of layouted widget + String format + text + + + + Fills with space + + + + + + + + + Draws the Symbol + + + + + + + Draws the image. + + The image. + The bounds. + + + + Creates color matrix. + + brightness + contrast + saturation + + + + Convert the image to specified color using ImageAttributes. + + Original Image + ImageAttributes used to change the color. + Return the recolored image. + + + + Decides whether table is preserved inside text box or not. + + Table cell + Indicates whether to check textbox only. + + + + + Gets the bounding box of the rectangular bounds after rotation. + + Bounds + Degree of rotation + Bounding box of the rectangular bounds + + + + Calculates the minX, minY, maxX and maxY of the rotated bounds. + + + Bounding box of a rectangular bounds + + + + Gets the rotation transformation matrix + + Bounds of the picture + Rotation angle + Transformation matrix + + + + Get matrix values of skia's matrix. + + SKia's matrix to get values from. + Image matrix. + + + + Gets the PdfImage with image quality from image + + Image + + + + Gets the PdfImage with image quality from stream + + Memory stream + + + + Converts the ole object into bitmap when the image and object is of WMF and equation type respectively. + + + + + + + + Draw the InlineShapePicture + + + + + + + + + Create the Pen to draw the picture border + + + + + + + Get the color for the picture border + + + + + + + Get the line cap for picture border + + + + + + + Get LineJoin for picture border + + + + + + + Get the Dash and line style for the picture shape + + + + + + + + + Get the dash and line style for picture border + + + + + + + + Get the Dash style for the border + + + + + + + + Set the CropImageBounds if the image offset is negative + + + + + + + + + Gets the position to crop the image + + + + + + + Draws the equation field swtiches. + + + + + Draws an Array EQ switch using their properties. + + Represents a script type + A layouted array EQ switch. + Represents a charFormat for array switch. + Represents a for array EQ switch. + + + + Draws a radical switch and the radical symbol as a graphic path. + + Represents a script type. + A layouted radical EQ switch. + Represents a charFormat for radical switch elements. + + + + Draws the Editable DrawDropDownFormField. + + dropDownFormField + The ltWidget. + + + + Align the layouted equation field switch based on the current y position. + + Layouted EQ field switches + x position of layouted equation field switch + Y position of layouted equation field switch + + + + Shift the eqaution field's x, y position based on the given x,y value. + + Layouted EQ field switches + x position of layouted equation field switch + Y position of layouted equation field switch + + + + Generates the error text for the equation field. + + Represents a equation field to generate. + Represents a which set for equation field. + Represents a X position of equation field. + Represents a Y position of equation field. + + + + Shift the equation field's y position based on the given y value. + + Layouted EQ field switches + Y position of layouted equation field switch + + + + Gets the top most Y position of layouted EQ fields. + + Layouted EQ field + Minimum value of y position + + + + + Draws the string. + + Represents a script type. + The text. + The char format. + The para format. + The bounds. + The clipwidth. + The layouted widget. + + + + Rotate a Graphics based on Shape Rotation. + + Specified the rotation angle. + Specifies whether text needs to vertically flip. + Specifies whether text needs to horizontally flip. + Specifies whether the text need to rotate. + Specifies the text wrapping style. + Indicates whether the text need to scale or not. + Indicates whether the line rotate transform is applied or not. + Specifies the modified rotation angle. + + + + Check that previous or next sibling is tab in that line paragraph + + CharacterFormat + textBounds + LayoutedWidget + isSameLine + + + + Calculate the Text Bounds + + + + + + + + + + Add the line to the Dictionary collection + + + + + + + + + + + + Check that can we extend the previous Underline to the next text. + + Previous boundsRight + Current boundsX + Current CharacterFormat + Previous CharacterFormat + + + + + Compare the two float values. + + Value 1 + value 2 + Round off value + + + + + Check that text having underline or strike through. + + TextRange + Charformat + + + + + + Check that the Inline content control having the text range. + + + Return true, if the InlineContentControl have text range; Else false. + + + + Checks whether the current widget is tab + + + + + + + Get the text box widget of current widget. + + + + + + + Reverse the string + + + + + + Draws the small cap string. + + scriptType + characterRangeType. + The text. + The character format. + The bounds. + The font. + The format. + The text brush. + if set to true [is character spacing]. + + + + Determine whether the text is need to clip when the text range y position is greater than the owner row bottom position + + + + + + Determine whether the text is need to clip when the text range x position is beyond the cell bounds or crossing the cell bounds + + + + + + Gets the index of the column. + + The section. + The section bounds. + + + + + Get Y position to clip paragraph items + + + + + + + + Get Default font to render non east characters + + + + + + + + + Draw String based on CharacterSpacing + + Script Type + Character Range Type + Font style of current Layouted widget + Text brush + Layouted widget bounds + Text + string format + character Format + + + + Draws a string based on expanded character spacing. + + The script type of the text. + The font used for drawing the text. + The bounds within which the text is drawn. + The text to be drawn. + The string format. + The character format. + + + + Transform the graphics rendering positions based on rotation angle + + Current ltWidget + set to true when the widget need to scale + set to true when the widget rotate transform is applied + Translation points + Rotation angle + OwnerParagraph + + + + Update the X and Y position + + X posiiton + Y position + Owner entity + Layouted Widget + Update the X and Y position when document has different page setup. + + + + Gets the height of the layouted text box content. + + The lt widget. + + + + + Get Width to shift vertical text + + + + + + + + + Get Bounds to clip the text + + + + + + + + + Update clip bounds based on vertical cell + + + + + + + + Update clipping bounds based on owner clipping + + + + + + + + Get Height of the cell with text direction as vertical + + + + + + + Draw Chinese Text + + + + + + + + + + + + + Draw String method for Drawing the string without its width and height + + + + + + + + + + + Checks whether the text is valid. (applicable for Arial text) + + + + + + Draw Unicode Text + + + + + + + + + + + + + Draw unicode string + + + + + + + + + + + + + Determines whether the owner paragraph is empty + + text + + true if owner paragraph is empty, set to true. + + + + + Rotate and scale the graphics transform matrix + + Layoted widget bounds + Clip bounds + Scaling factor value + Translation points + Rotation angle + + + + Scale the graphics transform matrix. + + Scaling factor value + Translation points + Rotation angle + + + + Prepares a matrix to PDF. + + The matrix. + The page scale value. + + A properly prepared PdfTransformationMatrix class instance. + + + + + Draws the paragraph borders. + + the paragraph + The paragraph format. + The lt widget. + isParagraphMarkIsHidden + + + + Draws the paragraph borders + + Collection of borders, contains the each border rendering order + Border bounds + Current paragraph borders + Previous paragraph borders + Paragraph + Layouted widget + + + + Draws the horizontal border. + + The border rendering order. + The bounds. + The borders. + The border. + if set to true [is multi line left border]. + if set to true [is multi line right border]. + if set to true [is multi line horizontal border]. + Width of the between border line. + Width of the left border line. + Width of the right border line. + Paragraph + Layouted widget + + + + Draws the left border. + + The border rendering order. + The bounds. + The borders. + The border. + The previous border. + if set to true [is multi line top border]. + if set to true [is multi line bottom border]. + if set to true [is multi line left border]. + if set to true [is multi line horizontal border]. + Width of the left border line. + Width of the top border line. + Width of the between border line. + Width of the bottom border line. + Paragraph + Layouted widget + + + + Draws the right border. + + The border rendering order. + The bounds. + The borders. + The border. + The previous border. + if set to true [is multi line top border]. + if set to true [is multi line horizontal border]. + if set to true [is multi line right border]. + if set to true [is multi line bottom border]. + Width of the right border line. + Width of the top border line. + Width of the between border line. + Width of the bottom border line. + Paragraph + Layouted widget + + + + Draws the top border. + + The border rendering order. + The bounds. + The borders. + The border. + if set to true [is multi line top border]. + Width of the top border line. + Width of the left border line. + Width of the right border line. + + + + Draws the bottom border. + + The border rendering order. + The bounds. + The borders. + The border. + if set to true [is multi line bottom border]. + Width of the left border line. + Width of the bottom border line. + Width of the right border line. + Paragraph + Layouted widget + + + + If paragraph inside Text box or shape have bottom border and that paragraph is the last element of textbox means + Microsoft word will preserve the bottom border at the top of the bottom margin of text box or shape by subtracting the internal bottom margin spacing and the text box or shape line width. + + + The spacing between the paragraph bottom border and textbox's or shape's bottom border + + + + Sort the borders based on brightness + + Border rendering order list + Horizontal border + Either left border/right border + Current paragraph borders + To ensure wether we need to remove left or right border + + + + Adds the next paragraph bounds. + + The layouted widget. + The bounds. + + + + + Draw the revision bars in the specified color and width + + Start point of the revision bar + End point of the revision bar + Color of the revision bar + Width of the revision bar + + + + Draws the border. + + The border. + The start. + The end. + + + + Draws the border. + + The border. + The start. + The end. + + + + Draws the border. + + The border. + The start. + The end. + + + + Draws the table. + + The table. + The lt widget. + + + + Draws the table row. + + The row. + The lt widget. + + + + Draws the table cell. + + The cell. + The lt widget. + + + + Fill the Cell Color + + The Layouted widget + + + + Checks the TextBox for Background picture. + + + + + + + Draws the texture style. + + + + + + + + + Gets the fore color. + + + + + + + + + Gets the color value. + + The fore color value. + The back color value. + The percent. + isForeColorEmpty + isBackColorEmpty + + + + + Fill Texture within the bounds + + Texture Style + Fore Color + Back Color + Bounds + + + + Draws the cell borders. + + The cell. + The lt widget. + The previous cells top border width + + + + Draws the multi line left border. + + The cell layout information. + The left border. + The start. + The end. + if set to true [is first row]. + if set to true [is last row]. + if set to true [is first cell]. + if set to true [is last cell]. + + + + Draws the double line left border. + + The cell layout information. + The left border. + The start. + The end. + if set to true [is first row]. + if set to true [is last row]. + if set to true [is first cell]. + if set to true [is last cell]. + + + + Draws the multi line right border. + + The cell layout information. + The right border. + The start. + The end. + if set to true [is first row]. + if set to true [is last row]. + if set to true [is first cell]. + if set to true [is last cell]. + + + + Draws the right double line border. + + The cell layout information. + The right border. + The start. + The end. + if set to true [is first row]. + if set to true [is last row]. + if set to true [is first cell]. + if set to true [is last cell]. + + + + Draws the multi line bottom border. + + The cell layout information. + The start. + The end. + isBiDiTable + + + + Draws the double line bottom border. + + The cell layout information. + The start. + The end. + isBiDiTable + + + + Draws the multi line top border. + + The cell layout information. + The top border. + The start. + The end. + if set to true [is start]. + if set to true [is end]. + + + + Draws the top double line border. + + The cell layout information. + The top border. + The start. + The end. + if set to true [is start]. + if set to true [is end]. + + + + Determines whether the specified border is multiline border + + Type of the border. + + + + + Determines whether [is multi line paragraph border] [the specified border type]. + + Type of the border. + + + + + Gets the border line array. + + Type of the border. + Width of the line. + + + + + To identify whether current border is double line border or triple line border + + Current border which is need to be check + Trueid the current border type is double border + + + + Draws the multi line left border. + + The left border. + The start. + The end. + if set to true [is top border same]. + if set to true [is between border same]. + if set to true [is bottom border same]. + + + + Draws the double line left border. + + The left border. + The start. + The end. + if set to true [is top border same]. + if set to true [is between border same]. + if set to true [is bottom border same]. + + + + Draws the triple line left border. + + The left border. + The start. + The end. + if set to true [is top border same]. + if set to true [is between border same]. + if set to true [is bottom border same]. + + + + Draws the multi line right border. + + The right border. + The start. + The end. + if set to true [is top border same]. + if set to true [is between border same]. + if set to true [is bottom border same]. + + + + Draws the double line right border. + + The right border. + The start. + The end. + if set to true [is top border same]. + if set to true [is between border same]. + if set to true [is bottom border same]. + + + + Draws the triple line right border. + + The right border. + The start. + The end. + if set to true [is top border same]. + if set to true [is between border same]. + if set to true [is bottom border same]. + + + + Draws the multi line top border. + + The top border. + The start. + The end. + if set to true [is left border same]. + if set to true [is right border same]. + + + + Draws the double line top border. + + The top border. + The start. + The end. + if set to true [is left border same]. + if set to true [is right border same]. + + + + Draws the triple line top border. + + The top border. + The start. + The end. + if set to true [is left border same]. + if set to true [is right border same]. + + + + Draws the multi line bottom border. + + The bottom border. + The start. + The end. + if set to true [is left border same]. + if set to true [is right border same]. + + + + Draws the double line bottom border. + + The bottom border. + The start. + The end. + if set to true [is left border same]. + if set to true [is right border same]. + + + + Draw the double line for the text. + + charFormat + borderType + lineWidth + start point + end point + + + + Draws the triple line bottom border. + + The bottom border. + The start. + The end. + if set to true [is left border same]. + if set to true [is right border same]. + + + + Draws the multi line between border. + + The between border. + The start. + The end. + if set to true [is left border same]. + if set to true [is right border same]. + The left border. + The right border. + if set to true [is overlap left]. + if set to true [is overlap right]. + + + + Draws the double line between border. + + The between border. + The start. + The end. + if set to true [is left border same]. + if set to true [is right border same]. + The left border. + The right border. + if set to true [is overlap left]. + if set to true [is overlap right]. + + + + Draws the triple line between border. + + The between border. + The start. + The end. + if set to true [is left border same]. + if set to true [is right border same]. + The left border. + The right border. + if set to true [is overlap left]. + if set to true [is overlap right]. + + + + Gets the adjacent border line width + + Left or right border line array + true if we passing left border line array; otherwise false + + + + + Draws the color of the background. + + Color of the bg. + The width. + The height. + + + + Draws the back ground image. + + The image. + The page setup. + + + + Draws the Watermark + + Watermark + Page setup + Bounds + + + + Imlementation of Draw method of page. + + Currentl drawing page + autoTagsCount + + + + Retrieves the list of previous line comment start marks and clears the current marks. + + + + + Draws Markup triangles. + + Position to draw the triangle. + Revision Color + + + + Checks the current watermark is empty watermark or not. + + + + + + Checks the HeaderFooter Paragraph and Table Weather WaterMark has to draw first + + + + + + Checks the paragraph weather watermark in Paragraph + + + + + + + + Checks the paragraph weather watermark in Table + + + + + + + + Checks which One has to draw first watermark or picture,shape,textbox + + + + + + + + + Draw the splitWidgetContainer to PDF document or Image. + + Currentl split widget container + Layouted widget + + + + Align the child widgets. + + The layouted widget. + The paragraph. + + + + Imlementation of Draw method of IWidget interface . + + + + + + + Draw widget to graphics. + + + + + Draws the specified dc. + + + + + + + Check whether the widget is need to drwa or not + + + + + + + Draw the page border + + Page number + + + + + Imlementation of Draw method of BookMark interface . + + + + + + + Decides whether Clipping is necessary or not. + + + + + + + Get text highlight color + + + + + + + Check whether the paragrah contains Text range + + + + + + + Draw the Empty string with white space to preserve Tags. + + + + + + + Imlementation of Draw method of LayoutedWidget interface . + + The Layouted widget. + Is need to initialize layout info + + + + Iterate every child elements of the table and add the floating items into the OverLappedShapeWidgets collection + + Table layouted widget + + + + Iterate the child elements of the paragraph + + Paragraph layouted widget + + + + Checks whether the child widget is floating item and add into the collection + + Child layouted widget + + + + Get space width at end of the line widget. + + + + + Checks whether the paragraph line is RTL. + + + + + + + Checks whether the paragraph line has text bidi. + + + + + + + Check that Line item are drawn. + + LayoutedWidget + Return true, if line items are drawn. + + + + Draw the Line Based in the collection. + + Contains the underline values + Contains the strike through values + + + + Transform the graphics based on the rotation and scaling. + + The character format. + Indicates whether the line need to scale or not. + Indicates whether the line rotate transform is applied or not. + Indicates whether the line need to set clip or not. + Line widget. + + + + Gets the rotation values from the textbox, shapes(ChildShapes/GroupShapes). + + Specified the rotation angle. + Specifies whether it is vertical flip. + Specifies whether it is horizontally flip. + Specifies whether the text need to rotate. + Specifies the text wrapping style. + Specifies the current textrange. + + + + Checks whether the underline width is need to change or not. + + + + + Draw the underline style. + + + + + + + Draw double underline style using compoundArray property + + + + + + + + + Draw a wavy line using Bezier points + + represents the character properties of the text + represents the bounds of the text + represents the font of the text + Returns the Object of PDFGraphics to draw the wavy line + To-Do:- PdfPath.AddCurve() method is not supported in PDF library. So, only here we are using PdfPath.AddBezier() method to draw the wavy line + + + + + Create the Pen to draw the Line for Underline and Strike through. + + charFormat + lineWidth + Return the Pen to draw the line. + + + + Checks whether clip bounds need to remove from container. + + + + + + + Increase the bounds with the table paddings. + + + + + + + Updates the clip bounds based on its owner clip bounds. + + + + + + + + Sets clipping for the particular region. + + + + + + Resets Graphics Transform positions. + + + + + Scale the graphics with input X and Y scaling values. + + Specify the scaling factor of X. + Specify the scaling factor of Y. + + + + Get the bounds based on the frame content. + + + + + + + Draw the paragraph + + + + + + + Draw a Comment highlighter for the line. + + Represents a layouted widget of line. + Represents a WordDocument. + + + + Gets a KeyValuePair for the specified key from specified collection. + + Represents a input key to find. + Represents a KVP colection. + Returns a KeyValuePair for the specified key from specified collection. + + + + Check whether a KeyValuePair is available in specified collection for the specified key. + + Represents a input key to find. + Represents a KVP colection. + Returns a true, if KeyValuePair available in specified collection; Otherwise false. + + + + Draw a comment highlighter. + + + + + + + Gets maximum height widget of line. + + Represent a layouted widget of line. + Returns a LayoutedWidget, which has maximum height in line. + + + + Check whether any of line for current paragraph intersect with floating items. + + Current widget + Whether this is line or line container + + + + + Draw the back ground colour for current line. + + Current paragraph + Current line widget + + + + Find the Back ground color rendering bounds. + + + + + + + + Check whether line preserved left or right or between floating items. + + + + + + + + + + Get the current child widget total bounds. + + + + + + + Draw the split table widget + + + + + + + Draw method for BlockContentControl + + + + + + + Draw method for InlineContentControl + + + + + + + Draw WCommentMark + + + + + + + Draw AbsoluteTab + + + + + + + Draw chart as image + + + + + + + Draws chart + + + + + + + Draw the Check box. + + + + + + + Draw the Drop Down Form Field. + + + + + + + Draw the Fields. + + + + + + + Draw Ole Object. + + + + + + + Draw the Picture. + + + + + + + Draw the symbol. + + + + + + + Draw the table. + + + + + + + Gets the frames first item. + + + + + + + + + Draw the table cell. + + + + + + + Draw the table row. + + + + + + + Draw the textbox. + + + + + + + Draw the text form field. + + + + + + + Imlementation of Draw method of LayoutedWidget interface + + + + + + + Draw the shape to PDF document or Image. + + Current shape entity + Current shale layouted widget + + + + Draw the shape to PDF document or Image. + + Current shape entity + Current shale layouted widget + + + + Draw the splitStringWidget + + SplitStringWidget + Layouted split string widget + + + + Draw the text ranges. + + + + + + + Draw widget to graphics. + + + + + + + + Draw widget to graphics. + + + + + Get Cell Widget + + + + + + + Gets the owner widget of the paragraph + + + + + + + Get owner widget of the cell + + + + + + + Determines whether the layouted widget is Overlapping Widget + + The lt widget. + + true if the layouted widget is Overlapping shape widget; otherwise, false. + + + + + Update the positions of text watermark. + + TextWatermark + + + + + + + Draw the text watermark. + + + + + + + + Convert the Watermark text as Bitmap Image. + + + + + + + + Change the given color brightness + + + + + + + + Draw border for the page + + Page setup object + Header bounds + Footer bounds + Page bounds + + + + + Gets the bounds to draw left border + + Page setup object + Header bounds + Footer bounds + Page bounds + + + + + Gets the bounds to draw right border + + Page setup object + Header bounds + Footer bounds + Page bounds + + + + + Gets the bounds to draw bottom border + + Page setup object + Header bounds + Footer bounds + Page bounds + + + + + Gets the bounds to draw top border + + Page setup object + Header bounds + Footer bounds + Page bounds + + + + + Gets the font size for Text Watermark + + Text Watermark + + + + Adjust the brightness and contrast of the picture. + + Represents a image that we need to gets a graphics. + The image. + Represents image Attributes + if set to true [is picture watermark]. + + + + + Draws the Picture Watermark + + Picture Watermark + Bounds + Page Setup + + + + Draws the Editable check box. + + The checkbox. + The ltWidget. + + + + Draws the check box. + + The checkbox. + The lt widget. + + + + Draw picture fill + + Imagebytes + Shapes path + Layouted widget bounds + + + + Apply transparency for image + + Represents image Attributes + Represents image transparency + + + + Convert the LineJoin as PdfLineJoin + + + + + + + Draw child shape + + + + + + + + + + + + + + Rotate the shape based on Flip positions + + + + + + + + + + + + + + + + + + + + + + Measures the image. + + The image. + + + + + Measures the picture bullet size + + Picture + Font + The size of picture bullet + + + + Measures the string. + + The text. + The font. + The format. + + + + + Measures the string. + + The text. + The font. + The format. + The character format. + isMeasureFromTabList + + + + + Gets the exact bounds of a string without an line spacing and top/bottom spacing values of font. + + Specify the input string. + Specify the font to measure. + + + + + Measures the string. + + The text. + The font. + The format. + The character format. + if set to true [is measure from tab list]. + if set to true [is measure from small cap string]. + + + + + Gets fall back font to preserve the text in converted PDF document. + + Represent original Pdf Font. + Represent original System font. + Represent a input text. + Represent the scriptType of a input text. + Represent PdfStringFormat. + Returns a fall back font instance, if it has; otherwise returns original Pdf Font. + + + + Gets fall back font to preserve the text in converted PDF document. + + Represent original Pdf Font. + Represent original System font. + Represent a input text. + Represent PdfStringFormat. + Represent Substituted or embedded font stream. + Returns a fall back font instance, if it has; otherwise returns original Pdf Font. + + + + Get fall back font from font substituted or embedded font stream. + + Represent a input text. + Represent the fallback font name. + Represent the fallback font instances. + Represent substituted or embedded font stream. + Returns a fallback font instance, if it exists in the substituted or embedded font stream collection; otherwise returns null. + + + + Check whether all the characters (glyphs) of input text is available in input font or not. + + Represent the input font to check. + Represent the input text to check. + Represent the PdfStringFormat. + Returns true, if all input character glyphs are available in input font; Otherwise false. + + + + Get the factor. + + Represents a font name. + + + + Calculates the font size for subscript and superscript font. + + Represets a normal font to change as subscript and superscript size. + Returns font size of subscript and superscript for corresponding inputed font. + + + + Get the Exceeded line height of the Arial unicode MS font. + + The font. + isAscent. + + + + + Measures the string. + + The text. + The font. + The default font + The format. + The Character format + + + + + Measures the small cap string. + + The text. + The size. + The font. + The format. + The character format. + + + + Draw Unicode Text + + + + + + + + + + + + + + + + + + Gets the ascent + + The Font. + + + + + Gets the descent + + The Font. + + + + + Translate the specified matrix with offsetX and offsetY + + Represent the matrix to translate + Represent the offsetX + Represent the offsetY + Represent the MatrixOrder to traslate + + + + Multiply the specified matrix with target matrix + + Represent the matrix to translate + Represent the target matrix + Represent the MatrixOrder to traslate + + + + Rotate the specified matrix with specified angle. + + + Represent the angle to rotate the matrix + Represent the center point to rotate a matrix + Represent the MatrixOrder to traslate + + + + Gets a new GraphicsPath object. + + Returns a new GraphicsPath object. + + + + Gets a new Bitmap object with specified width and height. + + Represents a width of Bitmap. + Represents a height of Bitmap. + Returns a new Bitmap object with specified width and height. + + + + Gets a Graphics of with specified image. + + Represents a image that we need to gets a graphics. + Returns a Graphics of with specified image. + + + + Gets a new SolidBrush object with specified color. + + Represents a color of SolidBrush. + Returns a new SolidBrush object with specified color. + + + + Gets a new ColorMatrix object. + + Returns new ColorMatrix object. + + + + Gets a new ColorMatrix object with specified color matrix. + + Represents a color of matrix. + Returns new ColorMatrix object with specified color matrix. + + + + Gets a new ImageAttributes object. + + Returns a new ImageAttributes object. + + + + Draws the arrow head. + + The shape. + The pen. + The bounds. + if set to true [is arrow head exist]. + The path. + The line points1. + + + + Draws the arrow head. + + The shape. + The pen. + The bounds. + if set to true [is arrow head exist]. + The path. + The line points1. + + + + Draws the open end arrow head. + + The shape. + The pen. + The bounds. + The line points. + The end point. + if set to true [is arrow head exist]. + The path. + + + + Draws the close end arrow head. + + The shape. + The pen. + The bounds. + The line points. + The end point. + if set to true [is arrow head exist]. + The path. + + + + Draws the stealth end arrow head. + + The shape. + The pen. + The bounds. + The line points. + The end point. + if set to true [is arrow head exist]. + The path. + + + + Draws the close end arrow head. + + The shape. + The pen. + The bounds. + The line points. + The end point. + if set to true [is arrow head exist]. + The path. + + + + Draws the stealth end arrow head. + + The shape. + The pen. + The bounds. + The line points. + The end point. + if set to true [is arrow head exist]. + The path. + + + + Draws the open begin arrow head. + + The shape. + The pen. + The bounds. + The line points. + The end point. + if set to true [is arrow head exist]. + The path. + + + + Draws the open begin arrow head. + + The shape. + The pen. + The bounds. + The line points. + The end point. + if set to true [is arrow head exist]. + The path. + + + + Draws the close begin arrow head. + + The shape. + The pen. + The bounds. + The line points. + The end point. + if set to true [is arrow head exist]. + The path. + + + + Draws the close begin arrow head. + + The shape. + The pen. + The bounds. + The line points. + The end point. + if set to true [is arrow head exist]. + The path. + + + + Draws the stealth begin arrow head. + + The shape. + The pen. + The bounds. + The line points. + The end point. + if set to true [is arrow head exist]. + The path. + + + + Draws the stealth begin arrow head. + + The shape. + The pen. + The bounds. + The line points. + The end point. + if set to true [is arrow head exist]. + The path. + + + + Adds the close arrow head points. + + The points. + The pen. + + + + Adds the stealth arrow head points. + + The points. + The pen. + + + + Adds the open arrow head points. + + The points. + The path. + + + + Gets the open arrow default values. + + The lineFormat. + Width of the line. + Length of the arrow. + The arrow angle. + The adjust value. + if set to true [is from begin arrow]. + + + + Gets the close arrow default values. + + The shape lineFormat. + Width of the line. + Length of the arrow. + The arrow angle. + The adjust value. + if set to true [is from begin arrow]. + + + + Gets the length of the arrow head. + + + + + + Gets the close narrow arrow default values. + + Length of the arrow head. + Width of the line. + Length of the arrow. + The arrow angle. + The adjust value. + + + + Gets the close medium arrow default values. + + Length of the arrow head. + Width of the line. + Length of the arrow. + The arrow angle. + The adjust value. + + + + Gets the close wide arrow default values. + + Length of the arrow head. + Width of the line. + Length of the arrow. + The arrow angle. + The adjust value. + + + + Gets the open narrow arrow default values. + + Length of the arrow head. + Width of the line. + Length of the arrow. + The arrow angle. + The adjust value. + + + + Gets the open medium arrow default values. + + Length of the arrow head. + Width of the line. + Length of the arrow. + The arrow angle. + The adjust value. + + + + Gets the open wide arrow default values. + + Length of the arrow head. + Width of the line. + Length of the arrow. + The arrow angle. + The adjust value. + + + + Finds the angle to left and right head point. + + + + + The point1. + The point2. + + + + + + Finds the angle to left and right head point. + + The shape. + The point1. + The point2. + + + + + + Finds the arrow head angle radians. + + The point1. + The point2. + if set to true [is from separate orientation]. + + + + + Finds the base line end point. + + + + + + The line points. + The adjust value. + + + + + + Gets the end point. + + if set to true [is from begin arrow]. + The degree. + The length. + The adjust value. + The line points. + The x. + The y. + + + + Finds the angle radians. + + The line points. + if set to true [is from bottom to top]. + + + + + Finds the end cap arrow head points. + + The shape. + The pen. + The bounds. + The line points. + if set to true [is from open arrow]. + + + + + + Finds the end cap arrow head points. + + The shape. + The pen. + The bounds. + The line points. + if set to true [is from open arrow]. + + + + + + Finds the left right head points. + + + + + The line points. + The points. + The arrow angle. + Length of the arrow. + if set to true [is from begin arrow]. + + + + Construcs the baset line. + + if set to true [is from begin arrow]. + The points. + The line points. + + + + + + Gets the arrow default values. + + The line Format. + The pen. + Length of the arrow. + The arrow angle. + The adjust value. + + if set to true [is from begin arrow]. + + + + Radians to degree. + + The angle. + + + + + Degree2s the radian. + + A. + + + + + Gets the end point. + + The angle. + The length. + The start_x. + The start_y. + The end_x. + The end_y. + + + + Gets the line points based on flip. + + + + The bounds. + + + + + Determines whether the text range is soft hyphen and that need to be drawn. + + The lt widget. + + + + + Gets the string format. + + The char format. + + + + + Gets the brush. + + The color. + + + + + Gets the pdf brush. + + The color. + + + + + Gets the color of the text. + + The char format. + + + + + Get the RevisionColor + + Revision color + + + + + Get the RevisionColor + + Revision color + Is revision type insert type + + + + + Get the RevisionColor + + Revision color + Is revision type insert type + + + + + Get the RevisionColor to fill a comment balloon. + + Revision color + Is revision type insert type + + + + + Updates the alternate font for the font not installed in the system. + + The char format. + Name of the font. + The font. + + + + Checks the owner paragraph of the textrange is a TOC + + Text Range + + + + + Determins whether the paragraph is TOC. + + + + + + + Determines the the paragraph contians hyperlink field. + + + + + + + To check the current text range is present inside the HyperLink. + + + + + + + Check whether current text range is present inside the hyperlink field. + + + + + + + + Gets the font. + + + The char format. + + + + + + Updates the font name and size based on the Bidi property. + + + Character format of the current text range. + Font applied to the current text. + Font size applied to the current text. + Font style applied to the current text. + Returns current text range Bidi font. + + + + Gets the string alignment. + + The para format. + + + + + Gets the pen. + + The border. + + + + + + Gets the pen. + + Type of the border. + Width of the border line. + Color of the border. + + + + + Gets the pen. + + Type of the underline. + Width of the underline. + Color of the underline. + + + + + Scales the image. + + The image. + The width. + The height. + + + + + Adds link to the bookmark. + + The bounds. + The bookmark name. + The target is nothing. + + + + Creates bookmark hyperlink and add into list. + + + + + + + + Adds the hyper link to collection. + + The hyperlink. + The bounds. + + + + Adds the hyper link to collection. + + The picture. + The bounds. + + + + Updates the target bounds and page number for current bookmark. + + Bookmark hyperlink. + Bookmark hyperlink value. + + + + Updates the TOC level. + + The paragraph. + The bookmark. + + + + Updates Result index + + text + the measurer + res index + bSplitByChar + bIsInCell + offset + Client Width + + + res Index + + + + Determine whether the character is CJK leading character + A line of text cannot end with any leading characters, which are listed below + + + + + + + Determine whether the character is Begin CJK character + A line of text cannot begin with any following characters + + + + + + + Determine whether the character is CJK overflow character + Overflow characters are allowed to render in the same line when it doesn't have required client width to fit the character + + + + + + + + + + + + + + Get previous text range + + + + + + Get cell Width + + The paragraph item + + + + + Concatenates the font name, style, font size and Unicode text and returns the key for PDFFontCollection. + + Font object to extract font name, font size and font style from. + check whether it's unicode or not. + Key for the PdfFontCollection dictionary to store and retreive the created PdfFont. + + + + Determines whether the text is unicode + + text + + true if text is unicode, set to true. + + + + + Gets length of WORD. + NOTE: + - WORD: text run that finished by last space letter + (sample: "text " or " "; wrong sample: " text" or "text text" ) + EXCLUSION: + - If text working part have zero symbols return (-1) + - If text working part don't consist SPACE letters return legth of + text working part + + + Index of word first letter + Length of found word + + + + Closes this instance. + + + + + Draws the behind shape widgets. + + + + + Get Order index of the floating item + + + + + + Get the line width of the picture border for Inline picture shape + + + + + + + Get the line width of the picture border + + + + + + + + + + + + Gets or sets a value that indicates whether to regenerate the nested EMF images present in the Word document during PDF conversion. Default value isfalse. + + True if it is necessary to regenerate the nested EMF images present in the Word document during PDF conversion; otherwise false. + + + + Gets or sets the PdfDocument. + + The PdfDocument. + + + + Get the Current Bookmark name + + + + + Gets or sets the value indicates whether to export Word document heading as PDF bookmarks. + + + + + Decides whether, we should enable PdfMetafile.ComplexScript property for current page. + + + + + Gets or sets the graphics. + + The graphics. + + + + Gets or sets the ImageQuality. + + image quality + + + + Gets or sets the PreserveFormFields. + + PreserveFormFields + + + + Gets or sets the custom font collection. + + + + + Gets or sets the custom font name collection. + + fontName + + + + Gets a Fallback font collection of Word document. + + + + + Gets or set the embedded fonts. + + + + + Gets or sets the graphics. + + The graphics. + + + + Gets the bitmap graphics. + + The graphics. + + + + Gets the hyperlinks. + + The hyperlinks. + + + + Gets the bookmark hyperlinks list. + + + + + Gets the bookmarks. + + + + + Gets the overlapping shape widgets. + + The overlapping shape widgets. + + + + Gets the font metric. + + + The font metric. + + + + + Gets the string formt. + + + The string formt. + + + + + Gets or sets a value indicating whether to embed fonts to converted PDF in Word to PDF conversion. + + + + + Gets or sets a value indicating whether to preserve the ole equation as bitmap in Word to PDF conversion. + + + + + Gets or sets a value indicating whether to embed the complete font information in the resultant PDF document. + + + + + Gets or sets a value indicates whether the converted PDF document is tagged or not. + + Remarks: Set this property as true, to preserve the accessible structure tags from Word document to the converted PDF. Using this property Word documents can be converted to PDF with 508 compliance. + Setting this property as true will automatically enable EnableFastRendering property. + + + + + + + + + + + + + + + + + Gets the vertical border + + + + + Gets / sets the horizontal border + + + + + Initializes a new instance of the class. + + Name of the bookmark. + The page number. + The bounds. + + + + Gets or sets the bookmarkStyle. + + The bookmarkStyle. + + + + Gets or sets the bounds. + + The bounds. + + + + Gets or sets the page number. + + The page number. + + + + Gets or sets the name of the bookmark. + + The name of the bookmark. + + + + Sort the border rendering order based on its color brightness order + + + + + Represents the class which drawing a Math Equations. + + + + + Creates a class instance to render the WMath entity. + + Represent the + + + + Draw the WMath instance. + + Represent the WMath instance to draw + Represent the layouted widget of WMath instance + + + + Draw the IOfficeMath instance. + + Represent the layouted widget of OfficeMath instance + + + + Draw the delimiter character with required stretching. + + Specify the delimiter widget. + Specify the required height to stretch. + Specify the character format. + + + + Draw the Line used in MathML. + + Represent the layouted widget of a line. + + + + Draw the layouted string widget. + + Represent the string widget + Represent the characterFormat + Represent the scalingFactor + + + + Dispose a MathRenderer object. + + + + + Gets a class object for drawing. + + + + + This class provides support for converting WordDocument into an PDF Document. + + + + This class is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. + + This example converts the specified Word Document in to PDF Document. + + //Loads an existing Word document + WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); + //Instantiation of DocToPDFConverter for Word to PDF conversion + DocToPDFConverter converter = new DocToPDFConverter(); + //Converts Word document into PDF document + PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); + //Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf"); + //Releases all resources used by the object. + converter.Dispose(); + //Closes the instance of document objects + pdfDocument.Close(true); + wordDocument.Close(); + + + 'Loads an existing Word document + Dim wordDocument As New WordDocument("Template.docx", FormatType.Docx) + 'Instantiation of DocToPDFConverter for Word to PDF conversion + Dim converter As New DocToPDFConverter() + 'Converts Word document into PDF document + Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) + 'Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf"); + 'Releases all resources used by the object. + converter.Dispose(); + 'Closes the instance of document objects + pdfDocument.Close(true); + wordDocument.Close(); + + + + + + converter settings to the document + + + + + The m_flag + + + + + Initializes a new instance of the class. + + This constructor is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. + + This example converts the specified Word Document in to PDF Document. + + //Loads an existing Word document + WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); + //Instantiation of DocToPDFConverter for Word to PDF conversion + DocToPDFConverter converter = new DocToPDFConverter(); + //Converts Word document into PDF document + PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); + //Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf"); + //Releases all resources used by the object. + converter.Dispose(); + //Closes the instance of document objects + pdfDocument.Close(true); + wordDocument.Close(); + + + 'Loads an existing Word document + Dim wordDocument As New WordDocument("Template.docx", FormatType.Docx) + 'Instantiation of DocToPDFConverter for Word to PDF conversion + Dim converter As New DocToPDFConverter() + 'Converts Word document into PDF document + Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) + 'Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf"); + 'Releases all resources used by the object. + converter.Dispose(); + 'Closes the instance of document objects + pdfDocument.Close(true); + wordDocument.Close(); + + + + + + Release the resources occupied by this instance. + + + + + Releases all resources used by the object. + + This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. + + This example converts the specified Word Document in to PDF Document. + + //Loads an existing Word document + WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); + //Instantiation of DocToPDFConverter for Word to PDF conversion + DocToPDFConverter converter = new DocToPDFConverter(); + //Converts Word document into PDF document + PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); + //Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf"); + //Releases all resources used by the object. + converter.Dispose(); + //Closes the instance of document objects + pdfDocument.Close(true); + wordDocument.Close(); + + + 'Loads an existing Word document + Dim wordDocument As New WordDocument("Template.docx", FormatType.Docx) + 'Instantiation of DocToPDFConverter for Word to PDF conversion + Dim converter As New DocToPDFConverter() + 'Converts Word document into PDF document + Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) + 'Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf"); + 'Releases all resources used by the object. + converter.Dispose(); + 'Closes the instance of document objects + pdfDocument.Close(true); + wordDocument.Close(); + + + + + + Converts the specified WordDocument to PDF. + + The word document. + The PdfDocument. + This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. + If running the application by hosting in Azure environment, is enabled automatically. + + This example converts the specified Word Document in to PDF Document. + + //Loads an existing Word document + WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); + //Instantiation of DocToPDFConverter for Word to PDF conversion + DocToPDFConverter converter = new DocToPDFConverter(); + //Converts Word document into PDF document + PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); + //Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf"); + //Releases all resources used by the object. + converter.Dispose(); + //Closes the instance of document objects + pdfDocument.Close(true); + wordDocument.Close(); + + + 'Loads an existing Word document + Dim wordDocument As New WordDocument("Template.docx", FormatType.Docx) + 'Instantiation of DocToPDFConverter for Word to PDF conversion + Dim converter As New DocToPDFConverter() + 'Converts Word document into PDF document + Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) + 'Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf"); + 'Releases all resources used by the object. + converter.Dispose(); + 'Closes the instance of document objects + pdfDocument.Close(true); + wordDocument.Close(); + + + + + + Check and set balloon count for track changes. + + + + + + Embed the Document fonts in the private font collection. + + + + + Gets the font name from the given stream. + + + + + Check whether the font stream is valid + ToDo : Need to implement similar method for Word to Image + + Stream from which font instance will be created. + + + + + Convert ODTTF font stream to TTF font stream. + + ODTTF font stream + TTF font stream + embed font key + + + + + Converts the specified WordDocument to PDF. + + Name of the file. + The PdfDocument. + This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. + If running the application by hosting in Azure environment, is enabled automatically. + + This example converts the specified Word Document in to PDF Document. + + //Instantiation of DocToPDFConverter for Word to PDF conversion + DocToPDFConverter converter = new DocToPDFConverter(); + //Converts the specified WordDocument to PDF. + PdfDocument pdfDocument = converter.ConvertToPDF("Template.docx"); + //Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf"); + //Releases all resources used by the object. + converter.Dispose(); + //Closes the instance of document objects + pdfDocument.Close(true); + + + 'Creates an instance of the DocToPDFConverter + Dim converter As New DocToPDFConverter() for Word to PDF conversion + 'Instantiation of DocToPDFConverter + Dim pdfDocument As PdfDocument = converter.ConvertToPDF("Template.docx") + 'Save the document in the given name and PDF format + pdfDocument.Save("WordtoPDF.pdf"); + 'Releases all resources used by the object. + converter.Dispose(); + 'Closes the instance of document objects + pdfDocument.Close(true); + + + + + + Converts to PDF. + + The stream. + The PdfDocument. + This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. + If running the application by hosting in Azure environment, is enabled automatically. + + This example converts the specified Word Document in to PDF Document. + + //Loads an existing Word document + Stream fileStream = new FileStream("Template.docx", FileMode.Open, FileAccess.Read, FileShare.Read); + //Instantiation of DocToPDFConverter for Word to PDF conversion + DocToPDFConverter converter = new DocToPDFConverter(); + //Converts the specified WordDocument to PDF. + PdfDocument pdfDocument = converter.ConvertToPDF(fileStream); + //Save the document in the given name and PDF format + pdfDocument.Save("WordtoPDF.pdf"); + //Releases all resources used by the object. + converter.Dispose(); + //Closes the instance of document objects + fileStream.Close(); + pdfDocument.Close(true); + + + //Loads an existing Word document + Dim fileStream As Stream = New FileStream("Template.docx", FileMode.Open, FileAccess.Read, FileShare.Read) + 'Instantiation of DocToPDFConverter for Word to PDF conversion + Dim converter As New DocToPDFConverter() + 'Converts Word document into PDF document + Dim pdfDocument As PdfDocument = converter.ConvertToPDF(fileStream) + 'Save the document in the given name and PDF format + pdfDocument.Save("WordtoPDF.pdf"); + 'Releases all resources used by the object. + converter.Dispose(); + 'Closes the instance of document objects + fileStream.Close(); + pdfDocument.Close(true); + + + + + + Creates the PDF document. + + + + + + Adds the section. + + The page setup. + + + + + Sets the pages settings. + + The layouter. + + + + Adds the document properties. + + The doc properties. + + + + Adds the hyper links. + + The hyperlinks. + + + + Scale the given rectangle bounds with specified scaling factor. + + + + + Getting Parent Node for the levels of the Bookmarks + + + + + + Draw To PDF + + The DocumentLayouter + PdfDocument + + + + Create temp font stream + + Actual font streams + Temp font streams + + + + Draw To PDF + + The DocumentLayouter + PdfDocument + + + + Shows the warnings. + + + + + + Create warning element names into the list + + + + + + Gets the page settings. + + The page settings. + + + + Gets or sets the quality. + + This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. + + + + Gets a value indicating whether this conversion has been canceled. + + + true if this conversion is canceled; otherwise, false. + + This method is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. + + + + Gets or sets a value indicating whether the PDF document was generated using web service. + + + true if the PDF document was generated using web service; otherwise, false. + + + + + Represents a class to get fallback fonts during Direct PDF conversion. + + + + + Gets fall back font to preserve the text in converted PDF document. + + Represent original font. + Represent a input text. + Represent the scriptType of a input text. + Represent the character format of a input text. + Represent the fallback fonts list. + Represent the substituted or Embedded fonts collection. + Returns fallback font if it has; otherwise returns original font. + + + + Gets or sets a value indicating whether to embed fonts to converted PDF in Word to PDF conversion. + + + + + Gets or sets a value indicating whether to embed the complete font information in the resultant PDF document. + + + + + Represent class with setting of converter. + + This example illustrates DocToPDFConverter settings. + This class is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. + + //Loads an existing Word document + WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); + //Instantiation of DocToPDFConverter for Word to PDF conversion + DocToPDFConverter converter = new DocToPDFConverter(); + //Skip the updating process for Alternate chunks in the Word document + converter.Settings.EnableAlternateChunks = false; + //Sets the image resolution + converter.Settings.ImageResolution = 640; + //Sets the jpeg image quality to reduce the Pdf file size + converter.Settings.ImageQuality = 100; + //Sets true to optimize the memory usage for identical image + converter.Settings.OptimizeIdenticalImages = false; + //Sets the PdfConformanceLevel + converter.Settings.PdfConformanceLevel = PdfConformanceLevel.None; + //Converts Word document into PDF document + PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); + //Closes the instance of Word document object + wordDocument.Close(); + //Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf"); + //Releases the resources occupied by DocToPDFConverter instance + converter.Dispose(); + //Closes the instance of PDF document object + pdfDocument.Close(true); + + + 'Loads an existing Word document + Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) + 'Instantiation of DocToPDFConverter for Word to PDF conversion + Dim converter As DocToPDFConverter = New DocToPDFConverter() + 'Skip the updating process for Alternate chunks in the Word document + converter.Settings.EnableAlternateChunks = False + 'Sets the image resolution + converter.Settings.ImageResolution = 640 + 'Sets the jpeg image quality to reduce the Pdf file size + converter.Settings.ImageQuality = 100 + 'Sets true to optimize the memory usage for identical image + converter.Settings.OptimizeIdenticalImages = False + 'Sets the PdfConformanceLevel + converter.Settings.PdfConformanceLevel = PdfConformanceLevel.None + 'Converts Word document into PDF document + Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) + 'Closes the instance of Word document object + wordDocument.Close() + 'Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf") + 'Releases the resources occupied by DocToPDFConverter instance + converter.Dispose() + 'Closes the instance of PDF document object + pdfDocument.Close(True) + + + + + + Need to enable the Alternate chunks element + + + + + Need to enable the direct PDF rendering + + + + + Need to update the fields present in the document. + + + + + Indicates the quality of the image. + + + + + Indicates whether to preserve the Word document form fields as PDF document form fields + + + + + Indicates the Image resolution + + + + + The m_warning + + + + + Gets or sets a value indicates to automatically detect the complex script text present in the Word document during PDF conversion. Default value is false. + + Trueif it is necessary to automatically detect the complex script text present in the Word document during PDF conversion; otherwise, false. + Set this property to true, only if you have complex script text that is not marked as complex script type (CharacterFormat.ComplexScript is false) in the Word document. + You can mark a text as complex script by enabling the WTextRange.CharacterFormat.ComplexScript property. + Since automatic detection of complex script text involves validation of all the text in the document and may impact proportionally in Word to PDF conversion performance. + This example illustrates AutoDetectComplexScript property of DocToPDFConverter settings. + + //Loads an existing Word document + WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); + //Instantiates DocToPDFConverter instance for Word to PDF conversion + DocToPDFConverter converter = new DocToPDFConverter(); + //Sets AutoDetectComplexScript property as true, to detect the complex scripts automatically + converter.Settings.AutoDetectComplexScript = true; + //Converts Word document into PDF document + PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); + //Closes the instance of Word document object + wordDocument.Close(); + //Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf"); + //Releases the resources occupied by DocToPDFConverter instance + converter.Dispose(); + //Closes the instance of PDF document object + pdfDocument.Close(true); + + + 'Loads an existing Word document + Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) + 'Instantiates DocToPDFConverter instance for Word to PDF conversion + Dim converter As DocToPDFConverter = New DocToPDFConverter() + 'Sets AutoDetectComplexScript property as true, to detect the complex scripts automatically + converter.Settings.AutoDetectComplexScript = True + 'Converts Word document into PDF document + Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) + 'Closes the instance of Word document object + wordDocument.Close() + 'Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf") + 'Releases the resources occupied by DocToPDFConverter instance + converter.Dispose() + 'Closes the instance of PDF document object + pdfDocument.Close(True) + + + + + + Gets or sets a value that indicates whether to regenerate the nested Metafile images present in the Word document during PDF conversion. Default value isfalse. + + True if it is necessary to regenerate the nested Metafile images present in the Word document during PDF conversion; otherwise false. + This example illustrates RecreateNestedMetafile property of DocToPDFConverter settings. + + //Loads an existing Word document + WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); + //Instantiates DocToPDFConverter instance for Word to PDF conversion + DocToPDFConverter converter = new DocToPDFConverter(); + //Sets RecreateNestedMetafile property to true to Recreate the Nested Metafile automatically + converter.Settings.RecreateNestedMetafile = true; + //Converts Word document into PDF document + PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); + //Closes the instance of Word document object + wordDocument.Close(); + //Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf"); + //Releases the resources occupied by DocToPDFConverter instance + converter.Dispose(); + //Closes the instance of PDF document object + pdfDocument.Close(true); + + + 'Loads an existing Word document + Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) + 'Instantiates DocToPDFConverter instance for Word to PDF conversion + Dim converter As DocToPDFConverter = New DocToPDFConverter() + 'Sets RecreateNestedMetafile property to true to Recreate the Nested Metafile automatically + converter.Settings.RecreateNestedMetafile = True + 'Converts Word document into PDF document + Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) + 'Closes the instance of Word document object + wordDocument.Close() + 'Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf") + 'Releases the resources occupied by DocToPDFConverter instance + converter.Dispose() + 'Closes the instance of PDF document object + pdfDocument.Close(True) + + + + + + Gets or sets a value indicates to enable the Alternate chunks present in the Word document . Default value is True. + + True if need to enable the Alternate chunks; otherwise, false. + This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. + + + + Gets or sets a value that indicates whether to convert PDF faster by using direct PDF rendering. The default value is false. + + True If True, converts PDF faster by using direct PDF rendering approach. Otherwise uses EMF rendering. otherwise, false. + EMF rendering – Convert a Word document to EMF and render the generated EMF to PDF during Word to PDF conversion. + This is default approach, to maintain compatibility for earlier versions. PDF rendering – Directly render a Word document to PDF. + This approach is available from 2016 Volume 4 release. + + + + Gets or sets a value that indicates whether to preserve Word document form field as editable PDF form field.Default value isfalse. + + TrueIf True, converts Word document form field as editable PDF form field in Word to PDF conversion. Otherwise editable form field will be preserved as text in Word to PDF conversion false. + + + //Loads an existing Word document + WordDocument wordDocument = new WordDocument(@"TemplateFormFields.docx"); + //Instantiates DocToPDFConverter instance for Word to PDF conversion + DocToPDFConverter converter = new DocToPDFConverter(); + //Sets to preserve the Word document form field as editable PDF form field in PDF document. + converter.Settings.PreserveFormFields = true; + //Converts Word document into PDF document + PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); + //Releases the resources occupied by DocToPDFConverter instance + converter.Dispose(); + //Closes the instance of Word document object + wordDocument.Close(); + //Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf"); + //Closes the instance of PDF document object + pdfDocument.Close(true); + + + 'Loads an existing Word document + Dim wordDocument As WordDocument = New WordDocument(@"TemplateFormFields.docx") + 'Instantiates DocToPDFConverter instance for Word to PDF conversion + Dim converter As DocToPDFConverter = New DocToPDFConverter() + 'Sets to preserve the Word document form field as editable PDF form field in PDF document. + converter.Settings.PreserveFormFields = True + 'Converts Word document into PDF document + Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) + 'Releases the resources occupied by DocToPDFConverter instance + converter.Dispose() + 'Closes the instance of Word document object + wordDocument.Close() + 'Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf") + 'Closes the instance of PDF document object + pdfDocument.Close(True) + + + + + + Gets or sets a value that indicates whether to update fields present in the Word document while converting a Word document to PDF.Default value is false. + + True If true, updates the fields present in the Word document during Word to PDF conversion. otherwise, false. + + This API is alternative for UpdateDocumentFields() to improve performance, if your requirement is to update the fields and convert the Word document to PDF. + You can remove UpdateDocumentFields() method and enable UpdateDocumentFields property to update the Word document fields and convert the Word document to PDF in optimized way. + + + The following code example demonstrates how to update the fields present while performing Word to PDF conversion. + + //Loads an existing Word document + WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); + //Instantiates DocToPDFConverter instance for Word to PDF conversion + DocToPDFConverter converter = new DocToPDFConverter(); + //Updates the fields present in Word document + converter.Settings.UpdateDocumentFields = true; + //Converts Word document into PDF document + PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); + //Closes the instance of Word document object + wordDocument.Close(); + //Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf"); + //Releases the resources occupied by DocToPDFConverter instance + converter.Dispose(); + //Closes the instance of PDF document object + pdfDocument.Close(true); + + + 'Loads an existing Word document + Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) + 'Instantiates DocToPDFConverter instance for Word to PDF conversion + Dim converter As DocToPDFConverter = New DocToPDFConverter() + 'Updates the fields present in Word document + converter.Settings.UpdateDocumentFields = True + 'Converts Word document into PDF document + Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) + 'Closes the instance of Word document object + wordDocument.Close() + 'Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf") + 'Releases the resources occupied by DocToPDFConverter instance + converter.Dispose() + 'Closes the instance of PDF document object + pdfDocument.Close(True) + + + + + + Gets or sets the quality. The value indicates in percentage, max value represents best quality and min value represents best compression. + + + The value indicates in percentage, max value represents best quality and min value represents best compression + This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. + + + + + Sets the image resolution to the image, which are Embedded + in the Word document + + This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. + + + + Gets/Sets a value indicating whether to optimize the memory usage for the identical (duplicate) images in Doc to Pdf conversion and converted Pdf document. + + This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. + + + + Gets or sets the warning that describes the unsupported elements found while converting the specified Word document to PDF. + + + The warning. + + This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. + + + + Gets or sets the Pdf document's Conformance-level. + + The of the PDF document. + This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. + + + + Gets or sets a value indicating whether to embed fonts in the converted PDF document. Default value is false + + + True: if need to embed fonts in the converted PDF document; otherwise, False. + + + + This property is supported to embed TrueType fonts only. + This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. + + + This example illustrates EmbedFonts property of DocToPDFConverter settings. + + //Loads an existing Word document + WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); + //Instantiates DocToPDFConverter instance for Word to PDF conversion + DocToPDFConverter converter = new DocToPDFConverter(); + //Sets EmbedFonts property as true, to embed fonts in resultant PDF + converter.Settings.EmbedFonts = true; + //Converts Word document into PDF document + PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); + //Closes the instance of Word document object + wordDocument.Close(); + //Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf"); + //Releases the resources occupied by DocToPDFConverter instance + converter.Dispose(); + //Closes the instance of PDF document object + pdfDocument.Close(true); + + + 'Loads an existing Word document + Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) + 'Instantiates DocToPDFConverter instance for Word to PDF conversion + Dim converter As DocToPDFConverter = New DocToPDFConverter() + 'Sets EmbedFonts property as true, to embed fonts in resultant PDF + converter.Settings.EmbedFonts = True + 'Converts Word document into PDF document + Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) + 'Closes the instance of Word document object + wordDocument.Close() + 'Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf") + 'Releases the resources occupied by DocToPDFConverter instance + converter.Dispose() + 'Closes the instance of PDF document object + pdfDocument.Close(True) + + + + + + Gets or sets a value indicating whether to preserve ole equation as bitmap while converting a Word document ot PDF. Default value is false + + + True: if need to preserve the ole equation as bitmap; otherwise, False. + + This example illustrates PreserveOleEquationAsBitmap of DocToPDFConverter settings. + + //Loads an existing Word document + WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); + //Instantiates DocToPDFConverter instance for Word to PDF conversion + DocToPDFConverter converter = new DocToPDFConverter(); + //Sets PreserveOleEquationAsBitmap property as true, to preserve the ole equation as bitmap in resultant PDF + converter.Settings.PreserveOleEquationAsBitmap = true; + //Converts Word document into PDF document + PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); + //Closes the instance of Word document object + wordDocument.Close(); + //Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf"); + //Releases the resources occupied by DocToPDFConverter instance + converter.Dispose(); + //Closes the instance of PDF document object + pdfDocument.Close(true); + + + 'Loads an existing Word document + Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) + 'Instantiates DocToPDFConverter instance for Word to PDF conversion + Dim converter As DocToPDFConverter = New DocToPDFConverter() + 'Sets PreserveOleEquationAsBitmap property as true, to preserve the ole equation as bitmap in resultant PDF + converter.Settings.PreserveOleEquationAsBitmap = True + 'Converts Word document into PDF document + Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) + 'Closes the instance of Word document object + wordDocument.Close() + 'Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf") + 'Releases the resources occupied by DocToPDFConverter instance + converter.Dispose() + 'Closes the instance of PDF document object + pdfDocument.Close(True) + + + + + + Gets or sets a value indicating whether to embed the complete font information in the converted PDF document. Default value is false + + + True: if need to embed the complete font information in the converted PDF document; otherwise, False. + + + + This property is used to indicate whether the complete font information of + the characters in the resultant PDF document to embedded or not. + This property is supported to embed TrueType fonts only. + This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. + + + This example illustrates EmbedCompleteFonts property of DocToPDFConverter settings. + + //Loads an existing Word document + WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); + //Instantiates DocToPDFConverter instance for Word to PDF conversion + DocToPDFConverter converter = new DocToPDFConverter(); + //Sets the embed complete font information in converted PDF + converter.Settings.EmbedCompleteFonts = true; + //Converts Word document into PDF document + PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); + //Closes the instance of Word document object + wordDocument.Close(); + //Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf"); + //Releases the resources occupied by DocToPDFConverter instance + converter.Dispose(); + //Closes the instance of PDF document object + pdfDocument.Close(true); + + + 'Loads an existing Word document + Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) + 'Instantiates DocToPDFConverter instance for Word to PDF conversion + Dim converter As DocToPDFConverter = New DocToPDFConverter() + 'Sets the embed complete font information in converted PDF + converter.Settings.EmbedCompleteFonts = True + 'Converts Word document into PDF document + Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) + 'Closes the instance of Word document object + wordDocument.Close() + 'Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf") + 'Releases the resources occupied by DocToPDFConverter instance + converter.Dispose() + 'Closes the instance of PDF document object + pdfDocument.Close(True) + + + + + + Gets or sets a value indicates whether the converted PDF document is tagged or not. Default value is false + + + True: if need to preserve the accessible structure tags from Word document to the converted PDF; otherwise, False. + + + + Set this property as true, to preserve the accessible structure tags from Word document to the converted PDF. Using this property Word documents can be converted to PDF with 508 compliance. + Setting this property as true will automatically enable property . + This property will set the title and description for images, diagrams and other objects in the generated PDF document. This information is useful for people with vision or cognitive impairments who may not able to see or understand the object + This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. + This property is only applicable while converting the Word document as PDF document. + + + This example illustrates how to convert an Word document to PDF with AutoTag property. + + //Loads an existing Word document + WordDocument wordDocument = new WordDocument("Template.docx", FormatType.Docx); + //Instantiates DocToPDFConverter instance for Word to PDF conversion + DocToPDFConverter converter = new DocToPDFConverter(); + //Sets the accessible structure tags in converted PDF + converter.Settings.AutoTag = true; + //Converts Word document into PDF document + PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); + //Closes the instance of Word document object + wordDocument.Close(); + //Releases the resources occupied by DocToPDFConverter instance + converter.Dispose(); + //Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf"); + //Closes the instance of PDF document object + pdfDocument.Close(true); + + + 'Loads an existing Word document + Dim wordDocument As WordDocument = New WordDocument("Template.docx", FormatType.Docx) + 'Instantiates DocToPDFConverter instance for Word to PDF conversion + Dim converter As DocToPDFConverter = New DocToPDFConverter() + 'Sets the accessible structure tags in converted PDF + converter.Settings.AutoTag = True + 'Converts Word document into PDF document + Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) + 'Closes the instance of Word document object + wordDocument.Close() + 'Releases the resources occupied by DocToPDFConverter instance + converter.Dispose() + 'Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf") + 'Closes the instance of PDF document object + pdfDocument.Close(True) + + + + + + Gets or sets a value indicates whether to export Word document headings or bookmarks as PDF bookmarks while performing Word to PDF conversion. Default value is ExportBookmarkType.Bookmarks + + + The member specifies whether Word headings or bookmarks need to be considered in Word to PDF conversion. + + + + The will consider only headings within the main document and text boxes not within headers, footers, endnotes, footnotes, or comments. + This property is supported on Windows Forms, WPF, ASP.NET and ASP.NET MVC platforms only. + This property is only applicable while converting the Word document as PDF document. + + + This example illustrates how to convert an Word document headings to PDF Bookmarks with the help of ExportBookmark property. + + //Creates a new Word document + WordDocument wordDocument = new WordDocument(); + //Add a section into the word document + IWSection section = wordDocument.AddSection(); + //Add a paragraph into the section + IWParagraph paragraph = section.AddParagraph(); + //Add a text into the paragraph + paragraph.AppendText("First Chapter1"); + //Apply style for the text + paragraph.ApplyStyle(BuiltinStyle.Heading1); + paragraph.AppendText("First Chapter2"); + paragraph.ApplyStyle(BuiltinStyle.Heading2); + paragraph.AppendText("First Chapter3"); + paragraph.ApplyStyle(BuiltinStyle.Heading3); + //Instantiates DocToPDFConverter instance for Word to PDF conversion + DocToPDFConverter converter = new DocToPDFConverter(); + //Sets ExportBookmarks for preserving Word document headings as PDF bookmarks + converter.Settings.ExportBookmarks = Syncfusion.DocIO.ExportBookmarkType.Headings; + //Converts Word document into PDF document + PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument); + //Closes the instance of Word document object + wordDocument.Close(); + //Releases the resources occupied by DocToPDFConverter instance + converter.Dispose(); + //Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf"); + //Closes the instance of PDF document object + pdfDocument.Close(true); + + + 'creates a new Word document + Dim wordDocument As WordDocument = New WordDocument() + 'Add a section into the word document + Dim section As IWSection = wordDocument.AddSection() + 'Add a paragraph into the section + Dim paragraph As IWParagraph = section.AddParagraph(); + 'Add a text into the paragraph + paragraph.AppendText("First Chapter1"); + 'Apply style for the text + paragraph.ApplyStyle(BuiltinStyle.Heading1); + paragraph.AppendText("First Chapter2"); + paragraph.ApplyStyle(BuiltinStyle.Heading2); + paragraph.AppendText("First Chapter3"); + paragraph.ApplyStyle(BuiltinStyle.Heading3); + 'Instantiates DocToPDFConverter instance for Word to PDF conversion + Dim converter As DocToPDFConverter = New DocToPDFConverter() + 'Sets ExportBookmarks for preserving Word document headings as PDF bookmarks + converter.Settings.ExportBookmarks = Syncfusion.DocIO.ExportBookmarkType.Headings + 'Converts Word document into PDF document + Dim pdfDocument As PdfDocument = converter.ConvertToPDF(wordDocument) + 'Closes the instance of Word document object + wordDocument.Close() + 'Releases the resources occupied by DocToPDFConverter instance + converter.Dispose() + 'Saves the PDF file + pdfDocument.Save("WordtoPDF.pdf") + 'Closes the instance of PDF document object + pdfDocument.Close(True) + + + + + diff --git a/ZZ_Signature_C/bin/Debug/Syncfusion.OfficeChartToImageConverter.WPF.dll b/ZZ_Signature_C/bin/Debug/Syncfusion.OfficeChartToImageConverter.WPF.dll new file mode 100644 index 00000000..0f823d00 Binary files /dev/null and b/ZZ_Signature_C/bin/Debug/Syncfusion.OfficeChartToImageConverter.WPF.dll differ diff --git a/ZZ_Signature_C/bin/Debug/Syncfusion.OfficeChartToImageConverter.WPF.xml b/ZZ_Signature_C/bin/Debug/Syncfusion.OfficeChartToImageConverter.WPF.xml new file mode 100644 index 00000000..90124d98 --- /dev/null +++ b/ZZ_Signature_C/bin/Debug/Syncfusion.OfficeChartToImageConverter.WPF.xml @@ -0,0 +1,2403 @@ + + + + Syncfusion.OfficeChartToImageConverter.Wpf + + + + + It's assign the Excel Chart properties to SfChart. + + + + + Border width constant in MS EXCEL + + + + + Represents the default line thickness in XML workbook + + + + + Represents the default line thickness in Binary workbook + + + + + Represent the SfChart. + + + + + True axis line format are set the sfchart, otherwise hidden the axis line. + + + + + True the category label is hidden, otherwise show the category label. + + + + + True the new line series is create and add to collection, otherwise false + + + + + Represent the new lineseries add the series collection index. + + + + + Text area collection to be used for measurement of the individual axis labels + + + + + Parent workbook internal object + + + + + Represents the marker type value in integer + from enum ExcelChartType (XlsIO) and OfficeChartType (OfficeChart) + + + + + Excel engine. + + + + + Constructor initialize the worksheet + + + + + Set the chart size. + + input chart + + + + Apply a number format to value. + + Value. + number format to be applied + returns numberformat applied string. + + + + It's assign the Excel chart numerical axis settings to Sf chart Axis + + SfAxis3D + XlsIO value axis + XlsIO category axis + Specifies whether a certain condition is met. + + + + Create the new line series and add to the collection. + + Sf numerical axis + XlsIO value axis + XlsIO category axis + + + + Indicates whether the axis is category and it is not automatic + + input axis + the boolean value + + + + Returns the boolean value indicates axis format is depends on the stacked 100 format + + input chart object + the boolean value shows is stacked 100 format + + + + Get the referenced (first series and first cell) number format from axis + + input axis + the referenced numberformat + + + + Identify the first visible cell from the input range and return the cell's numberformat + + input range + the numberformat + + + + Cehck whether the range is valid (not null and not refers external range) + + input range + the boolean value + + + + Ceheck whether the range's row is hidden or not + + the input value cell + parent worksheet + the boolean value + + + + It's assign the Excel chart numerical axis 2D settings to Sf chart Axis 2D + + SfAxis + XlsIO value axis + XlsIO category axis + boolean value has a condition + + + + Gets the dispaly unit numerical value. + + Input chart value axis + + + + It's assign the Excel chart numerical axis 3D settings to Sf chart Axis 3D + + SfAxis3D + XlsIO value axis + XlsIO category axis + + + + Method triggered when the numerical axis bound changed + + + + + + + Set the axis maximum labels count based on the given size. + Maximum labels count is per 100 pixel. + + input sfchart numeric axis + the size of axis label + + + + Return the Label Template for Axis + + input chart axis + the custom template created from the input + + + + It's assign the Excel chart axis gridline settings to Sf chart axis gridline + + XlsIO axis. + Sf axis. + + + + It's assign the Excel chart category axis settings to Sf chart Axis + + Sfchart category axis + XlsIO category axis + XlsIO Value axis + + + + Check the bar chart axis or not. + + Sfchart category axis + + + + Create the new line series and add to the collection. + + Sfchart category axis + XlsIO category axis + XlsIO Value axis + + + + It's assign the Excel chart category axis settings to Sf chart Axis + + SfChart category axis + XlsIO category axis + XlsIO value axis + + + + It's assign the Excel chart category axis settings to Sf chart Axis + + SfChart category axis + XlsIO category axis + XlsIO value axis + + + + Invoked after axis label crated. + + Chart axis. + Chart label args. + + + + Event method called on Category/DateTime Axis bounds are changed + + the sender axis object + Axisbounds changed event arguments + + + + Position the axis labels when the between ticks set + + input axis object + the eventargs + + + + It's assign the Excel chart Logerthmi axis settings to Sf chart Axis + + Sf axis + XlsIO value axis + XlsIO category axis + + + + It's assign the Excel chart Logerthmi axis settings to Sf chart Axis + + Sf axis + XlsIO category axis + XlsIO value axis + + + + It's assign the Excel chart Logerthmi axis settings to Sf chart Axis + + Sf axis + XlsIO value axis + XlsIO category axis + + + + It's assign the Excel chart Logerthmi axis settings to Sf chart Axis + + Sf axis + XlsIO category axis + XlsIO value axis + + + + It's assign the Excel chart Logerthmi axis settings to Sf chart Axis + + Sf axis + XlsIO value axis + XlsIO category axis + + + + It's assign the Excel chart DateTime axis settings to Sf chart Axis + + Sf axis + XlsIO value axis + XlsIO category axis + + + + It's assign the Excel chart DateTime3D axis settings to Sf chart Axis + + Sf axis + XlsIO value axis + XlsIO category axis + + + + It's assign the Excel chart axis tick line settings to Sf chart axis tick line + + + + + + + It's assign the Excel chart AxisTitle settings to Sf chart AxisTitle + + xlsio/office chart axis + boolean value indicates whether the chart is Excel 2016 type + the axis title border + + + + Get the rotation angle from the axis and returns proper transform + + Input Chart Axis + the rotation angle + + + + Check whether the axis is vertical or not + + axis to be checked + the boolean value, is vertical or not + + + + Returns the boolean value indicates axis format is vertical + + input chart axis object + the boolean value shows is vertical + + + + It's assign Sf chart Legend settings + + SfChart + Excel Chart + output array represents the legend items to be ordered + Returns the empty legend for spacing if legend manual and outside + boolean value indicates wheter the plot area is manual + + + + Split Legend Items based on Categories if single series is with isvarycolor option is set or doughnut series is came. + + input sfchart object + boolean value denotes whether the series is doughnut + + + + Manual layout legend wrapping has been set like MS Office + + input legend + 2D chart series count + 3D chart series count + Text block used for legend text meausure ment + manual rectangle layout for legend position and size + + + + Generate the Stream Xaml code + + input string builder value + the stream + + + + Calculate the legend width values from the input sfchart object + + input sfchart 2D Object + input sfchart 3D Object + the temporary text block used to measure the text + the serie text width + the total text width + maximum serie text height + Total legend entry count + + + + Set the legend position based on the input chart object + + input chart object + the SfChart legend object + + + + Returns the array of legend item's indexes as equivalent to MS + + input sfchart + input XlsIO/Office Chart + input sfchart legend items + the modified array legened item indexes + + + + Update the array of legend items indexes + + input series list + input sfchart + input index value + output index value + the order of indexes modified + + + + Calculate the manual layout rectangle value based from the input chart element object + + input layoutimpl object + boolean value indicates whether the plot area layout target is inner. + the caluclated manual rectangle value + + + + Update the funnel chart legend + + input sfchart + input XlsIO chart + + + + It's used assign the XlsIo textarea properties to sf TextBlock + + Wpf TextBlock + Xlsio Text Area + + + + Set the transform and the backgound color for text block + + The WPF border object + The Chart textArea object + + + + It's assign the SfChart AxisTitle properties + + sfChart + Xlsio Chart + The calculated WPF border object + + + + Set the rich text fromatting in text block from the text area object + + input text area object + input text block + + + + Method used to assign the formattings in run + + run to be assigned + font used to assign values + + + + It's assign the chart data label property + + chart serie + Sfchart serie base object + sfChart DataLabel + + + + Set Marker format on Chart adornment from Chart data format + + input chart series object + input chart series data format + the indexes of the chart points need to set invisible + the sfchart adornment info + + + + + Get the Marker settings from the marker format of Office Chart + + Parent chart series + Data format of marker + Parent marker settings - series common + + + + the marker settings for binding + + + + Check whether the series is single and its vary colors by point option is set to true + + input chart serie + the boolean value indicates whether the serie supports is vary color + + + + Set sf chart data label position. + + SfChart serie. + SfChart data label. + XlsIO data label. + + + + Returns the Geometry based on the marker type and marker size + + Marker Type in Integer + Marker Size + the geometry for symbols + + + + Returns the color converter object respect to number format + + input number format + input default color + the color converter object + + + + Calculates the color from given rgb and transparency value + + input Red value + input Green value + input Blue value + input Transparency value + the output color + + + + Calculates the color from given rgb value + + input Red value + input Green value + input Blue value + the output color + + + + It's convert the drawing color to Media color + + Drawing color + Media color + + + + It's assign the chart plotArea settings + + sfChart + XlsiO chartArea + chart type of the input chart + + + + It's assign the chartAre settings + + sfChart + XlsiO chartArea + + + + + It's assign the chartAre settings + + sfChart + XlsiO chartArea + + + + + Checks whether the given chart type is line or not + + Chart Type + boolean value + + + + Add the trendlines to sfserie. + + XlsIO serie. + SfSerie. + + + + Set SfChart secondary axis settings. + + XlsIO serie. + XlsIO chart. + SfChart serie. + + + + Set SfChart secondary axis common settings. + + XlsIO chart. + SfCategory axis. + SfNumeric axis. + + + + Get series name. + + XlsIO chart series. + returns series name. + + + + Get the stroke pattern value from the border property + + Input border pattern property + Out stroke thickness + boolean value indicates whether the pattern values are present or not + + + + Set GapWidth and Overlap for bar and column series. + + SfChart series base. + XlsIO serie. + + + + Check for single seies present column and bar series, if found set the equal gapwidth + + input sfchart series + input XlsIO chart + output overlap value + boolean value indicates whether the chart is 3D + the boolean value indicates whether the spacing has been set or not + + + + Get the border thickness from the input border + + input Border + the border thickness value + + + + Rotate SfChart3D. + + XlsIO chart + SfChart + + + + Set XlsIO wall brush to SfChart wall brush. + + SfChart3D + + + + + Get brush from wall. + + XlsIO wall. + Boolean value indicates whether the wall is floor or not + + Brush + + + + Get the brush value from input border values + + input border value + the output brush + + + + get the brush with color and transparent values from input chartseriedataformat + + the input chartseriedataformat + the brush + + + + To Get the Gradient Stops and Calculate the Gradent stops postions and apply Gradinet Fill + + + + + + + Get the maximum gradient style used from the input chart + + input gardient stop collection + maximum used gradient stop + + + + Check and apply the axis line style from chart border object + + input chart border object + the line style + /// The chart instance from which the axis line style is retrieved. + The enumeration representing the chart element. + Boolean value indicating whether the operation is for the axis line. + + + + Returns the UI border object from chart border object + + the chart border object + the border UI element + + + + Try and set the chart axis title from the input axes + + input sfchart axis + input chart axis + collection of axis title + collection of display units + boolean value indicates whether the axis changed based on plot area + manual layout rectangle value + boolean value indicates whether the chart is radar or not. + + + + Try and retruns the axis title template includes the title and display unit + + input sfchart axis + the axis title border object + the display unit border object + boolean value indicates whether the axis is vertical + the manual layout rectangle value + the data template object + + + + Generate the framework element factory object from given WPF object + + border UI element + the framework element factory object + + + + Retains the axis title rotation angle + + input axis title wpf border object + input axis textArea object + + + + Try and Set the plot area margin from the input values + + input XlsIO/Office Chart object + input sfchart object + Legend Object + the manual layout rectangle value + boolean value indicates whether plot area target is inner or not. + boolean value indicates whether the TLBR can be ignored + + + + Calculate and returns the byte value by checking sfchart elements + + input sfchart object + Chart legend object used for calculation + boolean value indicates whether the chart is funnel or not + the byte value indicates the region might be cropped + + + + Get the display unit label(text annotation) from the input axes + + input chart axis + input sfchart axis + Out parameter for the manual rectangle. + Out parameter indicating whether the axis is vertical. + the WPF border object + + + + Returns the display unit text from the axis object + + input axis object + the display unit text + + + + Gets the color value based on the input element name and style id. + A return value indicates whether the conversion succeeded or failed. + + input element enum + the parent chart + the output color value + boolean value indicates whether the color getting is success or not + + + + Gets the thickness/marker size value based on the input element name and style id. + A return value indicates whether the conversion succeeded or failed. + + input element enum + the parent chart + the output color value + nullable short value indicates the line thickness is set or not. only for marker size + boolean value indicates whether the thickness/marker size getting is success or not + + + + Apply the input tint/shade value to the input color and returns the output color + + the input color + the input tint/shade color + the mixing tint/shade color + the output color in which tint/shade is applied + + + + Gets the color value based on the input element name and style id for serie/data point line or fill + A return value indicates whether the conversion succeeded or failed. + + the parent chart + current formatting index of serie or data point + highest formatting index of series or data point collection + boolean value indicates whether the color of fill or line is requeired + the output color value + boolean value indicates whether the color getting is success or not + + + + Gets and sets the new line series add the collection or not. + + + + + Gets and sets the new line series add the collection index. + + + + + Represents indicating the Category Label is preserved or not. + + + + + Represents indicating the CategoryAxisLine is preserved or not. + + + + + Gets and sets the item source for series. + + + + + Gets and sets the SfChart. + + + + + Represent the indicating the category axis label is dateTime or not. + + + + + Worksheet used for number format + + + + + List contains the series in rectangle format + + + + + It returns the SfBar Serie. + + chart serie + BarSeries + + + + It returns the SfBar Serie3D. + + chart serie + BarSeries3D + + + + It returns the SfStackingBar100 Serie. + + chart serie + StackingBar100Series + + + + It returns the SfArea Serie. + + chart serie + AreaSeries + + + + It returns the SfArea Serie3D. + + chart serie + AreaSeries3D + + + + It returns the SfColumn Serie. + + chart serie + ColumnSeries + + + + Apply the template formats on rectangle series + + input XlsIO chart serie + input SfChart serie + List of negativeIndexes + boolean value indicates whether the border is default + + + + Set the vary color by points for the series + + input sfchart serie + input xlsio/officechart serie + number of data points + negative indexes list + + + + Set Custom brushes for fill in sfchart serie list + + input sfchart serie + total count of the custom points + list of fill brushes + + + + Get common brush by neglecting negatve brushes + + input custom brush list + list of negative indexes + common brush + + + + Applying rectangle shape template on sfchart serie + + input sfchart serie + list of negative indexes + boolean value indicates whether the border is default + Dictionary of border brushes for each data point + Dictionary of border thickness for each data point + + + + Set the custom data template to sfchart series + + input sfchart serie + input data template + + + + Apply legend Icon template + + input sfchart serie + brush for legend icon + + + + It returns the SfColumn Serie3D. + + chart serie + ColumnSeries3D + + + + It returns the SfLine Serie. + + chart serie + LineSeries + + + + It returns the SfLine Series3D. + + chart serie + LineSeries3D + + + + It returns the SfSpline Serie. + + chart serie + SplineSeries + + + + It returns the SfPie Serie. + + chart serie + PieSeries + + + + It returns the SfPie Serie. + + chart serie + PieSeries + + + + It returns the SfDoughnut Serie. + + chart serie + DoughnutSeries + + + + It returns the SfStackingArea Serie. + + chart serie + StackingAreaSeries + + + + It returns the SfStackingArea100 Serie. + + chart serie + StackingArea100Series + + + + It returns the SfStackingBar Serie. + + chart serie + StackingBarSeries + + + + It returns the SfStackingBar Series3D. + + chart serie + StackingBarSeries3D + + + + It returns the SfStackingBar100 Series3D. + + chart serie + StackingBar100Series3D + + + + It returns the SfStackingColumn Serie. + + chart serie + StackingColumnSeries + + + + It returns the SfStackingColumn Series3D. + + chart serie + StackingColumnSeries3D + + + + It returns the SfStackingColumn100 Serie. + + chart serie + StackingColumn100Series + + + + It returns the SfStackingColumn100 Serie. + + chart serie + StackingColumn100Series + + + + It returns the SfRadar Serie. + + chart serie + RadarSeries + + + + It returns the SfScatter Serie. + + chart serie + ScatterSeries + + + + It returns the SfBubble Serie. + + chart serie + BubbleSeries + + + + It returns the SfCandle Serie. + + chart serie + CandleSeries + + + + It returns the SfHiLo Serie. + + chart serie + HiLoOpenCloseSeries + + + + It returns the waterfall serie of sfchart + + xlsio chart serie + the waterfall serie of sfchart + + + + Check and adds the required color brushes for waterfall series + + input xlsio chart series + input sfchart waterfall series + input view model object + + + + Check for series having reference or literal values and return view model object based on values type + + input series need to check + view model object + + + + Get the chartpoints from the series values + + input series + sfchart serie + boolean value denotes whether serie is bubble or not + input chart points to be updated + the updated chart point collection + + + + Get the chart point X/Category value type based on the input values + + boolean value indicates whether the chart is bubble or scatter + boolean value indicates whether the X/Category Value contain any string + cell or external range number format + axis numberformat + parent chart + category axis + teh chart point value type enum value + + + + Returns the boolean value by checking whether the cells or direct values contain any string + + input category cells + input direct category values + array denotes the category need to be skipped + parent worksheet + the boolean value indicates whether the input contains string + + + + Returns the category value based on the input + + input cell + input value + parent worksheet + current index + the chart point value type expected for category + axis NumberFormat + cell/external range NumberFormat + category axis display unit + boolean value indicates whether the data labels required for category + data label result value for category + dataLabel NumberFormat + the expected category value + + + + Get the double value from the cell + + input range + parent worksheet + out cell value type + the double value + + + + Check and Sort the collection if X is datetime value + + input chart serie + chartpoint collection + boolean value indicates whether the charts are stock or not + + + + Get the chartpoints from the series values only for stock chart + + XlsIO chart + input series + input chart points to be updated + boolean value represent the candle chart + the updated chart point collection + + + + Returns the value for stock chart serie + + input range + input direct values + parent worksheet + current index + display unit + teh double value + + + + Assign the brush values for the common chart series + like (Bar,column,Area(stacked or 100%stacked or clustered)),Bubble, + + input Chart series + the ouput SfChart Serie object to be changed + negative indexes by values + + + + Gets the index of negative values serie data points. + + Items to be checked + Index collection. + returns true if serie data points has negative value otherwise false. + + + + Assign the brush values for the pie and doughnut chart series + + input Chart series + the ouput SfChart Serie object to be changed + Indicates whether the input serie is pie or doughnut + Get the border brush set on individual data point + Get the border thickness set on individual data point + the boolean value indicates whether the all datapoints have no fill + + + + Get the border thickness and color value from input border + Set the values to the output serie + + the input series border + the ouput series to be changed + the boolean value indicates whether the default border is applied + + + + Get the border thickness and color value from input border + Set the values to the output serie + + Input series + the ouput series to be changed + + + + Update the line series by segments if is vary color option is set + + input xlsio/officechart serie object + input sfchart serie object + common brush for the serie + boolean value indicates whether the chart is in XML file + the boolean value indicates whether the segment colors are changed + + + + Return the approximate legend icon for the chart serie + + Input serie Data format + integer value for auto marker type + the approimate chart legend icon value + + + + Common chart series settings. + + XlsIo serie. + SfChart series base + Chart data points. + Apply series fill settings + negative indexes by values + + + + skip the first Empty Points + + Set true if it is line + chart serie + chart series base + values from chartpoint collections + Returns the chartpoint value collection + + + + Check and set the blank value based on input + + input chart serie + sfchart serie base + + + + Common chart series settings. + + XlsIo serie. + SfChart series base + Chart data points. + negative indexes by values + + + + Common chart series settings. + + XlsIo serie. + SfChart series base + Chart data points. + + + + Common chart series settings. + + XlsIo serie. + SfChart series base + Apply series fill settings + Chart data points. + + + + Common chart series settings. + Stacked and Stacked100 Bar and column series + + XlsIo serie. + SfChart series base + negative indexes by values + Chart data points. + + + + Detach the attached events when the chart is Radar + + input sfChart object + + + + Sort the legend items based on the input array indices + + input sfchart object + the input array indices + + + + Create sf chart series based on type. + + + + + Create sf chart series. + + SfChart series type. + Returns sf chart series instance. + + + + Enum values used for axis number format and type detection + + + + + Scatter X axis values + + + + + Scatter default index value + + + + + Default index value + + + + + Default index value with axis number format + + + + + Default index value with source number format + + + + + Date Time X axis value + + + + + Text axis Value + + + + + Text axis value with axis number format + + + + + Enum having the equivalent theme color with the integer indexes + + + + + Enum values for the chart elements and required content + + + + + Axis Line color + + + + + Chart area border color + + + + + Chart area fill color + + + + + Up Bar fill color + + + + + Up Bar border color + + + + + Down bar fill color + + + + + Down bar border color + + + + + Data Point or Serie fill color + + + + + Data point or serie border color + + + + + Floor border color + + + + + Floor fill color + + + + + Walls fill color + + + + + Line/Scatter serie line thickness + + + + + Minor grid line color + + + + + Major grid line color + + + + + Plot area fill color only for 2D + + + + + Marker fill color + + + + + Marker size + + + + + Trendlines/hi-lo lines or other lines in the serie + + + + + Excel Chart To Image Converter. + + + + + To assign the input chart + + + + + Represent the quality of Image + + + + + Assign the Sfchart Stream to input stream + + + + + Check whether the chart type is 3D conversion supported. + + + + + + Excel chart to sf Chart conversion. + + Excel chart + SfChart + + + + Set BubbleSize in charts where MS Office Chart equivalent calculations made in sfchart + + input SfChart Object + input MS Office Chart impl object + boolean value indicates whether the chart is combination chart + + + + Set minimum/maximum radius for bubbles per series + + input SfChart Object + input MS Office Chart impl object + boolean value indicates whether the series is primary and secondary formats + expected size of the bubble + + + + Check and returns whether there is possibilty of chart adornments to be hidden + + input sfchart object + the boolean value indicates whether the data labels hidden or not + + + + Get OfficeChart serie collection after refreshing its data + + input OfficeChart serie collection + updated OfficeChart serie collection + + + + Boolean value indicates whether the chart have automatic title. + XlsIO specific as behavior is differs with Presentation Chart + + input chart + the boolean value + + + + Check and returns the plot area margins based on the input values + + input Xlsio/Office chart chart object + boolean value indicates whether the layout is inner + the calculated manual rectangle layout of plot area + + + + Clone the formatttings for the chart for hidden secondary axis + + input sfchart + secondary x axis + secondary y axis + + + + Reset the chart converter properties + + + + + Returns the empty linestyle for axis + + output brush + the invisible line style + + + + Check For any need of axis replacement respect to its values + + input sfchart object + input xlsio / office chart object + boolean value indicates whether axis replaced + + + + Add the line annotation like major and minor tick mark in the chart + + input sfchart + Y1 position value + Y2 position value + Interval between tickmarks + color of tick marks + thickness of tickmark + boolean value indicates whether tick mark is major or minor + + + + Converts an Excel Chart instance into Syncfusion 3D Chart instance. + + Excel chart + SfChart3D + + + + Excel chart to sf Chart conversion. + + Excel chart + Output Stream + SfChart + + + + Sfchart element is save as to image stream. + + Sfchart Element + output Stream + + + + Sf chart is rendered and save as to stream + + Sfchart element + sf chart size + output Stream + + + + Get RenderTargetBitmap object. + + sf chart size + + + + Get Sf chart serie for Excel Chart serie + + Represent the Series Type + Sfchart + Excel Serie + ispie boolean for piechart + isstock boolean for stockchart + boolean value indicates whether the chart contains radar serie + boolean value indicates whether series contains the null values or not + + + + Get Sf chart serie for Excel Chart serie + + Represent the Series Type + Sfchart + Excel Serie + ispie boolean for piechart + isstock boolean for stockchart + boolean value indicates whether the series is empty or not + + + + It's represent the chart image Scaling + + + + + It's an chart data source. Collection of datapoint's. + + + + + Get the x or y value from chart points + + Represents a dynamic chart point collection + if it's true get the x value otherwise get y value + If it's true get the math.log value, otherwise get the chartpoint value + x or y value as string + + + + It's represent the chart datapoint. + + + + + axis values will be stored + + + + + series values will be stored + + + + + bubble size values will be stored + + + Used to store the data labels value with number format + for category axis when axis is not linked to source (only for stock charts). + + + + + stock high values will be stored + + + + + stock low values will be stored + + + + + stock open values will be stored + + + + + stock close values will be stored + + + Used to store the data labels value with number format + for category axis when axis is not linked to source (except stock charts). + + + + + boolean value for waterfall will be stored + + Used to show the data labels and markers to be removed on data point + is an average on line/radar/scatter charts. + + + + + Brush value stores the various color for the line/spline/bubble chart series + + + + + UIDispatcher on call used in WPF application + + + + + Executes the action using UIElement. + + An Action. + + + + Converts the data label values. + + + + + Convets a value. + + Value + Target type + The converter parameter + Culture + + + + + Update datalabel text. + + Datalabel text + Series value + Datalabel setting + + + + + Apply label settings. + + Label value. + Data label setting. + + + + + Update the value from cells value to datalable. + + Datalabel text + + + + Update the series name to datalabel. + + datalabel text + data label setting. + Datalabel text + + + + Update category name to datalabel. + + datalabel text + Data label setting + Datalabel text + + + + Update series value to data label. + + Datalabel text + Series value. + Datalabel setting. + Datalabel text + + + + Update percentage value to datalabel. + + Datalabel text + series value + Datalabel setting. + Datalabel text + + + + Convets a value. + + Value + Target type + The converter parameter + Culture + + + + Converts the thickness respect to the data + + + + + Converts the thickness respect to the data + + + + + Converts the Color respect to the data + + + + + Retruns the brush respect to the input value on numberformat + Possible Keys are, + ['0'] => denotes the color for zero value + ['+'] => denotes the color for positive value + ['-'] => denotes the color for negative value + ['t'] => denotes the color for Text value + ['d'] => denotes the color for Default value + + + + + Converts the input data to axis data + + + + + Indicates the axis type + 0 - vertical axis + 1 - category axis + 2 - stacked axis + 4 - date time axis + 8 - tickLabel none + + + + + Convets a value. + + Value + Target type + The converter parameter + Culture + + + + + Convets a value. + + Value + Target type + The converter parameter + Culture + + + + Used to store the previous value in the value axis + + + + + Converter class used to shows the data labels inside the segement + + + + + Convert the value from object and returns formatted value + + input value + target type of input + The converter parameter + Culture + the formatted output + + + + Convets a value. + + Value + Target type + The converter parameter + Culture + + + + The Converter class used to format the markers in chart + + + + + Stroke Index used to denote the points have been formatted for properties + + + + + Fill Index used to denote the points have been formatted for properties + + + + + Thickness Index used to denote the points have been formatted for properties + + + + + Path Index used to denote the points have been formatted for properties + + + + + Convert the value from object and returns formatted value + + input value + target type of input + The converter parameter + Culture + the formatted output + + + + Convets a value. + + Value + Target type + The converter parameter + Culture + + + + Used to store the marker formats of each marker in the series + + + + + Used to store the Common marker format of the series + + + + + List of indexes of marker to be removed + + + + + Text Block used to Rich Text Binding Support + + + + + Reperesents the individual data label setting + + + + + Class used to store the Marker Formattings + + + + + Brush stores the border color + + + + + Brush stores the fill color + + + + + Size of the marker symbol + + + + + Default Constructor + + + + + Gets/Sets Brush for the border + + + + + Gets/Sets Brush for the fill + + + + + Gets/Sets Size of the marker symbol + + + + + Gets/Sets the thickness value Marker's Border + + + + + Gets/Sets Marker Style enum Value in integer + + + + + Derived class of sfchart Category Axis + + + + + Axis Label Panel canvas. + + + + + Overridden method of OnApplyTemplate. + + + + + Axis Label Panel canvas ReadOnly. + + + + + Boolean value indicate whether the axis is vertical + + + + + Derived class of sfchart DateTime Axis + + + + + Axis Label Panel canvas. + + + + + Overridden method of OnApplyTemplate. + + + + + Axis Label Panel canvas ReadOnly. + + + + + Boolean value indicate whether the axis is vertical + + + + + Extension class for SfChart + + + + + Sets the margin for the plot area element + + margin thickness to be assigned + boolean value indicates whether plot area is inner layout target + boolean value indicates whether the legend is outside + boolean value indicates whether the legend is manual + int value denotes the legend position + + + + Plot Area size of the SfChart Object + + + + + Update the Top,Left,Bottom and Right axis width and height values + + + + + Event to assign the chart area size + + Size to be assigned + + + + Overridden method of OnApplyTemplate. + + + + + Add the text block in the canvas object + + input WPF UI text block object + manual rectangle position + boolean value indicates whether the title can overlap + boolean value indicates whether the plot area is manual layout + + + + Set the axis title and display unit UI text block element + + axis border collection + boolean value indicates the whether text block is display unit + + + + Event method will be called on chart layout is updated. + + sender object + event arguments + + + + Add the handler to chart layout event + + + + + This event has to be triggered on applying the template of the sfchart object + + + + + + + Gets/Sets the Custom canvas property + + + Add the manual layoutted chart elements like axis titles, display units,etc. + + + + + Common panel for adornment labels in chart. + + + This canvas used to display the adornments on top of the canvas. + + + + + Gets/ Sets the Chart Area Size + + + + + Get or set the seriesPresenter from sf chart. + + + + + Get or set the seriesPresenter margin value. + + + + + Top, Left, Bottom and Right Width and Height values stored in this array + + + + + Returns the calculated plot area size of the sfchart if needed. + + + + + Extension class for SfChart 3D + + + + + Event to assign the chart area size + + Size to be assigned + + + + Overridden method of OnApplyTemplate. + + + + + Add the text block in the chart area + + input UI element text block + the manual rectangle position + + + + + Set the axis title and display unit UI text block element + + axis border collection + boolean value indicates the whether text block is display unit + + + + This event has to be triggered on applying the template of the sfchart object + + + + + + + Add the handler to chart layout event + + + + + Get/Set the custom canvas object + + + + + Common panel for adornment labels in chart. + + + This canvas used to display the adornments on top of the canvas. + + + + + Get/Set the chart area size + + + + + Derived class of sfchart Numerical Axis + + + + + Derived class of sfchart Numerical Axis 3D + + + + + Custom Wrap panel designed like MS Excel Legend wrapping + + + + + Boolean dependency property denotes whether the text is wrapped on assigning + + + + + Tuple value denotes the gap between the element in row and column wise + + + + + No of rows required for this panel + + + + + No of columns required for this panel + + + + + Base line height of the legend item + + + + + Whether base line height of the legend item can be used. + + + + + Measure override method + + + + + + + Get proper height of UIElement to fit in the panel + + + the proper height value + + + + Arrange override method + + + + + + + Set CategoryLabel Width + + + + + Set CategoryLabel Height + + + + diff --git a/ZZ_Signature_C/bin/Debug/Syncfusion.Pdf.Base.dll b/ZZ_Signature_C/bin/Debug/Syncfusion.Pdf.Base.dll new file mode 100644 index 00000000..a565dc39 Binary files /dev/null and b/ZZ_Signature_C/bin/Debug/Syncfusion.Pdf.Base.dll differ diff --git a/ZZ_Signature_C/bin/Debug/Syncfusion.Pdf.Base.xml b/ZZ_Signature_C/bin/Debug/Syncfusion.Pdf.Base.xml new file mode 100644 index 00000000..10c2ba98 --- /dev/null +++ b/ZZ_Signature_C/bin/Debug/Syncfusion.Pdf.Base.xml @@ -0,0 +1,247043 @@ + + + + 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; + + + + + Indicates BarHeight enabled when sets BarHeight value ; + + + + + Indicates size enabled when sets Barcode size 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(); + //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") + + + + + + + //Create a new PDF 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") + + + + + + + //Create a new PDF 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=code93.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=code93.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. + + + + + 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 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. + + + + + Indicates the fore color 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) + + + + + + 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) + + + + + + + //Create a new PDF 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. + + + + + + //Create a new PDF 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 location 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(); + //Creates a new PDF datamatrix barcode. + PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); + //Sets the barcode text. + datamatrix.Text = "Test"; + //Set fore color. + datamatrix.ForeColor = new PdfColor(Color.Red); + //Set back color. + datamatrix.BackColor = new PdfColor(Color.Yellow); + //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 fore color. + datamatrix.ForeColor = New PdfColor(Color.Red) + 'Set back color. + datamatrix.BackColor = New PdfColor(Color.Yellow) + '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) + + + + + + Returns the data as byte array. + + + + + + Draws the barcode on the . + + The PDF graphics 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(); + //Create Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //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 PdfGraphics. + datamatrix.Draw(graphics); + //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 Pdf graphics for the page. + Dim graphics As PdfGraphics=page.Graphics + '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 PdfGraphics. + datamatrix.Draw(graphics) + 'Save document to disk. + document.Save("output.pdf") + 'Close the document. + document.Close(True) + + + + + + Draws the barcode on the at the specified location. + + The PdfGraphics 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(); + //Create Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //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 PdfGraphics. + datamatrix.Draw(graphics, 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() + 'Create Pdf graphics for the page. + Dim graphics As PdfGraphics=page.Graphics + '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 PdfGraphics. + datamatrix.Draw(pdfGraphics, New PointF(100,100)) + 'Save document to disk. + document.Save("output.pdf") + 'Close the document. + document.Close(True) + + + + + + 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) + + + + + + + //Create a new PDF 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 + + + + 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") + + + + + + 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 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. + + + + + Returns the encoded list bytes from 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(); + //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. + + + + Returns the encoded list bytes from 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 + + + + 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 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. + + + + + + //Create a new PDF 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 + + + + + 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) + + + + + + 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 Reed Solomon polynomial. + + + + + Internal variable for block length. + + + + + Initializes a defalut DPI + + + + + Initializes default quiteZone for data matrix + + + + + 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) + + + + + + + //Create a new PDF 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). + + + + + Initializes properties and calculation array for DataMatrix barcode. + + + + + Create log and alog arrays. + + + + + Creates factors for Reed Solomon 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. + + + + Choose suitable encoding. + + Data codeword. + Encoded codeword. + + + + Adds quietzone on all sides of the data matrix. + + Input data matrix. + + + + Returns QuiteZone 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(); + //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) + + + + + + + //Create a new PDF 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) + + + + + + Draws the barcode on the . + + The PDF graphics. + + + //Create a new PDF 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //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 dimension of the barcode. + datamatrix.XDimension = 5; + //Draws a barcode on the new PdfGraphics. + datamatrix.Draw(graphics, 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() + 'Create Pdf graphics for the page. + Dim graphics As PdfGraphics =page.Graphics + '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 dimension of the barcode. + datamatrix.XDimension = 5 + 'Draws a barcode on the new PdfGraphics. + datamatrix.Draw(graphics, New PointF(100,100)) + '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 graphics. + Location to draw 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //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 dimension of the barcode. + datamatrix.XDimension = 5; + //Draws a barcode on the new PdfGraphics. + datamatrix.Draw(graphics, 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() + //Create Pdf graphics for the page. + Dim graphics As PdfGraphics =page.Graphics + '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 dimension of the barcode. + datamatrix.XDimension = 5 + 'Draws a barcode on the new PdfGraphics. + datamatrix.Draw(graphics, New PointF(100,100)) + 'Save document to disk. + document.Save("output.pdf") + 'Close the document. + document.Close(True) + + + + + + Draws the barcode on the at the specified location and 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(); + //Create Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //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 dimension of the barcode. + datamatrix.XDimension = 5; + //Draws a barcode on the new PdfGraphics. + datamatrix.Draw(graphics, 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() + 'Create Pdf graphics for the page. + Dim graphics As PdfGraphics graphics=page.Graphics + '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 dimension of the barcode. + datamatrix.XDimension = 5 + 'Draws a barcode on the new PdfGraphics. + datamatrix.Draw(graphics, New PointF(100,100), New SizeF(200,200)) + 'Save document to disk. + document.Save("output.pdf") + 'Close the document. + document.Close(True) + + + + + + Draws the barcode on the at the specified rectangle. + + 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(); + //Create Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //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 PdfGraphics. + datamatrix.Draw(graphics, 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() + 'Create Pdf graphics for the page. + Dim graphics As PdfGraphics =page.Graphics + '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 PdfGraphics. + datamatrix.Draw(graphics, New RectangleF(100, 100, 200, 200)) + 'Save document to disk. + document.Save("output.pdf") + 'Close the document. + document.Close(True) + + + + + + Draws the barcode based on the provided float values. + + The PDF graphics 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(); + //Create Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //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 PdfGraphics. + datamatrix.Draw(graphics, 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() + 'Create Pdf graphics for the page. + Dim graphics As PdfGraphics = page.Graphics + '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 PdfGraphics. + datamatrix.Draw(graphics, 100, 100, 200, 200) + '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) + + + + + + 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. + + + + + Returns the encoded list bytes from text. + + + + + 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) + + + + + + Holds the Version Information. + + + + + Holds the Number of Modules. + + + + + Holds the data of Function Pattern. + + + + + Holds the Data in the Encoding Region. + + + + + Check if mode is mixing mode. + + + + + Set version for mixing mode. + + + + + Data to be currently encoded in Mixing Mode + + + + + Data remaining for encoding in mixing mode + + + + + Total bits required in mixing mode. + + + + + Count of mixing mode blocks. + + + + + Stores data blocks of particular mode. + + + + + Stores Mode of each data block. + + + + + 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. + + + + + Initializes a defalut DPI + + + + + it used to maintain the dimension of barcode width and height when QuiteZone.All with barcode Size. + + + + + 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) + + + + + + + //Create a new PDF 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) + + + + + + Gets or set the size of the barcode. + + + + + Gets or sets the logo image that will be displayed in the center of the 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 logo image to QR barcode. + FileStream imageStream = new FileStream("logo.png", FileMode.Open, FileAccess.Read); + //Create QR Barcode logo. + QRCodeLogo qRCodeLogo = new QRCodeLogo(imageStream); + //Set the QR barcode logo. + qrBarcode.Logo = qRCodeLogo; + //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); + + + + + + + //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 . + + The PDF graphics. + + + //Create a new PDF 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //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 pdfGraphics. + qrCode.Draw(graphics); + //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() + 'Create Pdf graphics for the page. + Dim graphics As PdfGraphics =page.Graphics + '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 pdfGraphics. + qrCode.Draw(graphics) + 'Save the document to disk. + document.Save("QRBarcode.pdf") + + + + + + Draws the barcode on the at the specified location. + + The pdf graphics. + 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //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 PdfGraphics. + 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() + 'Create Pdf graphics for the page. + Dim graphics As PdfGraphics=page.Graphics + 'Creates a new PdfQRBarcode. + Dim qrCode As PdfQRBarcode = New PdfQRBarcode() + 'Set the barcode text. + qrCode.Text = "012345678" + 'Draw a barcode in the new pdfGraphics. + qrCode.Draw(graphics, 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. + 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 Pdf graphics for the page + PfgGraphics graphics=page.Graphics; + //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(graphics, 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() + //Create Pdf graphics for the page + Dim graphics As PdfGraphics=page.Graphics + '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(graphics, 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 principal display panel 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 + + + + + Returns QuiteZone value + + + + + + 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 correction 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. + + + + + Holds all the Mixed Data capacity of the Error correction level Low. + + + + + Holds all the Mixed Data capacity of the Error correction level Medium. + + + + + Holds all the Mixed Data capacity of the Error correction level Quartile. + + + + + Holds all the Mixed Data capacity of the Error correction level High. + + + + + 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. + + + + + 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. + + + + + QRCodeLogo class represents a logo image that can be used in a QR code. It can be initialized with a file path, an image object, or an image stream. + + + + //Create a new PDF 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 logo image to QR barcode. + FileStream imageStream = new FileStream("logo.png", FileMode.Open, FileAccess.Read); + //Create QR Barcode logo. + QRCodeLogo qRCodeLogo = new QRCodeLogo(imageStream); + //Set the QR barcode logo. + qrBarcode.Logo = qRCodeLogo; + //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 image used as a logo in the 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 logo image to QR barcode. + FileStream imageStream = new FileStream("logo.png", FileMode.Open, FileAccess.Read); + //Create QR Barcode logo. + QRCodeLogo qRCodeLogo = new QRCodeLogo(); + //Set the image to qr code logo. + qRCodeLogo.Image = new PdfBitmap(imageStream); + //Set the QR barcode logo. + qrBarcode.Logo = qRCodeLogo; + //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 new instance of the QRCodeLogo 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 logo image to QR barcode. + FileStream imageStream = new FileStream("logo.png", FileMode.Open, FileAccess.Read); + //Create QR Barcode logo. + QRCodeLogo qRCodeLogo = new QRCodeLogo(); + //Set the image to qr code logo. + qRCodeLogo.Image = new PdfBitmap(imageStream); + //Set the QR barcode logo. + qrBarcode.Logo = qRCodeLogo; + //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 new instance of the QRCodeLogo class with the image file specified by the file path. + + A string representing the file path of the logo 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 QR barcode. + PdfQRBarcode qrBarcode = new PdfQRBarcode(); + //Set text. + qrBarcode.Text = "012345678"; + //Set barcode size. + qrBarcode.Size = new SizeF(200, 200); + //Create QR Barcode logo. + QRCodeLogo qRCodeLogo = new QRCodeLogo("logo.png"); + //Set the QR barcode logo. + qrBarcode.Logo = qRCodeLogo; + //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 new instance of the QRCodeLogo class with the specified logo image. + + A PdfImage object representing the logo 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 QR barcode. + PdfQRBarcode qrBarcode = new PdfQRBarcode(); + //Set text. + qrBarcode.Text = "012345678"; + //Set barcode size. + qrBarcode.Size = new SizeF(200, 200); + //Set the logo image to QR barcode. + FileStream imageStream = new FileStream("logo.png", FileMode.Open, FileAccess.Read); + PdfImage logoImage = new PdfBitmap(imageStream); + //Create QR Barcode logo. + QRCodeLogo qRCodeLogo = new QRCodeLogo(logoImage); + //Set the QR barcode logo. + qrBarcode.Logo = qRCodeLogo; + //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 new instance of the QRCodeLogo class with the logo image specified by the image stream. + + A Stream object representing the image stream. + + + //Create a new PDF 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 logo image to QR barcode. + FileStream imageStream = new FileStream("logo.png", FileMode.Open, FileAccess.Read); + //Create QR Barcode logo. + QRCodeLogo qRCodeLogo = new QRCodeLogo(imageStream); + //Set the QR barcode logo. + qrBarcode.Logo = qRCodeLogo; + //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); + + + + + + 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 + + + + + Sets and Gets the Data code word + + + + + Sets and Gets the DataBits + + + + + Sets and Gets the Error Correction Code Words + + + + + 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. + + + + Represents the Pdf417 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 Pdf417Barcode. + Pdf417Barcode pdf417Barcode = new Pdf417Barcode(); + //Set the barcode text. + pdf417Barcode.Text = "012345678"; + pdf417Barcode.Location = new PointF(100,100); + //Draw a barcode in the new Page. + pdf417Barcode.Draw(page); + //Save the document to disk. + document.Save("417Barcode.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 Pdf417Barcode. + Dim pdf417Barcode As Pdf417Barcode = New Pdf417Barcode() + 'Set the barcode text. + pdf417Barcode.Text = "012345678" + pdf417Barcode.Location = new PointF(100,100); + 'Draw a barcode in the new Page. + pdf417Barcode.Draw(page) + 'Save the document to disk. + document.Save("417Barcode.pdf") + + + + + + Gets or set the size of the barcode. + + + + + Gets or sets the error correction level. + + + + //Create a new PDF 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 Pdf417Barcode. + Pdf417Barcode pdf417Barcode = new Pdf417Barcode(); + //Set text. + pdf417Barcode.Text = "012345678"; + //Set barcode size. + pdf417Barcode.Size = new SizeF(200, 200); + //Set the error correction level. + pdf417Barcode.ErrorCorrectionLevel = Pdf417ErrorCorrectionLevel.Auto; + //Set the dimention of the barcode. + pdf417Barcode.XDimension = 3; + //Set the barcode location. + pdf417Barcode.Location = new PointF(100, 100); + //Draw the barcode to PDF page. + pdf417Barcode.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 Pdf417Barcode. + Dim pdf417Barcode As New Pdf417Barcode() + 'Set text. + pdf417Barcode.Text = "012345678" + 'Set barcode size. + pdf417Barcode.Size = New SizeF(200, 200) + 'Set the error correction level. + pdf417Barcode.ErrorCorrectionLevel = PdfErrorCorrectionLevel.High + 'Set the dimention of the barcode. + pdf417Barcode.XDimension = 5 + 'Set the barcode location. + pdf417Barcode.Location = New PointF(100, 100) + 'Draw the barcode to PDF page. + pdf417Barcode.Draw(page) + 'Save document to disk. + document.Save("output.pdf") + 'Close the document. + document.Close(True) + + + + + + Draws the barcode on the . + + The PDF graphics. + + + //Create a new PDF 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //Create font and font style. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; + //Creates a new Pdf417Barcode. + Pdf417Barcode pdf417Barcode = new Pdf417Barcode(); + //Set the barcode text. + pdf417Barcode.Text = "012345678"; + pdf417Barcode.Location = new PointF(100,100); + //Draw a barcode in the new PdfGraphics. + pdf417Barcode.Draw(graphics); + //Save the document to disk. + document.Save("417Barcode.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 Pdf graphics for the page. + Dim graphics As PdfGraphics=page.Graphics + 'Creates a new Pdf417Barcode. + Dim pdf417Barcode As Pdf417Barcode = New Pdf417Barcode() + 'Set the barcode text. + pdf417Barcode.Text = "012345678" + pdf417Barcode.Location = new PointF(100,100); + 'Draw a barcode in the new PdfGraphics. + pdf417Barcode.Draw(graphics) + 'Save the document to disk. + document.Save("417Barcode.pdf") + + + + + + Draws the barcode on the at the specified location. + + The pdf graphics. + 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //Create font and font style. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; + //Creates a new Pdf417Barcode. + Pdf417Barcode pdf417Barcode = new Pdf417Barcode(); + //Set the barcode text. + pdf417Barcode.Text = "012345678"; + //Draw a barcode in the new PdfGraphics. + pdf417Barcode.Draw(graphics, new PointF(25, 500)); + //Save the document to disk. + document.Save("417Barcode.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 Pdf graphics for the page. + Dim graphics As PdfGraphics =page.Graphics + 'Creates a new Pdf417Barcode. + Dim pdf417Barcode As Pdf417Barcode = New Pdf417Barcode() + 'Set the barcode text. + pdf417Barcode.Text = "012345678" + 'Draw a barcode in the new PdfGraphics. + pdf417Barcode.Draw(graphics, New PointF(25, 500)) + 'Save the document to disk. + document.Save("417Barcode.pdf") + + + + + + Draws the barcode on the at the specified location. + + The PDF graphics. + The location of the barcode on the PDF page. + 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //Create font and font style. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; + //Creates a new Pdf417Barcode. + Pdf417Barcode pdf417Barcode = new Pdf417Barcode(); + //Set the barcode text. + pdf417Barcode.Text = "012345678"; + //Draw a barcode in the new PdfGraphics. + pdf417Barcode.Draw(graphics, new PointF(25, 500), new SizeF(200,200)); + //Save the document to disk. + document.Save("417Barcode.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 Pdf graphics for the page. + Dim graphics As PdfGraphics = page.Graphics + 'Creates a new Pdf417Barcode. + Dim pdf417Barcode As Pdf417Barcode = New Pdf417Barcode() + 'Set the barcode text. + pdf417Barcode.Text = "012345678" + 'Draw a barcode in the new PdfGraphics. + pdf417Barcode.Draw(graphics, New PointF(25, 500), New SizeF(200, 200)) + 'Save the document to disk. + document.Save("417Barcode.pdf") + + + + + + Draws the barcode on the at the specified rectangle. + + The PDF graphics. + 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //Create font and font style. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; + //Creates a new Pdf417Barcode. + Pdf417Barcode pdf417Barcode = new Pdf417Barcode(); + //Set the barcode text. + pdf417Barcode.Text = "012345678"; + //Draw a barcode in the new PdfGraphics. + pdf417Barcode.Draw(graphics, new RectangleF(25, 100, 200, 200)); + //Save the document to disk. + document.Save("417Barcode.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 Pdf graphics for the page. + Dim graphics As PdfGraphics=page.Graphics + 'Creates a new Pdf417Barcode. + Dim pdf417Barcode As Pdf417Barcode = New Pdf417Barcode() + 'Set the barcode text. + pdf417Barcode.Text = "012345678" + 'Draw a barcode in the new PdfGraphics. + pdf417Barcode.Draw(graphics, New RectangleF(25, 100, 200, 200)) + 'Save the document to disk. + document.Save("417Barcode.pdf") + + + + + + Draws the barcode based on the provided float values. + + The PDF graphics. + 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 bounding 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //Create font and font style. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; + //Creates a new Pdf417Barcode. + Pdf417Barcode pdf417Barcode = new Pdf417Barcode(); + //Set the barcode text. + pdf417Barcode.Text = "012345678"; + //Draw a barcode in the new PdfGraphics. + pdf417Barcode.Draw(graphics, 25, 100, 200, 200); + //Save the document to disk. + document.Save("417Barcode.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 Pdf graphics for the page. + Dim graphics As PdfGraphics = page.Graphics + 'Creates a new Pdf417Barcode. + Dim pdf417Barcode As Pdf417Barcode = New Pdf417Barcode() + 'Set the barcode text. + pdf417Barcode.Text = "012345678" + 'Draw a barcode in the new PdfGraphics. + pdf417Barcode.Draw(graphics, 25, 100, 200, 200) + 'Save the document to disk. + document.Save("417Barcode.pdf") + + + + + + Draws the barcode on the . + + 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 Pdf graphics for the page + PdfGraphics graphics=page.Graphics; + //Create font and font style. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; + //Creates a new Pdf417Barcode. + Pdf417Barcode pdf417Barcode = new Pdf417Barcode(); + //Set the barcode text. + pdf417Barcode.Text = "012345678"; + pdf417Barcode.Location = new PointF(100,100); + //Draw a barcode in the new Page. + pdf417Barcode.Draw(page); + //Save the document to disk. + document.Save("417Barcode.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 Pdf graphics for the page + Dim graphics As PdfGraphics=page.Graphics + 'Creates a new Pdf417Barcode. + Dim pdf417Barcode As Pdf417Barcode = New Pdf417Barcode() + 'Set the barcode text. + pdf417Barcode.Text = "012345678" + pdf417Barcode.Location = new PointF(100,100); + 'Draw a barcode in the new Page. + pdf417Barcode.Draw(page) + 'Save the document to disk. + document.Save("417Barcode.pdf") + + + + + + 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 Pdf417Barcode. + Pdf417Barcode pdf417Barcode = new Pdf417Barcode(); + //Set the barcode text. + pdf417Barcode.Text = "012345678"; + //Draw a barcode in the new Page. + pdf417Barcode.Draw(page, new PointF(25, 500)); + //Save the document to disk. + document.Save("417Barcode.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 Pdf417Barcode. + Dim pdf417Barcode As Pdf417Barcode = New Pdf417Barcode() + 'Set the barcode text. + pdf417Barcode.Text = "012345678" + 'Draw a barcode in the new Page. + pdf417Barcode.Draw(page, New PointF(25, 500)) + 'Save the document to disk. + document.Save("417Barcode.pdf") + + + + + + Draw Pdf417Barcode 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 bounding 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 Pdf417Barcode. + Pdf417Barcode pdf417Barcode = new Pdf417Barcode(); + //Set the barcode text. + pdf417Barcode.Text = "012345678"; + //Draw a barcode in the new Page. + pdf417Barcode.Draw(page, 25, 100, 200, 200); + //Save the document to disk. + document.Save("417Barcode.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 Pdf417Barcode. + Dim pdf417Barcode As Pdf417Barcode = New Pdf417Barcode() + 'Set the barcode text. + pdf417Barcode.Text = "012345678" + 'Draw a barcode in the new Page. + pdf417Barcode.Draw(page, 25, 100, 200, 200) + 'Save the document to disk. + document.Save("417Barcode.pdf") + + + + + + Draw Pdf417Barcode based on location and size values. + + The PDF page. + The location of the barcode on the PDF page. + 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 Pdf417Barcode. + Pdf417Barcode pdf417Barcode = new Pdf417Barcode(); + //Set the barcode text. + pdf417Barcode.Text = "012345678"; + //Draw a barcode in the new Page. + pdf417Barcode.Draw(page, new PointF(25, 500), new SizeF(200,200)); + //Save the document to disk. + document.Save("417Barcode.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 Pdf417Barcode. + Dim pdf417Barcode As Pdf417Barcode = New Pdf417Barcode() + 'Set the barcode text. + pdf417Barcode.Text = "012345678" + 'Draw a barcode in the new Page. + pdf417Barcode.Draw(page, New PointF(25, 500), New SizeF(200, 200)) + 'Save the document to disk. + document.Save("417Barcode.pdf") + + + + + + Draw Pdf417Barcode 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 Pdf417Barcode. + Pdf417Barcode pdf417Barcode = new Pdf417Barcode(); + //Set the barcode text. + pdf417Barcode.Text = "012345678"; + //Draw a barcode in the new Page. + pdf417Barcode.Draw(page, new RectangleF(25, 100, 200, 200)); + //Save the document to disk. + document.Save("417Barcode.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 Pdf417Barcode. + Dim pdf417Barcode As Pdf417Barcode = New Pdf417Barcode() + 'Set the barcode text. + pdf417Barcode.Text = "012345678" + 'Draw a barcode in the new Page. + pdf417Barcode.Draw(page, New RectangleF(25, 100, 200, 200)) + 'Save the document to disk. + document.Save("417Barcode.pdf") + + + + + + Exports the barcode as image. + The barcode image. + + + + //Creates a new Pdf417Barcode. + Pdf417Barcode pdf417Barcode = new Pdf417Barcode(); + //Set the barcode text. + pdf417Barcode.Text = "012345678"; + //Get the image for Pdf417Barcode. + Image image= pdf417Barcode.ToImage(); + //Save the image into Disk + image.Save("Pdf417.png", ImageFormat.Png); + + + 'Creates a new Pdf417Barcode. + Dim pdf417Barcode As Pdf417Barcode = New Pdf417Barcode() + 'Set the barcode text. + pdf417Barcode.Text = "012345678" + 'Get the image for Pdf417Barcode. + Dim image As Image = pdf417Barcode.ToImage() + 'Save the image into Disk + image.Save("Pdf417.png", ImageFormat.Png) + + + + + + + Specifies the Pdf417Barcode error correction level. + + + + //Create a new PDF 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 Pdf417Barcode. + Pdf417Barcode pdf417Barcode = new Pdf417Barcode(); + //Set text. + pdf417Barcode.Text = "012345678"; + //Set barcode size. + pdf417Barcode.Size = new SizeF(200, 200); + //Set the error correction level. + pdf417Barcode.ErrorCorrectionLevel = Pdf417ErrorCorrectionLevel.Auto; + //Set the dimention of the barcode. + pdf417Barcode.XDimension = 3; + //Set the barcode location. + pdf417Barcode.Location = new PointF(100, 100); + //Draw the barcode to PDF page. + pdf417Barcode.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 Pdf417Barcode. + Dim pdf417Barcode As New Pdf417Barcode() + 'Set text. + pdf417Barcode.Text = "012345678" + 'Set barcode size. + pdf417Barcode.Size = New SizeF(200, 200) + 'Set the error correction level. + pdf417Barcode.ErrorCorrectionLevel = PdfErrorCorrectionLevel.High + 'Set the dimention of the barcode. + pdf417Barcode.XDimension = 5 + 'Set the barcode location. + pdf417Barcode.Location = New PointF(100, 100) + 'Draw the barcode to PDF page. + pdf417Barcode.Draw(page) + 'Save document to disk. + document.Save("output.pdf") + 'Close the document. + document.Close(True) + + + + + + 2 code words + + + + + 4 code words + + + + + 8 code words + + + + + 16 code words + + + + + 32 code words + + + + + 64 code words + + + + + 128 code words + + + + + 256 code words + + + + + 512 code words + + + + + Auto. + + + + + Represents the PdfEan13 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 PdfEan13Barcode. + PdfEan13Barcode barcode = new PdfEan13Barcode(); + //Set the barcode text. + barcode.Text = "4006381333931"; + barcode.Location = new PointF(100,100); + //Draw a barcode in the new Page. + barcode.Draw(page); + //Save the document to disk. + document.Save("Ean13Barcode.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 PdfEan13Barcode. + Dim barcode As PdfEan13Barcode = New PdfEan13Barcode() + 'Set the barcode text. + barcode.Text = "4006381333931" + barcode.Location = new PointF(100,100); + 'Draw a barcode in the new Page. + barcode.Draw(page) + 'Save the document to disk. + document.Save("Ean13Barcode.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 PdfEan13Barcode. + PdfEan13Barcode barcode = new PdfEan13Barcode(); + //Set the font to Ean13. + barcode.Font = font; + //Set the barcode text. + barcode.Text = "4006381333931"; + //Draw a barcode in the new Page. + barcode.Draw(page, new PointF(25, 100)); + //Save the document to disk. + document.Save("Ean13Barcode.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 PdfEan13Barcode. + Dim barcode As PdfEan13Barcode = New PdfEan13Barcode() + 'Set the font to Ean13. + barcode.Font = font + 'Set the barcode text. + barcode.Text = "4006381333931" + 'Draw a barcode in the new Page. + barcode.Draw(page, new PointF(25, 100)) + 'Save the document to disk. + document.Save("Ean13Barcode.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 PdfEan13Barcode. + PdfEan13Barcode barcode = new PdfEan13Barcode("4006381333931"); + //Set the font to Ean13. + barcode.Font = font; + //Draw a barcode in the new Page. + barcode.Draw(page, new PointF(25, 100)); + //Save the document to disk. + document.Save("Ean13Barcode.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 PdfEan13Barcode. + Dim barcode As PdfEan13Barcode = New PdfEan13Barcode("4006381333931") + 'Set the font to Ean13. + barcode.Font = font + 'Draw a barcode in the new Page. + barcode.Draw(page, new PointF(25, 100)) + 'Save the document to disk. + document.Save("Ean13Barcode.pdf") + + + + + + Draws the barcode on the . + + The PDF graphics. + + + //Create a new PDF 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //Create font and font style. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; + //Creates a new PdfEan13Barcode. + PdfEan13Barcode barcode = new PdfEan13Barcode(); + //Set the barcode text. + barcode.Text = "4006381333931"; + barcode.Location = new PointF(100,100); + //Draw a barcode in the new PdfGraphics. + barcode.Draw(graphics); + //Save the document to disk. + document.Save("Ean13Barcode.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 Pdf graphics for the page. + Dim graphics As PdfGraphics=page.Graphics + 'Creates a new PdfEan13Barcode. + Dim barcode As PdfEan13Barcode = New PdfEan13Barcode() + 'Set the barcode text. + barcode.Text = "4006381333931" + barcode.Location = new PointF(100,100); + 'Draw a barcode in the new PdfGraphics. + barcode.Draw(graphics) + 'Save the document to disk. + document.Save("Ean13Barcode.pdf") + + + + + + Draws the barcode on the at the specified location. + + The pdf graphics. + 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //Create font and font style. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; + //Creates a new PdfEan13Barcode. + PdfEan13Barcode barcode = new PdfEan13Barcode(); + //Set the barcode text. + barcode.Text = "4006381333931"; + //Draw a barcode in the new PdfGraphics. + barcode.Draw(graphics, new PointF(25, 500)); + //Save the document to disk. + document.Save("Ean13Barcode.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 Pdf graphics for the page. + Dim graphics As PdfGraphics =page.Graphics + 'Creates a new PdfEan13Barcode. + Dim barcode As PdfEan13Barcode = New PdfEan13Barcode() + 'Set the barcode text. + barcode.Text = "4006381333931" + 'Draw a barcode in the new Page. + barcode.Draw(graphics, New PointF(25, 500)) + 'Save the document to disk. + document.Save("Ean13Barcode.pdf") + + + + + + Draws the barcode on the at the specified location. + + The PDF graphics. + The location of the barcode on the PDF graphics. + 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //Create font and font style. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; + //Creates a new PdfEan13Barcode. + PdfEan13Barcode barcode = new PdfEan13Barcode(); + //Set the barcode text. + barcode.Text = "4006381333931"; + //Draw a barcode in the new PdfGraphics. + barcode.Draw(graphics, new PointF(25, 500), new SizeF(200,200)); + //Save the document to disk. + document.Save("Ean13Barcode.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 Pdf graphics for the page. + Dim graphics As PdfGraphics =page.Graphics; + 'Creates a new PdfEan13Barcode. + Dim barcode As PdfEan13Barcode = New PdfEan13Barcode() + 'Set the barcode text. + barcode.Text = "4006381333931" + 'Draw a barcode in the new PdfGraphics. + barcode.Draw(graphics, New PointF(25, 500), New SizeF(200, 200)) + 'Save the document to disk. + document.Save("Ean13Barcode.pdf") + + + + + + Draws the barcode on the at the specified rectangle. + + The PDF graphics. + 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //Create font and font style. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; + //Creates a new PdfEan13Barcode. + PdfEan13Barcode barcode = new PdfEan13Barcode(); + //Set the barcode text. + barcode.Text = "4006381333931"; + //Draw a barcode in the new PdfGraphics. + barcode.Draw(graphics, new RectangleF(25, 100, 200, 200)); + //Save the document to disk. + document.Save("Ean13Barcode.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 Pdf graphics for the page. + Dim graphics As PdfGraphics =page.Graphics + 'Creates a new PdfEan13Barcode. + Dim barcode As PdfEan13Barcode = New PdfEan13Barcode() + 'Set the barcode text. + barcode.Text = "4006381333931" + 'Draw a barcode in the new PdfGraphics. + barcode.Draw(graphics, New RectangleF(25, 100, 200, 200)) + 'Save the document to disk. + document.Save("Ean13Barcode.pdf") + + + + + + Draws the barcode based on the provided float values. + + The PDF graphics. + 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 bounding 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //Create font and font style. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; + //Creates a new PdfEan13Barcode. + PdfEan13Barcode barcode = new PdfEan13Barcode(); + //Set the barcode text. + barcode.Text = "4006381333931"; + //Draw a barcode in the new PdfGraphics. + barcode.Draw(graphics, 25, 100, 200, 200); + //Save the document to disk. + document.Save("Ean13Barcode.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 Pdf graphics for the page. + Dim graphics As PdfGraphics =pages.Graphics + 'Creates a new PdfEan13Barcode. + Dim barcode As PdfEan13Barcode = New PdfEan13Barcode() + 'Set the barcode text. + barcode.Text = "4006381333931" + 'Draw a barcode in the new PdfGraphics. + barcode.Draw(graphics, 25, 100, 200, 200) + 'Save the document to disk. + document.Save("Ean13Barcode.pdf") + + + + + + Draw PdfEan13Barcode 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 bounding 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 Pdf graphics for the page + PdfGraphics graphics=page.graphics; + //Create font and font style. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; + //Creates a new PdfEan13Barcode. + PdfEan13Barcode barcode = new PdfEan13Barcode(); + //Set the barcode text. + barcode.Text = "4006381333931"; + //Draw a barcode in the new Page. + barcode.Draw(page, 25, 100, 200, 200); + //Save the document to disk. + document.Save("Ean13Barcode.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 Pdf graphics for the page + Dim graphics As PdfGraphics=page.Graphics; + 'Creates a new PdfEan13Barcode. + Dim barcode As PdfEan13Barcode = New PdfEan13Barcode() + 'Set the barcode text. + barcode.Text = "4006381333931" + 'Draw a barcode in the new Page. + barcode.Draw(page, 25, 100, 200, 200) + 'Save the document to disk. + document.Save("Ean13Barcode.pdf") + + + + + + Draw PdfEan13Barcode based on location and size values. + + The PDF page. + The location of the barcode on the PDF page. + 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 PdfEan13Barcode. + PdfEan13Barcode barcode = new PdfEan13Barcode(); + //Set the barcode text. + barcode.Text = "4006381333931"; + //Draw a barcode in the new Page. + barcode.Draw(page, new PointF(25, 500), new SizeF(200,200)); + //Save the document to disk. + document.Save("Ean13Barcode.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 PdfEan13Barcode. + Dim barcode As PdfEan13Barcode = New PdfEan13Barcode() + 'Set the barcode text. + barcode.Text = "4006381333931" + 'Draw a barcode in the new Page. + barcode.Draw(page, New PointF(25, 500), New SizeF(200, 200)) + 'Save the document to disk. + document.Save("Ean13Barcode.pdf") + + + + + + Draw PdfEan13Barcode 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 PdfEan13Barcode. + PdfEan13Barcode barcode = new PdfEan13Barcode(); + //Set the barcode text. + barcode.Text = "4006381333931"; + //Draw a barcode in the new Page. + barcode.Draw(page, new RectangleF(25, 100, 200, 200)); + //Save the document to disk. + document.Save("Ean13Barcode.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 PdfEan13Barcode. + Dim barcode As PdfEan13Barcode = New PdfEan13Barcode() + 'Set the barcode text. + barcode.Text = "4006381333931" + 'Draw a barcode in the new Page. + barcode.Draw(page, New RectangleF(25, 100, 200, 200)) + 'Save the document to disk. + document.Save("Ean13Barcode.pdf") + + + + + + Draws the barcode on the . + + 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 PdfEan13Barcode. + PdfEan13Barcode barcode = new PdfEan13Barcode(); + //Set the barcode text. + barcode.Text = "4006381333931"; + barcode.Location = new PointF(100,100); + //Draw a barcode in the new Page. + barcode.Draw(page); + //Save the document to disk. + document.Save("Ean13Barcode.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 PdfEan13Barcode. + Dim barcode As PdfEan13Barcode = New PdfEan13Barcode() + 'Set the barcode text. + barcode.Text = "4006381333931" + barcode.Location = new PointF(100,100); + 'Draw a barcode in the new Page. + barcode.Draw(page) + 'Save the document to disk. + document.Save("Ean13Barcode.pdf") + + + + + + 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 PdfEan13Barcode. + PdfEan13Barcode barcode = new PdfEan13Barcode(); + //Set the barcode text. + barcode.Text = "4006381333931"; + //Draw a barcode in the new Page. + barcode.Draw(page, new PointF(25, 500)); + //Save the document to disk. + document.Save("Ean13Barcode.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 PdfEan13Barcode. + Dim barcode As PdfEan13Barcode = New PdfEan13Barcode() + 'Set the barcode text. + barcode.Text = "4006381333931" + 'Draw a barcode in the new Page. + barcode.Draw(page, New PointF(25, 500)) + 'Save the document to disk. + document.Save("Ean13Barcode.pdf") + + + + + + Exports the barcode as image. + The barcode image. + + + + //Creates a new PdfEan13Barcode. + PdfEan13Barcode barcode = new PdfEan13Barcode(); + //Set the barcode text. + barcode.Text = "4006381333931"; + //Get the image for PdfEan13Barcode. + Image image= barcode.ToImage(); + //Save the image into Disk + image.Save("PdfEan13.png", ImageFormat.Png); + + + 'Creates a new PdfEan13Barcode. + Dim barcode As PdfEan13Barcode = New PdfEan13Barcode() + 'Set the barcode text. + barcode.Text = "4006381333931" + 'Get the image for PdfEan13Barcode. + Dim image As Image = barcode.ToImage() + 'Save the image into Disk + image.Save("PdfEan13.png", ImageFormat.Png) + + + + + + + Represents the PdfEan8 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 PdfEan8Barcode. + PdfEan8Barcode barcode = new PdfEan8Barcode(); + //Set the barcode text. + barcode.Text = "1234567"; + barcode.Location = new PointF(100,100); + //Draw a barcode in the new Page. + barcode.Draw(page); + //Save the document to disk. + document.Save("Ean8Barcode.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 PdfEan8Barcode. + Dim barcode As PdfEan8Barcode = New PdfEan8Barcode() + 'Set the barcode text. + barcode.Text = "1234567" + barcode.Location = new PointF(100,100); + 'Draw a barcode in the new Page. + barcode.Draw(page) + 'Save the document to disk. + document.Save("Ean8Barcode.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 PdfEan8Barcode. + PdfEan8Barcode barcode = new PdfEan8Barcode(); + //Set the font to Ean8. + barcode.Font = font; + //Set the barcode text. + barcode.Text = "1234567"; + //Draw a barcode in the new Page. + barcode.Draw(page, new PointF(25, 100)); + //Save the document to disk. + document.Save("Ean8Barcode.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 PdfEan8Barcode. + Dim barcode As PdfEan8Barcode = New PdfEan8Barcode() + 'Set the font to Ean8. + barcode.Font = font + 'Set the barcode text. + barcode.Text = "1234567" + 'Draw a barcode in the new Page. + barcode.Draw(page, new PointF(25, 100)) + 'Save the document to disk. + document.Save("Ean8Barcode.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 PdfEan8Barcode. + PdfEan8Barcode barcode = new PdfEan8Barcode("1234567"); + //Set the font to Ean8. + barcode.Font = font; + //Draw a barcode in the new Page. + barcode.Draw(page, new PointF(25, 100)); + //Save the document to disk. + document.Save("Ean8Barcode.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 PdfEan8Barcode. + Dim barcode As PdfEan8Barcode = New PdfEan8Barcode("1234567") + 'Set the font to Ean8. + barcode.Font = font + 'Draw a barcode in the new Page. + barcode.Draw(page, new PointF(25, 100)) + 'Save the document to disk. + document.Save("Ean8Barcode.pdf") + + + + + + Draws the barcode on the . + + The PDF graphics. + + + //Create a new PDF 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //Create font and font style. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; + //Creates a new PdfEan8Barcode. + PdfEan8Barcode barcode = new PdfEan8Barcode(); + //Set the barcode text. + barcode.Text = "1234567"; + barcode.Location = new PointF(100,100); + //Draw a barcode in the new PdfGraphics. + barcode.Draw(graphics); + //Save the document to disk. + document.Save("Ean8Barcode.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 Pdf graphics for the page. + Dim graphics As PdfGraphics =page.Graphics + 'Creates a new PdfEan8Barcode. + Dim barcode As PdfEan8Barcode = New PdfEan8Barcode() + 'Set the barcode text. + barcode.Text = "1234567" + barcode.Location = new PointF(100,100); + 'Draw a barcode in the new PdfGraphics. + barcode.Draw(graphics) + 'Save the document to disk. + document.Save("Ean8Barcode.pdf") + + + + + + Draws the barcode on the at the specified location. + + The pdf graphics. + 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //Create font and font style. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; + //Creates a new PdfEan8Barcode. + PdfEan8Barcode barcode = new PdfEan8Barcode(); + //Set the barcode text. + barcode.Text = "1234567"; + //Draw a barcode in the new PdfGraphics. + barcode.Draw(graphics, new PointF(25, 100)); + //Save the document to disk. + document.Save("Ean8Barcode.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 Pdf graphics for the page. + Dim graphics As PdfGraphics =page.Graphics; + 'Creates a new PdfEan8Barcode. + Dim barcode As PdfEan8Barcode = New PdfEan8Barcode() + 'Set the barcode text. + barcode.Text = "1234567" + 'Draw a barcode in the new PdfGraphics. + barcode.Draw(graphics, New PointF(25, 100)) + 'Save the document to disk. + document.Save("Ean8Barcode.pdf") + + + + + + Draws the barcode on the at the specified location and size. + + The PDF page. + The location of the barcode on the PDF graphics. + 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //Create font and font style. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; + //Creates a new PdfEan8Barcode. + PdfEan8Barcode barcode = new PdfEan8Barcode(); + //Set the barcode text. + barcode.Text = "1234567"; + //Draw a barcode in the new PdfGraphics. + barcode.Draw(graphics, new PointF(25, 100), new SizeF(200,200)); + //Save the document to disk. + document.Save("Ean8Barcode.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 Pdf graphics for the page. + Dim graphics As PdfGraphics =page.Graphics + 'Creates a new PdfEan8Barcode. + Dim barcode As PdfEan8Barcode = New PdfEan8Barcode() + 'Set the barcode text. + barcode.Text = "1234567" + 'Draw a barcode in the new PdfGraphics. + barcode.Draw(graphics, New PointF(25, 200), New SizeF(200, 200)) + 'Save the document to disk. + document.Save("Ean8Barcode.pdf") + + + + + + Draws the barcode on the at the specified rectangle. + + The PDF graphics. + 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //Create font and font style. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; + //Creates a new PdfEan8Barcode. + PdfEan8Barcode barcode = new PdfEan8Barcode(); + //Set the barcode text. + barcode.Text = "1234567"; + //Draw a barcode in the new PdfGraphics. + barcode.Draw(graphics, new RectangleF(25, 100, 200, 200)); + //Save the document to disk. + document.Save("Ean8Barcode.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 Pdf graphics for the page. + DIm graphics As PdfGraphics =page.Graphics + 'Creates a new PdfEan8Barcode. + Dim barcode As PdfEan8Barcode = New PdfEan8Barcode() + 'Set the barcode text. + barcode.Text = "1234567" + 'Draw a barcode in the new PdfGraphics. + barcode.Draw(graphics, New RectangleF(25, 100, 200, 200)) + 'Save the document to disk. + document.Save("Ean8Barcode.pdf") + + + + + + Draws the barcode based on the provided float values. + + The PDF graphics. + 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 bounding 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //Create font and font style. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; + //Creates a new PdfEan8Barcode. + PdfEan8Barcode barcode = new PdfEan8Barcode(); + //Set the barcode text. + barcode.Text = "1234567"; + //Draw a barcode in the new PdfGraphics. + barcode.Draw(graphics, 25, 100, 200, 200); + //Save the document to disk. + document.Save("Ean8Barcode.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 Pdf graphics for the page. + Dim graphics As PdfGraphics=page.Graphics + 'Creates a new PdfEan8Barcode. + Dim barcode As PdfEan8Barcode = New PdfEan8Barcode() + 'Set the barcode text. + barcode.Text = "1234567" + 'Draw a barcode in the new PdfGraphics. + barcode.Draw(graphics, 25, 100, 200, 200) + 'Save the document to disk. + document.Save("Ean8Barcode.pdf") + + + + + + Draw PdfEan8Barcode based on float input values. + + The PDF graphics. + 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 bounding 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 PdfEan8Barcode. + PdfEan8Barcode barcode = new PdfEan8Barcode(); + //Set the barcode text. + barcode.Text = "1234567"; + //Draw a barcode in the new Page. + barcode.Draw(page, 25, 100, 200, 200); + //Save the document to disk. + document.Save("Ean8Barcode.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 PdfEan8Barcode. + Dim barcode As PdfEan8Barcode = New PdfEan8Barcode() + 'Set the barcode text. + barcode.Text = "1234567" + 'Draw a barcode in the new Page. + barcode.Draw(page, 25, 100, 200, 200) + 'Save the document to disk. + document.Save("Ean8Barcode.pdf") + + + + + + Draw PdfEan8Barcode based on location and size values. + + The PDF page. + The location of the barcode on the PDF page. + 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 PdfEan8Barcode. + PdfEan8Barcode barcode = new PdfEan8Barcode(); + //Set the barcode text. + barcode.Text = "1234567"; + //Draw a barcode in the new Page. + barcode.Draw(page, new PointF(25, 100), new SizeF(200,200)); + //Save the document to disk. + document.Save("Ean8Barcode.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 PdfEan8Barcode. + Dim barcode As PdfEan8Barcode = New PdfEan8Barcode() + 'Set the barcode text. + barcode.Text = "1234567" + 'Draw a barcode in the new Page. + barcode.Draw(page, New PointF(25, 200), New SizeF(200, 200)) + 'Save the document to disk. + document.Save("Ean8Barcode.pdf") + + + + + + Draw PdfEan8Barcode 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 PdfEan8Barcode. + PdfEan8Barcode barcode = new PdfEan8Barcode(); + //Set the barcode text. + barcode.Text = "1234567"; + //Draw a barcode in the new Page. + barcode.Draw(page, new RectangleF(25, 100, 200, 200)); + //Save the document to disk. + document.Save("Ean8Barcode.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 PdfEan8Barcode. + Dim barcode As PdfEan8Barcode = New PdfEan8Barcode() + 'Set the barcode text. + barcode.Text = "1234567" + 'Draw a barcode in the new Page. + barcode.Draw(page, New RectangleF(25, 100, 200, 200)) + 'Save the document to disk. + document.Save("Ean8Barcode.pdf") + + + + + + Draws the barcode on the . + + 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 PdfEan8Barcode. + PdfEan8Barcode barcode = new PdfEan8Barcode(); + //Set the barcode text. + barcode.Text = "1234567"; + barcode.Location = new PointF(100,100); + //Draw a barcode in the new Page. + barcode.Draw(page); + //Save the document to disk. + document.Save("Ean8Barcode.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 PdfEan8Barcode. + Dim barcode As PdfEan8Barcode = New PdfEan8Barcode() + 'Set the barcode text. + barcode.Text = "1234567" + barcode.Location = new PointF(100,100); + 'Draw a barcode in the new Page. + barcode.Draw(page) + 'Save the document to disk. + document.Save("Ean8Barcode.pdf") + + + + + + 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 PdfEan8Barcode. + PdfEan8Barcode barcode = new PdfEan8Barcode(); + //Set the barcode text. + barcode.Text = "1234567"; + //Draw a barcode in the new Page. + barcode.Draw(page, new PointF(25, 100)); + //Save the document to disk. + document.Save("Ean8Barcode.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 PdfEan8Barcode. + Dim barcode As PdfEan8Barcode = New PdfEan8Barcode() + 'Set the barcode text. + barcode.Text = "1234567" + 'Draw a barcode in the new Page. + barcode.Draw(page, New PointF(25, 100)) + 'Save the document to disk. + document.Save("Ean8Barcode.pdf") + + + + + + Exports the barcode as image. + The barcode image. + + + + //Creates a new PdfEan8Barcode. + PdfEan8Barcode barcode = new PdfEan8Barcode(); + //Set the barcode text. + barcode.Text = "1234567"; + //Get the image for PdfEan8Barcode. + Image image= barcode.ToImage(); + //Save the image into Disk + image.Save("PdfEan8.png", ImageFormat.Png); + + + 'Creates a new PdfEan8Barcode. + Dim barcode As PdfEan8Barcode = New PdfEan8Barcode() + 'Set the barcode text. + barcode.Text = "1234567" + 'Get the image for PdfEan8Barcode. + Dim image As Image = barcode.ToImage() + 'Save the image into Disk + image.Save("PdfEan8.png", ImageFormat.Png) + + + + + + + Encode the raw data using the EAN-8 algorithm. + + + + + + //Create a new PDF 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) + + + + + + Default bar width value. + + + + + Space count for barcode + + + + + 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 a defalut DPI + + + + + 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) + + + + + + + //Create a new PDF 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. + + + The Default value is 5. + + + + 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. + + + + + Draws the barcode on the at the specified location. + + The PDF graphics. + /// + + //Create a new PDF 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //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 PdfGraphics. + code11.Draw(graphics); + //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 Pdf graphics for the page. + Dim graphics As PdfGraphics=page.Graphics + '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 PdfGraphics. + code11.Draw(graphics) + 'Save the document to disk. + document.Save("Code11.pdf") + + + + + + Draws the barcode on the at the specified location. + + The PDF graphics. + 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //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 PdfGraphics. + code11.Draw(graphics, 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 Pdf graphics for the page. + Dim graphics As PdfGraphics =page.Graphics + '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 PdfGraphics. + code11.Draw(graphics, New PointF(25, 500)) + 'Save the document to disk. + document.Save("Code11.pdf") + + + + + + Draws the barcode on the at the specified location and size. + + The PDF graphics. + 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 Pdf graphics for the page. + PdfGraphics graphics =page.Graphics; + //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 PdfGraphics. + code11.Draw(graphics, 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 Pdf graphics for the page. + Dim graphics As PdfGraphics =page.Graphics + '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 PdfGraphics. + code11.Draw(graphics, New PointF(25, 500), New SizeF(200, 200)) + 'Save the document to disk. + document.Save("Code11.pdf") + + + + + + Draws the barcode on the at the specified rectangle. + + The PDF graphics. + 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //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 PdfGraphics. + code11.Draw(graphics, new RectangleF(25, 500,100,100)); + //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 Pdf graphics for the page. + Dim graphics As PdfGraphics=page.Graphics + '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 PdfGraphics. + code11.Draw(graphics, New RectangleF(25, 500,100,100)) + 'Save the document to disk. + document.Save("Code11.pdf") + + + + + + Draws the barcode based on the provided float values. + + The PDF graphics. + 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 Pdf graphics for the page. + PdfGraphics graphics=page.Graphics; + //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 PdfGraphics. + code11.Draw(graphics, 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 Pdf graphics for the page. + Dim graphics As PdfGraphics=page.Graphics + '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 PdfGraphics. + code11.Draw(graphics, 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. + 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") + + + + + + Generates an image for the barcode and returns it as a stream of data. + A stream containing the generated 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) + + + + + + Generates an image for the barcode with the specified size and returns it as a stream of data. + + The size of the image to generate. + A stream containing the generated 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(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. + + + + Returns the encoded list bytes from text. + + + + + Internal method used to paint bars on the page. + + The Page. + The Rectangle. + Returns the right margin. + + + + 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(); + //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 mode is a combination of all modes + + + + + + + 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 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. + + + + Exception of this type is raised when the document contains object which are not + supported by current document standard.Inherited from + + + + + 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. + + + + 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. + + + + The class represents general PDF document level exceptions. + The inherited from the class + + + + + + 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. + + + + Indicates that the provided user or owner password is not valid. + + + + 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) + + + + + + Initializes object for Pdf Invalid password + + + + + Initializes object by specified Pdf Invalid password message + + User defined error message. + + + + Represents base class for all action types. + + Interface + + + + Next action to perform. + + + + + Internal variable to store dictionary; + + + + + Initializes a new instance of the class. + + + + + 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. + + + + Initializes an instance. + + + + + 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. + + + + Array of actions. + + + + + Gets the at the specified index. + + the + + + + 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. + + + + 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 + + + + 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 + + + + Initializes instance. + + + + + Handles the BeginSave event of the Dictionary control. + + The source of the event. + The instance containing the event data. + + + + Represents an JavaScript action in PDF document. + + This class is used to perform the JavaScript 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 JavaScript code. + + + + + Initializes a new instance of the class with JavaScript code + + The JavaScript 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) + + + + + + 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) + + + + + + Gets or sets the name. The name associated with the JavaScript block. + + /// + + // Create a new PDF document. + PdfDocument document = new PdfDocument(); + // Get the JavaScript collection from the document. + PdfDocumentJavaScriptCollection javaScriptCollection = document.DocumentJavaScripts; + // Create a new JavaScript action that shows an alert with the message "Hello World!!!". + PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); + //Set name of the JavaScript action + javaScriptAction.Name = "Test"; + // Add the JavaScript action to the collection. + javaScriptCollection.Add(javaScriptAction); + // Remove the JavaScript action from the collection. + javaScriptCollection.Remove(javaScriptAction); + // Insert the JavaScript action at the first position in the collection. + javaScriptCollection.Insert(0, javaScriptAction); + // Clear all JavaScript actions from the collection. + javaScriptCollection.Clear(); + // Save the PDF document to a file named "Output.pdf". + document.Save("Output_Creation.pdf"); + + + 'Create a new PDF Document. + Dim document As PdfDocument = New PdfDocument + 'Get the JavaScript collection from the document. + Dim javaScriptCollection As PdfDocumentJavaScriptCollection = document.DocumentJavaScripts + 'Create a new JavaScript action that shows an alert with the message "Hello World!!!". + Dim javaScriptAction As PdfJavaScriptAction = New PdfJavaScriptAction("app.alert(""Hello World!!!"")") + 'Set name of the JavaScript action + javaScriptAction.Name = "Test" + ' Add the JavaScript action to the collection. + javaScriptCollection.Add(javaScriptAction) + ' Remove the JavaScript action from the collection. + javaScriptCollection.Remove(javaScriptAction) + ' Insert the JavaScript action at the first position in the collection. + javaScriptCollection.Insert(0, javaScriptAction) + ' Clear all JavaScript actions from the collection. + javaScriptCollection.Clear + ' Save the PDF document to a file named "Output.pdf". + document.Save("Output_Creation.pdf") + + + + + + Initializes instance. + + + + + 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 + + + + + + + + //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 + + + + Initializes instance. + + + + + Handles the BeginSave event of the Dictionary. + + The source of the event. + The instance containing the event data. + + + + 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. + + + + + 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) + + + + + + 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. + + + + + 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 + + + + Get the dictionary value of the javascript action + + + + + Removes javascript action from catalog. + + + + + 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 + + + + Get the dictionary value of the javascript action + + + + + + Gets or sets the JavaScript 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 + + + + Get the dictionary value of the javascript action + + + + + + 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 + + + + Get the dictionary value of the javascript action + + + + + + 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 + + + + Get the dictionary value of the javascript action + + + + + + 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 + + + + Get the dictionary value of the javascript action + + + + + + 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 an action which goes to a destination in another PDF file + + + + //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 = "RemoteGoto"; + 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 RemoteDestination + PdfRemoteDestination remoteDestination = new PdfRemoteDestination(); + remoteDestination.RemotePageNumber = 3; + remoteDestination.Mode = PdfDestinationMode.FitToPage; + //Create a new PdfRemoteGoToAction + PdfRemoteGoToAction goToAction = new PdfRemoteGoToAction("input.pdf", remoteDestination); + //Set the IsNewWindow + goToAction.IsNewWindow = true; + //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("RemoteGoToAction.pdf"); + 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 font and font style. + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12!, PdfFontStyle.Bold) + 'Create a new PdfButtonField + Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") + submitButton.Bounds = New RectangleF(25, 160, 100, 20) + submitButton.Font = font + submitButton.Text = "RemoteGoto" + 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 RemoteDestination + Dim remoteDestination As PdfRemoteDestination = New PdfRemoteDestination + remoteDestination.RemotePageNumber = 3 + remoteDestination.Mode = PdfDestinationMode.FitToPage + 'Create a new PdfRemoteGoToAction + Dim goToAction As PdfRemoteGoToAction = New PdfRemoteGoToAction("input.pdf", PdfRemoteDestination) + 'Set the IsNewWindow + goToAction.IsNewWindow = true + '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("RemoteGoToAction.pdf") + document.Close(true) + + + + + + Gets or sets the file path in which the destination PDF is located. + + + + //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 = "RemoteGoto"; + 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 RemoteDestination + PdfRemoteDestination remoteDestination = new PdfRemoteDestination(); + remoteDestination.RemotePageNumber = 3; + remoteDestination.Mode = PdfDestinationMode.FitToPage; + //Create a new PdfRemoteGoToAction + PdfRemoteGoToAction goToAction = new PdfRemoteGoToAction("input.pdf", remoteDestination); + //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("RemoteGoToAction.pdf"); + 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 font and font style. + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12!, PdfFontStyle.Bold) + 'Create a new PdfButtonField + Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") + submitButton.Bounds = New RectangleF(25, 160, 100, 20) + submitButton.Font = font + submitButton.Text = "RemoteGoto" + 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 RemoteDestination + Dim remoteDestination As PdfRemoteDestination = New PdfRemoteDestination + remoteDestination.RemotePageNumber = 3 + remoteDestination.Mode = PdfDestinationMode.FitToPage + 'Create a new PdfRemoteGoToAction + Dim goToAction As PdfRemoteGoToAction = New PdfRemoteGoToAction("input.pdf", PdfRemoteDestination) + '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("RemoteGoToAction.pdf") + document.Close(true) + + + + + + Gets or sets open the destination document in a new window + + + + //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 = "RemoteGoto"; + 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 RemoteDestination + PdfRemoteDestination remoteDestination = new PdfRemoteDestination(); + remoteDestination.RemotePageNumber = 3; + remoteDestination.Mode = PdfDestinationMode.FitToPage; + //Create a new PdfRemoteGoToAction + PdfRemoteGoToAction goToAction = new PdfRemoteGoToAction("input.pdf", remoteDestination); + //Set the IsNewWindow + goToAction.IsNewWindow = true; + //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("RemoteGoToAction.pdf"); + 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 font and font style. + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12!, PdfFontStyle.Bold) + 'Create a new PdfButtonField + Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") + submitButton.Bounds = New RectangleF(25, 160, 100, 20) + submitButton.Font = font + submitButton.Text = "RemoteGoto" + 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 RemoteDestination + Dim remoteDestination As PdfRemoteDestination = New PdfRemoteDestination + remoteDestination.RemotePageNumber = 3 + remoteDestination.Mode = PdfDestinationMode.FitToPage + 'Create a new PdfRemoteGoToAction + Dim goToAction As PdfRemoteGoToAction = New PdfRemoteGoToAction("input.pdf", PdfRemoteDestination) + 'Set the IsNewWindow + goToAction.IsNewWindow = true + '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("RemoteGoToAction.pdf") + document.Close(true) + + + + + + Gets or sets the destination to be targeted. + + + + //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 = "RemoteGoto"; + 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 RemoteDestination + PdfRemoteDestination remoteDestination = new PdfRemoteDestination(); + remoteDestination.RemotePageNumber = 3; + remoteDestination.Mode = PdfDestinationMode.FitToPage; + //Create a new PdfRemoteGoToAction + PdfRemoteGoToAction goToAction = new PdfRemoteGoToAction("input.pdf", remoteDestination); + //Set the IsNewWindow + goToAction.IsNewWindow = true; + //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("RemoteGoToAction.pdf"); + 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 font and font style. + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12!, PdfFontStyle.Bold) + 'Create a new PdfButtonField + Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") + submitButton.Bounds = New RectangleF(25, 160, 100, 20) + submitButton.Font = font + submitButton.Text = "RemoteGoto" + 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 RemoteDestination + Dim remoteDestination As PdfRemoteDestination = New PdfRemoteDestination + remoteDestination.RemotePageNumber = 3 + remoteDestination.Mode = PdfDestinationMode.FitToPage + 'Create a new PdfRemoteGoToAction + Dim goToAction As PdfRemoteGoToAction = New PdfRemoteGoToAction("input.pdf", PdfRemoteDestination) + 'Set the IsNewWindow + goToAction.IsNewWindow = true + '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("RemoteGoToAction.pdf") + document.Close(true) + + + + + + Initializes a new instance Remote GoTo action with remote destination and the file path in which the destination PDF is located. + + + + //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 = "RemoteGoto"; + 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 RemoteDestination + PdfRemoteDestination remoteDestination = new PdfRemoteDestination(); + remoteDestination.RemotePageNumber = 3; + remoteDestination.Mode = PdfDestinationMode.FitToPage; + //Create a new PdfRemoteGoToAction + PdfRemoteGoToAction goToAction = new PdfRemoteGoToAction("input.pdf", remoteDestination); + //Set the IsNewWindow + goToAction.IsNewWindow = true; + //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("RemoteGoToAction.pdf"); + 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 font and font style. + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12!, PdfFontStyle.Bold) + 'Create a new PdfButtonField + Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") + submitButton.Bounds = New RectangleF(25, 160, 100, 20) + submitButton.Font = font + submitButton.Text = "RemoteGoto" + 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 RemoteDestination + Dim remoteDestination As PdfRemoteDestination = New PdfRemoteDestination + remoteDestination.RemotePageNumber = 3 + remoteDestination.Mode = PdfDestinationMode.FitToPage + 'Create a new PdfRemoteGoToAction + Dim goToAction As PdfRemoteGoToAction = New PdfRemoteGoToAction("input.pdf", PdfRemoteDestination) + 'Set the IsNewWindow + goToAction.IsNewWindow = true + '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("RemoteGoToAction.pdf") + document.Close(true) + + + The remote destination. + the file path value. + + + + Initializes instance. + + + + + Handles the BeginSave event of the Dictionary control. + + The source of the event. + The instance containing the event data. + + + + Represents destination to target a specific page within a remote PDF document using its page index. + + + + //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 = "RemoteGoto"; + 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 RemoteDestination + PdfRemoteDestination remoteDestination = new PdfRemoteDestination(); + remoteDestination.RemotePageNumber = 3; + //Create a new PdfRemoteGoToAction + PdfRemoteGoToAction goToAction = new PdfRemoteGoToAction("input.pdf", remoteDestination); + //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("RemoteGoToAction.pdf"); + 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 font and font style. + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12!, PdfFontStyle.Bold) + 'Create a new PdfButtonField + Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") + submitButton.Bounds = New RectangleF(25, 160, 100, 20) + submitButton.Font = font + submitButton.Text = "RemoteGoto" + 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 RemoteDestination + Dim remoteDestination As PdfRemoteDestination = New PdfRemoteDestination + remoteDestination.RemotePageNumber = 3 + remoteDestination.Mode = PdfDestinationMode.FitToPage + 'Create a new PdfRemoteGoToAction + Dim goToAction As PdfRemoteGoToAction = New PdfRemoteGoToAction("input.pdf", PdfRemoteDestination) + '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("RemoteGoToAction.pdf") + document.Close(true) + + + + + + Gets or sets the destination page number. + + + + //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 = "RemoteGoto"; + 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 RemoteDestination + PdfRemoteDestination remoteDestination = new PdfRemoteDestination(); + remoteDestination.RemotePageNumber = 3; + //Create a new PdfRemoteGoToAction + PdfRemoteGoToAction goToAction = new PdfRemoteGoToAction("input.pdf", remoteDestination); + //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("RemoteGoToAction.pdf"); + 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 font and font style. + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12!, PdfFontStyle.Bold) + 'Create a new PdfButtonField + Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") + submitButton.Bounds = New RectangleF(25, 160, 100, 20) + submitButton.Font = font + submitButton.Text = "RemoteGoto" + 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 RemoteDestination + Dim remoteDestination As PdfRemoteDestination = New PdfRemoteDestination + remoteDestination.RemotePageNumber = 3 + remoteDestination.Mode = PdfDestinationMode.FitToPage + 'Create a new PdfRemoteGoToAction + Dim goToAction As PdfRemoteGoToAction = New PdfRemoteGoToAction("input.pdf", PdfRemoteDestination) + '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("RemoteGoToAction.pdf") + document.Close(true) + + + + + + Initializes a new instance of the Remote Destination. + + + + //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 = "RemoteGoto"; + 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 RemoteDestination + PdfRemoteDestination remoteDestination = new PdfRemoteDestination(); + remoteDestination.RemotePageNumber = 3; + //Create a new PdfRemoteGoToAction + PdfRemoteGoToAction goToAction = new PdfRemoteGoToAction("input.pdf", remoteDestination); + //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("RemoteGoToAction.pdf"); + 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 font and font style. + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12!, PdfFontStyle.Bold) + 'Create a new PdfButtonField + Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") + submitButton.Bounds = New RectangleF(25, 160, 100, 20) + submitButton.Font = font + submitButton.Text = "RemoteGoto" + 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 RemoteDestination + Dim remoteDestination As PdfRemoteDestination = New PdfRemoteDestination + remoteDestination.RemotePageNumber = 3 + remoteDestination.Mode = PdfDestinationMode.FitToPage + 'Create a new PdfRemoteGoToAction + Dim goToAction As PdfRemoteGoToAction = New PdfRemoteGoToAction("input.pdf", PdfRemoteDestination) + '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("RemoteGoToAction.pdf") + document.Close(true) + + + + + + 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 + + + + 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 + + + + Initializes an instance. + + + + + 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 + + + + 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 + + + + Initializes instance. + + + + + Handles the BeginSave event of the Dictionary control. + + The source of the event. + The instance containing the event data. + + + + 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 + + + + 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 a value indicating whether to include form to submit data stream. + Meaningful only when the form is being submitted in Forms Data Format. + If set, the property is a file name containing an embedded file + stream representing the PDF file from which the FDF is being submitted. + + true if form should be embedded to submit stream; 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 EmbedForm option to submit action + submitAction.EmbedForm=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 EmbedForm option to submit action + submitAction.EmbedForm=True + submitButton.Actions.GotFocus = submitAction + 'Save and close the PDF document + document.Save("Output.pdf") + document.Close(True) + + + 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 + + + + Initializes instance. + + + + + Handles the BeginSave event of the Dictionary control. + + The source of the event. + The instance containing the event data. + + + + 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 + + + + 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 + + + + Initializes instance. + + + + + 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. + + + + + 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 the deactivation state for the annotation. + + The specifies the Deactivate the states available in the 3DAnnoation. + + + //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.DeactivationState = Pdf3DDeactivationState.Uninstantiated; + 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.DeactivationState = Pdf3DDeactivationState.Uninstantiated + 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. + + + + 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 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; + + + + + + 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. + + + + 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 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. + + + + + 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. + + + + 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 the element. + + + + + + Represents the base class for 3D annotation. + + + + + Internal variable to store stream. + + + + + Gets or sets the stream. + + The stream. + + + The name of the file. + + + 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 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 + + + + 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. + + + + 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 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. + + + + + 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. + + + + 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 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. + + + + + 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. + + + + 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 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. + + + + + 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. + + + + 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 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. + + + + + 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. + + + + 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 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. + + + + + 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. + + + + 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 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 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 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; + annotation.Type = Pdf3DAnnotationType.U3D; + 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 + annotation.Type = Pdf3DAnnotationType.U3D + page.Annotations.Add(annotation) + 'Save the document to disk. + document.Save("Output.pdf") + 'close the document + document.Close(True) + + + Class + Class + Class + Class + Enum + + + + Represents U3D + + + + + Represents PRC + + + + + 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 + + + + 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 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. + + + + Internal variable to store annotation's action. + + + + + 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. + + 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. + + + + Represents the base class for annotation objects. + + Class + Class + Class + Class + Class + Class + Class + Class + Class + + + + Represents the Annotation identifier + + + + + 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 + + + + + Indicates angle for rotation for annotation + + + + + Indicates rotation is modified + + + + + Indicates page margin + + + + + Indicates annotation review history + + + + + Indicates annotation comments status + + + + + Indicates Caption name + + + + + Indicates collection holds annotation + + + + + gets the rotated angle of the annotation. + + + + + The event will rise when the annotations properties have been changed. + + + + + Deafult appearance stream values for PdfPopupAnnotation. + + + + + + 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. + + + + + Specifies whether to set the default appearance for the annotation or not. + + The appearance value. + + + + Get or set Popup annotations + + + + + Get or set the PdfLayer to the annotation + + + + + Gets or sets the rotation of PDF annotation + + + + + Gets or sets the Name to the uniquely identifying annotations. + + + + //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; + markupAnnotation.Name = "d5daa6e7-4a7d-4e33-0168-4c4211e2c491"; + //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 + markupAnnotation.Name = "d5daa6e7-4a7d-4e33-0168-4c4211e2c491" + '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) + + + + + + Gets or sets the rotation of PDF annotation + + + + + 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. + + + + creates an appearance for annotation + + used to represent overlaytext of redaction annotation + Used to represent the text color of the redaction annotation. + Used to represent the font of the redaction annotation + Used to represent the text alignment of the redaction annotation. + Used to represent the border of the redaction annotation. + Used to represent the text repeat of the redaction annotation. + + + + creates an border appearance for annotation + + Used to represent the border color of the redaction annotation. + Used to represent the border of the redaction annotation. + + + + Find record token Operator + + The token vale. + + + + + Converting Color to hex color + + The color value. + + + + + 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. + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + + + returns annotation bounds. + + + + + 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 page + annotation's blendmode + + + + Set the values associated with the specified key. + + The key for SetValues. + The value for SetValues. + + + //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; + lineAnnotation.Author = "LineAnnotaion"; + lineAnnotation.ModifiedDate = DateTime.Now; + lineAnnotation.Subject = "LineAnnoataion"; + lineAnnotation.SetValues("State", "CustomState"); + lineAnnotation.SetValues("StateModel", "CustomStateModel"); + page.Annotations.Add(lineAnnotation); + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim points() As Integer = New Integer() { 80, 420, 150, 420} + Dim lineAnnotation As PdfLineAnnotation = New PdfLineAnnotation(points) + lineAnnotation.Text = "Line Annotation" + Dim lineBorder As LineBorder = New LineBorder + lineBorder.BorderStyle = PdfBorderStyle.Solid + lineBorder.BorderWidth = 1 + lineAnnotation.lineBorder = lineBorder + lineAnnotation.LineIntent = PdfLineIntent.LineDimension + lineAnnotation.Author = "LineAnnotaion" + lineAnnotation.ModifiedDate = DateTime.Now + lineAnnotation.Subject = "LineAnnoataion" + lineAnnotation.SetValues("State", "CustomState") + lineAnnotation.SetValues("StateModel", "CustomStateModel") + page.Annotations.Add(lineAnnotation) + document.Save("Output.pdf") + document.Close(true) + + + + + + Obtain Document layer from annotation + + + + + + Finds the excepted object with layer collection + + The layer collection values. + The expected object value. + The page value. + + + + Obtain the rotated angle for annotation + + + + + + Calculates the minX, minY, maxX and maxY of the rotated bounds. + + The image coordinates value. + Bounding box of a rectangular bounds + + + + Get rotated transformation matrix. + + The bounds value. + The angle value. + + + + + Gets the popup icon name + + Icon name + Icon type + + + + Gets the element. + + + + + + Obtain the roated angle for annotation + + + + + + Returns the appearance matrix is rotated or not + + The dictionary value. + + + + + Exports the annotation data. + + Stream. + Current identifier. + Annotation identifier. + Current page index. + Indicates exporting of appearance stream or not. + + + + Get Entries dictionary. + + + + + Get append stream Value. + + + + + Get append element Value. + + + + + Get Append array element. + + + + + Get Formatted String. + + + + + Returns the rotated angle value from page graphics + + The matrix value. + + + + + Returns the annotation appearance location to be draw in page + + The bounds value. + The page value. + The template value. + Is normal matrix value. + + + + + Returns the annotation appearance location to be draw in page + + The bounds value. + The page value. + The template value. + Is normal matrix value. + + + + + Set the matrix for annotation appearance + + The template value. + + + + Obtain the native rectangle for annotation + + + + + + Identify the annotation present in collection + + + + + + Obtain crop or media box values from page + + The page value. + The crop or media box value. + + + + + Obtain page margin + + + + + Obtain annotation need flatten + + + + + Obtain layer graphics + + + + + + To find new axis point using existing axis point ,angle and length. + + The float array. + The double value. + The double value. + new axis point. + + + + To set a line style in measurement annotation. + + The starting point value. + The ending point value. + The graphics value. + The angle value. + The border pen value. + The back brush value. + + + + Add Popup annotation in annotation collection + + + + + Get XML formatted string. + + + + + 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. + + + + + 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. + + + + 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 PDF primitive representing this object. + + + + + Represents the collection of objects. + + This class is used to get the collection of annotations in a page. Please refer the UG docuemntation link for in + + + //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. + + + + Error constant message. + + + + + Error constant message. + + + + + Parent page of the collection. + + + + + Array of the annotations. + + + + + Dictionary holds popup parent annotations + + + + + boolean variable indicates whether popup annotation added or not + + + + + 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. + + + + 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. + + + + To update comment state on PdfArray from annotation + + The annotation value. + + + + To update review state from PdfAnnotaion into PdfArray + + The annotation value. + + + + 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. + + + + + To udapte the Annoation review state and comments on PdfArray + + The popup annotation value. + + + + Inserts a annotation into collection. + + The index. + The annotation. + + + + Clears the collection. + + + + + Removes the annotation at the specified position. + + The index. + + + + Removes the annotation. + + The PDF annotation valu. + + + + Parsing Popup annotation + + The PDF annotation value. + + + + Gets PDF primitive representing this object. + + + + + Represents the collection of comments or reviews + + + + //Creates a new PDF Document. + PdfDocument document = new PdfDocument(); + //Creates a new page + PdfPage page = document.Pages.Add(); + //Creates a new rectangle + RectangleF attachmentRectangle = new RectangleF(10, 40, 30, 30); + //Creates a new attachment annotation. + PdfAttachmentAnnotation attachmentAnnotation = new PdfAttachmentAnnotation(attachmentRectangle, @"logo.png"); + //Sets the attachment icon to attachment annotation. + attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin; + PdfPopupAnnotation comments1 = new PdfPopupAnnotation(); + comments1.Author = "Syncfusion"; + comments1.Text = "Hello"; + PdfPopupAnnotation comments2 = new PdfPopupAnnotation(); + comments2.Author = "Pdf"; + comments2.Text = "Welcome"; + Set annotation comments to PdfPopupAnnoationCollection + PdfPopupAnnotationCollection commentscollection = attachmentAnnotation.Comments; + page.Annotations.Add(attachmentAnnotation); + commentscollection.Add(comments1); + comments1.Comments.Add(comments2); + document.Save("Output.pdf"); + document.Close(); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim attachmentRectangle As RectangleF = New RectangleF(10, 40, 30, 30) + Dim attachmentAnnotation As PdfAttachmentAnnotation = New PdfAttachmentAnnotation(attachmentRectangle, "logo.png") + 'Sets the attachment icon to attachment annotation. + attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin + Dim comments1 As PdfPopupAnnotation = New PdfPopupAnnotation + comments1.Author = "Syncfusion" + comments1.Text = "Hello" + Dim comments2 As PdfPopupAnnotation = New PdfPopupAnnotation + comments2.Author = "Pdf" + comments2.Text = "Welcome" + Dim commentscollection As PdfPopupAnnotationCollection = attachmentAnnotation.Comments + page.Annotations.Add(attachmentAnnotation) + commentscollection.Add(comments1) + comments1.Comments.Add(comments2) + document.Save("Output.pdf") + document.Close + + + + + + Gets the PdfPopupAnnotation at the specified index. + + Index value. + + + + //Creates a new PDF Document. + PdfDocument document = new PdfDocument(); + //Creates a new page + PdfPage page = document.Pages.Add(); + //Creates a new rectangle + RectangleF attachmentRectangle = new RectangleF(10, 40, 30, 30); + //Creates a new attachment annotation. + PdfAttachmentAnnotation attachmentAnnotation = new PdfAttachmentAnnotation(attachmentRectangle, @"logo.png"); + //Sets the attachment icon to attachment annotation. + attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin; + PdfPopupAnnotation comments1 = new PdfPopupAnnotation(); + comments1.Author = "Syncfusion"; + comments1.Text = "Hello"; + PdfPopupAnnotation comments2 = new PdfPopupAnnotation(); + comments2.Author = "Pdf"; + comments2.Text = "Welcome"; + PdfPopupAnnotationCollection commentscollection = attachmentAnnotation.Comments; + page.Annotations.Add(attachmentAnnotation); + commentscollection.Add(comments1); + comments1.Comments.Add(comments2); + //Get the index value of PdfPopupAnnotationCollection + PdfPopupAnnotation getComments = commentscollection[0]; + document.Save("Output.pdf"); + document.Close(); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim attachmentRectangle As RectangleF = New RectangleF(10, 40, 30, 30) + Dim attachmentAnnotation As PdfAttachmentAnnotation = New PdfAttachmentAnnotation(attachmentRectangle, "logo.png") + 'Sets the attachment icon to attachment annotation. + attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin + Dim comments1 As PdfPopupAnnotation = New PdfPopupAnnotation + comments1.Author = "Syncfusion" + comments1.Text = "Hello" + Dim comments2 As PdfPopupAnnotation = New PdfPopupAnnotation + comments2.Author = "Pdf" + comments2.Text = "Welcome" + Dim commentscollection As PdfPopupAnnotationCollection = attachmentAnnotation.Comments + page.Annotations.Add(attachmentAnnotation) + commentscollection.Add(comments1) + comments1.Comments.Add(comments2) + Dim getComments As PdfPopupAnnotation = commentscollection(0) + document.Save("Output.pdf") + document.Close + + + + + + To add comments or reviews on the Annotation. + + The popup annotation value. + + + //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 + // Add review state + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Text = "Hello PDF Comments"; + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "Test Text"; + // Add comments and reviews + rectangleannotation.Comments.Add(popupComments); + rectangleannotation.ReviewHistory.Add(popup); + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + document.PageSettings.SetMargins(0) + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10!) + Dim brush As PdfBrush = New PdfSolidBrush(System.Drawing.Color.Black) + 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)) + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "Test Text" + ' Add comments and reviews + rectangleannotation.Comments.Add(popupComments) + rectangleannotation.ReviewHistory.Add(popup) + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + To update review state from PdfAnnotaion into PdfArray + + The PDF annotation value. + + + + Removes the reviews or comments + + The popup annotation value. + + //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 + // Add review state + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Text = "Hello PDF Comments"; + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "Test Text"; + // remove comments and reviews + rectangleannotation.Comments.Remove(popupComments); + rectangleannotation.ReviewHistory.Remove(popup); + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + document.PageSettings.SetMargins(0) + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10!) + Dim brush As PdfBrush = New PdfSolidBrush(System.Drawing.Color.Black) + 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)) + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "Test Text" + ' remove comments and reviews + rectangleannotation.Comments.Remove(popupComments) + rectangleannotation.ReviewHistory.Remove(popup) + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + Removes the annotation comments or reviews at the specified index. + + The index vale. + + + //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 + // Add review state + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Text = "Hello PDF Comments"; + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "Test Text"; + // remove comments and reviews + rectangleannotation.Comments.RemoveAt(0); + rectangleannotation.ReviewHistory.RemoveAt(0); + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + document.PageSettings.SetMargins(0) + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10!) + Dim brush As PdfBrush = New PdfSolidBrush(System.Drawing.Color.Black) + 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)) + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "Test Text" + ' remove comments and reviews + rectangleannotation.Comments.RemoveAt(0) + rectangleannotation.ReviewHistory.RemoveAt(0) + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + 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. + + + + + 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. + + + + 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 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. + + + + + Boolean variable indicates whether validation appearance is completed + + + + + 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. + + + + 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 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. + + + + + 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. + + + + Initializes a new instance of the class. + + + + + Gets the element. + + + + + + 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. + + + + + 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. + + + + Gets the annotation reviews + + + + //Creates a new PDF Document. + PdfDocument document = new PdfDocument(); + //Creates a new page + PdfPage page = document.Pages.Add(); + //Creates a new rectangle + RectangleF attachmentRectangle = new RectangleF(10, 40, 30, 30); + //Creates a new attachment annotation. + PdfAttachmentAnnotation attachmentAnnotation = new PdfAttachmentAnnotation(attachmentRectangle, @"logo.png"); + //Sets the attachment icon to attachment annotation. + attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin; + //set Review history + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Text = "Hello PDF Comments"; + attachmentAnnotation.ReviewHistory.Add(popup); + //Get Review history + PdfPopupAnnotationCollection reviewCollection = attachmentAnnotation.ReviewHistory; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim attachmentRectangle As RectangleF = New RectangleF(10, 40, 30, 30) + Dim attachmentAnnotation As PdfAttachmentAnnotation = New PdfAttachmentAnnotation(attachmentRectangle, "logo.png") + 'Sets the attachment icon to attachment annotation. + attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + attachmentAnnotation.ReviewHistory.Add(popup) + Dim reviewCollection As PdfPopupAnnotationCollection = attachmentAnnotation.ReviewHistory + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Gets the annotation comments + + + + //Creates a new PDF Document. + PdfDocument document = new PdfDocument(); + //Creates a new page + PdfPage page = document.Pages.Add(); + //Creates a new rectangle + RectangleF attachmentRectangle = new RectangleF(10, 40, 30, 30); + //Creates a new attachment annotation. + PdfAttachmentAnnotation attachmentAnnotation = new PdfAttachmentAnnotation(attachmentRectangle, @"logo.png"); + //Sets the attachment icon to attachment annotation. + attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin; + //set comments + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "Test Text"; + attachmentAnnotation.Comments.Add(popupComments); + //Get annotation comments + PdfPopupAnnotationCollection commentsCollection = attachmentAnnotation.Comments; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim attachmentRectangle As RectangleF = New RectangleF(10, 40, 30, 30) + Dim attachmentAnnotation As PdfAttachmentAnnotation = New PdfAttachmentAnnotation(attachmentRectangle, "logo.png") + 'Sets the attachment icon to attachment annotation. + attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "Test Text" + attachmentAnnotation.Comments.Add(popupComments) + Dim commentsCollection As PdfPopupAnnotationCollection = attachmentAnnotation.Comments + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + 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. + + + + + 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. + + + + + Gets or sets the destination of the annotation. + + The object specifies which page to be navigated. + + + //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. + + 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 a base class for file attachment annotation. + + Class + Class + Class + + + + Annotation's appearance. + + + + + 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 + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class with specified bounds. + + Bounds of the annotation. + + + + Saves an annotation. + + + + + 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. + + + + 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 + + + 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. + + + + + 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 + + + + + Indicates m_inkList is added into m_inkPointsCollection or not + + + + + Indicate path collection of the ink annotation + + + + + Internal variable to store Border Dash. + + + + + border width + + + + + Border line width + + + + + Indicate the border Dictionary + + + + + Indicat the border style + + + + + Indicates whether to calculate Ink bounds from native logic or not + + Default value is true + + + + Gets or sets list of the InkList value. + + The value specifies list of lines to be drawn. + + + //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; + inkAnnotation.InkList = new List<float> { 40, 300, 60, 100, 40, 50, 40, 300 }; + inkAnnotation.DashArray = new int[] { 0, 0 }; + //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 + inkAnnotation.DashArray = New Integer() {0, 0} + '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 + + + + Gets or sets multiple list of the InkList value. + + The value specifies multiple list of lines to be drawn. + + + //Create a new PDF document + PdfDocument document = new PdfDocument(); + //Create a new page + PdfPage page = document.Pages.Add(); + List<float> inkPoints1 = new List<float> { 40, 300, 60, 100, 40, 50, 40, 300 }; + List<float> inkPoints2 = new List<float> { 40, 300, 60, 100, 40, 50, 40, 300 }; + //Creates a new ink annotation + RectangleF rectangle = new RectangleF(0, 0, 300, 400); + PdfInkAnnotation inkAnnotation = new PdfInkAnnotation(rectangle, inkPoints1); + //Adds ink points into ink points collection + inkAnnotation.InkPointsCollection.Add(inkPoints2); + //Sets color for ink annotation + inkAnnotation.Color = new PdfColor(Color.Red); + //Adds annotation to the page + page.Annotations.Add(inkAnnotation); + //Save and close the PDF document + document.Save("Output.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() + Dim inkPoints1 As New List(Of Single)(New Single() { 40, 300, 60, 100, 40, 50, 40, 300 }) + Dim inkPoints1 As New List(Of Single)(New Single() { 40, 300, 60, 500, 40, 450, 40, 300 }) + 'Creates a new ink annotation + Dim rectangle As New RectangleF(0, 0, 300, 400) + Dim inkAnnotation As New PdfInkAnnotation(rectangle, inkPoints1) + /// 'Adds ink points into ink points collection + inkAnnotation.InkPointsCollection.Add(inkPoints2) + 'Sets color for ink annotation + inkAnnotation.Color = New PdfColor(Color.Red) + 'Adds annotation to the page + page.Annotations.Add(inkAnnotation) + 'Save and close the PDF document + document.Save("Output.pdf") + document.Close(True) + + + + + + Gets or sets the border width of an ink annotation. + + The broder width of the annotation. + + + //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; + inkAnnotation.InkList = new List<float> { 40, 300, 60, 100, 40, 50, 40, 300 }; + inkAnnotation.DashArray = new int[] { 0, 0 }; + //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 + inkAnnotation.DashArray = New Integer() {0, 0} + '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 + + + + Gets or sets the border line width of an ink annotation. + + + + + Gets or sets the border style of an ink annotation. + + A enumeration member specifying 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(); + //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; + inkAnnotation.InkList = new List<float> { 40, 300, 60, 100, 40, 50, 40, 300 }; + inkAnnotation.DashArray = new int[] { 0, 0 }; + //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 + inkAnnotation.DashArray = New Integer() {0, 0} + '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 + + + + Gets or sets the DashArray value + + The array of values which draws the dash array of the annotation. + + + //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; + inkAnnotation.InkList = new List<float> { 40, 300, 60, 100, 40, 50, 40, 300 }; + inkAnnotation.DashArray = new int[] { 0, 0 }; + //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 + inkAnnotation.DashArray = New Integer() {0, 0} + '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 + + + + Gets the annotation reviews + + + + //Creates a new PDF document. + PdfDocument document = new PdfDocument(); + //Creates a new page + PdfPage page = document.Pages.Add(); + List<float> linePoints = new List<float> { 40, 300, 60, 100, 40, 50, 40, 300 }; + //Creates a new ink annotation + RectangleF rectangle = new RectangleF(0, 0, 300, 400); + PdfInkAnnotation inkAnnotation = new PdfInkAnnotation(rectangle, linePoints); + inkAnnotation.Color = new PdfColor(Color.Red); + //Add review State + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Text = "Hello PDF Comments"; + inkAnnotation.ReviewHistory.Add(popup); + //Get Review history + PdfPopupAnnotationCollection reviewCollection = inkAnnotation.ReviewHistory; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim linePoints As List(Of Single) = New List(Of Single)() {40, 300, 60, 100, 40, 50, 40, 300} + Dim rectangle As RectangleF = New RectangleF(0, 0, 300, 400) + Dim inkAnnotation As PdfInkAnnotation = New PdfInkAnnotation(rectangle, linePoints) + inkAnnotation.Color = New PdfColor(Color.Red) + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + inkAnnotation.ReviewHistory.Add(popup) + Dim reviewCollection As PdfPopupAnnotationCollection = inkAnnotation.ReviewHistory + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Gets the annotation comments + + + + //Creates a new PDF document. + PdfDocument document = new PdfDocument(); + //Creates a new page + PdfPage page = document.Pages.Add(); + List<float> linePoints = new List<float> { 40, 300, 60, 100, 40, 50, 40, 300 }; + //Creates a new ink annotation + RectangleF rectangle = new RectangleF(0, 0, 300, 400); + PdfInkAnnotation inkAnnotation = new PdfInkAnnotation(rectangle, linePoints); + inkAnnotation.Color = new PdfColor(Color.Red); + //Add Comment State + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "Test Text"; + inkAnnotation.Comments.Add(popupComments); + //Get annotation comments + PdfPopupAnnotationCollection commentsCollection = inkAnnotation.Comments; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim linePoints As List(Of Single) = New List(Of Single)() {40, 300, 60, 100, 40, 50, 40, 300} + Dim rectangle As RectangleF = New RectangleF(0, 0, 300, 400) + Dim inkAnnotation As PdfInkAnnotation = New PdfInkAnnotation(rectangle, linePoints) + inkAnnotation.Color = New PdfColor(Color.Red) + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "Test Text" + inkAnnotation.Comments.Add(popupComments) + Dim commentsCollection As PdfPopupAnnotationCollection = inkAnnotation.Comments + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Initializes a new instance of the class with specified bounds and line points. + + The bounds of the annotation + The list of points to be drawn. + + + //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 ink annotation + PdfInkAnnotation inkAnnotation = new PdfInkAnnotation(rectangle, linePoints); + inkAnnotation.Color = new PdfColor(Color.Red); + //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 ink annotation + Dim inkAnnotation As New PdfInkAnnotation(rectangle, linePoints) + inkAnnotation.Color = New PdfColor(Color.Red) + '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 + + + + Initializes a new instance of the class. + + + + + Initializes annotation object. + + + + + 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. + + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + + + Flatten annotation + + The page value. + The apperance value. + + + + Create appearance for annotation + + + + + + Add Ink points in dictionary + + + + + Save Ink Dictionary + + + + + Calculate ink bounds from point collection + + The point collection value. + Is two points value. + + + + 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 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 + + + + + To Specifying the LinePoints of the line 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 + + + + 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 + + + + Gets the annotation reviews + + + + //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; + //Add Review state + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Text = "Hello PDF Comments"; + lineAnnotation.ReviewHistory.Add(popup); + //Get Review history + PdfPopupAnnotationCollection reviewCollection = lineAnnotation.ReviewHistory; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim points() As Integer = New Integer() { 80, 420, 150, 420} + Dim lineAnnotation As PdfLineAnnotation = New PdfLineAnnotation(points) + lineAnnotation.Text = "Line Annotation" + Dim lineBorder As LineBorder = New LineBorder + lineBorder.BorderStyle = PdfBorderStyle.Solid + lineBorder.BorderWidth = 1 + lineAnnotation.lineBorder = lineBorder + lineAnnotation.LineIntent = PdfLineIntent.LineDimension + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + lineAnnotation.ReviewHistory.Add(popup) + Dim reviewCollection As PdfPopupAnnotationCollection = lineAnnotation.ReviewHistory + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Gets the annotation comments + + + + //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; + //set comments + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "Test Text"; + lineAnnotation.Comments.Add(popupComments); + //Get annotation comments + PdfPopupAnnotationCollection commentsCollection = lineAnnotation.Comments; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim points() As Integer = New Integer() { 80, 420, 150, 420} + Dim lineAnnotation As PdfLineAnnotation = New PdfLineAnnotation(points) + lineAnnotation.Text = "Line Annotation" + Dim lineBorder As LineBorder = New LineBorder + lineBorder.BorderStyle = PdfBorderStyle.Solid + lineBorder.BorderWidth = 1 + lineAnnotation.lineBorder = lineBorder + lineAnnotation.LineIntent = PdfLineIntent.LineDimension + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "Test Text" + lineAnnotation.Comments.Add(popupComments) + Dim commentsCollection As PdfPopupAnnotationCollection = lineAnnotation.Comments + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Initializes annotation object. + + + + + Gets line points of the annotation. + + line points. + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + + + Obtain Line bounds from line points + + + + + + Save line annotation required dictionary + + + + + Create appearance for annotation + + + + + + Flatten annotation + + The page value. + The appearance value. + + + + 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 in float. + + + + + Internal variable to store border width. + + + + + Internal variable to store Border Dash. + + + + + Internal variable to store border style; + + + + + Internal variable to store dictionary. + + + + + 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 + + + + 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 the element. + + + + + + Represents the base class for the link annotations. + + Class + + + + Highlight Mode of the annotation. + + + + + Gets or sets the highlight mode of the link annotation. + + The enumeration value which sets the highlight mode. + + + + 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. + + + + + 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 + + + + Internal variable to store U3D. + + + + + Internal variable to store apperance. + + + + + 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 type of 3DAnnoation. + + The type of the 3DAnnotation. + + + //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.Type = Pdf3DAnnotationType.PRC; + 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.Type = Pdf3DAnnotationType.PRC + page.Annotations.Add(pdf3dAnnotation) + 'Save the document to disk. + document.Save("Output.pdf") + 'close the document. + document.Close(True) + + + Class + Class + Enum + + + + 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 + + + + Gets or sets the Animation. + + The animation 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"); + Pdf3DAnimation animation = new Pdf3DAnimation(PDF3DAnimationType.Linear); + animation.PlayCount = 10; + animation.TimeMultiplier = 3; + pdf3dAnnotation.Animation = animation; + 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 animation As Pdf3DAnimation = New Pdf3DAnimation(PDF3DAnimationType.Linear) + animation.PlayCount = 10 + animation.TimeMultiplier = 3 + pdf3dAnnotation.Animation = animation + page.Annotations.Add(pdf3dAnnotation) + 'Save the document to disk. + document.Save("Output.pdf") + 'close the document. + document.Close(True) + + + Class + + + + 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. + + + + + Base class for annotation objects. + + + + + Color of the annotation. + + + + + Border of the annotation. + + + + + Bounds of the annotation. + + + + + Parent page of the annotation. + + + + + Text of the annotation. + + + + + NAnootation's style flags. + + + + + Internal variable to store dictionary. + + + + + Gets or sets the background of the annotation�s icon when closed. + The title bar of the annotation�s pop-up window. + The border of a link annotation. + + The color. + + + + Gets or sets annotation's border. + + + + + Gets or sets annotation's bounds. If this property is not set bounds are calculated automatically + based on Location property and content of annotation. + + + + + Gets or sets location of the annotation. + + + + + Gets or sets size of the annotation. + + + + + Gets a page which this annotation is connected to. + + + + + Gets or sets content of the annotation. + + + + + Gets or sets annotation flags. + + + + + Gets the dictionary. + + The dictionary. + + + + Creates new annotation object. + + + + + Creates new annotation object with the specified bounds. + + Bounds of the annotation. + + + + Sets related page of the annotation. + + The page value. + + + + Sets the location. + + The location. + + + + 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. + + + + + Gets the element. + + + + + + It's a base class for all annotations + + + + + Internal variable to store dictinary. + + + + + Cross table of the document; + + + + + Collection of the descend annotation. + + + + + Gets an instance at the specified index. Read-Only. + + The object at the specified index. + + + + Gets the sub items. + + + + + Gets the dictionary. + + The dictionary. + + + + Gets the cross table. + + + + + 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 annotation. + + The title of the new annotation. + The annotation created. + + + + Updates all outline dictionary fields. + + + + + Represents the border effect style 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 ,40 ,800 }; + //Create a polygon annotation. + PdfPolygonAnnotation polygonannotation = new PdfPolygonAnnotation(points, "Polygon Annotation"); + //Create pdf border Effect. + PdfBorderEffect borderEffect = new PdfBorderEffect(); + borderEffect.Style = PdfBorderEffectStyle.Cloudy; + borderEffect.Intensity = 1; + polygonannotation.BorderEffect = borderEffect; + //Add this annotation to a new page. + page.Annotations.Add(polygonannotation); + //Save the document to disk. + document.Save("Output.pdf"); + //close the document. + 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, 40, 800 } + 'Create a new Polygon annotation. + Dim polygonannotation As New PdfPolygonAnnotation(points, "Polygon Annotation") + 'Create pdf border Effect. + Dim borderEffect As New PdfBorderEffect() + borderEffect.Style = PdfBorderEffectStyle.Cloudy + borderEffect.Intensity=1; + polygonannotation.BorderEffect = borderEffect + 'Add this annotation to a new page. + page.Annotations.Add(polygonannotation) + 'Save the document to disk. + document.Save("Output.pdf") + 'close the document. + document.Close(True) + + + + + + Internal variable to store dictionary. + + + + + Used to represent the border effect of the annotation. + + + + + To specifying the Intensity of the cloud + + + + + Gets or sets the border effect 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 ,40 ,800 }; + //Create a polygon annotation. + PdfPolygonAnnotation polygonannotation = new PdfPolygonAnnotation(points, "Polygon Annotation"); + //Create pdf border Effect. + PdfBorderEffect borderEffect = new PdfBorderEffect(); + PdfBorderEffectStyle effect = PdfBorderEffectStyle.Cloudy; + borderEffect.Style = effect; + borderEffect.Intensity = 1; + polygonannotation.BorderEffect = borderEffect; + //Add this annotation to a new page. + page.Annotations.Add(polygonannotation); + //Save the document to disk. + document.Save("Output.pdf"); + //close the document. + 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, 40, 800 } + 'Create a new Polygon annotation. + Dim polygonannotation As New PdfPolygonAnnotation(points, "Polygon Annotation") + 'Create pdf border Effect. + Dim borderEffect As New PdfBorderEffect() + PdfBorderEffectStyle effect = PdfBrderEffectStle.Cloudy; + borderEffect.Style = effect; + borderEffect.Intensity=1; + polygonannotation.BorderEffect = borderEffect + 'Add this annotation to a new page. + page.Annotations.Add(polygonannotation) + 'Save the document to disk. + document.Save("Output.pdf") + 'close the document. + document.Close(True) + + + + + + Gets or sets the Intensity of border effect. + + This property has store the range of value 0 to 2. + The Specifies the available Intensity 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 ,40 ,800 }; + //Create a polygon annotation. + //PdfPolygonAnnotation polygonannotation = new PdfPolygonAnnotation(points, "Polygon Annotation"); + //Create pdf border effect. + PdfBorderEffect borderEffect = new PdfBorderEffect(); + borderEffect.Style = PdfBorderEffectStyle.Cloudy; + borderEffect.Intensity = 1; + polygonannotation.BorderEffect = borderEffect; + //Add this annotation to a new page. + page.Annotations.Add(polygonannotation); + //Save the document to disk. + document.Save("Output.pdf"); + //close the document. + 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, 40, 800 } + 'Create a new polygon annotation. + Dim polygonannotation As New PdfPolygonAnnotation(points, "Polygon Annotation") + 'Create pdf border Effect. + Dim borderEffect As New PdfBorderEffect() + borderEffect.Style = PdfBorderEffectStyle.Cloudy + borderEffect.Intensity=1; + polygonannotation.BorderEffect = borderEffect + 'Add this annotation to a new page. + page.Annotations.Add(polygonannotation) + 'Save the document to disk. + document.Save("Output.pdf") + 'close the document. + document.Close(True) + + + + + + Gets the dictionary. + + The 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 ,40 ,800 }; + //Create a polygon annotation. + PdfPolygonAnnotation polygonannotation = new PdfPolygonAnnotation(points, "Polygon Annotation"); + //Create pdf border effect. + PdfBorderEffect borderEffect = new PdfBorderEffect(); + polygonannotation.BorderEffect = borderEffect; + //Add this annotation to a new page. + page.Annotations.Add(polygonannotation); + //Save the document to disk. + document.Save("Output.pdf"); + //close the document. + 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, 40, 800 } + 'Create a new polygon annotation. + Dim polygonannotation As New PdfPolygonAnnotation(points, "Polygon Annotation") + 'Create pdf border Effect. + Dim borderEffect As New PdfBorderEffect() + polygonannotation.BorderEffect = borderEffect + 'Add this annotation to a new page. + page.Annotations.Add(polygonannotation) + 'Save the document to disk. + document.Save("Output.pdf") + 'close the document. + document.Close(True) + + + + + + Initializes instance. + + + + + Handles the BeginSave event of the Dictionary control. + + The source of the event. + The instance containing the event data. + + + + Converts border effect to string. + + The effect. + + + + Converts string to border effect. + + The beffect. + + + + Gets the element. + + + + + 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 + + + + 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(); + //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; + //Set the line spacing + textAnnotation.LineSpacing = 5.5f; + textAnnotation.SetAppearance(true); + //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 + 'Set the Line spacing. + textAnnotation.LineSpacing=5.5f + textAnnotation.SetAppearance(True) + '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) + + + + + + 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 + + + + Gets or sets the markup color of the text annotation. + + The 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 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 border color of the text annotation. + + The which draws the border 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 the annotation reviews + + + + //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 freeTextAnnotation = new PdfFreeTextAnnotation(textAnnotationBounds); + //Set the text and font + freeTextAnnotation.MarkupText = "Text Annotation"; + freeTextAnnotation.Font = new PdfStandardFont(PdfFontFamily.Courier, 10); + //Set the line caption type. + freeTextAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; + //set review state + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Text = "Hello PDF Comments"; + freeTextAnnotation.ReviewHistory.Add(popup); + //Get Review history + PdfPopupAnnotationCollection reviewCollection = freeTextAnnotation.ReviewHistory; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim textAnnotationBounds As RectangleF = New RectangleF(10, 40, 100, 30) + Dim freeTextAnnotation As PdfFreeTextAnnotation = New PdfFreeTextAnnotation(textAnnotationBounds) + 'Set the text and font + freeTextAnnotation.MarkupText = "Text Annotation" + freeTextAnnotation.Font = New PdfStandardFont(PdfFontFamily.Courier, 10) + 'Set the line caption type. + freeTextAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + freeTextAnnotation.ReviewHistory.Add(popup) + Dim reviewCollection As PdfPopupAnnotationCollection = freeTextAnnotation.ReviewHistory + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Gets the annotation comments + + + + //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 freeTextAnnotation = new PdfFreeTextAnnotation(textAnnotationBounds); + //Set the text and font + freeTextAnnotation.MarkupText = "Text Annotation"; + freeTextAnnotation.Font = new PdfStandardFont(PdfFontFamily.Courier, 10); + //Set the line caption type. + freeTextAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; + //set Comments state + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "Test Text"; + freeTextAnnotation.Comments.Add(popupComments); + //Get annotation comments + PdfPopupAnnotationCollection commentsCollection = freeTextAnnotation.Comments; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim textAnnotationBounds As RectangleF = New RectangleF(10, 40, 100, 30) + Dim freeTextAnnotation As PdfFreeTextAnnotation = New PdfFreeTextAnnotation(textAnnotationBounds) + 'Set the text and font + freeTextAnnotation.MarkupText = "Text Annotation" + freeTextAnnotation.Font = New PdfStandardFont(PdfFontFamily.Courier, 10) + 'Set the line caption type. + freeTextAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "Test Text" + freeTextAnnotation.Comments.Add(popupComments) + Dim commentsCollection As PdfPopupAnnotationCollection = freeTextAnnotation.Comments + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Gets or sets the complex script to add different languages texts in free text 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 freeTextAnnotation = new PdfFreeTextAnnotation(textAnnotationBounds); + //Set the text and font + freeTextAnnotation.MarkupText = "Text Annotation"; + freeTextAnnotation.ComplexScript = true; + freeTextAnnotation.Font = new PdfTrueTypeFont(new Font("Nirmala UI", 14), true); + //Set the line caption type. + freeTextAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; + //set Comments state + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "पत्र‍ांक दिनांक"; + freeTextAnnotation.Comments.Add(popupComments); + //Get annotation comments + PdfPopupAnnotationCollection commentsCollection = freeTextAnnotation.Comments; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim textAnnotationBounds As RectangleF = New RectangleF(10, 40, 100, 30) + Dim freeTextAnnotation As PdfFreeTextAnnotation = New PdfFreeTextAnnotation(textAnnotationBounds) + 'Set the text and font + freeTextAnnotation.MarkupText = "Text Annotation" + freeTextAnnotation.Font = New PdfTrueTypeFont(New Font("Nirmala UI", 14), True) + freeTextAnnotation.ComplexScript = True + 'Set the line caption type. + freeTextAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "पत्र‍ांक दिनांक" + freeTextAnnotation.Comments.Add(popupComments) + Dim commentsCollection As PdfPopupAnnotationCollection = freeTextAnnotation.Comments + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Gets or sets the text alignment to free text annotations + + + + //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; + //Sets the text alignment of the text annotation. + textAnnotation.TextAlignment = PdfTextAlignment.Right; + textAnnotation.setAppearance(true); + //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. + 'Sets the text alignment of the text annotation. + textAnnotation.TextAlignment = PdfTextAlignment.Right + textAnnotation.setAppearance(true) + page.Annotations.Add(textAnnotation) + 'Save the document to disk. + document.Save("Output.pdf") + 'close the document + document.Close(True) + + + + + + Gets or sets the text direction to free text 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 freeTextAnnotation = new PdfFreeTextAnnotation(textAnnotationBounds); + //Set the text and font + freeTextAnnotation.MarkupText = "Text Annotation"; + freeTextAnnotation.ComplexScript = true; + freeText.TextDirection = PdfTextDirection.RightToLeft; + freeTextAnnotation.Font = new PdfTrueTypeFont(new Font("Nirmala UI", 14), true); + //Set the line caption type. + freeTextAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; + //set Comments state + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "أهلا بك"; + freeTextAnnotation.Comments.Add(popupComments); + //Get annotation comments + PdfPopupAnnotationCollection commentsCollection = freeTextAnnotation.Comments; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim textAnnotationBounds As RectangleF = New RectangleF(10, 40, 100, 30) + Dim freeTextAnnotation As PdfFreeTextAnnotation = New PdfFreeTextAnnotation(textAnnotationBounds) + 'Set the text and font + freeTextAnnotation.MarkupText = "Text Annotation" + freeTextAnnotation.Font = New PdfTrueTypeFont(New Font("Nirmala UI", 14), True) + freeTextAnnotation.ComplexScript = True + freeText.TextDirection = PdfTextDirection.RightToLeft + 'Set the line caption type. + freeTextAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "أهلا بك" + freeTextAnnotation.Comments.Add(popupComments) + Dim commentsCollection As PdfPopupAnnotationCollection = freeTextAnnotation.Comments + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + 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. + + + + + Flatten annotation without calling save method. + + + + + Saves an Text Markup Annotation . + + + + + Flatten annotation + + The page value. + The appearance value. + + + + Save free text required dictionary + + + + + Obtain bounds for create appearance + + + + + + Expand appearance bounds + + The point array. + + + + Create appearance for annotation + + + + + + Draw arrow for callout line + + The paint params value. + The graphics value. + The border pen value. + + + + Draw callout line in appearance + + The graphics value. + The border pen value. + + + + Calculate arrow points + + The stating point value. + The end point value. + + + + + Draw Free text rectangle + + The graphics value. + The paint params value. + The rectangle value. + + + + Draw free markup text in appearance + + The graphics value. + The paint params value. + The rectangle value. + + + + Set rectangle differance for free text annotation + + The inner rectangle value. + + + + Set paddings between border and text for free text annotation + + The padding value. + + + + Represents a PDF circle annotation + + + + + Used to represent the border style of the circle annotation. + + + + + Used to represent the border effect style of the Circle annotation. + + + + + Gets the annotation reviews + + + + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Create a new page. + PdfPage page = document.Pages.Add(); + //To specify the line end points + RectangleF rectangle = new RectangleF(10, 40, 30, 30); + //Create a new line annotation and set properties. + PdfCircleAnnotation circleAnnotation = new PdfCircleAnnotation(rectangle); + circleAnnotation.Text = "Circle"; + //Add Review state + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Text = "Hello PDF Comments"; + popup.Author = "Test1"; + circleAnnotation.ReviewHistory.Add(popup); + //Get Review history + PdfPopupAnnotationCollection reviewCollection = circleAnnotation.ReviewHistory; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) + Dim circleAnnotation As PdfCircleAnnotation = New PdfCircleAnnotation(rectangle) + circleAnnotation.Text = "Circle" + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + popup.Author = "Test1" + circleAnnotation.ReviewHistory.Add(popup) + Dim reviewCollection As PdfPopupAnnotationCollection = circleAnnotation.ReviewHistory + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Gets the annotation comments + + + + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Create a new page. + PdfPage page = document.Pages.Add(); + //To specify the line end points + RectangleF rectangle = new RectangleF(10, 40, 30, 30); + //Create a new line annotation and set properties. + PdfCircleAnnotation circleAnnotation = new PdfCircleAnnotation(rectangle); + circleAnnotation.Text = "Circle"; + //Add comment state + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "Test Text"; + circleAnnotation.Comments.Add(popupComments); + //Get annotation comments + PdfPopupAnnotationCollection commentsCollection = circleAnnotation.Comments; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) + Dim circleAnnotation As PdfCircleAnnotation = New PdfCircleAnnotation(rectangle) + circleAnnotation.Text = "Circle" + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "Test Text" + circleAnnotation.Comments.Add(popupComments) + Dim commentsCollection As PdfPopupAnnotationCollection = circleAnnotation.Comments + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Get or set the border style of the circle annotaion. + + + + + Get or set the border effect of the Circle 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 Circle annotation. + PdfCircleAnnotation circleAnnotation = new PdfCircleAnnotation(new RectangleF(0, 30, 80, 80)); + circleAnnotation.Text = "CircleAnnotation"; + circleAnnotation.InnerColor = new PdfColor(Color.Red); + PdfBorderEffect borderEffect = new PdfBorderEffect(); + borderEffect.Intensity=2; + borderEffect.Style = PdfBorderEffectStyle.Cloudy; + circleAnnotation.BorderEffect = borderEffect; + circleAnnotation.Color = new PdfColor(Color.Yellow); + page.Graphics.DrawString("Circle Annotation", font, brush, new PointF(0, 0)); + //Add the annotation to the page. + page.Annotations.Add(circleAnnotation); + //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 Circle Annotation. + Dim circleAnnotation As PdfCircleAnnotation = New PdfCircleAnnotation(New RectangleF(0, 30, 80, 80)) + circleAnnotation.Text = "CircleAnnotation" + circleAnnotation.InnerColor = New PdfColor(Color.Red) + Dim borderEffect As PdfBorderEffect() + borderEffect.Intensity=2; + borderEffect.Style = PdfBorderEffectStyle.Cloudy + circleAnnotation.BorderEffect = borderEffect + circleAnnotation.Color = New PdfColor(Color.Yellow) + page.Graphics.DrawString("Circle Annotation", font, brush, New PointF(0, 0)) + 'Add annotation to the page. + page.Annotations.Add(circleAnnotation) + 'Save the document. + document.Save("Output.pdf") + 'Close the document. + document.Close(True) + + + + + + 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. + + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + + + Flatten Annotation + + The page value. + The appearance value. + + + + Create appearance for annotation + + + + + + Create cloud appearance for annotation + + + + + + 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 + + + + Gets the annotation reviews + + + + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Create a new page. + PdfPage page = document.Pages.Add(); + //To specify the line end points + RectangleF rectangle = new RectangleF(10, 40, 30, 30); + //Create a new line annotation and set properties. + PdfEllipseAnnotation ellipseAnnotation = new PdfEllipseAnnotation(rectangle, "Ellipse"); + ellipseAnnotation.Text = "Circle"; + //Add Review state + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Text = "Hello PDF Comments"; + ellipseAnnotation.ReviewHistory.Add(popup); + //Get Review history + PdfPopupAnnotationCollection reviewCollection = ellipseAnnotation.ReviewHistory; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) + Dim ellipseAnnotation As PdfEllipseAnnotation = New PdfEllipseAnnotation(rectangle, "Ellipse") + ellipseAnnotation.Text = "Circle" + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + ellipseAnnotation.ReviewHistory.Add(popup) + Dim reviewCollection As PdfPopupAnnotationCollection = ellipseAnnotation.ReviewHistory + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) + Dim ellipseAnnotation As PdfEllipseAnnotation = New PdfEllipseAnnotation(rectangle, "Ellipse") + ellipseAnnotation.Text = "Circle" + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + ellipseAnnotation.ReviewHistory.Add(popup) + Dim reviewCollection As PdfPopupAnnotationCollection = ellipseAnnotation.ReviewHistory + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Gets the annotation Comments + + + + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Create a new page. + PdfPage page = document.Pages.Add(); + //To specify the line end points + RectangleF rectangle = new RectangleF(10, 40, 30, 30); + //Create a new line annotation and set properties. + PdfEllipseAnnotation ellipseAnnotation = new PdfEllipseAnnotation(rectangle, "Ellipse"); + ellipseAnnotation.Text = "Circle"; + //Add Comments state + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "Test Text"; + ellipseAnnotation.Comments.Add(popupComments); + //Get annotation comments + PdfPopupAnnotationCollection commentsCollection = ellipseAnnotation.Comments; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) + Dim ellipseAnnotation As PdfEllipseAnnotation = New PdfEllipseAnnotation(rectangle, "Ellipse") + ellipseAnnotation.Text = "Circle" + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "Test Text" + ellipseAnnotation.Comments.Add(popupComments) + Dim commentsCollection As PdfPopupAnnotationCollection = ellipseAnnotation.Comments + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Initializes annotation object. + + + + + Flatten annotation without calling save method. + + + + + 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 + + + + + Used to represent the border effect style of the polygon annotation. + + + + + Gets the annotation reviews + + + + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Create a new page. + PdfPage page = document.Pages.Add(); + //Create a new rectangle + int[] points = new int[] { 80, 420, 150, 420 }; + //Create a new line annotation. + PdfPolygonAnnotation PolyConAnnotation = new PdfPolygonAnnotation(points, "Ploycon"); + //Set the text and font + PolyConAnnotation.Text = "Hello"; + //set review state + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Text = "Hello PDF Comments"; + PolyConAnnotation.ReviewHistory.Add(popup); + //Get Review history + PdfPopupAnnotationCollection reviewCollection = PolyConAnnotation.ReviewHistory; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim points() As Integer = New Integer() { 80, 420, 150, 420} + Dim PolyConAnnotation As PdfPolygonAnnotation = New PdfPolygonAnnotation(points, "Ploycon") + 'Set the text and font + PolyConAnnotation.Text = "Hello" + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + PolyConAnnotation.ReviewHistory.Add(popup) + Dim reviewCollection As PdfPopupAnnotationCollection = PolyConAnnotation.ReviewHistory + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Gets the annotation comments + + + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Create a new page. + PdfPage page = document.Pages.Add(); + //Create a new rectangle + int[] points = new int[] { 80, 420, 150, 420 }; + //Create a new line annotation. + PdfPolygonAnnotation PolyConAnnotation = new PdfPolygonAnnotation(points, "Ploycon"); + //Set the text and font + PolyConAnnotation.Text = "Hello"; + // set comments + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "Test Text"; + PolyConAnnotation.Comments.Add(popupComments); + //Get annotation comments + PdfPopupAnnotationCollection commentsCollection = PolyConAnnotation.Comments; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim points() As Integer = New Integer() { 80, 420, 150, 420} + Dim PolyConAnnotation As PdfPolygonAnnotation = New PdfPolygonAnnotation(points, "Ploycon") + 'Set the text and font + PolyConAnnotation.Text = "Hello" + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "Test Text" + PolyConAnnotation.Comments.Add(popupComments) + Dim commentsCollection As PdfPopupAnnotationCollection = PolyConAnnotation.Comments + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Get or set the border effect of the Polygon 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); + //Create a new polygon Line + int[] points = new int[] { 80, 420, 150, 420 }; + //Create a new line annotation. + PdfPolygonAnnotation polygonannotation = new PdfPolygonAnnotation(points, "Polygon"); + //Set the text and font + polygonannotation.Text = "Hello"; + polygonannotation.InnerColor = new PdfColor(Color.Red); + PdfBorderEffect borderEffect = new PdfBorderEffect(); + borderEffect.Intensity=2; + borderEffect.Style = PdfBorderEffectStyle.Cloudy; + polygonannotation.BorderEffect = borderEffect; + polygonannotation.Color = new PdfColor(Color.Yellow); + page.Graphics.DrawString("Polygon Annotation", font, brush, new PointF(0, 0)); + //Add the annotation to the page. + page.Annotations.Add(polygonannotation); + //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) + Dim points() As Integer = New Integer() { 80, 420, 150, 420} + Dim polygonannotation As PdfPolygonAnnotation = New PdfPolygonAnnotation(points, "Ploycon") + 'Set the text and font + polygonannotation.Text = "Hello" + polygonannotation.InnerColor = New PdfColor(Color.Red) + Dim borderEffect As PdfBorderEffect = New PdfBorderEffect() + borderEffect.Intensity=2; + borderEffect.Style = PdfBorderEffectStyle.Cloudy + polygonannotation.BorderEffect = borderEffect + polygonannotation.Color = New PdfColor(Color.Yellow) + page.Graphics.DrawString("Polygon Annotation", font, brush, New PointF(0, 0)) + 'Add annotation to the page. + page.Annotations.Add(polygonannotation) + 'Save the document. + document.Save("Output.pdf") + 'Close the document. + document.Close(True) + + + + + + Get or sets the border style of the square annotation. + + + + + Gets or sets Leading Line Extension, Default value is 0 + + + + + Gets the polygon points of the annotation. + + + + + Gets the polygon points of the annotation. + + + + + 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. + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + + + Flatten Annotation + + The page value. + The appearance value. + + + + 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 + + + + + Gets the annotation reviews + + + + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Create a new page. + PdfPage page = document.Pages.Add(); + //Create a new rectangle + int[] points = new int[] { 80, 420, 150, 420 }; + //Create a new line annotation. + PdfPolyLineAnnotation PolylineAnnotation = new PdfPolyLineAnnotation(points, "Ployline"); + //Set the text and font + PolylineAnnotation.Text = "Hello"; + //set review state + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Text = "Hello PDF Comments"; + PolylineAnnotation.ReviewHistory.Add(popup); + //Get Review history + PdfPopupAnnotationCollection reviewCollection = PolylineAnnotation.ReviewHistory; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim points() As Integer = New Integer() { 80, 420, 150, 420} + Dim PolyConAnnotation As PdfPolygonAnnotation = New PdfPolygonAnnotation(points, "Ploycon") + 'Set the text and font + PolyConAnnotation.Text = "Hello" + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + PolyConAnnotation.ReviewHistory.Add(popup) + Dim reviewCollection As PdfPopupAnnotationCollection = PolyConAnnotation.ReviewHistory + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Gets the annotation comments + + + + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Create a new page. + PdfPage page = document.Pages.Add(); + //Create a new rectangle + int[] points = new int[] { 80, 420, 150, 420 }; + //Create a new line annotation. + PdfPolyLineAnnotation PolylineAnnotation = new PdfPolyLineAnnotation(points, "Ployline"); + //Set the text and font + PolylineAnnotation.Text = "Hello"; + //set comments + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "Test Text"; + PolylineAnnotation.Comments.Add(popupComments); + //Get annotation comments + PdfPopupAnnotationCollection commentsCollection = PolylineAnnotation.Comments; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim points() As Integer = New Integer() { 80, 420, 150, 420} + Dim PolylineAnnotation As PdfPolyLineAnnotation = New PdfPolyLineAnnotation(points, "Ployline") + 'Set the text and font + PolylineAnnotation.Text = "Hello" + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "Test Text" + PolylineAnnotation.Comments.Add(popupComments) + Dim commentsCollection As PdfPopupAnnotationCollection = PolylineAnnotation.Comments + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + 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 + + + + + Gets the polyline points of the annotation. + + + + + Gets the polyline points of the annotation. + + + + + 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. + + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + + + 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 + + + + 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 + + + + Gets the annotation reviews + + + + //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 + // Add review state + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Text = "Hello PDF Comments"; + rectangleannotation.ReviewHistory.Add(popup); + //Get Review history + PdfPopupAnnotationCollection reviewCollection = rectangleannotation.ReviewHistory; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + document.PageSettings.SetMargins(0) + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10!) + Dim brush As PdfBrush = New PdfSolidBrush(System.Drawing.Color.Black) + 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)) + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + rectangleannotation.ReviewHistory.Add(popup) + Dim reviewCollection As PdfPopupAnnotationCollection = rectangleannotation.ReviewHistory + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Gets the annotation comments + + + + //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 + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "Test Text"; + rectangleannotation.Comments.Add(popupComments); + //Get annotation comments + PdfPopupAnnotationCollection commentsCollection = rectangleannotation.Comments; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + document.PageSettings.SetMargins(0) + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10!) + Dim brush As PdfBrush = New PdfSolidBrush(System.Drawing.Color.Black) + 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)) + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "Test Text" + rectangleannotation.Comments.Add(popupComments) + Dim commentsCollection As PdfPopupAnnotationCollection = rectangleannotation.Comments + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Initializes annotation object. + + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + + + Represents the PdfRedactionAnnotation. + + + + //Create a new PDF document. + PdfDocument doc = new PdfDocument(); + //Create a new page. + PdfPage page = doc.Pages.Add(); + //Creates a new Redaction annotation. + PdfRedactionAnnotation annot = new PdfRedactionAnnotation(); + //set the bounds + annot.Bounds = new Rectangle(100, 120, 100, 100); + //set the innercolor + annot.InnerColor = Color.Aqua; + //set the bordercolor + annot.BorderColor = Color.Orange; + //set the textcolor + annot.TextColor = Color.Yellow; + //set the font + annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); + //set overlaytext + annot.OverlayText = "Redact"; + //set textalignment + annot.TextAlignment = PdfTextAlignment.Right; + annot.Repeat = true; + annot.SetAppearance(true); + ////Add the annotation to the page. + page.Annotations.Add(annot); + //Saves the document to disk. + doc.Save("empty.pdf"); + doc.Close(true); + System.Diagnostics.Process.Start("empty.pdf"); + + + //Create a new PDF document. + Dim doc As PdfDocument = New PdfDocument() + //Create a new page. + Dim page As PdfPage = doc.Pages.Add() + //Creates a new Redaction annotation. + Dim annot As PdfRedactionAnnotation = New PdfRedactionAnnotation() + //set the bounds + annot.Bounds = New Rectangle(100, 120, 100, 100) + //set the innercolor + annot.InnerColor = Color.Aqua + //set the bordercolor + annot.BorderColor = Color.Orange + //set the textcolor + annot.TextColor = Color.Yellow + annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10) + annot.OverlayText = "Redact" + annot.TextAlignment = PdfTextAlignment.Right + annot.Repeat = True + annot.SetAppearance(True) + page.Annotations.Add(annot) + //Saves the document to disk. + doc.Save("empty.pdf") + doc.Close(True) + System.Diagnostics.Process.Start("empty.pdf"); + + + + + + Used to represent the border color of the redaction annotation. + + + + + Used to represent the text color of the redaction annotation. + + + + + Used to represent the font of the redaction annotation. + + + + + Used to represent the text alignment of the redaction annotation. + + + + + Used to represent the border of the redaction annotation. + + + + + Used to represent the overlaytext of the redaction annotation. + + + + + Used to represent the text repeat of the redaction annotation. + + + + + Get or set the textcolor of redaction annotation + + + + //Create a new PDF document. + PdfDocument doc = new PdfDocument(); + //Create a new page. + PdfPage page = doc.Pages.Add(); + //Creates a new Redaction annotation. + PdfRedactionAnnotation annot = new PdfRedactionAnnotation(); + //set the bounds + annot.Bounds = new Rectangle(100, 120, 100, 100); + //set the innercolor + annot.InnerColor = Color.Aqua; + //set the bordercolor + annot.BorderColor = Color.Orange; + //set the textcolor + annot.TextColor = Color.Yellow; + //set the font + annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); + //set overlaytext + annot.OverlayText = "Redact"; + //set textalignment + annot.TextAlignment = PdfTextAlignment.Right; + annot.Repeat = true; + annot.SetAppearance(true); + ////Add the annotation to the page. + page.Annotations.Add(annot); + //Saves the document to disk. + doc.Save("empty.pdf"); + doc.Close(true); + System.Diagnostics.Process.Start("empty.pdf"); + + + //Create a new PDF document. + Dim doc As PdfDocument = New PdfDocument() + //Create a new page. + Dim page As PdfPage = doc.Pages.Add() + //Creates a new Redaction annotation. + Dim annot As PdfRedactionAnnotation = New PdfRedactionAnnotation() + //set the bounds + annot.Bounds = New Rectangle(100, 120, 100, 100) + //set the innercolor + annot.InnerColor = Color.Aqua + //set the bordercolor + annot.BorderColor = Color.Orange + //set the textcolor + annot.TextColor = Color.Yellow + annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10) + annot.OverlayText = "Redact" + annot.TextAlignment = PdfTextAlignment.Right + annot.Repeat = True + annot.SetAppearance(True) + page.Annotations.Add(annot) + //Saves the document to disk. + doc.Save("empty.pdf") + doc.Close(True) + System.Diagnostics.Process.Start("empty.pdf"); + + + + + + Get or set the textalignment of redaction annotation + + + + //Create a new PDF document. + PdfDocument doc = new PdfDocument(); + //Create a new page. + PdfPage page = doc.Pages.Add(); + //Creates a new Redaction annotation. + PdfRedactionAnnotation annot = new PdfRedactionAnnotation(); + //set the bounds + annot.Bounds = new Rectangle(100, 120, 100, 100); + //set the innercolor + annot.InnerColor = Color.Aqua; + //set the bordercolor + annot.BorderColor = Color.Orange; + //set the textcolor + annot.TextColor = Color.Yellow; + //set the font + annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); + //set overlaytext + annot.OverlayText = "Redact"; + //set textalignment + annot.TextAlignment = PdfTextAlignment.Right; + annot.Repeat = true; + annot.SetAppearance(true); + ////Add the annotation to the page. + page.Annotations.Add(annot); + //Saves the document to disk. + doc.Save("empty.pdf"); + doc.Close(true); + System.Diagnostics.Process.Start("empty.pdf"); + + + //Create a new PDF document. + Dim doc As PdfDocument = New PdfDocument() + //Create a new page. + Dim page As PdfPage = doc.Pages.Add() + //Creates a new Redaction annotation. + Dim annot As PdfRedactionAnnotation = New PdfRedactionAnnotation() + //set the bounds + annot.Bounds = New Rectangle(100, 120, 100, 100) + //set the innercolor + annot.InnerColor = Color.Aqua + //set the bordercolor + annot.BorderColor = Color.Orange + //set the textcolor + annot.TextColor = Color.Yellow + annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10) + annot.OverlayText = "Redact" + annot.TextAlignment = PdfTextAlignment.Right + annot.Repeat = True + annot.SetAppearance(True) + page.Annotations.Add(annot) + //Saves the document to disk. + doc.Save("empty.pdf") + doc.Close(True) + System.Diagnostics.Process.Start("empty.pdf"); + + + + + + Get or set the overlaytext of redaction annotation + + + + //Create a new PDF document. + PdfDocument doc = new PdfDocument(); + //Create a new page. + PdfPage page = doc.Pages.Add(); + //Creates a new Redaction annotation. + PdfRedactionAnnotation annot = new PdfRedactionAnnotation(); + //set the bounds + annot.Bounds = new Rectangle(100, 120, 100, 100); + //set the innercolor + annot.InnerColor = Color.Aqua; + //set the bordercolor + annot.BorderColor = Color.Orange; + //set the textcolor + annot.TextColor = Color.Yellow; + //set the font + annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); + //set overlaytext + annot.OverlayText = "Redact"; + //set textalignment + annot.TextAlignment = PdfTextAlignment.Right; + annot.Repeat = true; + annot.SetAppearance(true); + ////Add the annotation to the page. + page.Annotations.Add(annot); + //Saves the document to disk. + doc.Save("empty.pdf"); + doc.Close(true); + System.Diagnostics.Process.Start("empty.pdf"); + + + //Create a new PDF document. + Dim doc As PdfDocument = New PdfDocument() + //Create a new page. + Dim page As PdfPage = doc.Pages.Add() + //Creates a new Redaction annotation. + Dim annot As PdfRedactionAnnotation = New PdfRedactionAnnotation() + //set the bounds + annot.Bounds = New Rectangle(100, 120, 100, 100) + //set the innercolor + annot.InnerColor = Color.Aqua + //set the bordercolor + annot.BorderColor = Color.Orange + //set the textcolor + annot.TextColor = Color.Yellow + annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10) + annot.OverlayText = "Redact" + annot.TextAlignment = PdfTextAlignment.Right + annot.Repeat = True + annot.SetAppearance(True) + page.Annotations.Add(annot) + //Saves the document to disk. + doc.Save("empty.pdf") + doc.Close(True) + System.Diagnostics.Process.Start("empty.pdf"); + + + + + + Get or set the font of redaction annotation + + + + //Create a new PDF document. + PdfDocument doc = new PdfDocument(); + //Create a new page. + PdfPage page = doc.Pages.Add(); + //Creates a new Redaction annotation. + PdfRedactionAnnotation annot = new PdfRedactionAnnotation(); + //set the bounds + annot.Bounds = new Rectangle(100, 120, 100, 100); + //set the innercolor + annot.InnerColor = Color.Aqua; + //set the bordercolor + annot.BorderColor = Color.Orange; + //set the textcolor + annot.TextColor = Color.Yellow; + //set the font + annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); + //set overlaytext + annot.OverlayText = "Redact"; + //set textalignment + annot.TextAlignment = PdfTextAlignment.Right; + annot.Repeat = true; + annot.SetAppearance(true); + ////Add the annotation to the page. + page.Annotations.Add(annot); + //Saves the document to disk. + doc.Save("empty.pdf"); + doc.Close(true); + System.Diagnostics.Process.Start("empty.pdf"); + + + //Create a new PDF document. + Dim doc As PdfDocument = New PdfDocument() + //Create a new page. + Dim page As PdfPage = doc.Pages.Add() + //Creates a new Redaction annotation. + Dim annot As PdfRedactionAnnotation = New PdfRedactionAnnotation() + //set the bounds + annot.Bounds = New Rectangle(100, 120, 100, 100) + //set the innercolor + annot.InnerColor = Color.Aqua + //set the bordercolor + annot.BorderColor = Color.Orange + //set the textcolor + annot.TextColor = Color.Yellow + annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10) + annot.OverlayText = "Redact" + annot.TextAlignment = PdfTextAlignment.Right + annot.Repeat = True + annot.SetAppearance(True) + page.Annotations.Add(annot) + //Saves the document to disk. + doc.Save("empty.pdf") + doc.Close(True) + System.Diagnostics.Process.Start("empty.pdf"); + + + + + + Get or set the bordercolor of redaction annotation + + + + //Create a new PDF document. + PdfDocument doc = new PdfDocument(); + //Create a new page. + PdfPage page = doc.Pages.Add(); + //Creates a new Redaction annotation. + PdfRedactionAnnotation annot = new PdfRedactionAnnotation(); + //set the bounds + annot.Bounds = new Rectangle(100, 120, 100, 100); + //set the innercolor + annot.InnerColor = Color.Aqua; + //set the bordercolor + annot.BorderColor = Color.Orange; + //set the textcolor + annot.TextColor = Color.Yellow; + //set the font + annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); + //set overlaytext + annot.OverlayText = "Redact"; + //set textalignment + annot.TextAlignment = PdfTextAlignment.Right; + annot.Repeat = true; + annot.SetAppearance(true); + ////Add the annotation to the page. + page.Annotations.Add(annot); + //Saves the document to disk. + doc.Save("empty.pdf"); + doc.Close(true); + System.Diagnostics.Process.Start("empty.pdf"); + + + //Create a new PDF document. + Dim doc As PdfDocument = New PdfDocument() + //Create a new page. + Dim page As PdfPage = doc.Pages.Add() + //Creates a new Redaction annotation. + Dim annot As PdfRedactionAnnotation = New PdfRedactionAnnotation() + //set the bounds + annot.Bounds = New Rectangle(100, 120, 100, 100) + //set the innercolor + annot.InnerColor = Color.Aqua + //set the bordercolor + annot.BorderColor = Color.Orange + //set the textcolor + annot.TextColor = Color.Yellow + annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10) + annot.OverlayText = "Redact" + annot.TextAlignment = PdfTextAlignment.Right + annot.Repeat = True + annot.SetAppearance(True) + page.Annotations.Add(annot) + //Saves the document to disk. + doc.Save("empty.pdf") + doc.Close(True) + System.Diagnostics.Process.Start("empty.pdf"); + + + + + + Get or set the border of redaction annotation + + + + //Create a new PDF document. + PdfDocument doc = new PdfDocument(); + //Create a new page. + PdfPage page = doc.Pages.Add(); + //Creates a new Redaction annotation. + PdfRedactionAnnotation annot = new PdfRedactionAnnotation(); + //set the bounds + annot.Bounds = new Rectangle(100, 120, 100, 100); + //set the innercolor + annot.InnerColor = Color.Aqua; + //set the bordercolor + annot.BorderColor = Color.Orange; + //set the textcolor + annot.TextColor = Color.Yellow; + //set the font + annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); + //set overlaytext + annot.OverlayText = "Redact"; + //set textalignment + annot.TextAlignment = PdfTextAlignment.Right; + annot.Repeat = true; + annot.SetAppearance(true); + ////Add the annotation to the page. + page.Annotations.Add(annot); + //Saves the document to disk. + doc.Save("empty.pdf"); + doc.Close(true); + System.Diagnostics.Process.Start("empty.pdf"); + + + //Create a new PDF document. + Dim doc As PdfDocument = New PdfDocument() + //Create a new page. + Dim page As PdfPage = doc.Pages.Add() + //Creates a new Redaction annotation. + Dim annot As PdfRedactionAnnotation = New PdfRedactionAnnotation() + //set the bounds + annot.Bounds = New Rectangle(100, 120, 100, 100) + //set the innercolor + annot.InnerColor = Color.Aqua + //set the bordercolor + annot.BorderColor = Color.Orange + //set the textcolor + annot.TextColor = Color.Yellow + annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10) + annot.OverlayText = "Redact" + annot.TextAlignment = PdfTextAlignment.Right + annot.Repeat = True + annot.SetAppearance(True) + page.Annotations.Add(annot) + //Saves the document to disk. + doc.Save("empty.pdf") + doc.Close(True) + System.Diagnostics.Process.Start("empty.pdf"); + + + + + + Get or set the text repeat of redaction annotation + + + + //Create a new PDF document. + PdfDocument doc = new PdfDocument(); + //Create a new page. + PdfPage page = doc.Pages.Add(); + //Creates a new Redaction annotation. + PdfRedactionAnnotation annot = new PdfRedactionAnnotation(); + //set the bounds + annot.Bounds = new Rectangle(100, 120, 100, 100); + //set the innercolor + annot.InnerColor = Color.Aqua; + //set the bordercolor + annot.BorderColor = Color.Orange; + //set the textcolor + annot.TextColor = Color.Yellow; + //set the font + annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); + //set overlaytext + annot.OverlayText = "Redact"; + //set textalignment + annot.TextAlignment = PdfTextAlignment.Right; + annot.Repeat = true; + annot.SetAppearance(true); + ////Add the annotation to the page. + page.Annotations.Add(annot); + //Saves the document to disk. + doc.Save("empty.pdf"); + doc.Close(true); + System.Diagnostics.Process.Start("empty.pdf"); + + + //Create a new PDF document. + Dim doc As PdfDocument = New PdfDocument() + //Create a new page. + Dim page As PdfPage = doc.Pages.Add() + //Creates a new Redaction annotation. + Dim annot As PdfRedactionAnnotation = New PdfRedactionAnnotation() + //set the bounds + annot.Bounds = New Rectangle(100, 120, 100, 100) + //set the innercolor + annot.InnerColor = Color.Aqua + //set the bordercolor + annot.BorderColor = Color.Orange + //set the textcolor + annot.TextColor = Color.Yellow + annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10) + annot.OverlayText = "Redact" + annot.TextAlignment = PdfTextAlignment.Right + annot.RepeatText = True + annot.SetAppearance(True) + page.Annotations.Add(annot) + //Saves the document to disk. + doc.Save("empty.pdf") + doc.Close(True) + System.Diagnostics.Process.Start("empty.pdf"); + + + + + + Get or set flatten of redaction annotation + + + + //Create a new PDF document. + PdfDocument doc = new PdfDocument(); + //Create a new page. + PdfPage page = doc.Pages.Add(); + //Creates a new Redaction annotation. + PdfRedactionAnnotation annot = new PdfRedactionAnnotation(); + //set the bounds + annot.Bounds = new Rectangle(100, 120, 100, 100); + //set the innercolor + annot.InnerColor = Color.Aqua; + //set the bordercolor + annot.BorderColor = Color.Orange; + //set the textcolor + annot.TextColor = Color.Yellow; + //set the font + annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); + //set overlaytext + annot.OverlayText = "Redact"; + //set textalignment + annot.TextAlignment = PdfTextAlignment.Right; + annot.Repeat = true; + annot.Flatten=true; + ////Add the annotation to the page. + page.Annotations.Add(annot); + //Saves the document to disk. + doc.Save("empty.pdf"); + doc.Close(true); + System.Diagnostics.Process.Start("empty.pdf"); + + + //Create a new PDF document. + Dim doc As PdfDocument = New PdfDocument() + //Create a new page. + Dim page As PdfPage = doc.Pages.Add() + //Creates a new Redaction annotation. + Dim annot As PdfRedactionAnnotation = New PdfRedactionAnnotation() + //set the bounds + annot.Bounds = New Rectangle(100, 120, 100, 100) + //set the innercolor + annot.InnerColor = Color.Aqua + //set the bordercolor + annot.BorderColor = Color.Orange + //set the textcolor + annot.TextColor = Color.Yellow + annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10) + annot.OverlayText = "Redact" + annot.TextAlignment = PdfTextAlignment.Right + annot.Repeat = True + annot.Flatten=true; + page.Annotations.Add(annot) + //Saves the document to disk. + doc.Save("empty.pdf") + doc.Close(True) + System.Diagnostics.Process.Start("empty.pdf"); + + + + + + Initialize the new instance of the redaction annotation. + + + + + Initializes annotation object. + + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + + + Applyredaction for loadedpage. + + + + + Represents the rich media 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 the new rich media annotation + PdfRichMediaAnnotation richMediaAnnotation = new PdfRichMediaAnnotation(rect); + //Create the rich media content + PdfRichMediaContent content = new PdfRichMediaContent("Video.mp4", PdfRichMediaContentType.Video); + richMediaAnnotation.Content = content; + //Set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click; + //Set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed; + //Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation); + //Save the document to disk. + document.Save("RichMediaAnnotation.pdf"); + //close the document + document.Close(true); + + + '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 rich media annotation. + Dim richMediaAnnotation As New PdfRichMediaAnnotation(rectangle) + 'Create a rich media annotation content + Dim content As New PdfRichMediaContent("Video.mp4", PdfRichMediaContentType.Video) + richMediaAnnotation.Content = content + 'Set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click + 'set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed + 'Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation) + 'Save the document to disk. + document.Save("RichMediaAnnotation.pdf") + 'close the document + document.Close(True) + + + + + + Internal variable to store content class. + + + + + Internal variable to store presentation style. + + + + + Internal variable to store activate mode. + + + + + Annotation's appearance. + + + + + Get the annotation appearance. + + + + //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 the new rich media annotation + PdfRichMediaAnnotation richMediaAnnotation = new PdfRichMediaAnnotation(rect); + //Create the rich media content + PdfRichMediaContent content = new PdfRichMediaContent("Video.mp4", PdfRichMediaContentType.Video); + richMediaAnnotation.Content = content; + //Draw rectangle of the appearance. + richMediaAnnotation.Appearance.Normal.Graphics.DrawRectangle(PdfPens.Red, annot.Bounds); + //Set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click; + //Set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed; + //Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation); + //Save the document to disk. + document.Save("RichMediaAnnotation.pdf"); + //close the document + document.Close(true); + + + + + + Gets or sets the rich media activation mode + + + + //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 the new rich media annotation + PdfRichMediaAnnotation richMediaAnnotation = new PdfRichMediaAnnotation(rect); + //create the rich media content + PdfRichMediaContent content = new PdfRichMediaContent("Video.mp4", PdfRichMediaContentType.Video); + richMediaAnnotation.Content = content; + //set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click; + //set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed; + //Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation); + //Save the document to disk. + document.Save("RichMediaAnnotation.pdf"); + //close the document + document.Close(true); + + + '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 rich media annotation. + Dim richMediaAnnotation As New PdfRichMediaAnnotation(rectangle) + 'Create a rich media annotation content + Dim content As New PdfRichMediaContent("Video.mp4", PdfRichMediaContentType.Video) + richMediaAnnotation.Content = content + 'set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click + 'set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed + 'Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation) + 'Save the document to disk. + document.Save("RichMediaAnnotation.pdf") + 'close the document + document.Close(True) + + + + + + Gets or sets the rich media content + + + + //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 the new rich media annotation + PdfRichMediaAnnotation richMediaAnnotation = new PdfRichMediaAnnotation(rect); + //create the rich media content + PdfRichMediaContent content = new PdfRichMediaContent("Video.mp4", PdfRichMediaContentType.Video); + richMediaAnnotation.Content = content; + //set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click; + //set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed; + //Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation); + //Save the document to disk. + document.Save("RichMediaAnnotation.pdf"); + //close the document + document.Close(true); + + + '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 rich media annotation. + Dim richMediaAnnotation As New PdfRichMediaAnnotation(rectangle) + 'Create a rich media annotation content + Dim content As New PdfRichMediaContent("Video.mp4", PdfRichMediaContentType.Video) + richMediaAnnotation.Content = content + 'set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click; + 'set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed + 'Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation) + 'Save the document to disk. + document.Save("RichMediaAnnotation.pdf") + 'close the document + document.Close(True) + + + + + + Gets or sets the presentation style. + + + + //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 the new rich media annotation + PdfRichMediaAnnotation richMediaAnnotation = new PdfRichMediaAnnotation(rect); + //create the rich media content + PdfRichMediaContent content = new PdfRichMediaContent("Video.mp4", PdfRichMediaContentType.Video); + richMediaAnnotation.Content = content; + //set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click; + //set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed; + //Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation); + //Save the document to disk. + document.Save("RichMediaAnnotation.pdf"); + //close the document + document.Close(true); + + + '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 rich media annotation. + Dim richMediaAnnotation As New PdfRichMediaAnnotation(rectangle) + 'Create a rich media annotation content + Dim content As New PdfRichMediaContent("Video.mp4", PdfRichMediaContentType.Video) + richMediaAnnotation.Content = content + 'set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click + 'set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed + 'Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation) + 'Save the document to disk. + document.Save("RichMediaAnnotation.pdf") + 'close the document + document.Close(True) + + + + + + Initializes a new instance of the class. + + The rectangle values. + + + //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 the new rich media annotation + PdfRichMediaAnnotation richMediaAnnotation = new PdfRichMediaAnnotation(rect); + //Create the rich media content + PdfRichMediaContent content = new PdfRichMediaContent("Video.mp4", PdfRichMediaContentType.Video); + richMediaAnnotation.Content = content; + //Set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click; + //Set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed; + //Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation); + //Save the document to disk. + document.Save("RichMediaAnnotation.pdf"); + //Close the document + document.Close(true); + + + '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 rich media annotation. + Dim richMediaAnnotation As New PdfRichMediaAnnotation(rectangle) + 'Create a rich media annotation content + Dim content As New PdfRichMediaContent("Video.mp4", PdfRichMediaContentType.Video) + richMediaAnnotation.Content = content + 'Set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click + 'Set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed + 'Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation) + 'Save the document to disk. + document.Save("RichMediaAnnotation.pdf") + 'Close the document + document.Close(True) + + + + + + Set matrix for appearance + + The template value. + + + + Represents the rich media annotation content. + + + + //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 the new rich media annotation + PdfRichMediaAnnotation richMediaAnnotation = new PdfRichMediaAnnotation(rect); + //create the rich media content + PdfRichMediaContent content = new PdfRichMediaContent("Video.mp4", PdfRichMediaContentType.Video); + richMediaAnnotation.Content = content; + //Set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click; + //Set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed; + //Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation); + //Save the document to disk. + document.Save("RichMediaAnnotation.pdf"); + //Close the document + document.Close(true); + + + '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 rich media annotation. + Dim richMediaAnnotation As New PdfRichMediaAnnotation(rectangle) + 'Create a rich media annotation content + Dim content As New PdfRichMediaContent("Video.mp4", PdfRichMediaContentType.Video) + richMediaAnnotation.Content = content + 'Set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click + 'Set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed + 'Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation) + 'Save the document to disk. + document.Save("RichMediaAnnotation.pdf") + 'Close the document + document.Close(True) + + + + + + Internal variable to store stream data. + + + + + Internal variable to store content type. + + + + + File specification of the annotation. + + + + + Internal variable to store string type + + + + + Internal variable to store file extension + + + + + Get the rich media data + + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Gets the annotation from loaded document. + PdfLoadedRichMediaAnnotation richMediaAnnotation = document.Pages[0].Annotations[0] as PdfLoadedRichMediaAnnotation; + //Gets the content + var content = richMediaAnnotation.Content.Data; + Save the content data + File.WriteAllBytes("RichMediaContent.mp4",(content as MemoryStream).ToArray()); + //Save the document. + document.Save("RichMediaAnnotation.pdf"); + //Close the document + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Gets the annotation from loaded document. + Dim richMediaAnnotation As PdfLoadedRichMediaAnnotation = document.Pages(0).Annotations(0) as PdfLoadedRichMediaAnnotation + 'Gets the content + var content = richMediaAnnotation.Content.Data + Save the content data + File.WriteAllBytes("RichMediaContent.mp4",(content as MemoryStream).ToArray()) + 'Save the document. + document.Save("RichMediaAnnotation.pdf") + //Close the document + document.Close(True) + + + + + + Gets or sets the content type. + + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Gets the annotation from loaded document. + PdfLoadedRichMediaAnnotation richMediaAnnotation = document.Pages[0].Annotations[0] as PdfLoadedRichMediaAnnotation; + //Gets or sets the content type + richMediaAnnotation.Content.ContentType = PdfRichMediaContentType.Sound; + //Save the document. + document.Save("RichMediaAnnotation.pdf"); + //Close the document + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Gets the annotation from loaded document. + Dim richMediaAnnotation As PdfLoadedRichMediaAnnotation = document.Pages(0).Annotations(0) as PdfLoadedRichMediaAnnotation + 'Gets or sets the content type + richMediaAnnotation.Content.ContentType = PdfRichMediaContentType.Sound + 'Save the document. + document.Save("RichMediaAnnotation.pdf") + //Close the document + document.Close(True) + + + + + + Gets or sets the file extension. + + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Gets the annotation from loaded document. + PdfLoadedRichMediaAnnotation richMediaAnnotation = document.Pages[0].Annotations[0] as PdfLoadedRichMediaAnnotation; + //Gets or sets the file extension + richMediaAnnotation.Content.FileExtension=".mp4"; + //Save the document. + document.Save("RichMediaAnnotation.pdf"); + //Close the document + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Gets the annotation from loaded document. + Dim richMediaAnnotation As PdfLoadedRichMediaAnnotation = document.Pages(0).Annotations(0) as PdfLoadedRichMediaAnnotation + 'Gets or sets the file extension + richMediaAnnotation.Content.FileExtension=".mp4" + 'Save the document. + document.Save("RichMediaAnnotation.pdf") + //Close the document + document.Close(True) + + + + + + Gets or sets the file name. + + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Gets the annotation from loaded document. + PdfLoadedRichMediaAnnotation richMediaAnnotation = document.Pages[0].Annotations[0] as PdfLoadedRichMediaAnnotation; + //Gets or sets the file name. + richMediaAnnotation.Content.FileName = "Rich media annotation"; + //Save the document. + document.Save("RichMediaAnnotation.pdf"); + //Close the document + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Gets the annotation from loaded document. + Dim richMediaAnnotation As PdfLoadedRichMediaAnnotation = document.Pages(0).Annotations(0) as PdfLoadedRichMediaAnnotation + 'Gets or sets the file name. + richMediaAnnotation.Content.FileName = "Rich media annotation" + 'Save the document. + document.Save("RichMediaAnnotation.pdf") + //Close the document + document.Close(True); + + + + + + Initializes a new instance of the class. + + The media file name. + + + //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 the new rich media annotation + PdfRichMediaAnnotation richMediaAnnotation = new PdfRichMediaAnnotation(rect); + //Create the rich media content + PdfRichMediaContent content = new PdfRichMediaContent("Video.mp4"); + richMediaAnnotation.Content = content; + //Set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click; + //Set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed; + //Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation); + //Save the document to disk. + document.Save("RichMediaAnnotation.pdf"); + //Close the document + document.Close(true); + + + '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 rich media annotation. + Dim richMediaAnnotation As New PdfRichMediaAnnotation(rectangle) + 'Create a rich media annotation content + Dim content As New PdfRichMediaContent("Video.mp4") + richMediaAnnotation.Content = content + 'Set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click + 'Set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed + 'Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation) + 'Save the document to disk. + document.Save("RichMediaAnnotation.pdf") + 'Close the document + document.Close(True) + + + + + + Initializes a new instance of the class. + + The media file name. + The rich media content 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 the new rich media annotation + PdfRichMediaAnnotation richMediaAnnotation = new PdfRichMediaAnnotation(rect); + //Create the rich media content + PdfRichMediaContent content = new PdfRichMediaContent("Video.mp4", PdfRichMediaContentType.Video); + richMediaAnnotation.Content = content; + //Set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click; + //Set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed; + //Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation); + //Save the document to disk. + document.Save("RichMediaAnnotation.pdf"); + //Close the document + document.Close(true); + + + '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 rich media annotation. + Dim richMediaAnnotation As New PdfRichMediaAnnotation(rectangle) + 'Create a rich media annotation content + Dim content As New PdfRichMediaContent("Video.mp4", PdfRichMediaContentType.Video) + richMediaAnnotation.Content = content + 'Set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click + 'Set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed + 'Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation) + 'Save the document to disk. + document.Save("RichMediaAnnotation.pdf") + 'Close the document + document.Close(True) + + + + + + Initializes a new instance of the class. + + The name + The media file stream. + The media file extension. + + + //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 the new rich media annotation + PdfRichMediaAnnotation richMediaAnnotation = new PdfRichMediaAnnotation(rect); + //Load the sound as stream. + FileStream stream = new FileStream(@"Sound.mp3", FileMode.Open); + //Create the rich media content + PdfRichMediaContent content = new PdfRichMediaContent("Sound",stream,"mp3"); + richMediaAnnotation.Content = content; + //Set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click; + //Set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed; + //Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation); + //Save the document to disk. + document.Save("RichMediaAnnotation.pdf"); + //Close the document + document.Close(true); + + + '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 rich media annotation. + Dim richMediaAnnotation As New PdfRichMediaAnnotation(rectangle) + 'Load the sound as stream. + Dim stream As New FileStream("sound.mp3", FileMode.Open) + 'Create a rich media annotation content + Dim content As New PdfRichMediaContent("sound",stream,"mp3") + richMediaAnnotation.Content = content + 'Set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click + 'Set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed + 'Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation) + 'Save the document to disk. + document.Save("RichMediaAnnotation.pdf") + 'Close the document + document.Close(True) + + + + + + Initializes a new instance of the class. + + The name. + The media file stream. + The media file extension. + The rich media content 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 the new rich media annotation + PdfRichMediaAnnotation richMediaAnnotation = new PdfRichMediaAnnotation(rect); + //Load the video as stream. + FileStream stream = new FileStream(@"video.mp4", FileMode.Open); + //Create the rich media content + PdfRichMediaContent content = new PdfRichMediaContent("Video",stream, "mp4", PdfRichMediaContentType.Video); + richMediaAnnotation.Content = content; + //Set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click; + //Set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed; + //Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation); + //Save the document to disk. + document.Save("RichMediaAnnotation.pdf"); + //Close the document + document.Close(true); + + + '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 rich media annotation. + Dim richMediaAnnotation As New PdfRichMediaAnnotation(rectangle) + 'Load the video as stream. + Dim stream As New FileStream("video.mp4", FileMode.Open) + 'Create a rich media annotation content + Dim content As New PdfRichMediaContent("Video",stream, "mp4", PdfRichMediaContentType.Video) + richMediaAnnotation.Content = content + 'Set the rich media activation mode + richMediaAnnotation.ActivationMode = PdfRichMediaActivationMode.Click + 'Set the rich media presentation + richMediaAnnotation.PresentationStyle = PdfRichMediaPresentationStyle.Windowed + 'Add this annotation to a new page. + page.Annotations.Add(richMediaAnnotation) + 'Save the document to disk. + document.Save("RichMediaAnnotation.pdf") + 'Close the document + document.Close(True) + + + + + + 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. + + + + + Used to represent the border effect style of the square annotation. + + + + + Gets the annotation reviews + + + + 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 review state + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Text = "Hello PDF Comments"; + squareannotation.ReviewHistory.Add(popup); + //Get Review history + PdfPopupAnnotationCollection reviewCollection = squareannotation.ReviewHistory; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + document.PageSettings.SetMargins(0) + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10!) + Dim brush As PdfBrush = New PdfSolidBrush(System.Drawing.Color.Black) + 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)) + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + squareannotation.ReviewHistory.Add(popup) + Dim reviewCollection As PdfPopupAnnotationCollection = squareannotation.ReviewHistory + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Gets the annotation comments + + + + 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)); + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "Test Text"; + squareannotation.Comments.Add(popupComments); + //Get annotation comments + PdfPopupAnnotationCollection commentsCollection = squareannotation.Comments; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + document.PageSettings.SetMargins(0) + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10!) + Dim brush As PdfBrush = New PdfSolidBrush(System.Drawing.Color.Black) + 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)) + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "Test Text" + squareannotation.Comments.Add(popupComments) + Dim commentsCollection As PdfPopupAnnotationCollection = squareannotation.Comments + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Get or set the border effect of the 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); + PdfBorderEffect borderEffect = new PdfBorderEffect(); + borderEffect.Intensity=2; + borderEffect.Style = PdfBorderEffectStyle.Cloudy; + squareannotation.BorderEffect = borderEffect; + 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 borderEffect As PdfBorderEffect() + borderEffect.Intensity=2; + borderEffect.Style = PdfBorderEffectStyle.Cloudy + squareannotation.BorderEffect = borderEffect + 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) + + + + + + Get or set the border style of the 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); + 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 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 + + + + Initialise the new instance of the square annotation with bounds. + + Used to represent the bounds 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.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 + + + + Initializes annotation object. + + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + + + Flatten annotation. + + The page value. + The appearance value. + + + + Craete Appearance for Annotation. + + + + + Represents the watermark annotation. + + + + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Create a new page . + PdfPage page = document.Pages.Add(); + //Create a new PDF watermark annotation. + RectangleF rectangle = new RectangleF(40, 60, 80, 20); + PdfWatermarkAnnotation watermarkAnnotation = new PdfWatermarkAnnotation(rectangle); + watermarkAnnotation.Opacity = 0.5f; + watermarkAnnotation.Appearance..Normal.Graphics.DrawString("Watermark", new PdfStandardFont(PdfFontFamily.TimesRoman, 12), PdfBrushes.DarkBlue, new PointF(0, 0)); + page.Annotations.Add(watermarkAnnotation); + //Save the document to disk. + document.Save("Output.pdf"); + //Close the document + document.Close(true); + + + '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 watermark annotation. + Dim rectangle As New RectangleF(40, 60, 80, 20) + Dim watermarkAnnotation As New PdfWatermarkAnnotation(rectangle) + watermarkAnnotation.Opacity = 0.5f + watermarkAnnotation.Appearance.Normal.Graphics.DrawString("Watermark", new PdfStandardFont(PdfFontFamily.TimesRoman, 12), PdfBrushes.DarkBlue, new PointF(0, 0)) + page.Annotations.Add(watermarkAnnotation) + 'Save the document to disk. + document.Save("Output.pdf") + 'Close the document + document.Close(True) + + + + + + Create the instance for appearance of the watermark annotation + + + + + Default value of opacity + + + + + internal variable to set rotation angle. + + + + + Gets the appearance of the watermark annotation. + + The object specifies the appearance of the annotaion. + + + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Create a new page . + PdfPage page = document.Pages.Add(); + //Create a new pdf watermark annotation. + RectangleF watermarkannotationBounds = new RectangleF(40, 60, 80, 20); + PdfWatermarkAnnotation rubberstampAnnotation = new PdfWatermarkAnnotation(watermarkannotationBounds); + //Gets the PDF appearance. + watermarkAnnotation.Appearance.Normal.Graphics.DrawString("Watermark",new PdfStandardFont(PdfFontFamily.TimesRoman, 12), PdfBrushes.DarkBlue, new PointF(0, 0)); + page.Annotations.Add(watermarkAnnotation); + //Save the document to disk. + document.Save("Output.pdf"); + //Close the document + document.Close(true); + + + '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 watermarkannotationBounds As New RectangleF(40, 60, 80, 20) + Dim watermarkAnnotation As New PdfRubberStampAnnotation(watermarkannotationBounds) + 'Gets the PDF appearance. + watermarkAnnotation.Appearance.Normal.Graphics.DrawString("Watermark", new PdfStandardFont(PdfFontFamily.TimesRoman, 12), PdfBrushes.DarkBlue, new PointF(0, 0)) + page.Annotations.Add(watermarkAnnotation) + 'Save the document to disk. + document.Save("Output.pdf") + 'Close the document + document.Close(True) + + + + + + Gets or sets the opacity of the watermark annotation. + + + + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Create a new page . + PdfPage page = document.Pages.Add(); + //Create a new pdf watermark annotation. + RectangleF watermarkannotationBounds = new RectangleF(40, 60, 80, 20); + PdfWatermarkAnnotation rubberstampAnnotation = new PdfWatermarkAnnotation(watermarkannotationBounds); + watermarkAnnotation.Opacity = 0.5f; + //Gets the PDF appearance. + watermarkAnnotation.Appearance.Normal.Graphics.DrawString("Watermark",new PdfStandardFont(PdfFontFamily.TimesRoman, 12), PdfBrushes.DarkBlue, new PointF(0, 0)); + page.Annotations.Add(watermarkAnnotation); + //Save the document to disk. + document.Save("Output.pdf"); + //Close the document + document.Close(true); + + + '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 watermarkannotationBounds As New RectangleF(40, 60, 80, 20) + Dim watermarkAnnotation As New PdfRubberStampAnnotation(watermarkannotationBounds) + watermarkAnnotation.Opacity = 0.5F + 'Gets the PDF appearance. + watermarkAnnotation.Appearance.Normal.Graphics.DrawString("Watermark", new PdfStandardFont(PdfFontFamily.TimesRoman, 12), PdfBrushes.DarkBlue, new PointF(0, 0)) + page.Annotations.Add(watermarkAnnotation) + 'Save the document to disk. + document.Save("Output.pdf") + 'Close the document + document.Close(True) + + + + + Initializes a new instance of the PdfWatermarkAnnotation class + + 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 watermark annotation. + RectangleF watermarkannotationBounds = new RectangleF(40, 60, 80, 20); + PdfWatermarkAnnotation rubberstampAnnotation = new PdfWatermarkAnnotation(watermarkannotationBounds); + watermarkAnnotation.Opacity = 0.5f; + //Gets the PDF appearance. + watermarkAnnotation.Appearance.Normal.Graphics.DrawString("Watermark",new PdfStandardFont(PdfFontFamily.TimesRoman, 12), PdfBrushes.DarkBlue, new PointF(0, 0)); + page.Annotations.Add(watermarkAnnotation); + //Save the document to disk. + document.Save("Output.pdf"); + //Close the document + document.Close(true); + + + '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 watermarkannotationBounds As New RectangleF(40, 60, 80, 20) + Dim watermarkAnnotation As New PdfRubberStampAnnotation(watermarkannotationBounds) + watermarkAnnotation.Opacity = 0.5F + 'Gets the PDF appearance. + watermarkAnnotation.Appearance.Normal.Graphics.DrawString("Watermark", new PdfStandardFont(PdfFontFamily.TimesRoman, 12), PdfBrushes.DarkBlue, new PointF(0, 0)) + page.Annotations.Add(watermarkAnnotation) + 'Save the document to disk. + document.Save("Output.pdf") + 'Close the document + document.Close(True) + + + + + + Initializes annotation object. + + + + + Saves the watermark annotation. + + + + + Flatten annotation without calling save method. + + + + + Draw custom appearance + + The template value. + + + + + Create appearance for annotation + + + + + + Flatten annotation + + The page value. + The appearance value. + + + + Represents the annotation with Angle Measurement. + + + + + To Specify the Border + + + + + An array of four numbers specifying the starting and ending coordinates + + + + + To specifying the Leader Line Extension size + + + + + Get or sets the border style of the Angle annotaion. + + + + + Gets or sets the font of the angle text annotation + + + + + Get or set the angle of Annotation. + + + + + Initializes new instance of class with specified points. + + + + + + Initializes annotation object. + + + + + Gets line points of the annotation. + + line points. + + + + Save an annotation. + + + + + Represents the annotation with Circle Measurement. + + + + + Used to represent the border style of the circle annotation. + + + + + Get or set the border style of the circle annotaion. + + + + + Get or set PdfMeasurement Unit. + + + + + Get or set the PdfCircleMeasurementType + + + + + Gets or sets the font of the text annotation + ` + + + + Gets the annotation comments + + + + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Create a new page. + PdfPage page = document.Pages.Add(); + RectangleF rectangle = new RectangleF(10, 100, 100, 100); + //Create a new line annotation and set properties. + PdfCircleMeasurementAnnotation circleMeasureAnnotation = new PdfCircleMeasurementAnnotation(rectangle); + //Assign author to the circle measurement annotation + circleMeasureAnnotation.Author = "Syncfusion"; + //Assign subject to the circle measurement annotation + circleMeasureAnnotation.Subject = "Circle measurement annotation"; + //Assign color to the square measurement annotation + circleMeasureAnnotation.Color = new PdfColor(Color.Red); + //Assign measurement unit to the circle measurement annotation + circleMeasureAnnotation.Unit = PdfMeasurementUnit.Centimeter; + //Sets the measurementType to the circle measurement annotation + circleMeasureAnnotation.MeasurementType = PdfCircleMeasurementType.Diameter; + //Add comment state + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "Test Text"; + circleMeasureAnnotation.Comments.Add(popupComments); + //Get annotation comments + PdfPopupAnnotationCollection commentsCollection = circleMeasureAnnotation.Comments; + page.Annotations.Add(circleMeasureAnnotation); + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + 'Creates a new PDF document + Dim document As New PdfDocument() + 'Creates a new page + Dim page As PdfPage = document.Pages.Add() + Dim rect As New RectangleF(10, 100, 100, 100) + 'Creates the circle measurement annotation + Dim circleMeasureAnnotation As New PdfCircleMeasurementAnnotation(rect) + 'Assign author to the circle measurement annotation + circleMeasureAnnotation.Author = "Syncfusion" + 'Assign subject to the circle measurement annotation + circleMeasureAnnotation.Subject = "Circle measurement annotation" + 'Assign color to the square measurement annotation + circleMeasureAnnotation.Color = New PdfColor(Color.Red) + 'Assign measurement unit to the circle measurement annotation + circleMeasureAnnotation.Unit = PdfMeasurementUnit.Centimeter + 'Sets the measurementType to the circle measurement annotation + circleMeasureAnnotation.MeasurementType = PdfCircleMeasurementType.Diameter + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "Test Text" + circleMeasureAnnotation.Comments.Add(popupComments) + Dim commentsCollection As PdfPopupAnnotationCollection = circleMeasureAnnotation.Comments + page.Annotations.Add(circleMeasureAnnotation) + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Gets the annotation reviews + + + + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Create a new page. + PdfPage page = document.Pages.Add(); + RectangleF rectangle = new RectangleF(10, 100, 100, 100); + //Create a new line annotation and set properties. + PdfCircleMeasurementAnnotation circleMeasureAnnotation = new PdfCircleMeasurementAnnotation(rectangle); + //Assign author to the circle measurement annotation + circleMeasureAnnotation.Author = "Syncfusion"; + //Assign subject to the circle measurement annotation + circleMeasureAnnotation.Subject = "Circle measurement annotation"; + //Assign color to the square measurement annotation + circleMeasureAnnotation.Color = new PdfColor(Color.Red); + //Assign measurement unit to the circle measurement annotation + circleMeasureAnnotation.Unit = PdfMeasurementUnit.Centimeter; + //Sets the measurementType to the circle measurement annotation + circleMeasureAnnotation.MeasurementType = PdfCircleMeasurementType.Diameter; + //Add Review state + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Text = "Hello PDF Comments"; + popup.Author = "Test1"; + circleMeasureAnnotation.ReviewHistory.Add(popup); + //Get Review history + PdfPopupAnnotationCollection reviewCollection = circleMeasureAnnotation.ReviewHistory; + page.Annotations.Add(circleMeasureAnnotation); + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + 'Creates a new PDF document + Dim document As New PdfDocument() + 'Creates a new page + Dim page As PdfPage = document.Pages.Add() + Dim rect As New RectangleF(10, 100, 100, 100) + 'Creates the circle measurement annotation + Dim circleMeasureAnnotation As New PdfCircleMeasurementAnnotation(rect) + 'Assign author to the circle measurement annotation + circleMeasureAnnotation.Author = "Syncfusion" + 'Assign subject to the circle measurement annotation + circleMeasureAnnotation.Subject = "Circle measurement annotation" + 'Assign color to the square measurement annotation + circleMeasureAnnotation.Color = New PdfColor(Color.Red) + 'Assign measurement unit to the circle measurement annotation + circleMeasureAnnotation.Unit = PdfMeasurementUnit.Centimeter + 'Sets the measurementType to the circle measurement annotation + circleMeasureAnnotation.MeasurementType = PdfCircleMeasurementType.Diameter + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + popup.Author = "Test1" + circleMeasureAnnotation.ReviewHistory.Add(popup) + Dim reviewCollection As PdfPopupAnnotationCollection = circleMeasureAnnotation.ReviewHistory + page.Annotations.Add(circleMeasureAnnotation) + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Initializes new instance of class with bounds. + + Used to represent the bounds of the annotation + + + + Initializes annotation object. + + + + + Saves an annotation. + + + + + Represents the annotation with Line Measurement. + + + + + To Specify the Line Border + + + + + An array of four numbers specifying the starting and ending coordinates + + + + + 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 + + + + + An array of two names specifying the line ending styles + + + + + To specifying the Leader offset size + + + + + To specifying the Begin line style. + + + + + To specifying the End line style. + + + + + 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 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 + + + + To specifying the Inner Line color color with which to fill the annotation’s line endings. + + 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 font of the text annotation + ` + + + + 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 + + + + Get or set PdfMeasurement Unit. + + + + + Gets or sets the leader offset + + The value specifies the leader offset 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(new RectangleF(100, 100, 100, 20)); + //Sets the LinePoints. + lineAnnotation.LinePoints = points; + lineAnnotation.LeaderOffset = 20; + //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(new RectangleF(100, 100, 100, 20)); + //Sets the LinePoints. + lineAnnotation.LinePoints = points; + lineAnnotation.LeaderOffset = 20; + lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Circle; + //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(new RectangleF(100, 100, 100, 20)); + //Sets the LinePoints. + lineAnnotation.LinePoints = points; + lineAnnotation.LeaderOffset = 20; + lineAnnotation.EndLineStyle = PdfLineEndingStyle.Circle; + //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 annotation comments + + + + //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. + PdfLineMeaurementAnnotation lineMeasurementAnnotation = new PdfLineMeasurementAnnotation(points); + //Add comment state + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "Test Text"; + lineMeasurementAnnotation.Comments.Add(popupComments); + //Get annotation comments + PdfPopupAnnotationCollection commentsCollection = lineMeasurementAnnotation.Comments; + //Add this annotation to a new page. + page.Annotations.Add(lineMeasurementAnnotation); + //Save the document to disk. + document.Save("Output.pdf"); + //close the document + 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 lineMeasurementAnnotation As New PdfLineMeasuremntAnnotation(points) + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "Test Text" + lineMeasurementAnnotation.Comments.Add(popupComments) + Dim commentsCollection As PdfPopupAnnotationCollection = lineMeasurementAnnotation.Comments + 'Add this annotation to a new page. + page.Annotations.Add(lineMeasurementAnnotation) + 'Save the document to disk. + document.Save("Output.pdf") + 'close the document + document.Close(True) + + + + + + Gets the annotation reviews + + + + //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. + PdfLineMeasurementAnnotation lineMeasurementAnnotation = new PdfLineMeasurementAnnotation(points); + //Add Review state + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Text = "Hello PDF Comments"; + popup.Author = "Test1"; + lineMeasurementAnnotation.ReviewHistory.Add(popup); + //Get Review history + PdfPopupAnnotationCollection reviewCollection = lineMeasurementAnnotation.ReviewHistory; + //Add this annotation to a new page. + page.Annotations.Add(lineMeasurementAnnotation); + //Save the document to disk. + document.Save("Output.pdf"); + //close the document + 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 lineMeasurementAnnotation As New PdfLineMeasurementAnnotation(points) + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + popup.Author = "Test1" + lineMeasurementAnnotation.ReviewHistory.Add(popup) + Dim reviewCollection As PdfPopupAnnotationCollection = lineMeasurementAnnotation.ReviewHistory + 'Add this annotation to a new page. + page.Annotations.Add(lineMeasurementAnnotation) + 'Save the document to disk. + document.Save("Output.pdf") + 'close the document + document.Close(True) + + + + + + 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 annotation object. + + + + + Gets line points of the annotation. + + line points. + + + + Obtain Line bounds from line points + + + + + + Saves an annotation. + + + + + Represents the annotation with Square Measurement. + + + + + Used to represent the border style of the square annotation. + + + + + Get or set PdfMeasurement Unit. + + + + + 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. + PdfSquareMeasurementAnnotation squareannotation = new PdfSquareMeasurementAnnotation(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 Measurement 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 PdfSquareMeasurementAnnotation = New PdfSquareMeasurementAnnotation(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 Measurement 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 + + + + Gets or sets the font of the text annotation + ` + + + + Gets the annotation comments + + + + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Create a new page. + PdfPage page = document.Pages.Add(); + RectangleF rectangle = new RectangleF(10, 100, 100, 100); + //Create a new square annotation and set properties. + PdfSquareMeasurementAnnotation squareMeasureAnnotation = new PdfSquareMeasurementAnnotation(rectangle); + //Assign author to the square measurement annotation + squareMeasureAnnotation.Author = "Syncfusion"; + //Assign subject to the square measurement annotation + squareMeasureAnnotation.Subject = "Square measurement annotation"; + //Assign color to the square measurement annotation + squareMeasureAnnotation.Color = new PdfColor(Color.Red); + //Assign measurement unit to the square measurement annotation + squareMeasureAnnotation.Unit = PdfMeasurementUnit.Centimeter; + //Add comment state + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "Test Text"; + squareMeasureAnnotation.Comments.Add(popupComments); + //Get annotation comments + PdfPopupAnnotationCollection commentsCollection = squareMeasureAnnotation.Comments; + page.Annotations.Add(squareMeasureAnnotation); + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + 'Creates a new PDF document + Dim document As New PdfDocument() + 'Creates a new page + Dim page As PdfPage = document.Pages.Add() + Dim rect As New RectangleF(10, 100, 100, 100) + 'Creates the square measurement annotation + Dim squareMeasureAnnotation As New PdfSquareMeasurementAnnotation(rect) + 'Assign author to the square measurement annotation + squareMeasureAnnotation.Author = "Syncfusion" + 'Assign subject to the square measurement annotation + squareMeasureAnnotation.Subject = "Square measurement annotation" + 'Assign color to the square measurement annotation + squareMeasureAnnotation.Color = New PdfColor(Color.Red) + 'Assign measurement unit to the square measurement annotation + squareMeasureAnnotation.Unit = PdfMeasurementUnit.Centimeter + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "Test Text" + squareMeasureAnnotation.Comments.Add(popupComments) + Dim commentsCollection As PdfPopupAnnotationCollection = squareMeasureAnnotation.Comments + page.Annotations.Add(squareMeasureAnnotation) + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Gets the annotation reviews + + + + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Create a new page. + PdfPage page = document.Pages.Add(); + RectangleF rectangle = new RectangleF(10, 100, 100, 100); + //Create a new square annotation and set properties. + PdfSquareMeasurementAnnotation squareMeasureAnnotation = new PdfSquareMeasurementAnnotation(rectangle); + //Assign author to the square measurement annotation + squareMeasureAnnotation.Author = "Syncfusion"; + //Assign subject to the square measurement annotation + squareMeasureAnnotation.Subject = "Square measurement annotation"; + //Assign color to the square measurement annotation + squareMeasureAnnotation.Color = new PdfColor(Color.Red); + //Assign measurement unit to the square measurement annotation + squareMeasureAnnotation.Unit = PdfMeasurementUnit.Centimeter; + //Add Review state + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Text = "Hello PDF Comments"; + popup.Author = "Test1"; + squareMeasureAnnotation.ReviewHistory.Add(popup); + //Get Review history + PdfPopupAnnotationCollection reviewCollection = squareMeasureAnnotation.ReviewHistory; + page.Annotations.Add(squareMeasureAnnotation); + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + 'Creates a new PDF document + Dim document As New PdfDocument() + 'Creates a new page + Dim page As PdfPage = document.Pages.Add() + Dim rect As New RectangleF(10, 100, 100, 100) + 'Creates the square measurement annotation + Dim squareMeasureAnnotation As New PdfSquareMeasurementAnnotation(rect) + 'Assign author to the square measurement annotation + squareMeasureAnnotation.Author = "Syncfusion" + 'Assign subject to the square measurement annotation + squareMeasureAnnotation.Subject = "Square measurement annotation" + 'Assign color to the square measurement annotation + squareMeasureAnnotation.Color = New PdfColor(Color.Red) + 'Assign measurement unit to the square measurement annotation + squareMeasureAnnotation.Unit = PdfMeasurementUnit.Centimeter + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + popup.Author = "Test1" + squareMeasureAnnotation.ReviewHistory.Add(popup) + Dim reviewCollection As PdfPopupAnnotationCollection = squareMeasureAnnotation.ReviewHistory + page.Annotations.Add(squareMeasureAnnotation) + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Initializes new instance of class with bounds. + + Used to represent the bounds 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. + PdfSquareMeasurementAnnotation squareannotation = new PdfSquareMeasurementAnnotation(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 Measurement 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 PdfSquareMeasurementAnnotation = New PdfSquareMeasurementAnnotation(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 Measurement 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. + + + + + 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. + + + + Gets or sets the named destination's destination. + + + The destination property has to be mentioned as multiples of 100. + If we mention as 2, the zoom value will be 200. + + The object is to be navigated. + + + //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("NamedDestinations.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("NamedDestinations.pdf") + document.Close(True) + + + + + + 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. + + + + Initializes instance. + + + + + Handles the BeginSave event of the Dictionary control. + + The source of the event. + The instance containing the event data. + + + + 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. + + + + + variable to hold the named destination collection to sort in aplhabetical order. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The dictionary. + The cross table. + + + + 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. + + + + + 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. + + + + Rearrange named destination(m_namedDestination) based on its title. + + + + + Parse and find the named destination collection + + The destination value. + + + + Create named destination from existing collection + + The name dictionary value. + + + + Returns an enumerator that iterates through a collection. + + + An + object that can be used to iterate through the collection. + + + + + Gets the element. + + + + + + Represents which page goes to be visible in the current document + + + + + Create a PdfPageTemplate instance + + + + + Create a PdfPageTemplate + + + + + + + // Loads an existing PDF Document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the first page of the document + PdfPageBase page = loadedDocument.Pages[0]; + //Create a page template + PdfPageTemplate pageTemplate = new PdfPageTemplate(page); + //Sets the PdfPageTemplate name + pageTemplate.Name = "pageTemplate"; + //Sets the PdfPageTemplate is visible + pageTemplate.IsVisible = true; + //Adds the page template + loadedDocument.PdfPageTemplates.Add(pageTemplate); + //Save the document + loadedDocument.Save("output.pdf"); + //Close the document + loadedDocument.Close(true); + + + 'Loads an existing PDF Document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + 'Get the first page of the document + Dim page As PdfPageBase = loadedDocument.Pages(0) + 'Create a page template + Dim pageTemplate As PdfPageTemplate = New PdfPageTemplate(page) + 'Sets the PdfPageTemplate name + pageTemplate.Name = "pageTemplate" + 'Sets the PdfPageTemplate is visible + pageTemplate.IsVisible = True + 'Adds the page template + loadedDocument.PdfPageTemplates.Add(pageTemplate) + 'Save the document + loadedDocument.Save("output.pdf") + 'Close the document + loadedDocument.Close(True) + + + + + + Create a PdfPageTemplate + + + + + // Loads an existing PDF Document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the first page of the document + PdfPageBase page = loadedDocument.Pages[0]; + //Create a page template + PdfPageTemplate pageTemplate = new PdfPageTemplate(page); + //Sets the PdfPageTemplate name + pageTemplate.Name = "pageTemplate"; + //Sets the PdfPageTemplate is visible + pageTemplate.IsVisible = true; + //Adds the page template + loadedDocument.PdfPageTemplates.Add(pageTemplate); + //Save the document + loadedDocument.Save("output.pdf"); + //Close the document + loadedDocument.Close(true); + + + 'Loads an existing PDF Document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + 'Get the first page of the document + Dim page As PdfPageBase = loadedDocument.Pages(0) + 'Create a page template + Dim pageTemplate As PdfPageTemplate = New PdfPageTemplate(page) + 'Sets the PdfPageTemplate name + pageTemplate.Name = "pageTemplate" + 'Sets the PdfPageTemplate is visible + pageTemplate.IsVisible = True + 'Adds the page template + loadedDocument.PdfPageTemplates.Add(pageTemplate) + 'Save the document + loadedDocument.Save("output.pdf") + 'Close the document + loadedDocument.Close(True) + + + + + + Gets or sets the PdfPageTemplate name + + + + // Loads an existing PDF Document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the first page of the document + PdfPageBase page = loadedDocument.Pages[0]; + //Create a page template + PdfPageTemplate pageTemplate = new PdfPageTemplate(page); + //Sets the PdfPageTemplate name + pageTemplate.Name = "pageTemplate"; + //Sets the PdfPageTemplate is visible + pageTemplate.IsVisible = true; + //Adds the page template + loadedDocument.PdfPageTemplates.Add(pageTemplate); + //Save the document + loadedDocument.Save("output.pdf"); + //Close the document + loadedDocument.Close(true); + + + 'Loads an existing PDF Document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + 'Get the first page of the document + Dim page As PdfPageBase = loadedDocument.Pages(0) + 'Create a page template + Dim pageTemplate As PdfPageTemplate = New PdfPageTemplate(page) + 'Sets the PdfPageTemplate name + pageTemplate.Name = "pageTemplate" + 'Sets the PdfPageTemplate is visible + pageTemplate.IsVisible = True + 'Adds the page template + loadedDocument.PdfPageTemplates.Add(pageTemplate) + 'Save the document + loadedDocument.Save("output.pdf") + 'Close the document + loadedDocument.Close(True) + + + + + + Gets or sets the PdfPageTemplate is visible or not + + Default Value: true + + + // Loads an existing PDF Document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the first page of the document + PdfPageBase page = loadedDocument.Pages[0]; + //Create a page template + PdfPageTemplate pageTemplate = new PdfPageTemplate(page); + //Sets the PdfPageTemplate name + pageTemplate.Name = "pageTemplate"; + //Sets the PdfPageTemplate is visible + pageTemplate.IsVisible = true; + //Adds the page template + loadedDocument.PdfPageTemplates.Add(pageTemplate); + //Save the document + loadedDocument.Save("output.pdf"); + //Close the document + loadedDocument.Close(true); + + + 'Loads an existing PDF Document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + 'Get the first page of the document + Dim page As PdfPageBase = loadedDocument.Pages(0) + 'Create a page template + Dim pageTemplate As PdfPageTemplate = New PdfPageTemplate(page) + 'Sets the PdfPageTemplate name + pageTemplate.Name = "pageTemplate" + 'Sets the PdfPageTemplate is visible + pageTemplate.IsVisible = True + 'Adds the page template + loadedDocument.PdfPageTemplates.Add(pageTemplate) + 'Save the document + loadedDocument.Save("output.pdf") + 'Close the document + loadedDocument.Close(True) + + + + + + Gets the PdfPageBase + + + + + Implements a collection of page template in the document. + + + + + Collection of the PdfPageTemplate. + + + + + Internal variable to store dictinary. + + + + + Initializes a new instance + + + + + Initializes a new instance + + The dictionary value. + The cross table value. + + + + Initializes instance + + + + + Gets the dictionary + + + + + Gets the crosstable + + + + + Gets number of the elements in the collection. + + + + //Loads an existing PDF Document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Total number of elements in the collection + int count = loadedDocument.PdfPageTemplates.Count; + //Gets the PdfPageTemplate at the specified index. + PdfPageTemplate pageTemplate = loadedDocument.PdfPageTemplates[0]; + //Determines whether the specified PdfPageTemplate presents in the collection + bool contains = loadedDocument.PdfPageTemplates.Contains(pageTemplate); + //Remove the PdfPageTemplate from the document. + loadedDocument.PdfPageTemplates.Remove(pageTemplate); + //Remove the specified PdfPageTemplate from the document. + loadedDocument.PdfPageTemplates.RemoveAt(1); + //Removes all the PdfPageTemplate from the collection. + loadedDocument.PdfPageTemplates.Clear(); + //Save the document + loadedDocument.Save("output.pdf"); + //Close the document + loadedDocument.Close(true); + + + 'Loads an existing PDF Document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + 'Total number of elements in the collection + Dim count As Integer = loadedDocument.PdfPageTemplates.Count + 'Gets the PdfPageTemplate at the specified index. + Dim pageTemplate As PdfPageTemplate = loadedDocument.PdfPageTemplates(0) + 'Determines whether the specified PdfPageTemplate presents in the collection + Dim contains As Boolean = loadedDocument.PdfPageTemplates.Contains(pageTemplate) + 'Remove the PdfPageTemplate from the document. + loadedDocument.PdfPageTemplates.Remove(pageTemplate) + 'Removes all the PdfPageTemplate from the collection. + loadedDocument.PdfPageTemplates.RemoveAt(1) + 'Removes all the PdfPageTemplate from the collection. + loadedDocument.PdfPageTemplates.Clear() + 'Save the document + loadedDocument.Save("output.pdf") + 'Close the document + loadedDocument.Close(True) + + + + + + Gets the PdfPageTemplate at the specified index. + + Index value. + + + + //Loads an existing PDF Document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Total number of elements in the collection + int count = loadedDocument.PdfPageTemplates.Count; + //Gets the PdfPageTemplate at the specified index. + PdfPageTemplate pageTemplate = loadedDocument.PdfPageTemplates[0]; + //Determines whether the specified PdfPageTemplate presents in the collection + bool contains = loadedDocument.PdfPageTemplates.Contains(pageTemplate); + //Remove the PdfPageTemplate from the document. + loadedDocument.PdfPageTemplates.Remove(pageTemplate); + //Remove the specified PdfPageTemplate from the document. + loadedDocument.PdfPageTemplates.RemoveAt(1); + //Removes all the PdfPageTemplate from the collection. + loadedDocument.PdfPageTemplates.Clear(); + //Save the document + loadedDocument.Save("output.pdf"); + //Close the document + loadedDocument.Close(true); + + + 'Loads an existing PDF Document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + 'Total number of elements in the collection + Dim count As Integer = loadedDocument.PdfPageTemplates.Count + 'Gets the PdfPageTemplate at the specified index. + Dim pageTemplate As PdfPageTemplate = loadedDocument.PdfPageTemplates(0) + 'Determines whether the specified PdfPageTemplate presents in the collection + Dim contains As Boolean = loadedDocument.PdfPageTemplates.Contains(pageTemplate) + 'Remove the PdfPageTemplate from the document. + loadedDocument.PdfPageTemplates.Remove(pageTemplate) + 'Removes all the PdfPageTemplate from the collection. + loadedDocument.PdfPageTemplates.RemoveAt(1) + 'Removes all the PdfPageTemplate from the collection. + loadedDocument.PdfPageTemplates.Clear() + 'Save the document + loadedDocument.Save("output.pdf") + 'Close the document + loadedDocument.Close(True) + + + + + + Creates and adds a PdfPageTemplate + + The PDF page template value. + + + // Loads an existing PDF Document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the first page of the document + PdfPageBase page = loadedDocument.Pages[0]; + //Create a page template + PdfPageTemplate pageTemplate = new PdfPageTemplate(page); + //Sets the PdfPageTemplate name + pageTemplate.Name = "pageTemplate"; + //Sets the PdfPageTemplate is visible + pageTemplate.IsVisible = true; + //Adds the page template + loadedDocument.PdfPageTemplates.Add(pageTemplate); + //Save the document + loadedDocument.Save("output.pdf"); + //Close the document + loadedDocument.Close(true); + + + 'Loads an existing PDF Document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + 'Get the first page of the document + Dim page As PdfPageBase = loadedDocument.Pages(0) + 'Create a page template + Dim pageTemplate As PdfPageTemplate = New PdfPageTemplate(page) + 'Sets the PdfPageTemplate name + pageTemplate.Name = "pageTemplate" + 'Sets the PdfPageTemplate is visible + pageTemplate.IsVisible = True + 'Adds the page template + loadedDocument.PdfPageTemplates.Add(pageTemplate) + 'Save the document + loadedDocument.Save("output.pdf") + 'Close the document + loadedDocument.Close(True) + + + + + + Determines whether the specified PdfPageTemplate presents in the collection. + + The PDF page template value. + + + + //Loads an existing PDF Document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Total number of elements in the collection + int count = loadedDocument.PdfPageTemplates.Count; + //Gets the PdfPageTemplate at the specified index. + PdfPageTemplate pageTemplate = loadedDocument.PdfPageTemplates[0]; + //Determines whether the specified PdfPageTemplate presents in the collection + bool contains = loadedDocument.PdfPageTemplates.Contains(pageTemplate); + //Remove the PdfPageTemplate from the document. + loadedDocument.PdfPageTemplates.Remove(pageTemplate); + //Remove the specified PdfPageTemplate from the document. + loadedDocument.PdfPageTemplates.RemoveAt(1); + //Removes all the PdfPageTemplate from the collection. + loadedDocument.PdfPageTemplates.Clear(); + //Save the document + loadedDocument.Save("output.pdf"); + //Close the document + loadedDocument.Close(true); + + + 'Loads an existing PDF Document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + 'Total number of elements in the collection + Dim count As Integer = loadedDocument.PdfPageTemplates.Count + 'Gets the PdfPageTemplate at the specified index. + Dim pageTemplate As PdfPageTemplate = loadedDocument.PdfPageTemplates(0) + 'Determines whether the specified PdfPageTemplate presents in the collection + Dim contains As Boolean = loadedDocument.PdfPageTemplates.Contains(pageTemplate) + 'Remove the PdfPageTemplate from the document. + loadedDocument.PdfPageTemplates.Remove(pageTemplate) + 'Removes all the PdfPageTemplate from the collection. + loadedDocument.PdfPageTemplates.RemoveAt(1) + 'Removes all the PdfPageTemplate from the collection. + loadedDocument.PdfPageTemplates.Clear() + 'Save the document + loadedDocument.Save("output.pdf") + 'Close the document + loadedDocument.Close(True) + + + + + + Remove the specified PdfPageTemplate from the document. + + The index value. + + + //Loads an existing PDF Document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Total number of elements in the collection + int count = loadedDocument.PdfPageTemplates.Count; + //Gets the PdfPageTemplate at the specified index. + PdfPageTemplate pageTemplate = loadedDocument.PdfPageTemplates[0]; + //Determines whether the specified PdfPageTemplate presents in the collection + bool contains = loadedDocument.PdfPageTemplates.Contains(pageTemplate); + //Remove the PdfPageTemplate from the document. + loadedDocument.PdfPageTemplates.Remove(pageTemplate); + //Remove the specified PdfPageTemplate from the document. + loadedDocument.PdfPageTemplates.RemoveAt(1); + //Removes all the PdfPageTemplate from the collection. + loadedDocument.PdfPageTemplates.Clear(); + //Save the document + loadedDocument.Save("output.pdf"); + //Close the document + loadedDocument.Close(true); + + + 'Loads an existing PDF Document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + 'Total number of elements in the collection + Dim count As Integer = loadedDocument.PdfPageTemplates.Count + 'Gets the PdfPageTemplate at the specified index. + Dim pageTemplate As PdfPageTemplate = loadedDocument.PdfPageTemplates(0) + 'Determines whether the specified PdfPageTemplate presents in the collection + Dim contains As Boolean = loadedDocument.PdfPageTemplates.Contains(pageTemplate) + 'Remove the PdfPageTemplate from the document. + loadedDocument.PdfPageTemplates.Remove(pageTemplate) + 'Removes all the PdfPageTemplate from the collection. + loadedDocument.PdfPageTemplates.RemoveAt(1) + 'Removes all the PdfPageTemplate from the collection. + loadedDocument.PdfPageTemplates.Clear() + 'Save the document + loadedDocument.Save("output.pdf") + 'Close the document + loadedDocument.Close(True) + + + + + + Remove the PdfPageTemplate from the document. + + The PDF page template value. + + + //Loads an existing PDF Document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Total number of elements in the collection + int count = loadedDocument.PdfPageTemplates.Count; + //Gets the PdfPageTemplate at the specified index. + PdfPageTemplate pageTemplate = loadedDocument.PdfPageTemplates[0]; + //Determines whether the specified PdfPageTemplate presents in the collection + bool contains = loadedDocument.PdfPageTemplates.Contains(pageTemplate); + //Remove the PdfPageTemplate from the document. + loadedDocument.PdfPageTemplates.Remove(pageTemplate); + //Remove the specified PdfPageTemplate from the document. + loadedDocument.PdfPageTemplates.RemoveAt(1); + //Removes all the PdfPageTemplate from the collection. + loadedDocument.PdfPageTemplates.Clear(); + //Save the document + loadedDocument.Save("output.pdf"); + //Close the document + loadedDocument.Close(true); + + + 'Loads an existing PDF Document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + 'Total number of elements in the collection + Dim count As Integer = loadedDocument.PdfPageTemplates.Count + 'Gets the PdfPageTemplate at the specified index. + Dim pageTemplate As PdfPageTemplate = loadedDocument.PdfPageTemplates(0) + 'Determines whether the specified PdfPageTemplate presents in the collection + Dim contains As Boolean = loadedDocument.PdfPageTemplates.Contains(pageTemplate) + 'Remove the PdfPageTemplate from the document. + loadedDocument.PdfPageTemplates.Remove(pageTemplate) + 'Removes all the PdfPageTemplate from the collection. + loadedDocument.PdfPageTemplates.RemoveAt(1) + 'Removes all the PdfPageTemplate from the collection. + loadedDocument.PdfPageTemplates.Clear() + 'Save the document + loadedDocument.Save("output.pdf") + 'Close the document + loadedDocument.Close(True) + + + + + + Removes all the PdfPageTemplate from the collection. + + + + //Loads an existing PDF Document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Total number of elements in the collection + int count = loadedDocument.PdfPageTemplates.Count; + //Gets the PdfPageTemplate at the specified index. + PdfPageTemplate pageTemplate = loadedDocument.PdfPageTemplates[0]; + //Determines whether the specified PdfPageTemplate presents in the collection + bool contains = loadedDocument.PdfPageTemplates.Contains(pageTemplate); + //Remove the PdfPageTemplate from the document. + loadedDocument.PdfPageTemplates.Remove(pageTemplate); + //Remove the specified PdfPageTemplate from the document. + loadedDocument.PdfPageTemplates.RemoveAt(1); + //Removes all the PdfPageTemplate from the collection. + loadedDocument.PdfPageTemplates.Clear(); + //Save the document + loadedDocument.Save("output.pdf"); + //Close the document + loadedDocument.Close(true); + + + 'Loads an existing PDF Document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + 'Total number of elements in the collection + Dim count As Integer = loadedDocument.PdfPageTemplates.Count + 'Gets the PdfPageTemplate at the specified index. + Dim pageTemplate As PdfPageTemplate = loadedDocument.PdfPageTemplates(0) + 'Determines whether the specified PdfPageTemplate presents in the collection + Dim contains As Boolean = loadedDocument.PdfPageTemplates.Contains(pageTemplate) + 'Remove the PdfPageTemplate from the document. + loadedDocument.PdfPageTemplates.Remove(pageTemplate) + 'Removes all the PdfPageTemplate from the collection. + loadedDocument.PdfPageTemplates.RemoveAt(1) + 'Removes all the PdfPageTemplate from the collection. + loadedDocument.PdfPageTemplates.Clear() + 'Save the document + loadedDocument.Save("output.pdf") + 'Close the document + loadedDocument.Close(True) + + + + + + Parse and create existing page templates + + The page collection value. + The PDF page template value. + Is visible value. + + + + Returns an enumerator that iterates through a collection. + + + An + object that can be used to iterate through the collection. + + + + + Gets the element. + + + + + + Represents the PdfLoadedRedactionAnnotation. + + + + // PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfLoadedRedactionAnnotation + //PdfLoadedRedactionAnnotation annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation; + //Get the line ending style + // annot.Bounds = new Rectangle(100, 120, 100, 100); + //set the innercolor + //annot.InnerColor = Color.Aqua; + //set the bordercolor + // annot.BorderColor = Color.Orange; + //set the textcolor + // annot.TextColor = Color.Yellow; + //set the font + //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); + //set overlaytext + //annot.OverlayText = "Redact"; + //set textalignment + //annot.TextAlignment = PdfTextAlignment.Right; + // annot.Repeat = true; + //Saves the document to disk. + //document.Save("redact.pdf"); + //document.Close(true); + // System.Diagnostics.Process.Start("empty.pdf"); + + + //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf") + //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation) + //set the bounds + //annot.Bounds = New Rectangle(100, 120, 100, 100) + //set the innercolor + //annot.InnerColor = Color.Aqua + //set the bordercolor + //annot.BorderColor = Color.Orange + //set the textcolor + // annot.TextColor = Color.Yellow + //set the font + // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10) + //set overlaytext + // annot.OverlayText = "Redact" + //set the textalignment + //annot.TextAlignment = PdfTextAlignment.Right + //annot.Repeat = True + //document.Save("redact.pdf") + //document.Close(True) + //System.Diagnostics.Process.Start("empty.pdf") + /// + + + + + Used to represent the border color of the redaction annotation. + + + + + Used to represent the border of the redaction annotation. + + + + + Used to represent overlaytext of the redaction annotation. + + + + + Used to represent the text color of the redaction annotation. + + + + + Used to represent the text repeat of the redaction annotation. + + + + + Used to represent the font of the redaction annotation. + + + + + Used to represent the textalignment of the redaction annotation. + + + + + Crosstable + + + + + Get or set the textcolor of redaction annotation + + + + // PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfLoadedRedactionAnnotation + //PdfLoadedRedactionAnnotation annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation; + //Get the line ending style + // annot.Bounds = new Rectangle(100, 120, 100, 100); + //set the innercolor + //annot.InnerColor = Color.Aqua; + //set the bordercolor + // annot.BorderColor = Color.Orange; + //set the textcolor + // annot.TextColor = Color.Yellow; + //set the font + //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); + //set overlaytext + //annot.OverlayText = "Redact"; + //set textalignment + //annot.TextAlignment = PdfTextAlignment.Right; + // annot.Repeat = true; + //Saves the document to disk. + //document.Save("redact.pdf"); + //document.Close(true); + // System.Diagnostics.Process.Start("empty.pdf"); + + + //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf") + //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation) + //set the bounds + //annot.Bounds = New Rectangle(100, 120, 100, 100) + //set the innercolor + //annot.InnerColor = Color.Aqua + //set the bordercolor + //annot.BorderColor = Color.Orange + //set the textcolor + // annot.TextColor = Color.Yellow + //set the font + // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10) + //set overlaytext + // annot.OverlayText = "Redact" + //set the textalignment + //annot.TextAlignment = PdfTextAlignment.Right + //annot.Repeat = True + //document.Save("redact.pdf") + //document.Close(True) + //System.Diagnostics.Process.Start("empty.pdf") + /// + + + + + Get or set the text alignment of redaction annotation + + + /// + // PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfLoadedRedactionAnnotation + //PdfLoadedRedactionAnnotation annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation; + //Get the line ending style + // annot.Bounds = new Rectangle(100, 120, 100, 100); + //set the innercolor + //annot.InnerColor = Color.Aqua; + //set the bordercolor + // annot.BorderColor = Color.Orange; + //set the textcolor + // annot.TextColor = Color.Yellow; + //set the font + //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); + //set overlaytext + //annot.OverlayText = "Redact"; + //set textalignment + //annot.TextAlignment = PdfTextAlignment.Right; + // annot.Repeat = true; + //Saves the document to disk. + //document.Save("redact.pdf"); + //document.Close(true); + // System.Diagnostics.Process.Start("empty.pdf"); + + + //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf") + //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation) + //set the bounds + //annot.Bounds = New Rectangle(100, 120, 100, 100) + //set the innercolor + //annot.InnerColor = Color.Aqua + //set the bordercolor + //annot.BorderColor = Color.Orange + //set the textcolor + // annot.TextColor = Color.Yellow + //set the font + // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10) + //set overlaytext + // annot.OverlayText = "Redact" + //set the textalignment + //annot.TextAlignment = PdfTextAlignment.Right + //annot.Repeat = True + //document.Save("redact.pdf") + //document.Close(True) + //System.Diagnostics.Process.Start("empty.pdf") + /// + + + + + Get or set the border of redaction annotation + + + /// + // PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfLoadedRedactionAnnotation + //PdfLoadedRedactionAnnotation annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation; + //Get the line ending style + // annot.Bounds = new Rectangle(100, 120, 100, 100); + //set the innercolor + //annot.InnerColor = Color.Aqua; + //set the bordercolor + // annot.BorderColor = Color.Orange; + //set the textcolor + // annot.TextColor = Color.Yellow; + //set the font + //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); + //set overlaytext + //annot.OverlayText = "Redact"; + //set textalignment + //annot.TextAlignment = PdfTextAlignment.Right; + // annot.Repeat = true; + //Saves the document to disk. + //document.Save("redact.pdf"); + //document.Close(true); + // System.Diagnostics.Process.Start("empty.pdf"); + + + //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf") + //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation) + //set the bounds + //annot.Bounds = New Rectangle(100, 120, 100, 100) + //set the innercolor + //annot.InnerColor = Color.Aqua + //set the bordercolor + //annot.BorderColor = Color.Orange + //set the textcolor + // annot.TextColor = Color.Yellow + //set the font + // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10) + //set overlaytext + // annot.OverlayText = "Redact" + //set the textalignment + //annot.TextAlignment = PdfTextAlignment.Right + //annot.Repeat = True + //document.Save("redact.pdf") + //document.Close(True) + //System.Diagnostics.Process.Start("empty.pdf") + /// + + + + + Get or set the overlaytext of redaction annotation + + + /// + // PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfLoadedRedactionAnnotation + //PdfLoadedRedactionAnnotation annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation; + //Get the line ending style + // annot.Bounds = new Rectangle(100, 120, 100, 100); + //set the innercolor + //annot.InnerColor = Color.Aqua; + //set the bordercolor + // annot.BorderColor = Color.Orange; + //set the textcolor + // annot.TextColor = Color.Yellow; + //set the font + //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); + //set overlaytext + //annot.OverlayText = "Redact"; + //set textalignment + //annot.TextAlignment = PdfTextAlignment.Right; + // annot.Repeat = true; + //Saves the document to disk. + //document.Save("redact.pdf"); + //document.Close(true); + // System.Diagnostics.Process.Start("empty.pdf"); + + + //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf") + //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation) + //set the bounds + //annot.Bounds = New Rectangle(100, 120, 100, 100) + //set the innercolor + //annot.InnerColor = Color.Aqua + //set the bordercolor + //annot.BorderColor = Color.Orange + //set the textcolor + // annot.TextColor = Color.Yellow + //set the font + // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10) + //set overlaytext + // annot.OverlayText = "Redact" + //set the textalignment + //annot.TextAlignment = PdfTextAlignment.Right + //annot.Repeat = True + //document.Save("redact.pdf") + //document.Close(True) + //System.Diagnostics.Process.Start("empty.pdf") + /// + + + + + Get or set the font of redaction annotation + + + /// + // PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfLoadedRedactionAnnotation + //PdfLoadedRedactionAnnotation annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation; + //Get the line ending style + // annot.Bounds = new Rectangle(100, 120, 100, 100); + //set the innercolor + //annot.InnerColor = Color.Aqua; + //set the bordercolor + // annot.BorderColor = Color.Orange; + //set the textcolor + // annot.TextColor = Color.Yellow; + //set the font + //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); + //set overlaytext + //annot.OverlayText = "Redact"; + //set textalignment + //annot.TextAlignment = PdfTextAlignment.Right; + // annot.Repeat = true; + //Saves the document to disk. + //document.Save("redact.pdf"); + //document.Close(true); + // System.Diagnostics.Process.Start("empty.pdf"); + + + //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf") + //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation) + //set the bounds + //annot.Bounds = New Rectangle(100, 120, 100, 100) + //set the innercolor + //annot.InnerColor = Color.Aqua + //set the bordercolor + //annot.BorderColor = Color.Orange + //set the textcolor + // annot.TextColor = Color.Yellow + //set the font + // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10) + //set overlaytext + // annot.OverlayText = "Redact" + //set the textalignment + //annot.TextAlignment = PdfTextAlignment.Right + //annot.Repeat = True + //document.Save("redact.pdf") + //document.Close(True) + //System.Diagnostics.Process.Start("empty.pdf") + /// + + + + + Get or set the bordercolor of redaction annotation + + + /// + // PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfLoadedRedactionAnnotation + //PdfLoadedRedactionAnnotation annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation; + //Get the line ending style + // annot.Bounds = new Rectangle(100, 120, 100, 100); + //set the innercolor + //annot.InnerColor = Color.Aqua; + //set the bordercolor + // annot.BorderColor = Color.Orange; + //set the textcolor + // annot.TextColor = Color.Yellow; + //set the font + //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); + //set overlaytext + //annot.OverlayText = "Redact"; + //set textalignment + //annot.TextAlignment = PdfTextAlignment.Right; + // annot.Repeat = true; + //Saves the document to disk. + //document.Save("redact.pdf"); + //document.Close(true); + // System.Diagnostics.Process.Start("empty.pdf"); + + + //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf") + //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation) + //set the bounds + //annot.Bounds = New Rectangle(100, 120, 100, 100) + //set the innercolor + //annot.InnerColor = Color.Aqua + //set the bordercolor + //annot.BorderColor = Color.Orange + //set the textcolor + // annot.TextColor = Color.Yellow + //set the font + // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10) + //set overlaytext + // annot.OverlayText = "Redact" + //set the textalignment + //annot.TextAlignment = PdfTextAlignment.Right + //annot.Repeat = True + //document.Save("redact.pdf") + //document.Close(True) + //System.Diagnostics.Process.Start("empty.pdf") + /// + + + + + Get or set repeat text of redaction annotation + + + /// + // PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfLoadedRedactionAnnotation + //PdfLoadedRedactionAnnotation annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation; + //Get the line ending style + // annot.Bounds = new Rectangle(100, 120, 100, 100); + //set the innercolor + //annot.InnerColor = Color.Aqua; + //set the bordercolor + // annot.BorderColor = Color.Orange; + //set the textcolor + // annot.TextColor = Color.Yellow; + //set the font + //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); + //set overlaytext + //annot.OverlayText = "Redact"; + //set textalignment + //annot.TextAlignment = PdfTextAlignment.Right; + // annot.Repeat = true; + //Saves the document to disk. + //document.Save("redact.pdf"); + //document.Close(true); + // System.Diagnostics.Process.Start("empty.pdf"); + + + //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf") + //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation) + //set the bounds + //annot.Bounds = New Rectangle(100, 120, 100, 100) + //set the innercolor + //annot.InnerColor = Color.Aqua + //set the bordercolor + //annot.BorderColor = Color.Orange + //set the textcolor + // annot.TextColor = Color.Yellow + //set the font + // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10) + //set overlaytext + // annot.OverlayText = "Redact" + //set the textalignment + //annot.TextAlignment = PdfTextAlignment.Right + //annot.Repeat = True + //document.Save("redact.pdf") + //document.Close(True) + //System.Diagnostics.Process.Start("empty.pdf") + /// + + + + + Get or set the flatten + + + /// + // PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfLoadedRedactionAnnotation + //PdfLoadedRedactionAnnotation annot = document.Pages[0].Annotations[0] as PdfLoadedRedactionAnnotation; + //Get the line ending style + // annot.Bounds = new Rectangle(100, 120, 100, 100); + //set the innercolor + //annot.InnerColor = Color.Aqua; + //set the bordercolor + // annot.BorderColor = Color.Orange; + //set the textcolor + // annot.TextColor = Color.Yellow; + //set the font + //annot.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); + //set overlaytext + //annot.OverlayText = "Redact"; + //set textalignment + //annot.TextAlignment = PdfTextAlignment.Right; + // annot.Repeat = true; + //annot.Flatten=true + //Saves the document to disk. + //document.Save("redact.pdf"); + //document.Close(true); + // System.Diagnostics.Process.Start("empty.pdf"); + + + //Dim document As PdfLoadedDocument = New PdfLoadedDocument("..\..\Annotations.pdf") + //Dim annot As PdfLoadedRedactionAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedRedactionAnnotation) + //set the bounds + //annot.Bounds = New Rectangle(100, 120, 100, 100) + //set the innercolor + //annot.InnerColor = Color.Aqua + //set the bordercolor + //annot.BorderColor = Color.Orange + //set the textcolor + // annot.TextColor = Color.Yellow + //set the font + // annot.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 10) + //set overlaytext + // annot.OverlayText = "Redact" + //set the textalignment + //annot.TextAlignment = PdfTextAlignment.Right + //annot.Repeat = True + //annot.Flatten=true; + //document.Save("redact.pdf") + //document.Close(True) + //System.Diagnostics.Process.Start("empty.pdf") + /// + + + + + Initializes a new instance of the class. + + The dictionary. + The cross table. + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + + + Applyredaction to loadedpage + + + + + Gets the textcolor of redaction annotation + + + + + Get the repeat text of redaction annotation + + + + + Get the bordercolor of redaction annotation + + + + + Get the textcolor of redaction annotation + + + + + Get textAlignment of redaction annotation + + + + + Get font of redaction annotation + + + + + Obtain the font from appearence stream. + + + + + Represents the PDF annotation states. + + + + //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 review collection + PdfLoadedPopupAnnotationCollection reviewCollection = free.ReviewHistory; + foreach (PdfLoadedPopupAnnotation popup in reviewCollection){ + //Gets the annotation state + PdfAnnotationState state = popup.AnnotationState; + //Gets the annotation state model + PdfAnnotationStateModel model = popup.AnnotationStateModel; + } + //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 review collection + Dim reviewCollection As PdfLoadedPopupAnnotationCollection = free.ReviewHistory + For Each popup As PdfLoadedPopupAnnotation In reviewCollection + 'Get the annotation state + Dim state As PdfAnnotationState = popup.AnnotationState + 'Get the annotation state model + Dim model As PdfAnnotationStateModel = popup.AnnotationStateModel + Next + 'save the document + document.Save("FreetextAnnotation.pdf") + 'Close the document. + document.Close(True) + + + + + + The user has indicated nothing about the change (the default). + + + + + The user agrees with the change. + + + + + The user disagrees with the change. + + + + + The change has been cancelled. + + + + + The change has been completed. + + + + + The annotation has been marked by the user. + + + + + The annotation has not been marked by the user (the default). + + + + + The annotation review status is Unknow. + + + + + Represents the PDF annotation state models. + + + + //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 review collection + PdfLoadedPopupAnnotationCollection reviewCollection = free.ReviewHistory; + foreach (PdfLoadedPopupAnnotation popup in reviewCollection){ + //Gets the annotation state + PdfAnnotationState state = popup.AnnotationState; + //Gets the annotation state model + PdfAnnotationStateModel model = popup.AnnotationStateModel; + } + //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 review collection + Dim reviewCollection As PdfLoadedPopupAnnotationCollection = free.ReviewHistory + For Each popup As PdfLoadedPopupAnnotation In reviewCollection + 'Get the annotation state + Dim state As PdfAnnotationState = popup.AnnotationState + 'Get the annotation state model + Dim model As PdfAnnotationStateModel = popup.AnnotationStateModel + Next + 'save the document + document.Save("FreetextAnnotation.pdf") + 'Close the document. + document.Close(True) + + + + + + default. + + + + + The annotation has been marked by the user. + + + + + The annotation has been reviewed by the user. + + + + + Represents the loaded Circle annotation class. + + + + + Cross Table + + + + + Indicates the line border. + + + + + Indicates the dasharry for annotation + + + + + Indicates dash array reset + + + + + Used to represent the border effect style of the circle annotation. + + + + + Get or set the border style of the annotation. + + + + + Gets the annotation review history. + + The review collection of the circle annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfCircleAnnotation + PdfLoadedCircleAnnotation circle = document.Pages[0].Annotations[0] as PdfLoadedCircleAnnotation; + //Get the review collection + PdfLoadedPopupAnnotationCollection reviewCollection = circle.ReviewHistory; + //save the document + document.Save("CircleAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfLoadedCircleAnnotation + Dim circle As PdfLoadedCircleAnnotation = document.Pages(0).Annotations(0) + 'Get the review collection + Dim reviewCollection As PdfLoadedPopupAnnotationCollection = circle.ReviewHistory + Next + 'save the document + document.Save("CircleAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Gets the annotation comments history. + + The Comments collection of the circle annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfCircleAnnotation + PdfLoadedCircleAnnotation circle = document.Pages[0].Annotations[0] as PdfLoadedCircleAnnotation; + //Get the comments collection + PdfLoadedPopupAnnotationCollection commentsCollection = circle.Comments; + //save the document + document.Save("CircleAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfLoadedCircleAnnotation + Dim circle As PdfLoadedCircleAnnotation = document.Pages(0).Annotations(0) + 'Get the Comment collection + Dim commentsCollection As PdfLoadedPopupAnnotationCollection = circle.Comments + Next + 'save the document + document.Save("CircleAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Get or set the border effect of the Circle annotation. + + + + Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"....\Annotations.pdf"); + //Load the existing pdf circle annotation + PdfLoadedCircleAnnotation circle = document.Pages[0].Annotations[0] as PdfLoadedCircleAnnotation; + //Get and Set the border effect of the annotation + PdfBorderEffect borderEffect = circle.BorderEffect; + //save the document. + document.Save("PdfCircleAnnotation.pdf"); + //Close the document. + document.Close(true); + 'Load an existing document. + Dim document As New PdfLoadedDocument("....\Annotations.pdf") + 'Load the existing pdf circle annotation + Dim circle As PdfLoadedCircleAnnotation = document.Pages(0).Annotations(0) + 'Get and Set the border effect of the annotation + Dim borderEffect As PdfBorderEffect = circle.BorderEffect + 'save the document. + document.Save("PdfCircleAnnotation.pdf") + 'Close the document. + document.Close(True) + + + + + + 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. + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + Saves an annotation. + + + + + Flatten annotation for appearance + + The page value. + The appearance value. + + + + Create appearance for annotation + + + + + + Draw appearance for annotation + + The rectangle value. + The border width value. + The graphics value. + The paint params value. + + + + Obtain Style for circle annotation + + The border pen value. + The rectangle value. + The border width value. + + + + + Draw bezier curve for annotation + + The control 1 value. + The control 2 value. + The control 3 value. + The bezier points value. + + + + Calculate bezier points + + The control 1 value. + The control 2 value. + The control 3 value. + The current iteration value. + The bezierPoints value. + + + + Obtain Midpoint for annotation + + The control point 1 value. + The control point 2 value. + + + + + Create cloud appearance for annotation + + + + + + Represents the loaded Square annotation class. + + + + + Cross Table + + + + + Indicates the line border. + + + + + Indicates the dasharry for annotation + + + + + Indicates dash array reset + + + + + Used to represent the border effect style of the square annotation. + + + + + Gets the annotation review history. + + The review collection of square annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfSquareAnnotation + PdfLoadedSquareAnnotation square = document.Pages[0].Annotations[0] as PdfLoadedSquareAnnotation; + //Get the review collection + PdfLoadedPopupAnnotationCollection reviewCollection = square.ReviewHistory; + //save the document + document.Save("PdfSquareAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfSquareAnnotation + Dim square As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0) + 'Get the review collection + Dim reviewCollection As PdfLoadedPopupAnnotationCollection = square.ReviewHistory + 'save the document + document.Save("PdfSquareAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Get or set the border effect of the square annotation. + + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing pdf square annotation + PdfLoadedSquareAnnotation square = document.Pages[0].Annotations[0] as PdfLoadedSquareAnnotation; + //Get and Set the border effect of the annotation + PdfBoderEffect borderEffect = square.BoderEffect; + //save the document + document.Save("PdfSquareAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing pdf square annotation + Dim square As PdfLoadedSquareAnnotation = document.Pages(0).Annotations(0) + 'Get and Set the border effect of the annotation + Dim borderEffect As PdfBoderEffect = square.document + 'save the document + document.Save("PdfSquareAnnotation.pdf") + 'Close the document. + document.Close(True) + + + + + + Gets the annotation Comments history. + + The Comments collection of square annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfSquareAnnotation + PdfLoadedSquareAnnotation square = document.Pages[0].Annotations[0] as PdfLoadedSquareAnnotation; + //Get the Comments collection + PdfLoadedPopupAnnotationCollection CommentsCollection = square.Comments; + //save the document + document.Save("PdfSquareAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfSquareAnnotation + Dim square As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0) + 'Get the Comments collection + Dim CommentsCollection As PdfLoadedPopupAnnotationCollection = square.Comments + 'save the document + document.Save("PdfSquareAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Get or set the border of the square annotation. + + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing pdf square annotation + PdfLoadedSquareAnnotation square = document.Pages[0].Annotations[0] as PdfLoadedSquareAnnotation; + //Set the border of the annotation + LineBorder border = new LineBorder(); + border.BorderStyle = PdfBorderStyle.Beveled; + //save the document + document.Save("PdfSquareAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing pdf square annotation + Dim square As PdfLoadedSquareAnnotation = document.Pages(0).Annotations(0) + 'Set the border of the annotation + Dim border As New LineBorder() + border.BorderStyle = PdfBorderStyle.Beveled; + 'save the document + document.Save("PdfSquareAnnotation.pdf") + 'Close the document. + document.Close(True) + + + + + + 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. + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + + + Flatten Annotation + + The page value. + The appearance value + + + + Create appearance for annotation + + + + + + Draw appearance for annotation + + The rectangle value. + The border width value. + The graphics value. + The paint params value. + + + + Obtain style from annotation + + The border pen value. + The rectangle value. + The border width value. + + + + + Represents the loaded Ellipse annotation class. + + + + + Cross Table + + + + + Indicates the line border. + + + + + Used to represent the border Effect style of the Ellipse annotation. + + + + + Gets the annotation review history. + + The review collection of the Ellipse annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfEllipseAnnotation + PdfLoadedEllipseAnnotation ellipse = document.Pages[0].Annotations[0] as PdfLoadedEllipseAnnotation; + //Get the review collection + PdfLoadedPopupAnnotationCollection reviewCollection = ellipse.ReviewHistory; + //save the document + document.Save("EllipseAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfEllipseAnnotation + Dim ellipse As PdfLoadedEllipseAnnotation = document.Pages(0).Annotations(0) + 'Get the review collection + Dim reviewCollection As PdfLoadedPopupAnnotationCollection = ellipse.ReviewHistory + Next + 'save the document + document.Save("EllipseAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Gets the annotation Comments history. + + The Comments collection of the Ellipse annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfEllipseAnnotation + PdfLoadedEllipseAnnotation ellipse = document.Pages[0].Annotations[0] as PdfLoadedEllipseAnnotation; + //Get the comments collection + PdfLoadedPopupAnnotationCollection reviewCollection = ellipse.Comments; + //save the document + document.Save("EllipseAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfEllipseAnnotation + Dim ellipse As PdfLoadedEllipseAnnotation = document.Pages(0).Annotations(0) + 'Get the comments collection + Dim commentsCollection As PdfLoadedPopupAnnotationCollection = ellipse.Comments + Next + 'save the document + document.Save("EllipseAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Get or set the line border of the annotation. + + + + + Get or set the border effect of the ellipse annotation. + + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"....\Annotations.pdf"); + //Load the existing pdf Ellipse annotation + PdfLoadedEllipseAnnotation ellipse = document.Pages[0].Annotations[0] as PdfLoadedEllipseAnnotation; + //Get and Set the border effect of the annotation + PdfBorderEffect borderEffect = ellipse.BorderEffect; + //save the document. + document.Save("PdfEllipseAnnotation.pdf"); + //Close the document. + document.Close(true); + 'Load an existing document. + Dim document As New PdfLoadedDocument("....\Annotations.pdf") + 'Load the existing pdf ellipse annotation + Dim ellipse As PdfLoadedEllipseAnnotation = document.Pages(0).Annotations(0) + 'Get and Set the border effect of the annotation + Dim borderEffect As PdfBorderEffect = ellipse.BorderEffect + 'save the document. + document.Save("PdfEllipseAnnotation.pdf") + 'Close the document. + document.Close(True) + + + + + + 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. + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + + + Flatten annotation appearance + + The page value. + The appearance value. + + + + Create appearance for annotation + + + + + + Draw appearance for annotation + + The rectangle value. + The border width value. + The graphics value. + The paint params value. + + + + Obtain Style for annotation + + The border pen value. + The rectangle value. + The border width value. + + + + + Create bezier curve + + The control 1 value. + The control 2 value. + The control 3 value. + The bezier points value. + + + + calculate bezier points + + The control 1 value. + The control 2 value. + The control 3 value. + The current iteration value. + The bezier points value. + + + + Obtain Midpoints + + The control point 1 value. + The control point 2 value. + + + + + Create cloud appearance for annotation + + + + + + Represents the Polygon annotation + + + + + Cross Table + + + + + Indicates the line border. + + + + + Used to represent the border effect style of the polygon annotation. + + + + + Gets the annotation review history. + + The review collection of the polygon annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfPolygonAnnotation + PdfLoadedPolygonAnnotation polygon = document.Pages[0].Annotations[0] as PdfLoadedPolygonAnnotation; + //Get the review collection + PdfLoadedPopupAnnotationCollection reviewCollection = polygon.ReviewHistory; + //save the document + document.Save("PdfPolygonAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfPolygonAnnotation + Dim polygon As PdfLoadedPolygonAnnotation = document.Pages(0).Annotations(0) + 'Get the review collection + Dim reviewCollection As PdfLoadedPopupAnnotationCollection = polygon.ReviewHistory + 'save the document + document.Save("PdfPolygonAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Get or set the border effect of the polygon annotation. + + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing pdf polygon annotation + PdfLoadedPolygonAnnotation polygon = document.Pages[0].Annotations[0] as PdfLoadedPolygonAnnotation; + //Get and set the border effect of the annotation + PdfBoderEffect borderEffect = polygon.BoderEffect; + //save the document + document.Save("PdfPolygonAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfPolygonAnnotation + Dim polygon As PdfLoadedPolygonAnnotation = document.Pages(0).Annotations(0) + 'Get and set the border effect of the annotation + Dim borderEffect As PdfBoderEffect = polygon.BorderEffect + 'save the document + document.Save("PdfPolygonAnnotation.pdf") + 'Close the document. + document.Close(True) + + + + + + Gets the annotation comments history. + + The comments collection of the polygon annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfPolygonAnnotation + PdfLoadedPolygonAnnotation polygon = document.Pages[0].Annotations[0] as PdfLoadedPolygonAnnotation; + //Get the Comments collection + PdfLoadedPopupAnnotationCollection reviewCollection = polygon.Comments; + //save the document + document.Save("PdfPolygonAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfPolygonAnnotation + Dim polygon As PdfLoadedPolygonAnnotation = document.Pages(0).Annotations(0) + 'Get the Comments collection + Dim CommentsCollection As PdfLoadedPopupAnnotationCollection = polygon.Comments + 'save the document + document.Save("PdfPolygonAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Gets the line border of the annotation. + + + + + Gets the polygon points of the annotation. + + + + + Gets the polygon points of the annotation. + + + + + 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. + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + Saves an annotation. + + + + + Represents the PolyLine annotation + + + + + Cross Table + + + + + Indicates the line border. + + + + + Gets the annotation review history. + + The review collection of the polyline annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfPolyLineAnnotation + PdfLoadedPolyLineAnnotation polyline = document.Pages[0].Annotations[0] as PdfLoadedPolyLineAnnotation; + //Get the review collection + PdfLoadedPopupAnnotationCollection reviewCollection = polyline.ReviewHistory; + //save the document + document.Save("PdfPolyLineAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfPolyLineAnnotation + Dim polyline As PdfLoadedPolyLineAnnotation = document.Pages(0).Annotations(0) + 'Get the review collection + Dim reviewCollection As PdfLoadedPopupAnnotationCollection = polyline.ReviewHistory + 'save the document + document.Save("PdfPolyLineAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Gets the annotation Comments history. + + The Comments collection of the polyline annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfPolyLineAnnotation + PdfLoadedPolyLineAnnotation polyline = document.Pages[0].Annotations[0] as PdfLoadedPolyLineAnnotation; + //Get the Comments collection + PdfLoadedPopupAnnotationCollection CommentsCollection = polyline.Comments; + //save the document + document.Save("PdfPolyLineAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfPolyLineAnnotation + Dim polyline As PdfLoadedPolyLineAnnotation = document.Pages(0).Annotations(0) + 'Get the Comments collection + Dim CommentsCollection As PdfLoadedPopupAnnotationCollection = polyline.Comments + 'save the document + document.Save("PdfPolyLineAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Gets the polyline points of the annotation. + + + + + Gets the polyline points of the annotation. + + + + + 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. + + + + + 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. + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + + + Represents the loaded Rectangle annotation class. + + + + + Cross Table + + + + + Indicates the line border. + + + + + Indicates the dasharry for annotation + + + + + Indicates dash array reset + + + + + Used to represent the border Effect style of the Rectangle annotation. + + + + + Gets or sets the changed. + + + + + Gets the annotation review history. + + The review collection of the rectangle annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfRectangleAnnotation + PdfLoadedRectangleAnnotation rectangle = document.Pages[0].Annotations[0] as PdfLoadedRectangleAnnotation; + //Get the review collection + PdfLoadedPopupAnnotationCollection reviewCollection = rectangle.ReviewHistory; + //save the document + document.Save("PdfRectangleAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfRectangleAnnotation + Dim rectangle As PdfLoadedRectangleAnnotation = document.Pages(0).Annotations(0) + 'Get the review collection + Dim reviewCollection As PdfLoadedPopupAnnotationCollection = rectangle.ReviewHistory + 'save the document + document.Save("PdfRectangleAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Gets the annotation Comments history. + + The Comments collection of the rectangle annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfRectangleAnnotation + PdfLoadedRectangleAnnotation rectangle = document.Pages[0].Annotations[0] as PdfLoadedRectangleAnnotation; + //Get the Comments collection + PdfLoadedPopupAnnotationCollection CommentsCollection = rectangle.Comments; + //save the document + document.Save("PdfRectangleAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfRectangleAnnotation + Dim rectangle As PdfLoadedRectangleAnnotation = document.Pages(0).Annotations(0) + 'Get the Comments collection + Dim CommentsCollection As PdfLoadedPopupAnnotationCollection = rectangle.Comments + 'save the document + document.Save("PdfRectangleAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Gets the line border of the annotation. + + + + + Get or set the border effect of the rectangle annotation. + + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing pdf rectangle annotation + PdfLoadedRectangleAnnotation rectangle = document.Pages[0].Annotations[0] as PdfLoadedRectangleAnnotation; + //Get and set the border effect of the annotation + PdfBoderEffect borderEffect = rectangle.BoderEffect; + //save the document + document.Save("PdfRectangleAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing pdf rectangle annotation + Dim rectangle As PdfLoadedRectangleAnnotation = document.Pages(0).Annotations(0) + 'Get and set the border effect of the annotation + Dim borderEffect As PdfBoderEffect = rectangle.BorderEffect + 'save the document + document.Save("PdfRectangleAnnotation.pdf") + 'Close the document. + document.Close(True) + + + + + + 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. + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + + + Flatten annotation + + The page value. + The appearance value. + + + + Create appearance for annotation + + + + + + Draw appearance for annotation + + The rectangle value. + The border width value. + The graphics value. + The paint params value. + + + + Obtain style from annotation + + The border pen value. + The rectangle value. + The border width value. + + + + + Represents the loaded watermark annoation class. + + + + + Cross Table + + + + + Default value of the opacity + + + + + Create the instance for template + + + + + Check the opacity of the watermark + + + + + Create instance for appearance of the watermark annotation + + + + + internal variable to set rotation angle. + + + + + Initializes a new instance of the class. + + The dictionary. + The cross table. + The rectangle + The text + + + + Obtain the template stream + + + + + Save an annotation + + + + + 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 + + + + + Indicate the border Dictionary + + + + + Indicat the border style + + + + + 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 color. + + The 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 pdf font and pdf font style . + Font font = new Font("Calibri", 10, FontStyle.Bold); + PdfFont pdfFont = new PdfTrueTypeFont(font, false); + //Create a new PdfBrush. + 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 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. + + + + //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 PdfBrush. + 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; + List<RectangleF> bounds = new List<RectangleF>() { new RectangleF(200, 100, 60, 30), new RectangleF(100, 400, 60, 30) }; + markupAnnotation.BoundsCollection = bounds; + //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 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 + Dim bounds As List(Of RectangleF) = New List(Of RectangleF)() From { New RectangleF(200, 100, 60, 30), New RectangleF(100, 400, 60, 30)} + markupAnnotation.BoundsCollection = bounds + '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 the annotation reviews + + + + //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; + // set review state + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Text = "Hello PDF Comments"; + markupAnnotation.ReviewHistory.Add(popup); + //Get Review history + PdfPopupAnnotationCollection reviewCollection = markupAnnotation.ReviewHistory; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim font As Font = New Font("Calibri", 10, FontStyle.Bold) + Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, false) + 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 RectangleF = New RectangleF(175, 40, size.Width, size.Height) + page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle) + Dim markupAnnotation As PdfTextMarkupAnnotation = 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 + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + markupAnnotation.ReviewHistory.Add(popup) + Dim reviewCollection As PdfPopupAnnotationCollection = markupAnnotation.ReviewHistory + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Gets the annotation comments + + + + //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; + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "Test Text"; + markupAnnotation.Comments.Add(popupComments); + //Get annotation comments + PdfPopupAnnotationCollection commentsCollection = markupAnnotation.Comments; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim font As Font = New Font("Calibri", 10, FontStyle.Bold) + Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, false) + 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 RectangleF = New RectangleF(175, 40, size.Width, size.Height) + page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle) + Dim markupAnnotation As PdfTextMarkupAnnotation = 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 + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "Test Text" + markupAnnotation.Comments.Add(popupComments) + Dim commentsCollection As PdfPopupAnnotationCollection = markupAnnotation.Comments + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + 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. + + + + + Flatten annotation without calling save method. + + + + + Saves an Text Markup Annotation . + + + + + Save Text markup required dictionary + + + + + Flatten annotation + + The page value. + The appearance value. + + + + Darw Squiggly line + + The widht for DrawSquiggly. + The height for DrawSquiggly. + + + + + Create appearance for text markup + + + + + + Set Quadpoints for text markup + + The page size. + + + + 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 + + + + Internal variable to store Url. + + + + + Internal variable to store Uri Annotation object. + + + + + 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 + + + + 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 + + + + Re-evaluates URI bounds based on string format. + + + + + Rotate and transform the text web link and text markup annotaiton while loading page + + The base graphics. + + + + 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. + + + + + Annotation Review State + + + + + Annotation Review StateModel + + + + + Indicate the custom icon name + + + + + Gets or sets icon style of the annotation. + + The enumeration value which contains the different types of icons. + + + //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) + + + + + + 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) + + + + + + Gets or sets the appearance of the annotation. + + The object specifies the appearance of the annotaion. + + + //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"); + //Gets the appearance of popup annotation. + PdfAppearance appearance = popupAnnotation.Appearance; + //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") + 'Gets the appearance of popup annotation. + Dim appearance As PdfAppearance = popupAnnotation.Appearance + '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) + + + + + + Gets or sets the annotation review State. + + + + //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; + //Add Review state + //set Review and comments + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Author = "Hello"; + popup.Text = "Hello PDF Comments"; + lineAnnotation.ReviewHistory.Add(popup); + //Add this annotation to a new page. + page.Annotations.Add(lineAnnotation); + lineAnnotation.ReviewHistory.Add(testreview); + //Save the document to disk. + document.Save("OutputLinePopup.pdf"); + //close the document + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim points() As Integer = New Integer() { 80, 420, 150, 420} + Dim lineAnnotation As PdfLineAnnotation = New PdfLineAnnotation(points) + lineAnnotation.Text = "Line Annotation" + Dim lineBorder As LineBorder = New LineBorder + lineBorder.BorderStyle = PdfBorderStyle.Solid + lineBorder.BorderWidth = 1 + lineAnnotation.lineBorder = lineBorder + lineAnnotation.LineIntent = PdfLineIntent.LineDimension + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Author = "Hello" + popup.Text = "Hello PDF Comments" + lineAnnotation.ReviewHistory.Add(popup) + 'Add this annotation to a new page. + page.Annotations.Add(lineAnnotation) + lineAnnotation.ReviewHistory.Add(testreview) + 'Save the document to disk. + document.Save("OutputLinePopup.pdf") + 'close the document + document.Close(true) + + + + + + Gets or sets the annotation review State Model. + + + + //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; + //Add Review state + //set Review and comments + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Author = "Hello"; + popup.Text = "Hello PDF Comments"; + lineAnnotation.ReviewHistory.Add(popup); + //Add this annotation to a new page. + page.Annotations.Add(lineAnnotation); + lineAnnotation.ReviewHistory.Add(testreview); + //Save the document to disk. + document.Save("OutputLinePopup.pdf"); + //close the document + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim points() As Integer = New Integer() { 80, 420, 150, 420} + Dim lineAnnotation As PdfLineAnnotation = New PdfLineAnnotation(points) + lineAnnotation.Text = "Line Annotation" + Dim lineBorder As LineBorder = New LineBorder + lineBorder.BorderStyle = PdfBorderStyle.Solid + lineBorder.BorderWidth = 1 + lineAnnotation.lineBorder = lineBorder + lineAnnotation.LineIntent = PdfLineIntent.LineDimension + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Author = "Hello" + popup.Text = "Hello PDF Comments" + lineAnnotation.ReviewHistory.Add(popup) + 'Add this annotation to a new page. + page.Annotations.Add(lineAnnotation) + lineAnnotation.ReviewHistory.Add(testreview) + 'Save the document to disk. + document.Save("OutputLinePopup.pdf") + 'close the document + document.Close(true) + + + + + + Gets the annotation reviews + + + + PdfDocument doc = new PdfDocument(); + PdfPage page = doc.Pages.Add(); + //Creates a rectangle + RectangleF rectangle = new RectangleF(10, 40, 30, 30); + //Creates a new popup annotation. + PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(rectangle, "Test popup annotation"); + popupAnnotation.Border.Width = 4; + popupAnnotation.Border.HorizontalRadius = 20; + popupAnnotation.Border.VerticalRadius = 30; + //Sets the pdf popup icon. + popupAnnotation.Icon = PdfPopupIcon.NewParagraph; + //set Reviews + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Text = "Hello PDF Comments"; + popupAnnotation.ReviewHistory.Add(popup); + //Get annotation comments + PdfPopupAnnotationCollection reviewCollection = popupAnnotation.ReviewHistory; + //Saves the document to disk. + doc.Save("Output.pdf"); + doc.Close(true); + + + Dim doc As PdfDocument = New PdfDocument + Dim page As PdfPage = doc.Pages.Add + Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) + Dim popupAnnotation As PdfPopupAnnotation = New PdfPopupAnnotation(rectangle, "Test popup annotation") + popupAnnotation.Border.Width = 4 + popupAnnotation.Border.HorizontalRadius = 20 + popupAnnotation.Border.VerticalRadius = 30 + 'Sets the pdf popup icon. + popupAnnotation.Icon = PdfPopupIcon.NewParagraph + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + popupAnnotation.ReviewHistory.Add(popup) + Dim reviewCollection As PdfPopupAnnotationCollection = popupAnnotation.ReviewHistory + 'Saves the document to disk. + doc.Save("Output.pdf") + doc.Close(true) + + + + + + Gets the annotation comments + + + + PdfDocument doc = new PdfDocument(); + PdfPage page = doc.Pages.Add(); + //Creates a rectangle + RectangleF rectangle = new RectangleF(10, 40, 30, 30); + //Creates a new popup annotation. + PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(rectangle, "Test popup annotation"); + popupAnnotation.Border.Width = 4; + popupAnnotation.Border.HorizontalRadius = 20; + popupAnnotation.Border.VerticalRadius = 30; + //Sets the pdf popup icon. + popupAnnotation.Icon = PdfPopupIcon.NewParagraph; + //set comments + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "Test Text"; + popupAnnotation.Comments.Add(popupComments); + //Get annotation comments + PdfPopupAnnotationCollection commentsCollection = popupAnnotation.Comments; + //Saves the document to disk. + doc.Save("Output.pdf"); + doc.Close(true); + + + Dim doc As PdfDocument = New PdfDocument + Dim page As PdfPage = doc.Pages.Add + Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) + Dim popupAnnotation As PdfPopupAnnotation = New PdfPopupAnnotation(rectangle, "Test popup annotation") + popupAnnotation.Border.Width = 4 + popupAnnotation.Border.HorizontalRadius = 20 + popupAnnotation.Border.VerticalRadius = 30 + 'Sets the pdf popup icon. + popupAnnotation.Icon = PdfPopupIcon.NewParagraph + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "Test Text" + popupAnnotation.Comments.Add(popupComments) + Dim commentsCollection As PdfPopupAnnotationCollection = popupAnnotation.Comments + 'Saves the document to disk. + doc.Save("Output.pdf") + doc.Close(true) + + + + + + Gets or sets the pop-up icon name to the text annotation. + + + + PdfDocument doc = new PdfDocument(); + PdfPage page = doc.Pages.Add(); + //Creates a rectangle + RectangleF rectangle = new RectangleF(10, 40, 30, 30); + //Creates a new popup annotation. + PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(rectangle, "Test popup annotation"); + //Sets the custom icon name. + popupAnnotation.IconName = "Custom icon"; + //Saves the document to disk. + doc.Save("Output.pdf"); + doc.Close(true); + + + Dim doc As PdfDocument = New PdfDocument + Dim page As PdfPage = doc.Pages.Add + Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) + Dim popupAnnotation As PdfPopupAnnotation = New PdfPopupAnnotation(rectangle, "Test popup annotation") + 'Sets the custom icon name. + popupAnnotation..IconName = "Custom icon" + 'Saves the document to disk. + doc.Save("Output.pdf") + doc.Close(true) + + + + + + Initializes a new instance of the class. + + Inner color property is not applicable for popup annotation, and we cannot resize text annotations for standard popup icons. + + + //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. + + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + + + Flatten annotation Icon + + the annotation's subject text + + + + 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. + + + + + internal variable for Icon name to draw graphically + + + + + internal variable to width size for rubber stamp + + + + + internal variable to set rotation angle. + + + + + 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 + + + + Gets or sets appearance of the annotation. + + The object specifies the appearance of the annotaion. + + + //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 + + + + Gets the annotation reviews + + + + //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"; + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Text = "Hello PDF Comments"; + rubberstampAnnotation.ReviewHistory.Add(popup); + //Get Review history + PdfPopupAnnotationCollection reviewCollection = rubberstampAnnotation.ReviewHistory; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim rectangle As RectangleF = New RectangleF(40, 60, 80, 20) + Dim rubberstampAnnotation As PdfRubberStampAnnotation = New PdfRubberStampAnnotation(rectangle, " Text Rubber Stamp Annotation") + rubberstampAnnotation.Icon = PdfRubberStampAnnotationIcon.Draft + rubberstampAnnotation.Text = "Text Properties Rubber Stamp Annotation" + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + rubberstampAnnotation.ReviewHistory.Add(popup) + Dim reviewCollection As PdfPopupAnnotationCollection = rubberstampAnnotation.ReviewHistory + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Gets the annotation comments + + + + //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"; + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "Test Text"; + rubberstampAnnotation.Comments.Add(popupComments); + //Get annotation comments + PdfPopupAnnotationCollection commentsCollection = rubberstampAnnotation.Comments; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim rectangle As RectangleF = New RectangleF(40, 60, 80, 20) + Dim rubberstampAnnotation As PdfRubberStampAnnotation = New PdfRubberStampAnnotation(rectangle, " Text Rubber Stamp Annotation") + rubberstampAnnotation.Icon = PdfRubberStampAnnotationIcon.Draft + rubberstampAnnotation.Text = "Text Properties Rubber Stamp Annotation" + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "Test Text" + rubberstampAnnotation.Comments.Add(popupComments) + Dim commentsCollection As PdfPopupAnnotationCollection = rubberstampAnnotation.Comments + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Gets the ICON Name + + + + + Gets the background color for stamp + + + + + Gets the border color for stamp + + + + + Gets the Font + + + + + 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 a new instance of the class with specified bounds. + + The RectangleF structure that specifies the bounds of the annotation. + If set to true, the rectangle's bounds will be altered to account for rotation. + + + + Initializes annotation object. + + + + + Obtain the Icon name for the current stamp + + Icon name. + + + + + Obtain the background color for stamp + + Pdfcolor Type + + + + Obtain the border color for stamp + + Pdfcolor type + + + + Obtain Font to draw stamp + + Font type + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + + + Flatten annotation + + The page value. + The appearance value. + + + + Create appearance for annotation + + + + + + Create stamp appearance + + The template value. + + + + + Set default icon in annotation + + + + + Draw custom appearance + + The template value. + + + + + Draw Rubber stamp in graphics + + The graphics value. + The path value. + The border pen value. + The back brush value. + + + + Draw Rubber stamp in graphics + + The graphics value. + The border pen value. + The back brush value. + The font value. + The string format value. + + + + Set matrix for appearance + + The template value. + + + + Set CustomStamp icon in annotation + + + + + 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. + + + + + 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 + + + + Gets the annotation Reviews + + + + //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, @"decoded.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 review State + PdfPopupAnnotation popup = new PdfPopupAnnotation(); + popup.State = PdfAnnotationState.Accepted; + popup.StateModel = PdfAnnotationStateModel.Review; + popup.Text = "Hello PDF Comments"; + soundAnnotation.ReviewHistory.Add(popup); + //Get Review history + PdfPopupAnnotationCollection reviewCollection = soundAnnotation.ReviewHistory; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) + Dim soundAnnotation As PdfSoundAnnotation = New PdfSoundAnnotation(rectangle, "decoded.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 + Dim popup As PdfPopupAnnotation = New PdfPopupAnnotation + popup.State = PdfAnnotationState.Accepted + popup.StateModel = PdfAnnotationStateModel.Review + popup.Text = "Hello PDF Comments" + soundAnnotation.ReviewHistory.Add(popup) + Dim reviewCollection As PdfPopupAnnotationCollection = soundAnnotation.ReviewHistory + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + + Gets the annotation comments + + + + //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, @"decoded.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; + PdfPopupAnnotation popupComments = new PdfPopupAnnotation(); + popupComments.Author = "TestAuthor"; + popupComments.Text = "Test Text"; + soundAnnotation.Comments.Add(popupComments); + //Get annotation comments + PdfPopupAnnotationCollection commentsCollection = soundAnnotation.Comments; + //Saves the document to disk. + document.Save("Output.pdf"); + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) + Dim soundAnnotation As PdfSoundAnnotation = New PdfSoundAnnotation(rectangle, "decoded.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 + Dim popupComments As PdfPopupAnnotation = New PdfPopupAnnotation + popupComments.Author = "TestAuthor" + popupComments.Text = "Test Text" + soundAnnotation.Comments.Add(popupComments) + Dim commentsCollection As PdfPopupAnnotationCollection = soundAnnotation.Comments + 'Saves the document to disk. + document.Save("Output.pdf") + document.Close(true) + + + + + 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 + + + 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. + + + + + 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. + + + + + 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 + + + + 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. + + + + + 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. + + + + + Internal variable to store value whether AutoResizeText is enabled or not. + + + + + Internal variable to store value of signature field. + + + + + 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. + + + + + 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. + + + + + + Represents collection of widget annotations. + + + + + Internal variable to store array of anootation's primitives. + + + + + Gets the at the specified index. + + Annotation at the specified position. + + + + 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 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. + + + + + 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. + + + + Initializes a new instance of the class. + + + + + 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. + + + + + Gets or sets the width. + + The width. + + + + Gets or sets the style. + + The style. + + + + Initializes a new instance of the class. + + + + + Converts border style to string. + + The style. + + + + + Gets the element. + + + + + + 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. + + + + + Indicates Check popup annotation. + + + + + Indicates Circle popup annotation. + + + + + Indicates Cross popup annotation. + + + + + Indicates CrossHairs popup annotation. + + + + + Indicates RightArrow popup annotation. + + + + + Indicates RightPointer popup annotation. + + + + + Indicates Star popup annotation. + + + + + Indicates UpArrow popup annotation. + + + + + Indicates UpLeftArrow popup annotation. + + + + + Specifies the available styles for a 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 ,40 ,800 }; + //Create a polygon annotation. + PdfPolygonAnnotation polygonannotation = new PdfPolygonAnnotation(points, "Polygon Annotation"); + //Create pdf border Effect. + PdfBorderEffect borderEffect = new PdfBorderEffect(); + borderEffect.Style = PdfBorderEffectStyle.Cloudy; + borderEffect.Intensity = 1; + polygonannotation.BorderEffect = borderEffect; + //Add this annotation to a new page. + page.Annotations.Add(polygonannotation); + //Save the document to disk. + document.Save("Output.pdf"); + //close the document. + 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, 40, 800 } + 'Create a new Polygon annotation. + Dim polygonannotation As New PdfPolygonAnnotation(points, "Polygon Annotation") + 'Create pdf border Effect. + Dim borderEffect As New PdfBorderEffect() + borderEffect.Style = PdfBorderEffectStyle.Cloudy + borderEffect.Intensity=1; + polygonannotation.BorderEffect = borderEffect + 'Add this annotation to a new page. + page.Annotations.Add(polygonannotation) + 'Save the document to disk. + document.Save("Output.pdf") + 'close the document. + document.Close(True) + + + Default value is Solid. + Class + Class + Class + + + + A solid rectangle surrounding the annotation. + + + + + A cloudy rectangle surrounding the 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 + + + + + Indicates Completed rubber stamp annotation + + + + + Indicates void rubber stamp annotation + + + + + Indicates information only rubber stamp annotation + + + + + Indicates preliminary results 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 None + + + + + Indicates OpenArrow + + + + + Indicates ClosedArrow + + + + + Indicates ROpenArrow + + + + + Indicates RClosedArrow + + + + + Indicates Butt + + + + + Indicates Diamond + + + + + Indicates Circle + + + + + Indicates Square + + + + + 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. + + + + + Redaction 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 + + + + The annotation is intended to function as a callout. + + + + + The annotation is intended to function as a click-to-type or typewriter object. + + + + + The intent is not set. + + + + + Specifies the Measurement unit of the annotation. + + + + + Specifies the inch as the unit of measure. + + + + + Specifies the Measurement is in picas. A pica represents 12 points. + + + + + Specifies a printer's point (1/72 inch) as the unit of measure. + + + + + Specifies the Measurement is in centimeters. + + + + + Specifies the Measurement is in millimeters. + + + + + Specifies the Circle Measurement unit of the annotation. + + + + + Specifies the Measurement is in diameter. + + + + + Specifies the Measurement is in radius. + + + + + The number of degrees by which the annotation should be rotate + + + + + The annotation is rotated as 0 angle. + + + + + The annotation is rotated as 90 angle. + + + + + The annotation is rotated as 180 angle. + + + + + The annotation is rotated as 270 angle. + + + + + Specifies the content type of a rich media annotation. + + + + + Video type annotation. + + + + + Sound type annotation. + + + + + Specifies the activation mode of a rich media annotation. + + + + + Activates on page open. + + + + + Activates when the page is visible. + + + + + Activates explicitly by a user action or script. + + + + + Specifies the presentation style of a rich media annotation. + + + + + Displays the rich media content on the PDF page. + + + + + Displays the rich media content in a floating window. + + + + + Specifies the annotation type. + + + + + Highlight type annotation. + + + + + Underline type annotation. + + + + + StrikeOut type annotation. + + + + + Squiggly type annotation. + + + + + Redaction type annotation. + + + + + TextAnnotation type. + + + + + LinkAnnotation type. + + + + + DocumentLinkAnnotation type. + + + + + FileLinkAnnotation type. + + + + + FreeTextAnnotation type. + + + + + LineAnnotation type. + + + + + CircleAnnotation type. + + + + + Ellipse type. + + + + + SquareAnnotation type. + + + + + RectangleAnnotation type. + + + + + PolygonAnnotation type. + + + + + PolyLineAnnotation type. + + + + + TextMarkupAnnotation type. + + + + + CaretAnnotation type. + + + + + RubberStampAnnotation type. + + + + + PopupAnnotation type. + + + + + FileAttachmentAnnotation type. + + + + + SoundAnnotation type. + + + + + MovieAnnotation type. + + + + + ScreenAnnotation type. + + + + + WidgetAnnotation type. + + + + + PrinterMarkAnnotation type. + + + + + TrapNetworkAnnotation type. + + + + + WatermarkAnnotation type. + + + + + TextWebLinkAnnotation type. + + + + + InkAnnotation type. + + + + + RichMediaAnnotation type. + + + + + No annotation. + + + + + 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 + + + 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 + + + + + variable to store main object collection + + + + + varible to maintain attachment dictionary + + + + + 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. + + + + + Gets the internal variable to store internal array of attachments. + + + + + Add in the specified attachment collection. + + The which contains the file data. + The position of the inserted 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); + //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. + + + + 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. + + + + + Removing attachment dictionary and stream from main object collection + + The attachment dictionary value. + + + + Obtain Attachement relation ship + + The name value. + + + + + Gets the element. + + + + + Represents the loaded bookmark class. + + + This class is used to load the bookmarks from the PDF document. Please refer the UG docuemntation link for more details. + + //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 + + + + Initializes a new instance of the class. + + The dictionary. + The cross table. + + + + Gets or sets the outline destination. + + The object which is to be navigated. + + + //Load the PDF document. + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get all the bookmarks. + PdfBookmarkBase bookmarks = loadedDocument.Bookmarks; + //Get the first bookmark + PdfLoadedBookmark bookmark = bookmarks[0] as PdfLoadedBookmark; + //Get the destination + PdfDestination dest = bookmark.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 bookmarks. + Dim bookmarks As PdfBookmarkBase = loadedDocument.Bookmarks + 'get the bookmark count. + Dim count As Integer = bookmarks.Count + 'Get the first bookmark + Dim bookmark As PdfLoadedBookmark = TryCast(bookmarks(0), PdfLoadedBookmark) + 'Get the destination + Dim destination As PdfDestination = bookmark.Destination + 'Save and close the document + loadedDocument.Save("Output.pdf") + loadedDocument.Close(True) + + + Class + Class + Class + + + + Gets or sets the named destination for bookmarks. + + The object which is to be navigated. + + + //Load the PDF document. + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get all the bookmarks. + PdfBookmarkBase bookmarks = loadedDocument.Bookmarks; + PdfNamedDestination destination = new PdfNamedDestination("TOC"); + //Set the location + destination.Destination.Location = new PointF(0, 800); + //Set zoom factor to 400 percentage + destination.Destination.Zoom = 4; + //Add the named destination to the collection + loadedDocument.NamedDestinationCollection.Add(destination); + //Get the first bookmark + PdfLoadedBookmark bookmark = bookmarks[0] as PdfLoadedBookmark; + //Set the named destination to the bookmark. + bookmark.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 bookmarks. + Dim bookmarks As PdfBookmarkBase = loadedDocument.Bookmarks + Dim destination As PdfNamedDestination = New PdfNamedDestination("TOC") + destination.Destination = New PdfDestination(page) + 'Set the location + destination.Destination.Location = New PointF(0, 800) + 'Set zoom factor to 400 percentage + destination.Destination.Zoom = 4 + Add the named destination to the collection + loadedDocument.NamedDestinationCollection.Add(destination) + 'get the bookmark count. + Dim count As Integer = bookmarks.Count + 'Get the first bookmark + Dim bookmark As PdfLoadedBookmark = TryCast(bookmarks(0), PdfLoadedBookmark) + 'Set the named destination to the bookmark. + bookmark.NamedDestination = destination + 'Save and close the document + loadedDocument.Save("Output.pdf") + loadedDocument.Close(True) + + + Class + Class + Class + + + + 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 color of the bookmark title. + + The object which draws the outline of the bookmark title. + + + //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 style of the bookmark title. + + The enumeration value which selects the style of text for the bookmark title. + + + //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. + + + + + Gets the title. + + The title of the bookmark. + + + + Gets the unicodestring + + + + + 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. + + + + Check page have any rotation and set top value for bookmark destionation + + The page value. + The top value. + The left 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. + + + + + 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. + + + + Gets or sets the outline destination page. + + The object is to be navigated. + + + //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. + Class. + + + + Gets or sets the named destination in outline. + + The object is to be navigated. + + + //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"); + //Create a named destination. + PdfNamedDestination namedDestination = new PdfNamedDestination("Page 1"); + //Set the named destination location. + namedDestination.Destination = new PdfDestination(page, new PointF(100, 300)); + //Add the named destination + document.NamedDestinationCollection.Add(namedDestination); + //Set the named destination. + bookmark.NamedDestination = 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 bookmarks. + Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page") + 'Create a named destination. + Dim namedDestination As PdfNamedDestination = New PdfNamedDestination("Page 1") + 'Set the named destination location. + namedDestination.Destination = New PdfDestination(page, new PointF(100, 300)); + 'Add the named destination + document.NamedDestinationCollection.Add(namedDestination); + 'Set the named destination + bookmark.NamedDestination = namedDestination; + 'Save and close the PDF document. + document.Save("NamedDestination.pdf") + document.Close(True) + + + Class. + Class. + + + + 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 color of bookmark title. + + The which draws the outline of the bookmark title. + + + //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. + Class. + + + + Gets or sets the style of the outline title. + + The object which selects the text style of bookmark title > + + + //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. + Class. + + + + Gets or sets the action for the outline. + + + The works only when destination of bookmark is not set. + + + + //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; + //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 + '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 whether to expand the node or not. + + true If the bookmark is expandable , 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. + + + + Sets the parent. + + The parent. + + + + Updates the color. + + + + + Updates the outline text style. + + + + + 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. + + + + 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 + + + + + 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 + + The page bookmark value. + The bookmark value. + + + + Dispose 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 the element. + + + + + + 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 form field with appearance custom support. + + Class + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Page + The name. + + + + Gets the appearance.[Read-Only] + + The appearance. + + + + Saves an object. + + + + + Draws this instance if it is flatten. + + + + + Draws the appearance. + + The template. + + + + 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. + + + + + Gets or sets the complex script language support. + + /// + + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Add a new PDF page. + PdfPage page = document.Pages.Add(); + //Create font. + Font font = new Font("Tahoma", 10f); + //Create a new PDF font instance. + PdfFont pdfFont = new PdfTrueTypeFont(font, FontStyle.Regular, 10f, true, true); + //Create a new button field. + PdfButtonField buttonField = new PdfButtonField(page, "Click"); + //Set bounds + buttonField.Bounds = new RectangleF(0, 0, 300, 20); + //Set font. + buttonField.Font = pdfFont; + //Set text. + buttonField.Text = "เสนอ"; + //Enable complex script. + buttonField.ComplexScript = true; + //Add field to form. + document.Form.Fields.Add(buttonField); + document.Form.SetDefaultAppearance(false); + //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 new PDF page. + Dim page As PdfPage = document.Pages.Add() + 'Create font. + Dim font As New Font("Tahoma", 10F) + 'Create a new PDF font instance. + Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, FontStyle.Regular, 10F, True, True) + 'Create a new button field. + Dim buttonField As New PdfButtonField(page, "Click") + 'Set bounds + buttonField.Bounds = New RectangleF(0, 0, 300, 20) + 'Set font. + buttonField.Font = pdfFont + 'Set text. + buttonField.Text = "เสนอ" + 'Enable complex script. + buttonField.ComplexScript = True + 'Add field to form. + document.Form.Fields.Add(buttonField) + document.Form.SetDefaultAppearance(False) + 'Save the document. + document.Save("output.pdf") + 'Close the document. + document.Close(True) + + + + + + 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 + + + + 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. + + + + 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 documentation 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 + + + + 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 + + + + 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 + + + + Saves an instance. + + + + + Draws this instance if it is flatten. + + + + + Draws the appearance of the field. + + + + + 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. + + + + + 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. + + + + 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. + + + + + 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 + + + + 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. + + + + + Gets or sets the complex script language support. + + + + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Add a new PDF page. + PdfPage page = document.Pages.Add(); + //Create font. + Font font = new Font("Tahoma", 10f); + //Create a new PDF font instance. + PdfFont pdfFont = new PdfTrueTypeFont(font, FontStyle.Regular, 10f, true, true); + //Create a new combo box field. + PdfComboBoxField comboBox = new PdfComboBoxField(page, "combo"); + //Set bounds + comboBox.Bounds = new RectangleF(0, 0, 300, 20); + //Set font. + comboBox.Font = pdfFont; + //Add items. + comboBox.Items.Add(new PdfListFieldItem("สวัสดีชาวโลก", "One")); + comboBox.Items.Add(new PdfListFieldItem("สวัสดีชาวโลก", "Two")); + //Set selected index. + comboBox.SelectedIndex = 0; + //Enable complex script. + comboBox.ComplexScript = true; + //Add field to form. + document.Form.Fields.Add(comboBox); + document.Form.SetDefaultAppearance(false); + //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 new PDF page. + Dim page As PdfPage = document.Pages.Add() + 'Create font. + Dim font As New Font("Tahoma", 10F) + 'Create a new PDF font instance. + Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, FontStyle.Regular, 10F, True, True) + 'Create a new combo box field. + Dim comboBox As New PdfComboBoxField(page, "combo") + 'Set bounds + comboBox.Bounds = New RectangleF(0, 0, 300, 20) + 'Set font. + comboBox.Font = pdfFont + 'Add items. + comboBox.Items.Add(New PdfListFieldItem("สวัสดีชาวโลก", "One")) + comboBox.Items.Add(New PdfListFieldItem("สวัสดีชาวโลก", "Two")) + 'Set selected index. + comboBox.SelectedIndex = 0 + 'Enable complex script. + comboBox.ComplexScript = True + 'Add field to form. + document.Form.Fields.Add(comboBox) + document.Form.SetDefaultAppearance(False) + 'Save the document. + document.Save("output.pdf") + 'Close the document. + document.Close(True) + + + + + + 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 + + + + Draws this instance if it is flatten. + + + + + Initializes an instance. + + + + + Draws the appearance. + + The template. + + + + Gets the height of the font. + + The font fmaily name. + The calculated size of font. + + + + 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 + + + + + Indicates whether the field support complex script. + + + + + Indicates variable to store the PdfLayer map to the field + + + + + Internal variable to hold loaded signature item style field + + + + + The event will rise when form field properties have been changed. + + + + + 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. + + + + + 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 or sets the PdfLayer to the AcroForm 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(); + //Creates a PdfLayer + PdfLayer layer = document.Layers.Add("Hello"); + 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; + //Set layer to text box field + firstNameTextBox.Layer = layer; + 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() + 'Creates a PdfLayer + Dim layer As PdfLayer = document.Layers.Add("Hello") + 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 + 'Set layer to text box field + firstNameTextBox.Layer = layer + 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) + + + + + + Get the value associated with the specified key. + + The key value. + + + + PdfLoadedDocument ldoc = new PdfLoadedDocument("Form.pdf"); + PdfLoadedFormFieldCollection fields = ldoc.Form.Fields; + PdfLoadedTextBoxField textBox = fields[0] as PdfLoadedTextBoxField; + //Get the custom value + string author = textBox.GetValue("Author"); + ldoc.Close(true); + + + Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Form.pdf") + Dim fields As PdfLoadedFormFieldCollection = ldoc.Form.Fields + Dim textBox As PdfLoadedTextBoxField = CType(fields(0), PdfLoadedTextBoxField) + 'Get the custom value + Dim author As string = textBox.GetValue("Author") + ldoc.Close(true) + + + + + + Set the value associated with the specified key. + + The key value. + The value for set. + + + PdfLoadedDocument ldoc = new PdfLoadedDocument("Form.pdf"); + PdfLoadedFormFieldCollection fields = ldoc.Form.Fields; + PdfLoadedTextBoxField textBox = fields[0] as PdfLoadedTextBoxField; + //Set custom value + textBox.SetValue("Author", "John"); + ldoc.Save("result.pdf"); + ldoc.Close(true); + + + Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Form.pdf") + Dim fields As PdfLoadedFormFieldCollection = ldoc.Form.Fields + Dim textBox As PdfLoadedTextBoxField = CType(fields(0), PdfLoadedTextBoxField) + 'Set custom value + textBox.SetValue("Author", "John") + ldoc.Save("result.pdf") + ldoc.Close(true) + + + + + + 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. + + + + Obtain Document layer from AcroFrom + + + + + + Finds the excepted object with layer collection + + The layer collection value. + The expected object value. + The page value. + + + + Gets the element. + + + + + + Represents the collection of the PDF 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.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.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 + Class + Interface + + + + 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 + + + + 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. + + + + 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 + + The collection value. + The dub form name. + + + + 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 + + + + Clears the form field collection. + + + + //Load the PDF document. + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Form.pdf"); + //Get the field collections. + PdfFieldCollection fieldCollection = loadedDocument.Form.Fields; + //Clears the form field collection. + fieldCollection.Clear(); + //Save the document to disk. + loadedDocument.Save("Sample.pdf"); + //Close the document. + loadedDocument.Close(true); + + + 'Load the PDF document. + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + 'Get the field collections. + Dim fieldCollection As PdfFieldCollection = loadedDocument.Form.Fields + 'Clears the form field collection. + fieldCollection.Clear(); + 'Save the document to disk. + loadedDocument.Save("Sample.pdf") + 'Close the document. + loadedDocument.Close(true) + + + + + + Adds the specified field. + + The field. + The new page. + Index of added field. + + + + Add the specified XFA form fields + + The form value. + The sub form value. + + + + 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 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. + + + + + Indicate to m_enableXfaFormfill to fill support PdfLoadedXfaFormField with help of AcroFormAPI + + + + + Event. Rises when the formfields has been added. + + + + + Event. Rises when the formfields has been removed. + + + + + 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 + + + + XFA document + + + + + Gets or sets the complex script layout for form fields. + + + + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Add a new PDF page. + PdfPage page = document.Pages.Add(); + //Create font. + Font font = new Font("Tahoma", 10f); + //Create a new PDF font instance. + PdfFont pdfFont = new PdfTrueTypeFont(font, FontStyle.Regular, 10f, true, true); + //Create a new text box field. + PdfTextBoxField textBox = new PdfTextBoxField(page, "textBox"); + //Set bounds + textBox.Bounds = new RectangleF(0, 0, 300, 20); + //Set font. + textBox.Font = pdfFont; + //Set text. + textBox.Text = "สวัสดีชาวโลก"; + //Add field to form. + document.Form.Fields.Add(textBox); + //Enable complex script + document.Form.ComplexScript = true; + document.Form.SetDefaultAppearance(false) + //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 new PDF page. + Dim page As PdfPage = document.Pages.Add() + 'Create font. + Dim font As New Font("Tahoma", 10F) + 'Create a new PDF font instance. + Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, FontStyle.Regular, 10F, True, True) + 'Create a new text box field. + Dim textBox As New PdfTextBoxField(page, "textBox") + 'Set bounds + textBox.Bounds = New RectangleF(0, 0, 300, 20) + 'Set font. + textBox.Font = pdfFont + 'Set text. + textBox.Text = "สวัสดีชาวโลก" + 'Add field to form. + document.Form.Fields.Add(textBox) + 'Enable complex script + document.Form.ComplexScript = True + document.Form.SetDefaultAppearance(False) + 'Save the document. + document.Save("output.pdf") + 'Close the document. + document.Close(True) + + + + + + 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 + + + + PDF provides support to flatten a form field by removing the existing form field and replacing it with graphical objects that would resemble the form field and cannot be edited. + 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. + + + + + + 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. + + + + + Add Form field font resources to page font resources + + The field value. + + + + 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. + + + + + 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 + + + + Gets or sets the form. + + + + + 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. + + + + + 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 + + + + Gets or sets the complex script language support. + + + + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Add a new PDF page. + PdfPage page = document.Pages.Add(); + //Create font. + Font font = new Font("Tahoma", 10f); + //Create a new PDF font instance. + PdfFont pdfFont = new PdfTrueTypeFont(font, FontStyle.Regular, 10f, true, true); + //Create a new list box field. + PdfListBoxField listBoxField = new PdfListBoxField(page, "list1"); + //Set bounds + listBoxField.Bounds = new RectangleF(0, 0, 300, 20); + //Set font. + listBoxField.Font = pdfFont; + //Add items. + listBoxField.Items.Add(new PdfListFieldItem("สวัสดีชาวโลก", "One")); + listBoxField.Items.Add(new PdfListFieldItem("สวัสดีชาวโลก", "Two")); + //Set selected index. + listBoxField.SelectedIndex = new int[] {0}; + //Enable complex script. + listBoxField.ComplexScript = true; + //Add field to form. + document.Form.Fields.Add(listBoxField); + document.Form.SetDefaultAppearance(false) + //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 new PDF page. + Dim page As PdfPage = document.Pages.Add() + 'Create font. + Dim font As New Font("Tahoma", 10F) + 'Create a new PDF font instance. + Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, FontStyle.Regular, 10F, True, True) + 'Create a new list box field. + Dim listBoxField As New PdfListBoxField(page, "list1") + 'Set bounds + listBoxField.Bounds = New RectangleF(0, 0, 300, 20) + 'Set font. + listBoxField.Font = pdfFont + 'Add items. + listBoxField.Items.Add(New PdfListFieldItem("สวัสดีชาวโลก", "One")) + listBoxField.Items.Add(New PdfListFieldItem("สวัสดีชาวโลก", "Two")) + 'Set selected index. + listBoxField.SelectedIndex = New Integer() {0} + 'Enable complex script. + listBoxField.ComplexScript = True + 'Add field to form. + document.Form.Fields.Add(listBoxField) + document.Form.SetDefaultAppearance(False) + 'Save the document. + document.Save("output.pdf") + 'Close the document. + document.Close(True) + + + + + + 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 + + + + Draws this instance if it is flatten. + + + + + Initializes an instance. + + + + + Draws the appearance. + + The template. + + + + 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. + + + + + 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 + + + + + Draws this instance if it is flatten. + + + + + Initializes an instance. + + + + + Represents an item of the list 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 list box + PdfListBoxField listBox = new PdfListBoxField(page, "list1"); + //Add the field to list box. + 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; + //Gets the selected item + PdfListFieldItem selectedItem = listBox.SelectedItem; + MessageBox.Show("Selected Item text : " + selectedItem.Text); + MessageBox.Show("Selected Item value : " + selectedItem.Value); + 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 list box. + 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 + 'Gets the selected item + Dim selectedItem As PdfListFieldItem = listBox.SelectedItem + MessageBox.Show("Selected Item text : " + selectedItem.Text) + MessageBox.Show("Selected Item value : " + selectedItem.Value) + document.Save("Form.pdf") + document.Close(True) + + + Interface + 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 a new instance of the class with the specific text and value. + + The item text, it is displayed in the list. + The item value, it is exported when form content is exported. + + + //Create a new PDf 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")); + listBox.SelectedIndex = 0; + //Gets the selected item + PdfListFieldItem selectedItem = listBox.SelectedItem; + MessageBox.Show("Selected Item text : " + selectedItem.Text); + MessageBox.Show("Selected Item value : " + selectedItem.Value); + 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")) + listBox.SelectedIndex = 0 + 'Gets the selected item + Dim selectedItem As PdfListFieldItem = listBox.SelectedItem + MessageBox.Show("Selected Item text : " + selectedItem.Text) + MessageBox.Show("Selected Item value : " + selectedItem.Value) + document.Save("Form.pdf") + document.Close(True) + + + Class + Class + Class + + + + Gets or sets the text. + + The text of the list item 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(); + 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; + //Gets the selected item + PdfListFieldItem selectedItem = listBox.SelectedItem; + MessageBox.Show("Selected Item text : " + selectedItem.Text); + MessageBox.Show("Selected Item value : " + selectedItem.Value); + 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 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 + 'Gets the selected item + Dim selectedItem As PdfListFieldItem = listBox.SelectedItem + MessageBox.Show("Selected Item text : " + selectedItem.Text) + MessageBox.Show("Selected Item value : " + selectedItem.Value) + document.Save("Form.pdf") + document.Close(True) + + + Class + Class + Class + + + + Gets or sets the value. + + The value of the list item 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(); + 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; + //Gets the selected item + PdfListFieldItem selectedItem = listBox.SelectedItem; + MessageBox.Show("Selected Item text : " + selectedItem.Text); + MessageBox.Show("Selected Item value : " + selectedItem.Value); + 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 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 + 'Gets the selected item + Dim selectedItem As PdfListFieldItem = listBox.SelectedItem + MessageBox.Show("Selected Item text : " + selectedItem.Text) + MessageBox.Show("Selected Item value : " + selectedItem.Value) + document.Save("Form.pdf") + document.Close(True) + + + Class + Class + 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 + + + + + Event. Rises when the items has been added. + + + + + Event. Rises when the items has been added. + + + + + 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 + + + + 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 + + + + Adds the specified item in the collection. + + The object which to be added in the collection. + 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")); + 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")) + document.Save("Form.pdf") + document.Close(True) + + + 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 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. + + + + + Event. Rises when the items has been added. + + + + + Event. Rises when the items has been removed. + + + + + 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 + + + + 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 + + + + 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 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 + + + + 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 + + + + Draws this instance if it is flatten. + + + + + 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. + + + + Gets the form of the field.[Read-Only] + + The object 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); + // Gets the form + PdfForm form = employeesRadioList.Form; + 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) + ' Gets the form + Dim form As PdfForm = employeesRadioList.Form + document.Save("Form.pdf") + document.Close(True) + + + Class + Class + Class + Class + + + + 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 + + + + 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 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. + + + + Gets the appearance of the signature field.[Read-Only] + + The appearance. + + + + Saves an object. + + + + + Draws this instance if it is flatten. + + + + + Draws the appearance. + + The template. + + + + 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. + + + + + Ignore child cerificate in signature dictionary + + + + + 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. + + + + + 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 + + + + Initializes an instance. + + + + + Saves the signature. + + + + + Draws the field. + + + + + Draws the appearance. + + The template. + + + + Represents form's field with style parameters. + + Class + Class + Class + Class + + + + Internal variable to store color shift value. + + + + + Internal variable to store rotation 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. + + + + + Gets or sets the bounds of the field. + + The bounds. + + + + Gets and sets the rotation angle in the form fields. + + + + //create a new PDF document + PdfDocument document = new PdfDocument(); + //Add a new page to the PDF document. + PdfPage page = document.Pages.Add(); + //set the page rotation angle. + document.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle0; + //Create a textbox field and add the properties. + PdfTextBoxField textBoxField = new PdfTextBoxField(page, "FirstName"); + textBoxField.Bounds = new RectangleF(0, 40, 100, 20); + textBoxField.ToolTip = "First Name"; + //Gets and sets the rotation angle in the form fields. + textBoxField.RotationAngle = 90; + //add the field to the collection + document.Form.Fields.Add(textBoxField); + //enable or disable set appearance + document.Form.SetDefaultAppearance(true); + //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 a new page to the PDF document. + Dim page As PdfPage = document.Pages.Add() + 'set the page rotation angle. + document.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle0; + 'Create a textbox field and add the properties. + Dim textBoxField As PdfTextBoxField = New PdfTextBoxField(page, "FirstName") + textBoxField.ToolTip = "First Name"; + 'Gets and sets the rotation angle in the form fields. + textBoxField.RotationAngle = 90; + 'add the field to the collection + document.Form.Fields.Add(textBoxField) + 'enable or disable set appearance + document.Form.SetDefaultAppearance(True) + 'save the document + document.Save("Output.pdf") + 'close the document + document.Close(True) + + + /// The rotation angle value shall be a multiple of 90. Default value: 0. + + + + 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. + + + + 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. + + + + Initializes an instance. + + + + + Creates the border pen. + + + + + Creates the back brush. + + + + + Represents form's field with style parameters. + + Class + + + + Internal variable to store color shift value. + + + + + Internal variable to store rotation 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. + + + + + 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 and sets the Rotation angle in the form fields + + + + //create a new PDF document + PdfDocument document = new PdfDocument(); + //Add a new page to the PDF document. + PdfPage page = document.Pages.Add(); + //set the page rotation angle. + document.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle0; + //Create a textbox field and add the properties. + PdfTextBoxField textBoxField = new PdfTextBoxField(page, "FirstName"); + textBoxField.Bounds = new RectangleF(0, 40, 100, 20); + textBoxField.ToolTip = "First Name"; + //Gets and sets the rotation angle in the form fields. + textBoxField.RotationAngle = 90; + //add the field to the collection + document.Form.Fields.Add(textBoxField); + //enable or disable set appearance + document.Form.SetDefaultAppearance(true); + //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 a new page to the PDF document. + Dim page As PdfPage = document.Pages.Add() + 'set the page rotation angle. + document.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle0; + 'Create a textbox field and add the properties. + Dim textBoxField As PdfTextBoxField = New PdfTextBoxField(page, "FirstName") + textBoxField.ToolTip = "First Name"; + 'Gets and sets the rotation angle in the form fields. + textBoxField.RotationAngle = 90; + 'add the field to the collection + document.Form.Fields.Add(textBoxField) + 'enable or disable set appearance + document.Form.SetDefaultAppearance(True) + 'save the document + document.Save("Output.pdf") + 'close the document + document.Close(True) + + + /// The rotation angle value shall be a multiple of 90. Default value: 0. + + + + 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. + + + + 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. + + + + 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. + + + + + 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. + + + + + Internal variable to store value whether AutoResizeText is enable. + + + + + Gets or sets the complex script language support. + + + + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Add a new PDF page. + PdfPage page = document.Pages.Add(); + //Create font. + Font font = new Font("Tahoma", 10f); + //Create a new PDF font instance. + PdfFont pdfFont = new PdfTrueTypeFont(font, FontStyle.Regular, 10f, true, true); + //Create a new text box field. + PdfTextBoxField textBox = new PdfTextBoxField(page, "textBox"); + //Set bounds + textBox.Bounds = new RectangleF(0, 0, 300, 20); + //Set font. + textBox.Font = pdfFont; + //Set text. + textBox.Text = "สวัสดีชาวโลก"; + //Enable complex script. + textBox.ComplexScript = true; + //Add field to form. + document.Form.Fields.Add(textBox); + document.Form.SetDefaultAppearance(false) + //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 new PDF page. + Dim page As PdfPage = document.Pages.Add() + 'Create font. + Dim font As New Font("Tahoma", 10F) + 'Create a new PDF font instance. + Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, FontStyle.Regular, 10F, True, True) + 'Create a new text box field. + Dim textBox As New PdfTextBoxField(page, "textBox") + 'Set bounds + textBox.Bounds = New RectangleF(0, 0, 300, 20) + 'Set font. + textBox.Font = pdfFont + 'Set text. + textBox.Text = "สวัสดีชาวโลก" + 'Enable complex script. + textBox.ComplexScript = True + 'Add field to form. + document.Form.Fields.Add(textBox) + document.Form.SetDefaultAppearance(False) + 'Save the document. + document.Save("output.pdf") + 'Close the document. + document.Close(True) + + + + + + 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 + + + + Gets or sets a value indicating whether this is AutoResizeText. + + true if AutoResizeText 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(); + //Create a text box + PdfTextBoxField textBoxField = new PdfTextBoxField(page, "firstNameTextBox"); + textBoxField.AutoResizeText = true; + textBoxField.Flatten = false; + //Set text. + textBoxField.Text = "Syncfusion provides the best third-party UI components for WinForms, WPF, ASP.NET Web Forms, MVC, Core, UWP, WinUI (Preview), Xamarin, JavaScript"; + textBoxField.Bounds = new RectangleF(0, 0, 300, 20); + textBoxField.ToolTip = "Company Products"; + //Add the textbox in document + document.Form.Fields.Add(textBoxField); + 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 text box + Dim firstNameTextBox As textBoxField = New PdfTextBoxField(page, "firstNameTextBox") + textBoxField.AutoResizeText = true + textBoxField.Flatten = false + //Set text. + textBoxField.Text = "Syncfusion provides the best third-party UI components for WinForms, WPF, ASP.NET Web Forms, MVC, Core, UWP, WinUI (Preview), Xamarin, JavaScript" + textBoxField.Bounds = New RectangleF(100, 20, 200, 20) + textBoxField.ToolTip = "Company Products" + 'Add the textbox in document + document.Form.Fields.Add(firstNameTextBox) + document.Save("Form.pdf") + document.Close(True) + + + Class + Class + Class + + + + 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. + + + + Sets the fitting font size + + The PaintParams. + The text of the TextBoxField. + + + + 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. + + + + + A dotted rectangle surrounding the annotation. + + + + + 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. + + + + + Indicates form fields as hidden but printable. + + + + + Represents specification of embedded file. + + + + + Internal variable to store description. + + + + + Embedded file instance. + + + + + Dictionary to store file specification properties. + + + + + PortfolioAttributes instance. + + + + + Represent file relationship. + + + + file name + + + Name of the file. + The data. + + + Name of the file. + The stream. + + + + + + + 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. + + + + Get or set the file relationship + + + + //Creates a new PDF document. + PdfDocument doc = new PdfDocument(PdfConformanceLevel.Pdf_A3B); + //Add a page. + PdfPage page = doc.Pages.Add(); + //Set the ZugferdProfile. + doc.ZugferdConformanceLevel = ZugferdConformanceLevel.Basic; + //Create the PdfTrueTypeFont + PdfFont font = new PdfTrueTypeFont(new Font("arial", 12f, FontStyle.Regular), true); + page.Graphics.DrawString("Hello World", font, PdfBrushes.Black, PointF.Empty); + //Creates an attachment + PdfAttachment attachment = new PdfAttachment("ZUGFeRD-invoice.xml"); + //Set the file relationship + attachment.Relationship = PdfAttachmentRelationship.Alternative; + attachment.ModificationDate = DateTime.Now; + attachment.Description = "About Syncfusion"; + attachment.MimeType = "application/xml"; + //add attachment to the doucment + doc.Attachments.Add(attachment); + doc.Save("output.pdf"); + + + 'Creates a new PDF document. + Dim doc As New PdfDocument(PdfConformanceLevel.Pdf_A3B) + 'Add a page. + Dim page As PdfPage = doc.Pages.Add() + 'Set the ZugferdProfile. + doc.ZugferdConformanceLevel = ZugferdConformanceLevel.Basic + 'Create the PdfTrueTypeFont + Dim font As PdfFont = New PdfTrueTypeFont(New Font("arial", 12F, FontStyle.Regular), True) + page.Graphics.DrawString("Hello World", font, PdfBrushes.Black, PointF.Empty) + 'Creates an attachment + Dim attachment As New PdfAttachment("ZUGFeRD-invoice.xml") + 'Set the file relationship + attachment.Relationship = PdfAttachmentRelationship.Alternative + attachment.ModificationDate = DateTime.Now + attachment.Description = "About Syncfusion" + attachment.MimeType = "application/xml" + 'add attachment to the doucment + doc.Attachments.Add(attachment) + doc.Save("output.pdf") + + + + + + Initializes instance. + + + + + Saves object state. + + + + + Represents base class for file specification objects. + + + + + Internal variable to store dictionary. + + + + Name of the file. + + + + Gets or sets the name of the file. + + The name of the file. + + + + Gets the dictionary. + + The dictionary. + + + + 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 the element. + + + + + + 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. + + + + + 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. + + + + Returns a that represents the current . + + + A that represents the current . + + + + + Represents an anchor in the document where bookmarks or annotations can direct when clicked. + + We can set the destination page for bookmarks or annotation using this class.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 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 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") + 'Create the destination. + Dim destination As PdfDestination = New PdfDestination(page) + 'Set the destination location. + 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. + + + + 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. + + + + 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 the page index of bookmark destination + + + + //Loads the PDF document. + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Gets all the bookmarks. + PdfBookmarkBase bookmarks = document.Bookmarks; + //Gets the first bookmark and changes the properties of the bookmark. + PdfLoadedBookmark bookmark = bookmarks[0] as PdfLoadedBookmark; + //int pageIndex = bookmark.Destination.PageIndex; + //Saves the document + document.Save("Output.pdf"); + document.Close(true); + + + 'Loads the PDF document. + Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + 'Gets all the bookmarks. + Dim bookmarks As PdfBookmarkBase = document.Bookmarks + 'Gets the first bookmark and changes the properties of the bookmark. + Dim bookmark As PdfLoadedBookmark = TryCast(bookmarks(0), PdfLoadedBookmark) + Dim pageIndex As Integer = bookmark.Destination.PageIndex + 'Saves the document. + document.Save("Output.pdf") + document.Close(True) + + + + + + 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. + + + + 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 pdf primitive representing this object. + + + + + 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. + + + + + 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. + + + + Handles the BeginSave event of the Stream control. + + The source of the event. + The instance containing the event data. + + + + Saves an instance. + + + + + Gets the element. + + + + + + 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. + + + + + 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. + + + + + 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 + + + + NameChanged event handler. + + New name of the field. + + + + Raises when user manualy chages the name of the field. + + + + + Represents the Form field identifier + + + + + Cross Table. + + + + + Indicates was field changed or not. + + + + + Represents index used to default annotation. + + + + + Represents the Annotation identifier + + + + + It represents the loaded Popup annotation + + + + + It represents the annotation type + + + + + Flag represents created date is retrieved or not + + + + + It represents the annotation creation date + + + + + Gets the creation date. + + The creation date. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Gets the annotation from loaded document. + PdfLoadedAnnotation loadedAnnotation = document.Pages[0].Annotations[0] as PdfLoadedAnnotation; + //Gets the creation date. + DateTime creationDate = loadedAnnotation.CreationDate; + //Save the document. + document.Save("output.pdf"); + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Gets the annotation from loaded document. + Dim loadedAnnotation As PdfLoadedAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedAnnotation) + 'Gets the creation date. + DateTime creationDate = loadedAnnotation.CreationDate; + 'Save the document. + document.Save("output.pdf") + document.Close(True) + + + + + + Gets the annotation type. + + The annotation type. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Gets the annotation from loaded document. + PdfLoadedAnnotation loadedAnnotation = document.Pages[0].Annotations[0] as PdfLoadedAnnotation; + //Gets the annotation type. + PdfLoadedAnnotationType annotationType = loadedAnnotation.Type; + //Save the document. + document.Save("output.pdf"); + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Gets the annotation from loaded document. + Dim loadedAnnotation As PdfLoadedAnnotation = TryCast(document.Pages(0).Annotations(0), PdfLoadedAnnotation) + 'Gets the annotation type. + PdfLoadedAnnotationType annotationType = loadedAnnotation.Type + 'Save the document. + document.Save("output.pdf") + document.Close(True) + + + + + + Gets or sets the changed. + + + + + Gets or sets the cross table. + + + + + Gets or Sets Loaded Popup Annotation + + + + + Initializes a new instance of the class. + + The dictionary. + 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) + + + + + + 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) + + + + + + Gets the values associated with the specified key. + + The name value. + + + + + Set the values associated with the specified key. + + The key value. + The value for set. + + + PdfLoadedDocument ldoc = new PdfLoadedDocument("WF_48044_Annotation.pdf"); + PdfLoadedPage lpage = ldoc.Pages[0] as PdfLoadedPage; + PdfLoadedAnnotationCollection annots = lpage.Annotations; + PdfLoadedCircleAnnotation Icircle = annots[64] as PdfLoadedCircleAnnotation; + //Get the author + string author = Icircle.Author; + PdfLoadedPopupAnnotationCollection collection = Icircle.ReviewHistory; + PdfLoadedPopupAnnotationCollection collectionComments = Icircle.Comments; + PdfLoadedPopupAnnotation annotation = collection[1] as PdfLoadedPopupAnnotation; + //Set Unknown state and model + annotation.SetValues("State", "StateModel"); + annotation.SetValues("StateModel", "CustomState"); + ldoc.Save("result.pdf"); + + + Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("WF_48044_Annotation.pdf") + Dim lpage As PdfLoadedPage = CType(ldoc.Pages(0), PdfLoadedPage) + Dim annots As PdfLoadedAnnotationCollection = lpage.Annotations + Dim Icircle As PdfLoadedCircleAnnotation = CType(annots(64), PdfLoadedCircleAnnotation) + Dim author As String = Icircle.Author + Dim collection As PdfLoadedPopupAnnotationCollection = Icircle.ReviewHistory + Dim collectionComments As PdfLoadedPopupAnnotationCollection = Icircle.Comments + Dim annotation As PdfLoadedPopupAnnotation = CType(collection(1), PdfLoadedPopupAnnotation) + 'Set Unknown state and model + annotation.SetValues("State", "StateModel") + annotation.SetValues("StateModel", "CustomState") + ldoc.Save("result.pdf") + + + + + + 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. + + + + Get Annotation creation date + + + + + + Aplies field name + + specified field name + + + + Begins the save. + + + + + Exports the form fields. + + Stream. + Object identifier. + + + + Gets loadedannotation is Popup or not + + + + + Validates whether annotation is Popup or not and supported Popup + + The dictionary value. + + + + + 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 + + + + Gets the annotation review history. + + The review collection of the attachment annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfAttachmentAnnotation + PdfLoadedAttachmentAnnotation attachment = document.Pages[0].Annotations[0] as PdfLoadedAttachmentAnnotation; + //Get the review collection + PdfLoadedPopupAnnotationCollection reviewCollection = attachment.ReviewHistory; + //save the document + document.Save("AttachmentAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfAttachmentAnnotation + Dim attachment As PdfLoadedAttachmentAnnotation = document.Pages(0).Annotations(0) + 'Get the review collection + Dim reviewCollection As PdfLoadedPopupAnnotationCollection = attachment.ReviewHistory + 'save the document + document.Save("AttachmentAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Gets the annotation Comments history. + + The Comments collection of the attachment annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfAttachmentAnnotation + PdfLoadedAttachmentAnnotation attachment = document.Pages[0].Annotations[0] as PdfLoadedAttachmentAnnotation; + //Get the Comments collection + PdfLoadedPopupAnnotationCollection CommentsCollection = attachment.Comments; + //save the document + document.Save("AttachmentAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfAttachmentAnnotation + Dim attachment As PdfLoadedAttachmentAnnotation = document.Pages(0).Annotations(0) + 'Get the Comments collection + Dim CommentsCollection As PdfLoadedPopupAnnotationCollection = attachment.Comments + 'save the document + document.Save("AttachmentAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + 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) + + + + + + Initializes a new instance of the class. + + The dictionary. + The cross table. + The rectangle + The text + + + + Gets the Icon + + + + + Flatten annotation without calling save method. + + + + + 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 + + + + + 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 + + + + 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 + + + + Flatten annotation without calling save method. + + + + + 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 + + + + + + //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) + + + + + + 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 + + + + Flatten annotation without calling save method. + + + + + 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 + + + + Gets or sets value that indicates the vertical distance between the baselines of adjacent lines of text. + + Default value is 0. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfFreeTextAnnotation + PdfLoadedFreeTextAnnotation free = document.Pages[0].Annotations[0] as PdfLoadedFreeTextAnnotation; + //Set the LineSpacing + free.LineSpacing = 5.5f; + free.SetAppearance(true); + //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) + 'Set the LineSpacing + free.LineSpacing = 5.5f + free.SetAppearance(True) + 'save the document + document.Save("FreetextAnnotation.pdf") + document.Close(True) + + + + + + Gets the annotation review history. + + The review collection 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 review collection + PdfLoadedPopupAnnotationCollection reviewCollection = free.ReviewHistory; + foreach (PdfLoadedPopupAnnotation popup in reviewCollection){ + //Gets the annotation state + PdfAnnotationState state = popup.AnnotationState; + //Gets the annotation state model + PdfAnnotationStateModel model = popup.AnnotationStateModel; + } + //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 review collection + Dim reviewCollection As PdfLoadedPopupAnnotationCollection = free.ReviewHistory + For Each popup As PdfLoadedPopupAnnotation In reviewCollection + 'Get the annotation state + Dim state As PdfAnnotationState = popup.AnnotationState + 'Get the annotation state model + Dim model As PdfAnnotationStateModel = popup.AnnotationStateModel + Next + 'save the document + document.Save("FreetextAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Gets the annotation Comments history. + + The Comments collection 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 Comments collection + PdfLoadedPopupAnnotationCollection CommentsCollection = free.Comments; + foreach (PdfLoadedPopupAnnotation popup in reviewCollection){ + //Gets the annotation state + PdfAnnotationState state = popup.AnnotationState; + //Gets the annotation state model + PdfAnnotationStateModel model = popup.AnnotationStateModel; + } + //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 Comments collection + Dim CommentsCollection As PdfLoadedPopupAnnotationCollection = free.Comments + For Each popup As PdfLoadedPopupAnnotation In reviewCollection + 'Get the annotation state + Dim state As PdfAnnotationState = popup.AnnotationState + 'Get the annotation state model + Dim model As PdfAnnotationStateModel = popup.AnnotationStateModel + Next + 'save the document + document.Save("FreetextAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + //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 + + + + Gets or sets whether getting text from stream + + + + + //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 + + + + Gets or sets the complex script to add different languages texts in 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; + //Set the Complex script + free.ComplexScript = true; + //Set the text + free.Text = "पत्र‍ांक दिनांक"; + //Set Appearance + free.SetAppearance(true); + //Set the font + free.Font = new PdfTrueTypeFont(new Font("Nirmala UI", 14), true); + //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) + 'Set the Complex script + free.ComplexScript = True + 'Set the text + free.Text = "पत्र‍ांक दिनांक" + 'Set Appearance + free.SetAppearance(True) + //Set the font + free.Font = New PdfTrueTypeFont(New Font("Nirmala UI", 14), True) + 'save the document + document.Save("FreetextAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + //Gets or sets the text alignment to free text annotations. + + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfFreeTextAnnotation + PdfLoadedFreeTextAnnotation free = document.Pages[0].Annotations[0] as PdfLoadedFreeTextAnnotation; + //Sets the text alignment of the text annotation. + free.TextAlignment = PdfTextAlignment.Right; + free.setAppearance(true); + //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) + 'Sets the text alignment of the text annotation. + free.TextAlignment = PdfTextAlignment.Right + free.setAppearance(true) + 'save the document + document.Save("FreetextAnnotation.pdf") + 'Close the document + document.Close(True) + + + + + + //Gets or sets the text direction to 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; + //Sets the text alignment of the text annotation. + free.TextAlignment = PdfTextAlignment.Right; + free.TextDirection = PdfTextDirection.RightToLeft; + free.setAppearance(true); + //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) + 'Sets the text alignment of the text annotation. + free.TextAlignment = PdfTextAlignment.Right + free.TextDirection = PdfTextDirection.RightToLeft + free.setAppearance(true) + 'save the document + document.Save("FreetextAnnotation.pdf") + 'Close the document + document.Close(True) + + + + + + Gets the fonts from annotation appearance. + + + + //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 fonts from the free text annotation appearance + List<PdfFont> fonts = free.GetFontsFromAppearance(); + //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 fonts from the free text annotation appearance + Dim fonts As List(Of PdfFont) = free.GetFontsFromAppearance() + 'save the document + document.Save("FreetextAnnotation.pdf") + document.Close(True) + + + Class + Class + Class + + + + function :GetFontDetais + To call function update font details on Font type,size and colour using ContentParser from APContent stream + + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + + + Flatten annotation + + The page value. + The appearance value. + + + + Create annotation appearance + + + + + + Draw arrow for callout line + + The paint params value. + The graphics value. + The border pen value. + + + + Draw Free text annotation appearance + + The rectangle value. + The graphics value. + The paint params value. + + + + Obtain style from annotation + + The border pen value. + The rectangle value. + The border width value. + + + + + Calculate arrow points + + The starting point value. + The end point value. + + + + + Obtain appearance bounds for free text annotation + + + + + + Expand appearance bounds + + The point array value. + + + + Draw Free text rectangle + + The graphics value. + The paint params value. + The rectangle value. + + + + Draw Free mark text in appearance + + The graphics value. + The paint params value. + The rectangle value. + + + + Set rectangle differance + + The inner rectangle value. + + + + Draw Callouts line for annotation + + The graphics value. + The border pen value. + + + + Clone Callout lines + + + + + + Gets the textAlignment to freetext annotation + + + + + 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 + + + + + Border line width + + + + + Indicate the border Dictionary + + + + + Indicat the border style + + + + + Gets the annotation review history. + + The review collection of the ink annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfinkAnnotation + PdfLoadedInkAnnotation ink = document.Pages[0].Annotations[0] as PdfLoadedInkAnnotation; + //Get the review collection + PdfLoadedPopupAnnotationCollection reviewCollection = ink.ReviewHistory; + //save the document + document.Save("InkAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfInkAnnotation + Dim ink As PdfLoadedInkAnnotation = document.Pages(0).Annotations(0) + 'Get the review collection + Dim reviewCollection As PdfLoadedPopupAnnotationCollection = ink.ReviewHistory + 'save the document + document.Save("InkAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Gets the annotation comments history. + + The Comments collection of the ink annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfinkAnnotation + PdfLoadedInkAnnotation ink = document.Pages[0].Annotations[0] as PdfLoadedInkAnnotation; + //Get the comments collection + PdfLoadedPopupAnnotationCollection commentsCollection = ink.Comments; + //save the document + document.Save("InkAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfInkAnnotation + Dim ink As PdfLoadedInkAnnotation = document.Pages(0).Annotations(0) + 'Get the comments collection + Dim commentsCollection As PdfLoadedPopupAnnotationCollection = ink.Comments + 'save the document + document.Save("InkAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Get or sets the Path of the 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; + inkAnnotation.Color = new PdfColor(Color.Red); + //Save the document to disk. + document.Save("InkAnnot.pdf"); + //Close the document. + 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") + 'Close the document. + document.Close(True) + + + Class + Class + + + + 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 + + + + Gets or sets the border line width of an ink annotation. + + + + + 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 + + + + 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 Dash array value + + The dashArray + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + + + Create appearance for annotation + + + + + + Flatten annotation + + The page value. + The appearance value. + + + + Add ink points + + + + + 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. + + + + + 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. + + + + + Internal variable to store field's font. + + + + + Gets the annotation review history. + + The review collection of the line annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfLineAnnotation + PdfLoadedLineAnnotation line = document.Pages[0].Annotations[0] as PdfLoadedLineAnnotation; + //Get the review collection + PdfLoadedPopupAnnotationCollection reviewCollection = line.ReviewHistory; + //save the document + document.Save("LineAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfFreeTextAnnotation + Dim line As PdfLoadedLineAnnotation = document.Pages(0).Annotations(0) + 'Get the review collection + Dim reviewCollection As PdfLoadedPopupAnnotationCollection = line.ReviewHistory + 'save the document + document.Save("LineAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Gets the annotation Comments history. + + The Comments collection of the line annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfLineAnnotation + PdfLoadedLineAnnotation line = document.Pages[0].Annotations[0] as PdfLoadedLineAnnotation; + //Get the Comments collection + PdfLoadedPopupAnnotationCollection CommentsCollection = line.Comments; + //save the document + document.Save("LineAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfFreeTextAnnotation + Dim line As PdfLoadedLineAnnotation = document.Pages(0).Annotations(0) + 'Get the Comments collection + Dim CommentsCollection As PdfLoadedPopupAnnotationCollection = line.Comments + 'save the document + document.Save("LineAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + 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 or sets the leader offset 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 Offset + lineAnnotation.LeaderOffset = 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 Offset + lineAnnotation.LeaderOffset = 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 + + + + 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 leader offset of the annotation. + + The leader offset. + + + + 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. + + + + Get the Line Intent Text. + + Line Intent Text + Line Intent Text + + + + Flatten annotation without calling save method. + + + + + Saves an annotation . + + + + + Flatten annotation + + The page value. + The appearance value. + + + + Obtain Line Bounds + + + + + + Create appearance for annotation + + + + + + 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. + formats + + //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. + + + + + Indicate annotation state + + + + + Indicate annotation state model + + + + + Indicate the custom icon name + + + + + Gets the annotation review history. + + The review collection of the popup annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfPopupAnnotation + PdfLoadedPopupAnnotation popup = document.Pages[0].Annotations[0] as PdfLoadedPopupAnnotation; + //Get the review collection + PdfLoadedPopupAnnotationCollection reviewCollection = popup.ReviewHistory; + //save the document + document.Save("PopupAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfPopupAnnotation + Dim popup As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0) + 'Get the review collection + Dim reviewCollection As PdfLoadedPopupAnnotationCollection = popup.ReviewHistory + 'save the document + document.Save("PopupAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Gets the annotation Comments history. + + The Comments collection of the popup annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfPopupAnnotation + PdfLoadedPopupAnnotation popup = document.Pages[0].Annotations[0] as PdfLoadedPopupAnnotation; + //Get the Comments collection + PdfLoadedPopupAnnotationCollection CommentsCollection = popup.Comments; + //save the document + document.Save("PopupAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfPopupAnnotation + Dim popup As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0) + 'Get the Comments collection + Dim CommentsCollection As PdfLoadedPopupAnnotationCollection = popup.Comments + 'save the document + document.Save("PopupAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Get or sets the annotation State. + + + + //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 review collection + PdfLoadedPopupAnnotationCollection reviewCollection = free.ReviewHistory; + foreach (PdfLoadedPopupAnnotation popup in reviewCollection){ + //Gets the annotation state + PdfAnnotationState state = popup.AnnotationState; + //Gets the annotation state model + PdfAnnotationStateModel model = popup.AnnotationStateModel; + } + //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 review collection + Dim reviewCollection As PdfLoadedPopupAnnotationCollection = free.ReviewHistory + For Each popup As PdfLoadedPopupAnnotation In reviewCollection + 'Get the annotation state + Dim state As PdfAnnotationState = popup.AnnotationState + 'Get the annotation state model + Dim model As PdfAnnotationStateModel = popup.AnnotationStateModel + Next + 'save the document + document.Save("FreetextAnnotation.pdf") + 'Close the document. + document.Close(True) + + + + + + Get or sets the annotation State Model. + + + + //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 review collection + PdfLoadedPopupAnnotationCollection reviewCollection = free.ReviewHistory; + foreach (PdfLoadedPopupAnnotation popup in reviewCollection){ + //Gets the annotation state + PdfAnnotationState state = popup.AnnotationState; + //Gets the annotation state model + PdfAnnotationStateModel model = popup.AnnotationStateModel; + } + //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 review collection + Dim reviewCollection As PdfLoadedPopupAnnotationCollection = free.ReviewHistory + For Each popup As PdfLoadedPopupAnnotation In reviewCollection + 'Get the annotation state + Dim state As PdfAnnotationState = popup.AnnotationState + 'Get the annotation state model + Dim model As PdfAnnotationStateModel = popup.AnnotationStateModel + Next + 'save the document + document.Save("FreetextAnnotation.pdf") + 'Close the document. + document.Close(True) + + + + + + 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) + + + + + + Gets or sets the pop-up icon name to the text annotation. + + UTF-8 text will not be supported in icon names. + + + //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; + //get the PDF popup icon + string iconName = popupAnnotation.IconName; + //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 + Dim iconName As String = popupAnnotation.IconName + 'Save the document. + document.Save("popupAnnotation.pdf") + document.Close(True) + + + + + + Initializes a new instance of the class. + + The dictionary. + The cross table. + The rectangle + The text + + + + Gets the custom icon of the annotation. + + + + + Gets the boolean value ( if it's true popup window is opened otherwise closed. + + + + + + Gets the popup icon type. + + + + + + Flatten annotation without calling save method. + + + + + Saves an annotation. + + + + + Set the popup comment window bounds + + The bounds of the popup comment window. + + + + Modify popup annotation appearance + + + + + 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. + + + + + internal variable for Icon name to draw graphically + + + + + internal variable to store rotation value, if page have rotation + + + + + internal variable to width size for rubber stamp + + + + + boolean variable indicates need to create appearance for Standard ICON + + + + + internal variable to set rotation angle. + + + + + Gets the annotation review history. + + The review collection of the rubber stamp annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfRubberStampAnnotation + PdfLoadedRubberStampAnnotation rubber = document.Pages[0].Annotations[0] as PdfLoadedRubberStampAnnotation; + //Get the review collection + PdfLoadedPopupAnnotationCollection reviewCollection = rubber.ReviewHistory; + //save the document + document.Save("PdfRubberStampAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfRubberStampAnnotation + Dim rubber As PdfLoadedRubberStampAnnotation = document.Pages(0).Annotations(0) + 'Get the review collection + Dim reviewCollection As PdfLoadedPopupAnnotationCollection = rubber.ReviewHistory + 'save the document + document.Save("PdfRubberStampAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Gets the annotation Comments history. + + The Comments collection of the rubber stamp annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfRubberStampAnnotation + PdfLoadedRubberStampAnnotation rubber = document.Pages[0].Annotations[0] as PdfLoadedRubberStampAnnotation; + //Get the Comments collection + PdfLoadedPopupAnnotationCollection CommentsCollection = rubber.Comments; + //save the document + document.Save("PdfRubberStampAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfRubberStampAnnotation + Dim rubber As PdfLoadedRubberStampAnnotation = document.Pages(0).Annotations(0) + 'Get the Comments collection + Dim CommentsCollection As PdfLoadedPopupAnnotationCollection = rubber.Comments + 'save the document + document.Save("PdfRubberStampAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + 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) + + + + + + Gets the background color for stamp + + + + + Gets the border color for stamp + + + + + Gets the Font to draw ICON + + + + + Initializes a new instance of the class. + + The dictionary. + The cross table. + The rectangle + The text + + + + Returns an array of Image objects that represent the images associated with the rubber stamp annotation. + + An array of Image objects that represent the images associated with the rubber stamp annotation. + + + //Load the existing PDF document. + PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); + //Get the existing PDF page. + PdfLoadedPage lpage = ldoc.Pages[0] as PdfLoadedPage; + //Get the existing rubber stamp annotation. + PdfLoadedRubberStampAnnotation rubberStampAnnotation = lpage.Annotations[0] as PdfLoadedRubberStampAnnotation; + //Get the custom images used for the rubber stamp annotation. + Image[] images = rubberStampAnnotation.GetImages(); + //Close the PDF document. + ldoc.Close(true); + + + 'Load the existing PDF document. + Dim ldoc As New PdfLoadedDocument("input.pdf") + 'Get the existing PDF page. + Dim lpage As PdfLoadedPage = TryCast(ldoc.Pages(0), PdfLoadedPage) + 'Get the existing rubber stamp annotation. + Dim rubberStampAnnotation As PdfLoadedRubberStampAnnotation = TryCast(lpage.Annotations(0), PdfLoadedRubberStampAnnotation) + 'Get the custom images used for the rubber stamp annotation. + Dim images As Image() = rubberStampAnnotation.GetImages() + 'Close the PDF document. + ldoc.Close(True) + + + + + + Gets the popup icon type. + + + + + + Gets the popup icon name + + Icon name + Icon type + + + + Obtain the background color for stamp + + PdfColor type + + + + Obtain the border color for stamp + + PdfColor type + + + + + Flatten annotation without calling save method. + + + + + Saves an Annotation + + + + + Flatten annotation + + The page value. + The appearance value. + + + + Flatten annotation appearance + + The appearance value. + The is normal matrix value. + + + + Create appearance for annotation + + + + + + Creates a PdfTemplate for the appearance of a rubber stamp annotation in a PDf document + + + A PdfTemplate representing the visual appearance of the rubber stamp annotation + + + + + Create standard stamp appearance + + The template value. + + + + + Draw rubber stamp + + The graphics value. + The path value. + The border pen value. + The back brush value. + + + + Draw rubber stamp + + The graphics value. + The border pen value. + The back brush value. + The font value. + The string format value. + + + + Modify rubber stamp appearance + + + + + Set matrix for annotation appearance + + The template value. + + + + 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 annotation review history. + + The review collection of the sound annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfSoundAnnotation + PdfLoadedSoundAnnotation sound = document.Pages[0].Annotations[0] as PdfLoadedSoundAnnotation; + //Get the review collection + PdfLoadedPopupAnnotationCollection reviewCollection = sound.ReviewHistory; + //save the document + document.Save("PdfSoundAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfSoundAnnotation + Dim sound As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0) + 'Get the review collection + Dim reviewCollection As PdfLoadedPopupAnnotationCollection = sound.ReviewHistory + 'save the document + document.Save("PdfSoundAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Gets the annotation Comments history. + + The Comments collection of the sound annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfSoundAnnotation + PdfLoadedSoundAnnotation sound = document.Pages[0].Annotations[0] as PdfLoadedSoundAnnotation; + //Get the Comments collection + PdfLoadedPopupAnnotationCollection CommentsCollection = sound.Comments; + //save the document + document.Save("PdfSoundAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfSoundAnnotation + Dim sound As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0) + 'Get the Comments collection + Dim CommentsCollection As PdfLoadedPopupAnnotationCollection = sound.Comments + 'save the document + document.Save("PdfSoundAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + 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); + + + + + + 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 + + + + Flatten annotation without calling save method. + + + + + 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) + + + + + + Indicates Load review history + + + + + 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 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) + + + + + + Get whether border is present or not. + + + + + Gets the Annotation state. + + The state. + + + + Gets the Annotation state model. + + The state model. + + + + Gets the text. + + The text. + + + + Gets the Author. + + The Author. + + + + Gets the Subject. + + The Subject. + + + + Gets the ModifiedDate. + + The ModifiedDate. + + + + 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 + + The graphics value. + The radius value. + The overlap value. + The points value. + + + + Obtain annotation need flatten + + + + + Flatten annotation template + + The page value. + The appearance value. + + + + Obtain layer graphics + + + + + Validate template matrix have any transformation + + The dictionary value. + The bounds value. + + + + + Get the border dtyle + + The Line border style + + + + get the Line style + + The border style value. + The line Style + + + + 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 + + The color string value. + + + + + Get the popup bounds + + returns the popup window bounds + + + + Remove both the annotation and popup window + + current page. + annotation to be removed. + + + + 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 + + + + + Indicate the border Dictionary + + + + + Indicat the border style + + + + + Gets the annotation review history. + + /// The review history collection of the text markup annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfTextMarkupAnnotation + PdfLoadedTextMarkupAnnotation markup = document.Pages[0].Annotations[0] as PdfLoadedTextMarkupAnnotation; + //Get the review collection + PdfLoadedPopupAnnotationCollection reviewCollection = markup.ReviewHistory; + //save the document + document.Save("TextMarkupAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfTextMarkupAnnotation + Dim markup As PdfLoadedTextMarkupAnnotation = document.Pages(0).Annotations(0) + 'Get the review collection + Dim reviewCollection As PdfLoadedPopupAnnotationCollection = markup.ReviewHistory + Next + 'save the document + document.Save("TextMarkupAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + Gets the annotation comments history. + + The Comments collection of the text markup annotation. + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Load the existing PdfTextMarkupAnnotation + PdfLoadedTextMarkupAnnotation markup = document.Pages[0].Annotations[0] as PdfLoadedTextMarkupAnnotation; + //Get the comments collection + PdfLoadedPopupAnnotationCollection commentsCollection = markup.Comments; + //save the document + document.Save("TextMarkupAnnotation.pdf"); + //Close the docuemnt + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Load the existing PdfTextMarkupAnnotation + Dim markup As PdfLoadedTextMarkupAnnotation = document.Pages(0).Annotations(0) + 'Get the comments collection + Dim commentsCollection As PdfLoadedPopupAnnotationCollection = markup.Comments + Next + 'save the document + document.Save("TextMarkupAnnotation.pdf") + 'Close the document. + document.Close(True) + + + Class + Class + + + + 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. + + + + //load the document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Gets the annotation collection + PdfLoadedAnnotationCollection collection = loadedDocument.Pages[0].Annotations; + //Gets the text markup annotation + PdfLoadedTextMarkupAnnotation pdfLoadedTextMarkup = collection[0] as PdfLoadedTextMarkupAnnotation; + //Gets the text markup annotation bounds collection. + List<RectangleF> boundsCollection = pdfLoadedTextMarkup.BoundsCollection; + //Save the document + loadedDocument.Save("Sample.pdf"); + //Close the document + loadedDocument.Close(true); + + + //load the document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + //Gets the annotation collection + Dim collection As PdfLoadedAnnotationCollection = loadedDocument.Pages(0).Annotations + //Gets the text markup annotation + Dim pdfLoadedTextMarkup As PdfLoadedTextMarkupAnnotation = TryCast(collection(0), PdfLoadedTextMarkupAnnotation) + //Gets the text markup annotation bounds collection. + Dim boundsCollection As List(Of RectangleF) = pdfLoadedTextMarkup.BoundsCollection + //Save the document + loadedDocument.Save("Sample.pdf") + //Close the document + loadedDocument.Close(True) + + + + + + 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. + + + + Flatten annotation without calling save method. + + + + + Saves an annotation . + + + + + Flatten annotation + + The page value. + The appearance value. + + + + Create appearance for annotation + + + + + + Draw Squiggly line + + The width value. + The height value. + + + + + Flattening Non supported annotation + + + + + Represents the loaded rich media annotation class. + + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Gets the annotation from loaded document. + PdfLoadedRichMediaAnnotation richMediaAnnotation = document.Pages[0].Annotations[0] as PdfLoadedRichMediaAnnotation; + //Sets the rich media annotation activation mode + //richMediaAnnotation.ActivationMode=PdfRichMediaActivationMode.PageOpen; + //Sets the rich media annotation presentation style + //richMediaAnnotation.PresentationStyle=PdfRichMediaPresentationStyle.Windowed; + //Save the document. + document.Save("RichMediaAnnotation.pdf"); + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Gets the annotation from loaded document. + Dim richMediaAnnotation As PdfLoadedRichMediaAnnotation = document.Pages(0).Annotations(0) as PdfLoadedRichMediaAnnotation + 'Sets the rich media annotation activation mode + richMediaAnnotation.ActivationMode=PdfRichMediaActivationMode.PageOpen + 'Sets the rich media annotation presentation style + richMediaAnnotation.PresentationStyle=PdfRichMediaPresentationStyle.Windowed + 'Save the document. + document.Save("RichMediaAnnotation.pdf") + 'close the document. + document.Close(True) + + + + + + Internal variable to store content. + + + + + Internal variable to store presentation style. + + + + + Internal variable to store activate mode. + + + + + Internal variable to store cross table. + + + + + Internal variable to content dictionary. + + + + + Internal variable to settings dictionary. + + + + + Internal variable to Activation dictionary. + + + + + Internal variable to Configurations dictionary. + + + + + Internal variable to Configurations array. + + + + + Internal variable to Instances array. + + + + + Internal variable to Instances Dictionary. + + + + + Internal variable to Assets Dictionary. + + + + + Get content dictionary + + + + + Get Configurations Array + + + + + Get Configurations dictionary + + + + + Get instances Array + + + + + Get instances dictionary + + + + + Get assets dictionary + + + + + Get settings dictionary + + + + + Get activation dictionary + + + + + Gets or sets the loaded rich media activation mode + + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Gets the annotation from loaded document. + PdfLoadedRichMediaAnnotation richMediaAnnotation = document.Pages[0].Annotations[0] as PdfLoadedRichMediaAnnotation; + Gets and sets the rich media activate mode + richMediaAnnotation.ActivationMode=PdfRichMediaActivationMode.PageOpen; + //Save the document. + document.Save("RichMediaAnnotation.pdf"); + Close the document. + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Gets the annotation from loaded document. + Dim richMediaAnnotation As PdfLoadedRichMediaAnnotation = document.Pages(0).Annotations(0) as PdfLoadedRichMediaAnnotation + 'Gets and sets the rich media activate mode + richMediaAnnotation.ActivationMode=PdfRichMediaActivationMode.PageOpen + 'Save the document. + document.Save("RichMediaAnnotation.pdf") + 'Close the document. + document.Close(True) + + + + + + Get the loaded rich media content + + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Gets the annotation from loaded document. + PdfLoadedRichMediaAnnotation richMediaAnnotation = document.Pages[0].Annotations[0] as PdfLoadedRichMediaAnnotation; + //Gets the content + var content = richMediaAnnotation.Content.Data; + //Save the content data + File.WriteAllBytes("RichMediaContent.mp4",(content as MemoryStream).ToArray()); + //Save the document. + document.Save("RichMediaAnnotation.pdf"); + Close the document. + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Gets the annotation from loaded document. + Dim richMediaAnnotation As PdfLoadedRichMediaAnnotation = document.Pages(0).Annotations(0) as PdfLoadedRichMediaAnnotation + 'Gets the content + var content = richMediaAnnotation.Content.Data + Save the content data + File.WriteAllBytes("RichMediaContent.mp4",(content as MemoryStream).ToArray()) + 'Save the document. + document.Save("RichMediaAnnotation.pdf") + Close the document. + document.Close(True) + + + + + + Gets or sets the presentation style + + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Gets the annotation from loaded document. + PdfLoadedRichMediaAnnotation richMediaAnnotation = document.Pages[0].Annotations[0] as PdfLoadedRichMediaAnnotation; + Gets and sets the rich media presentation style + richMediaAnnotation.PresentationStyle=PdfRichMediaPresentationStyle.Windowed; + //Save the document. + document.Save("RichMediaAnnotation.pdf"); + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Gets the annotation from loaded document. + Dim richMediaAnnotation As PdfLoadedRichMediaAnnotation = document.Pages(0).Annotations(0) as PdfLoadedRichMediaAnnotation + 'Gets and sets the rich media presentation style + richMediaAnnotation.PresentationStyle=PdfRichMediaPresentationStyle.Windowed + 'Save the document. + document.Save("RichMediaAnnotation.pdf") + 'close the document. + document.Close(True) + + + + + + Initializes a new instance of the class. + + The dictionary. + The cross table. + The rectangle + + + //Load an existing document. + PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); + //Gets the annotation from loaded document. + PdfLoadedRichMediaAnnotation richMediaAnnotation = document.Pages[0].Annotations[0] as PdfLoadedRichMediaAnnotation; + //Sets the rich media annotation activation mode + //richMediaAnnotation.ActivationMode=PdfRichMediaActivationMode.PageOpen; + //Sets the rich media annotation presentation style + //richMediaAnnotation.PresentationStyle=PdfRichMediaPresentationStyle.Windowed; + //Save the document. + document.Save("RichMediaAnnotation.pdf"); + Close the document. + document.Close(true); + + + 'Load an existing document. + Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") + 'Gets the annotation from loaded document. + Dim richMediaAnnotation As PdfLoadedRichMediaAnnotation = document.Pages(0).Annotations(0) as PdfLoadedRichMediaAnnotation + 'Sets the rich media annotation activation mode + richMediaAnnotation.ActivationMode=PdfRichMediaActivationMode.PageOpen + 'Sets the rich media annotation presentation style + richMediaAnnotation.PresentationStyle=PdfRichMediaPresentationStyle.Windowed + 'Save the document. + document.Save("RichMediaAnnotation.pdf") + 'Close the document. + document.Close(True) + + + + + + Gets the ActivateMode. + + The ActivateMode. + + + + Gets the ActivateMode. + + The string. + + + + Gets the type. + + The string. + + + + Gets the PresentationStyle. + + The PresentationStyle. + + + + Gets the string value of Style. + + The Style. + + + + 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 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) + + + + + + Gets the web link. + + Web link + + + + Initializes a new instance of the class. + + The dictionary. + The cross table. + The rectangle + The text + + + + Flatten annotation without calling save method. + + + + + 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. + + + + + 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) + + + + + + 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 + + + + Flatten annotation without calling save method. + + + + + Represents the loaded web link annotation class. + + + + + CrossTable + + + + + Initializes a new instance of the class. + + The dictionary. + The cross table. + The rectangle + The text + + + + Flatten annotation without calling save method. + + + + + 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. + + + + + Internal variable to store field's font. + + + + + 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. + + + + Initializes a new instance of the class. + + The dictionary value. + The cross table vaue. + The rectangle value. + + + + Highlightings the mode to string. + + The m_highlighting mode. + String representation of the highlighting mode in Pdf suiatable format. + + + + Flatten annotation without calling save method. + + + + + 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 or sets the named destination's destination. + + + The destination property has to be mentioned as multiples of 100. + If we mention as 2, the zoom value will be 200. + + The object which is to be navigated. + + + //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 + + + + 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 + + + + Gets the destination. + + The destination of named destination. + + + + Represents a collection of JavaScript actions within a PDF document. + + /// + + // Create a new PDF document. + PdfDocument document = new PdfDocument(); + // Get the JavaScript collection from the document. + PdfDocumentJavaScriptCollection javaScriptCollection = document.DocumentJavaScripts; + // Create a new JavaScript action that shows an alert with the message "Hello World!!!". + PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); + //Set name of the JavaScript action + javaScriptAction.Name = "Test"; + // Add the JavaScript action to the collection. + javaScriptCollection.Add(javaScriptAction); + // Remove the JavaScript action from the collection. + javaScriptCollection.Remove(javaScriptAction); + // Insert the JavaScript action at the first position in the collection. + javaScriptCollection.Insert(0, javaScriptAction); + // Clear all JavaScript actions from the collection. + javaScriptCollection.Clear(); + // Save the PDF document to a file named "Output.pdf". + document.Save("Output_Creation.pdf"); + + + 'Create a new PDF Document. + Dim document As PdfDocument = New PdfDocument + 'Get the JavaScript collection from the document. + Dim javaScriptCollection As PdfDocumentJavaScriptCollection = document.DocumentJavaScripts + 'Create a new JavaScript action that shows an alert with the message "Hello World!!!". + Dim javaScriptAction As PdfJavaScriptAction = New PdfJavaScriptAction("app.alert(""Hello World!!!"")") + 'Set name of the JavaScript action + javaScriptAction.Name = "Test" + ' Add the JavaScript action to the collection. + javaScriptCollection.Add(javaScriptAction) + ' Remove the JavaScript action from the collection. + javaScriptCollection.Remove(javaScriptAction) + ' Insert the JavaScript action at the first position in the collection. + javaScriptCollection.Insert(0, javaScriptAction) + ' Clear all JavaScript actions from the collection. + javaScriptCollection.Clear + ' Save the PDF document to a file named "Output.pdf". + document.Save("Output_Creation.pdf") + + + + + + Gets the JavaScript action at the specified index in the collection. + + The zero-based index of the JavaScript action to get. + The at the specified index. + + + + Adds a JavaScript action to the collection. + + The JavaScript action to add. + + + // Create a new PDF document. + PdfDocument document = new PdfDocument(); + // Get the JavaScript collection from the document. + PdfDocumentJavaScriptCollection javaScriptCollection = document.DocumentJavaScripts; + // Create a new JavaScript action that shows an alert with the message "Hello World!!!". + PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); + //Set name of the JavaScript action + javaScriptAction.Name = "Test"; + // Add the JavaScript action to the collection. + javaScriptCollection.Add(javaScriptAction); + // Save the PDF document to a file named "Output.pdf". + document.Save("Output_Creation.pdf"); + + + 'Create a new PDF Document. + Dim document As PdfDocument = New PdfDocument + 'Get the JavaScript collection from the document. + Dim javaScriptCollection As PdfDocumentJavaScriptCollection = document.DocumentJavaScripts + 'Create a new JavaScript action that shows an alert with the message "Hello World!!!". + Dim javaScriptAction As PdfJavaScriptAction = New PdfJavaScriptAction("app.alert(""Hello World!!!"")") + 'Set name of the JavaScript action + javaScriptAction.Name = "Test" + ' Add the JavaScript action to the collection. + javaScriptCollection.Add(javaScriptAction) + ' Save the PDF document to a file named "Output.pdf". + document.Save("Output_Creation.pdf") + + + + + + Removes the specified JavaScript action from the collection. + + + + // Create a new PDF document. + PdfDocument document = new PdfDocument(); + // Get the JavaScript collection from the document. + PdfDocumentJavaScriptCollection javaScriptCollection = document.DocumentJavaScripts; + // Create a new JavaScript action that shows an alert with the message "Hello World!!!". + PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); + //Set name of the JavaScript action + javaScriptAction.Name = "Test"; + // Remove the JavaScript action from the collection. + javaScriptCollection.Remove(javaScriptAction); + // Save the PDF document to a file named "Output.pdf". + document.Save("Output_Creation.pdf"); + + + 'Create a new PDF Document. + Dim document As PdfDocument = New PdfDocument + 'Get the JavaScript collection from the document. + Dim javaScriptCollection As PdfDocumentJavaScriptCollection = document.DocumentJavaScripts + 'Create a new JavaScript action that shows an alert with the message "Hello World!!!". + Dim javaScriptAction As PdfJavaScriptAction = New PdfJavaScriptAction("app.alert(""Hello World!!!"")") + 'Set name of the JavaScript action + javaScriptAction.Name = "Test" + ' Remove the JavaScript action from the collection. + javaScriptCollection.Remove(javaScriptAction) + ' Save the PDF document to a file named "Output.pdf". + document.Save("Output_Creation.pdf") + + + The JavaScript action to remove. + + + + Removes the specified JavaScript action at the given index from the DocumentJavaScriptCollection. + + + + // Create a new PDF document. + PdfDocument document = new PdfDocument(); + // Get the JavaScript collection from the document. + PdfDocumentJavaScriptCollection javaScriptCollection = document.DocumentJavaScripts; + // Create a new JavaScript action that shows an alert with the message "Hello World!!!". + PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); + //Set name of the JavaScript action + javaScriptAction.Name = "Test"; + // Remove the JavaScript action from the collection. + javaScriptCollection.RemoveAt(0); + // Save the PDF document to a file named "Output.pdf". + document.Save("Output_Creation.pdf"); + + + 'Create a new PDF Document. + Dim document As PdfDocument = New PdfDocument + 'Get the JavaScript collection from the document. + Dim javaScriptCollection As PdfDocumentJavaScriptCollection = document.DocumentJavaScripts + 'Create a new JavaScript action that shows an alert with the message "Hello World!!!". + Dim javaScriptAction As PdfJavaScriptAction = New PdfJavaScriptAction("app.alert(""Hello World!!!"")") + 'Set name of the JavaScript action + javaScriptAction.Name = "Test" + ' Remove the JavaScript action from the collection. + javaScriptCollection.RemoveAt(0) + ' Save the PDF document to a file named "Output.pdf". + document.Save("Output_Creation.pdf") + + + The index. + + + + Inserts a JavaScript action at the specified index in the collection. + + /// + + // Create a new PDF document. + PdfDocument document = new PdfDocument(); + // Get the JavaScript collection from the document. + PdfDocumentJavaScriptCollection javaScriptCollection = document.DocumentJavaScripts; + // Create a new JavaScript action that shows an alert with the message "Hello World!!!". + PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); + //Set name of the JavaScript action + javaScriptAction.Name = "Test"; + // Insert the JavaScript action at the first position in the collection. + javaScriptCollection.Insert(0, javaScriptAction); + // Save the PDF document to a file named "Output.pdf". + document.Save("Output_Creation.pdf"); + + + 'Create a new PDF Document. + Dim document As PdfDocument = New PdfDocument + 'Get the JavaScript collection from the document. + Dim javaScriptCollection As PdfDocumentJavaScriptCollection = document.DocumentJavaScripts + 'Create a new JavaScript action that shows an alert with the message "Hello World!!!". + Dim javaScriptAction As PdfJavaScriptAction = New PdfJavaScriptAction("app.alert(""Hello World!!!"")") + 'Set name of the JavaScript action + javaScriptAction.Name = "Test" + ' Insert the JavaScript action at the first position in the collection. + javaScriptCollection.Insert(0, javaScriptAction) + ' Save the PDF document to a file named "Output.pdf". + document.Save("Output_Creation.pdf") + + + The zero-based index at which the JavaScript action should be inserted. + The JavaScript action to insert. + + + + Removes all JavaScript actions from the collection. + + /// + + // Create a new PDF document. + PdfDocument document = new PdfDocument(); + // Get the JavaScript collection from the document. + PdfDocumentJavaScriptCollection javaScriptCollection = document.DocumentJavaScripts; + // Clear all JavaScript actions from the collection. + javaScriptCollection.Clear(); + // Save the PDF document to a file named "Output.pdf". + document.Save("Output_Creation.pdf"); + + + 'Create a new PDF Document. + Dim document As PdfDocument = New PdfDocument + 'Get the JavaScript collection from the document. + Dim javaScriptCollection As PdfDocumentJavaScriptCollection = document.DocumentJavaScripts + javaScriptCollection.Insert(0, javaScriptAction) + ' Clear all JavaScript actions from the collection. + javaScriptCollection.Clear + ' Save the PDF document to a file named "Output.pdf". + document.Save("Output_Creation.pdf") + + + + + + Adds a JavaScript action to the collection. + + The JavaScript action to add. + /// + + // Create a new PDF document. + PdfDocument document = new PdfDocument(); + // Get the JavaScript collection from the document. + PdfDocumentJavaScriptCollection javaScriptCollection = document.DocumentJavaScripts; + // Create a new JavaScript action that shows an alert with the message "Hello World!!!". + PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); + //Set name of the JavaScript action + javaScriptAction.Name = "Test"; + // Add the JavaScript action to the collection. + javaScriptCollection.Add(javaScriptAction); + // Save the PDF document to a file named "Output.pdf". + document.Save("Output_Creation.pdf"); + + + 'Create a new PDF Document. + Dim document As PdfDocument = New PdfDocument + 'Get the JavaScript collection from the document. + Dim javaScriptCollection As PdfDocumentJavaScriptCollection = document.DocumentJavaScripts + 'Create a new JavaScript action that shows an alert with the message "Hello World!!!". + Dim javaScriptAction As PdfJavaScriptAction = New PdfJavaScriptAction("app.alert(""Hello World!!!"")") + 'Set name of the JavaScript action + javaScriptAction.Name = "Test" + ' Add the JavaScript action to the collection. + javaScriptCollection.Add(javaScriptAction) + ' Save the PDF document to a file named "Output.pdf". + document.Save("Output_Creation.pdf") + + + + + + Removes the specified JavaScript action from the collection. + + + + // Create a new PDF document. + PdfDocument document = new PdfDocument(); + // Get the JavaScript collection from the document. + PdfDocumentJavaScriptCollection javaScriptCollection = document.DocumentJavaScripts; + // Create a new JavaScript action that shows an alert with the message "Hello World!!!". + PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); + //Set name of the JavaScript action + javaScriptAction.Name = "Test"; + // Remove the JavaScript action from the collection. + javaScriptCollection.Remove(javaScriptAction); + // Save the PDF document to a file named "Output.pdf". + document.Save("Output_Creation.pdf"); + + + 'Create a new PDF Document. + Dim document As PdfDocument = New PdfDocument + 'Get the JavaScript collection from the document. + Dim javaScriptCollection As PdfDocumentJavaScriptCollection = document.DocumentJavaScripts + 'Create a new JavaScript action that shows an alert with the message "Hello World!!!". + Dim javaScriptAction As PdfJavaScriptAction = New PdfJavaScriptAction("app.alert(""Hello World!!!"")") + 'Set name of the JavaScript action + javaScriptAction.Name = "Test" + ' Remove the JavaScript action from the collection. + javaScriptCollection.Remove(javaScriptAction) + ' Save the PDF document to a file named "Output.pdf". + document.Save("Output_Creation.pdf") + + + The JavaScript action to remove. + + + + Holds the win-ansi font charcode. + + + + + WinAnsiEncoding Charcode table + + + + + Gets the CID byte to unicode table. + + + + + Check and handle Image metadata based on PDF/A conformance standard. + + + + + Mapping complete glyph to width table for inconsistent character width + + + + + + + Gets the CID byte to unicode. + + + + + Class that represents the annotation export settings. + + + + //Loads an existing PDF Document + PdfLoadedDocument lDoc = new PdfLoadedDocument(@"...\...\Input.pdf"); + //Class that represents the annotation export settings. + PdfAnnotationExportSettings settings = new PdfAnnotationExportSettings(); + PdfLoadedAnnotationType[] annotType = { PdfLoadedAnnotationType.RectangleAnnotation, PdfLoadedAnnotationType.RubberStampAnnotation,PdfLoadedAnnotationType.FreeTextAnnotation }; + //It Specifies the format to export annotation data. + settings.DataFormat = AnnotationDataFormat.Fdf + //Set the array of annotation types that needs to be exported. + settings.AnnotationTypes = annotType; + //Gets or sets the flag to export the annotations with appearance. + settings.ExportAppearance = true; + //Export the annotations to a file with the specified PdfAnnotationExportSettings. + lDoc.ExportAnnotations("Annotation.FDF", settings); + //Close the document + lDoc.Close(true); + + + 'Loads an existing PDF Document + Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("...\...\Input.pdf") + 'Class that represents the annotation export settings. + Dim settings As PdfAnnotationExportSettings = New PdfAnnotationExportSettings() + 'It Specifies the format to export annotation data. + settings.DataFormat = AnnotationDataFormat.Fdf + Dim annotType As PdfLoadedAnnotationType() = {PdfLoadedAnnotationType.FreeTextAnnotation, PdfLoadedAnnotationType.CircleAnnotation} + 'Set the array of annotation types that needs to be exported. + settings.AnnotationTypes = annotType; + 'Gets or sets the flag to export the annotations with appearance. + settings.ExportAppearance = true; + 'Export the annotations to a file with the specified PdfAnnotationExportSettings. + lDoc.ExportAnnotations(Annotation.FDF, settings) + 'Close the document + lDoc.Close(True) + + + + + + Specifies the format to export annotation data. + + + + + Gets or Sets the ExportAppearance flag to export the annotation appearance. + + + + + Specifies the annotation types + + + + + It Specifies the format to export annotation data. + + + + //Loads an existing PDF Document + PdfLoadedDocument lDoc = new PdfLoadedDocument(@"...\...\Input.pdf"); + //Class that represents the annotation export settings. + PdfAnnotationExportSettings settings = new PdfAnnotationExportSettings(); + //It Specifies the format to export annotation data. + settings.DataFormat = AnnotationDataFormat.Fdf + //Export the annotations to a file with the specified PdfAnnotationExportSettings. + lDoc.ExportAnnotations("Annotation.FDF", settings); + //Close the document + lDoc.Close(true); + + + 'Loads an existing PDF Document + Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("...\...\Input.pdf") + 'Class that represents the annotation export settings. + Dim settings As PdfAnnotationExportSettings = New PdfAnnotationExportSettings() + 'It Specifies the format to export annotation data. + settings.DataFormat = AnnotationDataFormat.Fdf + 'Export the annotations to a file with the specified PdfAnnotationExportSettings. + lDoc.ExportAnnotations(Annotation.FDF, settings) + 'Close the document + lDoc.Close(True) + + + + + + Gets or sets the flag to export the annotations with appearance. + + We export appearance only if it is available in document + + + //Loads an existing PDF Document + PdfLoadedDocument lDoc = new PdfLoadedDocument(@"...\...\Input.pdf"); + //Class that represents the annotation export settings. + PdfAnnotationExportSettings settings = new PdfAnnotationExportSettings(); + //Gets or sets the flag to export the annotations with appearance. + settings.ExportAppearance = true; + //Export the annotations to a file with the specified PdfAnnotationExportSettings. + lDoc.ExportAnnotations("Annotation.FDF", settings); + //Close the document + lDoc.Close(true); + + + 'Loads an existing PDF Document + Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("...\...\Input.pdf") + 'Class that represents the annotation export settings. + Dim settings As PdfAnnotationExportSettings = New PdfAnnotationExportSettings() + 'Gets or sets the flag to export the annotations with appearance. + settings.ExportAppearance = True + 'Export the annotations to a file with the specified PdfAnnotationExportSettings. + lDoc.ExportAnnotations(Annotation.FDF, settings) + 'Close the document + lDoc.Close(True) + + + + + + Set the array of annotation types need to be exported. + + + + //Loads an existing PDF Document + PdfLoadedDocument lDoc = new PdfLoadedDocument(@"...\...\Input.pdf"); + //Class that represents the annotation export settings. + PdfAnnotationExportSettings settings = new PdfAnnotationExportSettings(); + PdfLoadedAnnotationType[] annotType = { PdfLoadedAnnotationType.FreeTextAnnotation, PdfLoadedAnnotationType.CircleAnnotation }; + //Set the array of annotation types that needs to be exported. + settings.AnnotationTypes = annotType; + //Gets or sets a value that indicates whether to export annotation with appearance. default value is false + settings.ExportAppearance = true; + //Export the annotations to a file with the specified PdfAnnotationExportSettings. + lDoc.ExportAnnotations("Annotation.FDF", settings); + //Close the document + lDoc.Close(true); + + + 'Loads an existing PDF Document + Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("...\...\Input.pdf") + 'Class that represents the annotation export settings. + Dim settings As PdfAnnotationExportSettings = New PdfAnnotationExportSettings() + Dim annotType As PdfLoadedAnnotationType() = {PdfLoadedAnnotationType.FreeTextAnnotation, PdfLoadedAnnotationType.CircleAnnotation} + 'Set the array of annotation types that needs to be exported. + settings.AnnotationTypes = annotType; + 'Gets or sets a value that indicates whether to export annotation with appearance. default value is false + settings.ExportAppearance = True + 'Export the annotations to a file with the specified PdfAnnotationExportSettings. + lDoc.ExportAnnotations(Annotation.FDF, settings) + 'Close the document + lDoc.Close(True) + + + + + + The class provides methods and properties to handle the loaded annotations from the existing PDF document for Fdf export and import. + + + + + Gets or sets the PDF reader. + + + + + Gets or sets the PDF parser. + + + + + Gets or sets the Fdf object collection. + + + + + Gets the grouped object references + + + + + Initializes a new instance of the class. + + Fdf stream. + + + + Imports the annotation data from FDF stream + + PDF loaded document + + + + Parse annotation data + + + + + Dispose the objects and collections + + + + + The class provides fields and properties to handle objects in Fdf stream. + + + + + Gets the object number of the current FDF object. + + Object number + + + + Gets the generation number of the current FDF object. + + Generation number + + + + Gets the current FDF object. + + Primitive object + + + + Gets the trailer object in FDF stream. + + Primitive object + + + + Initializes a new instance of the class. + + Object number. + Generation number. + Fdf object. + + + + Initializes a new instance of the class. + + Fdf object. + + + + The class provides collection of FDF objects. + + + + + Gets and sets the FDF object. + + Collection of object number and FDF objects + + + + Initializes a new instance of the class. + + + + + Add a new object into collection + + + + + Dispose the collection + + + + + The class provides methods and properties to handle the collection of for exporting. + + + + //Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Initialize an object for export annotation collection + PdfExportAnnotationCollection collection = new PdfExportAnnotationCollection(); + //Get the first page from the document + PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; + //Add loaded annotations into the export annotation collection + collection.Add(page.Annotations[0] as PdfLoadedAnnotation); + collection.Add(page.Annotations[1] as PdfLoadedAnnotation); + //Get the second page from the document + page = document.Pages[1] as PdfLoadedPage; + //Add loaded annotations into the export annotation collection + collection.Add(page.Annotations[0] as PdfLoadedAnnotation); + collection.Add(page.Annotations[1] as PdfLoadedAnnotation); + //Export selected annotation's data into FDF format + document.ExportAnnotations("Annotations.Fdf", AnnotationDataFormat.Fdf, "Annotations.Pdf", collection); + //Close and dispose the document + document.Close(true); + document.Dispose(); + + + 'Load an existing document + Dim document As New PdfLoadedDocument("Input.pdf") + 'Initialize an object for export annotation collection + Dim collection As New PdfExportAnnotationCollection() + 'Get the first page from the document + Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) + 'Add loaded annotations into the export annotation collection + collection.Add(TryCast(page.Annotations[0], PdfLoadedAnnotation)) + collection.Add(TryCast(page.Annotations[1], PdfLoadedAnnotation)) + 'Get the second page from the document + page = TryCast(document.Pages(1), PdfLoadedPage) + 'Add loaded annotations into the export annotation collection + collection.Add(TryCast(page.Annotations[0], PdfLoadedAnnotation)) + collection.Add(TryCast(page.Annotations[1], PdfLoadedAnnotation)) + 'Export selected annotation's data into FDF format + document.ExportAnnotations("Annotations.Fdf", AnnotationDataFormat.Fdf, "Annotations.Pdf", collection) + 'Close and dispose the document + document.Close(true) + document.Dispose() + + + + + + Gets the at the specified index. + + Returns the annotation at the specified index + + + //Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Initialize an object for export annotation collection + PdfExportAnnotationCollection collection = new PdfExportAnnotationCollection(); + //Get the first page from the document + PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; + //Add annotations into the export annotation collection + collection.Add(page.Annotations[0] as PdfAnnotation); + collection.Add(page.Annotations[1] as PdfAnnotation); + //Gets the annotation at the specified index + PdfAnnotation annotation = collection[1]; + //Export selected annotation's data into FDF format + document.ExportAnnotations("Annotations.Fdf", AnnotationDataFormat.Fdf, "Annotations.Pdf", collection); + //Close and dispose the document + document.Close(true); + document.Dispose(); + + + 'Load an existing document + Dim document As New PdfLoadedDocument("Input.pdf") + 'Initialize an object for export annotation collection + Dim collection As New PdfExportAnnotationCollection() + 'Get the first page from the document + Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) + 'Add annotations into the export annotation collection + collection.Add(TryCast(page.Annotations[0], PdfAnnotation)) + collection.Add(TryCast(page.Annotations[1], PdfAnnotation)) + 'Gets the annotation at the specified index + Dim annotation As PdfAnnotation = collection[1] + 'Export selected annotation's data into FDF format + document.ExportAnnotations("Annotations.Fdf", AnnotationDataFormat.Fdf, "Annotations.Pdf", collection) + 'Close and dispose the document + document.Close(true) + document.Dispose() + + + + + + Initializes a new instance of the class. + + + + //Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Initialize an object for export annotation collection + PdfExportAnnotationCollection collection = new PdfExportAnnotationCollection(); + //Get the first page from the document + PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; + //Add loaded annotations into the export annotation collection + collection.Add(page.Annotations[0] as PdfLoadedAnnotation); + collection.Add(page.Annotations[1] as PdfLoadedAnnotation); + //Export selected annotation's data into FDF format + document.ExportAnnotations("Annotations.Fdf", AnnotationDataFormat.Fdf, "Annotations.Pdf", collection); + //Close and dispose the document + document.Close(true); + document.Dispose(); + + + 'Load an existing document + Dim document As New PdfLoadedDocument("Input.pdf") + 'Initialize an object for export annotation collection + Dim collection As New PdfExportAnnotationCollection() + 'Get the first page from the document + Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) + 'Add loaded annotations into the export annotation collection + collection.Add(TryCast(page.Annotations[0], PdfLoadedAnnotation)) + collection.Add(TryCast(page.Annotations[1], PdfLoadedAnnotation)) + 'Export selected annotation's data into FDF format + document.ExportAnnotations("Annotations.Fdf", AnnotationDataFormat.Fdf, "Annotations.Pdf", collection) + 'Close and dispose the document + document.Close(true) + document.Dispose() + + + + + + Adds annotation to the collection. + + + + //Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Initialize an object for export annotation collection + PdfExportAnnotationCollection collection = new PdfExportAnnotationCollection(); + //Get the first page from the document + PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; + //Add annotations into the export annotation collection + collection.Add(page.Annotations[0] as PdfAnnotation); + collection.Add(page.Annotations[1] as PdfAnnotation); + //Get the second page from the document + page = document.Pages[1] as PdfLoadedPage; + //Add loaded annotations into the export annotation collection + collection.Add(page.Annotations[0] as PdfAnnotation); + collection.Add(page.Annotations[1] as PdfAnnotation); + //Export selected annotation's data into FDF format + document.ExportAnnotations("Annotations.Fdf", AnnotationDataFormat.Fdf, "Annotations.Pdf", collection); + //Close and dispose the document + document.Close(true); + document.Dispose(); + + + 'Load an existing document + Dim document As New PdfLoadedDocument("Input.pdf") + 'Initialize an object for export annotation collection + Dim collection As New PdfExportAnnotationCollection() + 'Get the first page from the document + Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) + 'Add annotations into the export annotation collection + collection.Add(TryCast(page.Annotations[0], PdfAnnotation)) + collection.Add(TryCast(page.Annotations[1], PdfAnnotation)) + 'Get the second page from the document + page = TryCast(document.Pages(1), PdfLoadedPage) + 'Add loaded annotations into the export annotation collection + collection.Add(TryCast(page.Annotations[0], PdfAnnotation)) + collection.Add(TryCast(page.Annotations[1], PdfAnnotation)) + 'Export selected annotation's data into FDF format + document.ExportAnnotations("Annotations.Fdf", AnnotationDataFormat.Fdf, "Annotations.Pdf", collection) + 'Close and dispose the document + document.Close(true) + document.Dispose() + + + + + + The class provides methods and properties to handle the loaded annotations from the existing PDF document for Xfdf export and import. + + + + + Initializes a new instance of the class. + + Json Stream. + The PdfLoadedDocument. + + + + Imports the annotation data from Json stream + + Json stream + + + + Add annotation appearance + + The dictionary value. + The appearnce value. + + + + Get appearance stream from Json data. + + Appearance string value. + + + + Get appearance stream from Json data. + + + + + Split appearance JSON into primitives types + + The appearnce value. + + + + + Split JSON into dictionary format + + The json value. + + + + + Split JSON into array format + + The json value. + + + + + Trimmed escape characters + + The json value. + + + + + Convert into INT value + + The json value. + + + + + Convert into Float value + + The float from json value. + + + + + AP JSON string into list of dictionary format + + The dictionary item values. + + + + + Add primitive values + + The escape string value. + The index value. + The string value. + The chunk builder value. + + + + + Mapping JSON primitives values into PDF dictionary + + The element value. + The PDF primitive values. + + + + + Get appearance stream data + + The element value. + + + + + Represents the analyzer of the Pdf document. + + + + + Initializes a new instance of the class with the specified input file path. + + A relative or absolute path for the file. + + + string filePath = "Input.pdf"; + //load the document + PdfDocumentAnalyzer analyzer = new PdfDocumentAnalyzer(filePath); + //Analyze the synyax issue + SyntaxAnalyzerResult analyzerResult = analyzer.AnalyzeSyntax(); + if(analyzerResult.IsCorrupted) + { + throw new Exception("The document is corrupt"); + } + analyzer.Close(); + + + + + + Initializes a new instance of the class with the specified stream. + + The stream containing the PDF document to analyze. + + + string filePath = "Input.pdf"; + Stream streamFile = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read); + load the stream + PdfDocumentAnalyzer analyzer = new PdfDocumentAnalyzer(streamFile); + //Analyze syntax issues. + SyntaxAnalyzerResult analyzerResult = analyzer.AnalyzeSyntax(); + if(analyzerResult.IsCorrupted) + { + throw new Exception("The document is corrupt"); + } + analyzer.Close(); + + + + + + Initializes a new instance of the class. + + A relative or absolute path for the file. + The password (user or owner) of the encrypted document. + + + string filePath = "Input.pdf"; + //load the document + PdfDocumentAnalyzer analyzer = new PdfDocumentAnalyzer(filePath, "password"); + //Analyze the synyax issue + SyntaxAnalyzerResult analyzerResult = analyzer.AnalyzeSyntax(); + if(analyzerResult.IsCorrupted) + { + throw new Exception("The document is corrupt"); + } + analyzer.Close(); + + + + + + Initializes a new instance of the class. + + The stream containing the PDF document to analyze. + The password (user or owner) of the encrypted document. + + + string filePath = "Input.pdf"; + Stream streamFile = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read); + load the stream with password + PdfDocumentAnalyzer analyzer = new PdfDocumentAnalyzer(streamFile, "passsword"); + //Analyze the syntax issues. + SyntaxAnalyzerResult analyzerResult = analyzer.AnalyzeSyntax(); + if(analyzerResult.IsCorrupted) + { + throw new Exception("The document is corrupt"); + } + analyzer.Close(); + + + + + + Analyze the given PDF file and check whether any syntax issues found. + + + + + string filePath = "Input.pdf"; + //load the document + PdfDocumentAnalyzer analyzer = new PdfDocumentAnalyzer(filePath); + //Analyze the synyax issue + SyntaxAnalyzerResult analyzerResult = analyzer.AnalyzeSyntax(); + if(analyzerResult.IsCorrupted) + { + throw new Exception("The document is corrupt"); + } + analyzer.Close(); + + + + + + Close the class. + + + + string filePath = "Input.pdf"; + //load the document + PdfDocumentAnalyzer analyzer = new PdfDocumentAnalyzer(filePath); + //Analyze the syntax issues. + SyntaxAnalyzerResult analyzerResult = analyzer.AnalyzeSyntax(); + if(analyzerResult.IsCorrupted) + { + throw new Exception("The document is corrupt"); + } + analyzer.Close(); + + + + + + Represents the PDF document analyzer result. + + + + string filePath = "Input.pdf"; + //load the document + PdfDocumentAnalyzer analyzer = new PdfDocumentAnalyzer(filePath); + //Analyze the synyax issue + SyntaxAnalyzerResult analyzerResult = analyzer.AnalyzeSyntax(); + if(analyzerResult.IsCorrupted) + { + throw new Exception("The document is corrupt"); + } + analyzer.Close(); + + + + + + Gets the errors. + + + + + Represernts the PDF document syntax analyzer result. + + + + string filePath = "Input.pdf"; + //load the document + PdfDocumentAnalyzer analyzer = new PdfDocumentAnalyzer(filePath); + //Analyze the syntax issues. + SyntaxAnalyzerResult analyzerResult = analyzer.AnalyzeSyntax(); + if(analyzerResult.IsCorrupted) + { + throw new Exception("The document is corrupt"); + } + analyzer.Close(); + + + + + + Gets the Syntax errors. + + + + + Gets whether the document is corrupted or not. + + + + string filePath = "Input.pdf"; + //load the document + PdfDocumentAnalyzer analyzer = new PdfDocumentAnalyzer(filePath); + //Analyze the synyax issue + SyntaxAnalyzerResult analyzerResult = analyzer.AnalyzeSyntax(); + if(analyzerResult.IsCorrupted) + { + throw new Exception("The document is corrupt"); + } + analyzer.Close(); + + + + + + The PdfRevision class represents a revision of a PDF document. It holds information about the updates performed on the document. + + + + //Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(filename); + //Gets the revisions of the document + PdfRevision[] revisions = document.Revisions; + foreach(PdfRevision rev in revisions) + { + //Gets the revision start position + long startPosition = rev.StartPosition; + } + //Load the existing signature field + PdfLoadedSignatureField field = document.Form.Fields[0] as PdfLoadedSignatureField; + //Gets the revision index of the signature + int revisionIndex = field.Revision; + // Close the document + document.Close(true); + + + 'Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(filename) + 'Gets the revisions of the document + Dim revisions() As PdfRevision = document.Revisions + For Each rev As PdfRevision In revisions + 'Gets the revision start position + Dim startPosition As Long = rev.StartPosition + Next + 'Load the existing signature field + Dim field As PdfLoadedSignatureField = CType(document.Form.Fields(0),PdfLoadedSignatureField) + 'Gets the revision index of the signature + Dim revisionIndex As Integer = field.Revision + ' Close the document + document.Close(true) + + + + + + Holds the revision start position + + + + + A long integer representing the starting position of the revision within the PDF document. + + + + //Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(filename); + //Gets the revisions of the document + PdfRevision[] revisions = document.Revisions; + foreach(PdfRevision rev in revisions) + { + //Gets the revision start position + long startPosition = rev.StartPosition; + } + //Load the existing signature field + PdfLoadedSignatureField field = document.Form.Fields[0] as PdfLoadedSignatureField; + //Gets the revision index of the signature + int revisionIndex = field.Revision; + // Close the document + document.Close(true); + + + 'Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(filename) + 'Gets the revisions of the document + Dim revisions() As PdfRevision = document.Revisions + For Each rev As PdfRevision In revisions + 'Gets the revision start position + Dim startPosition As Long = rev.StartPosition + Next + 'Load the existing signature field + Dim field As PdfLoadedSignatureField = CType(document.Form.Fields(0),PdfLoadedSignatureField) + 'Gets the revision index of the signature + Dim revisionIndex As Integer = field.Revision + ' Close the document + document.Close(true) + + + + + + The class provides methods and properties to handle the collections of loaded PDF pages + + + + + Check whether the PDF document completely closed or not + + + + + 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. + + + + + 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. + + + + Remove PdfPageTemplates from removing page + + The loaded document value. + The PDF page base value. + + + + Gets updated PdfPageTemplates Collection + + The name collection value. + The loaded document value. + The PDF page base value. + + + + + 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. + + + + Mapping all form feilds to destination Form Fields + + The acroform data value. + The destination from data value. + + + + + 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. + + + + Return index of page by parsing Catalog dictionary + + The page value. + + + + + Parsing page nodes + + The page value. + + + + Find kids from pages dictionary + + The page value. + + + + Parse and find page nodes + + The page node value. + + + + Reset page index collection, when removing pages, insert/add pages + + + + + 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. + + + + + Find kids from pages dictionary + + The page value. + + + + Parse and find page nodes + + The parse page node value. + + + + Remove page node + + The kids value. + The page count value. + The node value. + + + + Implements enumerator to the loaded page collection. + + + + + Initializes a new instance of the class. + + The . + + + + 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. + + + + 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. + + + + 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) + + + + + + Loaded page, wich collection belongs to. + + + + + Indicates annotation is flatten or not. + + + + + 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) + + + + + + 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) + + + + + + To update comment state on PdfArray from annotation + + The annotation value. + + + + To update review state from PdfAnnotaion into PdfArray + + The annotation value. + + + + To udapte the Annoation review state and comments on PdfArray + + The popup annotation value. + + + + 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. + + + + Set annotation type + + The annotation value. + The annotation type. + + + + Gets the type of the annotation. + + The name. + The dictionary. + The cross table. + The annotation type. + + + + Create file remotegoto link annotation + + The dicionary value. + The cross table value. + The file name. + The destination value. + The rectangle value. + 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 dictionary value. + The cross table value. + The rectangle value. + The created the widget annotation. + + + + Creates the Ink annotation. + + The dictionary value. + The cross table value. + The rectangle value. + Created the Ink annotation. + + + + Creates the watermark annotation. + + The dictionary. + The cross table. + The created watermark annotation. + + + + Creates the RichMediaAnnotation 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 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 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 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 Redaction Annotation. + + The dictionary. + The cross table. + The created Redaction 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. + + + + 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. + + + + Represents the collection of . + + + + //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 review collection + PdfLoadedPopupAnnotationCollection reviewCollection = free.ReviewHistory; + foreach (PdfLoadedPopupAnnotation popup in reviewCollection){ + //Gets the annotation state + PdfAnnotationState state = popup.AnnotationState; + //Gets the annotation state model + PdfAnnotationStateModel model = popup.AnnotationStateModel; + } + //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 review collection + Dim reviewCollection As PdfLoadedPopupAnnotationCollection = free.ReviewHistory + For Each popup As PdfLoadedPopupAnnotation In reviewCollection + 'Get the annotation state + Dim state As PdfAnnotationState = popup.AnnotationState + 'Get the annotation state model + Dim model As PdfAnnotationStateModel = popup.AnnotationStateModel + Next + 'save the document + document.Save("FreetextAnnotation.pdf") + 'Close the document. + document.Close(True) + + + + + + Gets the at the specified index.[Read-Only] + + Index value. + + + + Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument(@"../../Annotation.pdf"); + //Load the existing Page on document + PdfLoadedPage lpage = document.Pages[0] as PdfLoadedPage; + //load the annotation collection on this page + PdfLoadedAnnotationCollection annotations = lpage.Annotations; + //Load the existing PdfFreeTextAnnotation + PdfLoadedFreeTextAnnotation freeText = annotations[0] as PdfLoadedFreeTextAnnotation; + //Gets the review collection + PdfLoadedPopupAnnotationCollection reviewCollection = freeText.ReviewHistory; + PdfLoadedPopupAnnotation popupAnnot = reviewCollection[0]; + //Gets the annotation state + PdfAnnotationState state = popupAnnot.AnnotationState; + //Gets the annotation state model + PdfAnnotationStateModel model = popupAnnot.AnnotationStateModel; + //Save the document + document.Save("Output.pdf"); + //Close the document + document.Close(true); + + + 'Load an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument("../../Annotation.pdf") + 'Load the existing Page on document + Dim lpage As PdfLoadedPage = document.Pages(0) + 'load the annotation collection on this page + Dim annotations As PdfLoadedAnnotationCollection = lpage.Annotations + 'Load the existing PdfFreeTextAnnotation + Dim freeText As PdfLoadedFreeTextAnnotation = annotations(0) + 'Gets the review collection + Dim reviewCollection As PdfLoadedPopupAnnotationCollection = freeText.ReviewHistory + Dim popupAnnot As PdfLoadedPopupAnnotation = reviewCollection(0) + 'Gets the annotation state + Dim state As PdfAnnotationState = popupAnnot.AnnotationState + 'Gets the annotation state model + Dim model As PdfAnnotationStateModel = popupAnnot.AnnotationStateModel + 'Save the document + document.Save("Output.pdf") + 'Close the document + document.Close(true) + + + + + + Initializes a new instance of the class. + + The page. + The annotDictionary. + + + + Gets the review history of the annotation. + + The page. + The annotDictionary. + + + + To add comments or reviews on the Annotation. + + The popup annotation value. + + + //Load the PDF document + PdfLoadedDocument ldoc = new PdfLoadedDocument("MutipleReview_Edit.pdf"); + //Load the PDF document page + PdfLoadedPage lpage = ldoc.Pages[0] as PdfLoadedPage; + PdfLoadedAnnotationCollection annots = lpage.Annotations; + //Load the annotation + PdfLoadedLineAnnotation loadedLine = annots[0] as PdfLoadedLineAnnotation; + //Get annoatation review history + PdfLoadedPopupAnnotationCollection review = loadedLine.ReviewHistory; + PdfLoadedPopupAnnotationCollection comments = loadedLine.Comments; + //Add new review and comments + PdfPopupAnnotation newReview = new PdfPopupAnnotation(); + newReview.Author = "NewpopupAuthor"; + newReview.State = PdfAnnotationState.Completed; + newReview.StateModel = PdfAnnotationStateModel.Review; + //Add review history + loadedLine.ReviewHistory.Add(newReview); + PdfPopupAnnotation newComment = new PdfPopupAnnotation(); + newComment.Author = "Comment1"; + newComment.Text = "comment1Text"; + loadedLine.Comments.Add(newComment); + //Save the document + ldoc.Save("Output.pdf"); + //Close the document + ldoc.Close(true); + + + Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("MutipleReview_Edit.pdf") + Dim lpage As PdfLoadedPage = CType(ldoc.Pages(0), PdfLoadedPage) + Dim annots As PdfLoadedAnnotationCollection = lpage.Annotations + Dim loadedLine As PdfLoadedLineAnnotation = CType(annots(0), PdfLoadedLineAnnotation) + Dim review As PdfLoadedPopupAnnotationCollection = loadedLine.ReviewHistory + Dim comments As PdfLoadedPopupAnnotationCollection = loadedLine.Comments + Dim newComment As PdfPopupAnnotation = New PdfPopupAnnotation + newComment.Author = "Comment1" + newComment.Text = "comment1Text" + loadedLine.Comments.Add(newComment) + Dim newReview As PdfPopupAnnotation = New PdfPopupAnnotation + newReview.Author = "NewpopupAuthor" + newReview.State = PdfAnnotationState.Completed + newReview.StateModel = PdfAnnotationStateModel.Review + 'Add review history + loadedLine.ReviewHistory.Add(newReview) + 'Save the document + ldoc.Save("EditState.pdf") + 'Close the document + ldoc.Close(true) + + + + + + Removes the reviews or comments + + The popup annotation value. + + + //Load the PDF document + PdfLoadedDocument ldoc = new PdfLoadedDocument("MutipleReview_Edit.pdf"); + //Load the PDF document page + PdfLoadedPage lpage = ldoc.Pages[0] as PdfLoadedPage; + PdfLoadedAnnotationCollection annots = lpage.Annotations; + //Load the annotation + PdfLoadedLineAnnotation loadedLine = annots[0] as PdfLoadedLineAnnotation; + //Get annoatation review history + PdfLoadedPopupAnnotationCollection review = loadedLine.ReviewHistory; + PdfLoadedPopupAnnotationCollection comments = loadedLine.Comments; + PdfPopupAnnotation newComment = new PdfPopupAnnotation(); + newComment.Author = "Comment1"; + newComment.Text = "comment1Text"; + loadedLine.Comments.Add(newComment); + //Create new review history + PdfPopupAnnotation newReview = new PdfPopupAnnotation(); + newReview.Author = "NewpopupAuthor"; + newReview.State = PdfAnnotationState.Completed; + newReview.StateModel = PdfAnnotationStateModel.Review; + //Add review history + loadedLine.ReviewHistory.Add(newReview); + //Remove review and comments + loadedLine.ReviewHistory.Remove(newReview); + loadedLine.Comments.Remove(newComment); + //Save the document + ldoc.Save("Output.pdf"); + //Close the document + ldoc.Close(true); + + + Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("MutipleReview_Edit.pdf") + Dim lpage As PdfLoadedPage = CType(ldoc.Pages(0), PdfLoadedPage) + Dim annots As PdfLoadedAnnotationCollection = lpage.Annotations + Dim loadedLine As PdfLoadedLineAnnotation = CType(annots(0), PdfLoadedLineAnnotation) + Dim review As PdfLoadedPopupAnnotationCollection = loadedLine.ReviewHistory + Dim comments As PdfLoadedPopupAnnotationCollection = loadedLine.Comments + Dim newComment As PdfPopupAnnotation = New PdfPopupAnnotation + newComment.Author = "Comment1" + newComment.Text = "comment1Text" + loadedLine.Comments.Add(newComment) + Dim newReview As PdfPopupAnnotation = New PdfPopupAnnotation + newReview.Author = "NewpopupAuthor" + newReview.State = PdfAnnotationState.Completed + newReview.StateModel = PdfAnnotationStateModel.Review + 'Add review history + loadedLine.ReviewHistory.Add(newReview) + 'Remove review and comments + loadedLine.ReviewHistory.Remove(newReview) + loadedLine.Comments.Remove(newComment) + 'Save the document + ldoc.Save("Output.pdf") + 'Close the document + ldoc.Close(true) + + + + + + Removes the annotation comments or reviews at the specified index + + The index value. + + + //Load the PDF document + PdfLoadedDocument ldoc = new PdfLoadedDocument("MutipleReview_Edit.pdf"); + //Load the PDF document page + PdfLoadedPage lpage = ldoc.Pages[0] as PdfLoadedPage; + PdfLoadedAnnotationCollection annots = lpage.Annotations; + //Load the annotation + PdfLoadedLineAnnotation loadedLine = annots[0] as PdfLoadedLineAnnotation; + //Get annoatation review history + PdfLoadedPopupAnnotationCollection review = loadedLine.ReviewHistory; + PdfLoadedPopupAnnotationCollection comments = loadedLine.Comments; + PdfPopupAnnotation newComment = new PdfPopupAnnotation(); + newComment.Author = "Comment1"; + newComment.Text = "comment1Text"; + loadedLine.Comments.Add(newComment); + //Create new review history + PdfPopupAnnotation newReview = new PdfPopupAnnotation(); + newReview.Author = "NewpopupAuthor"; + newReview.State = PdfAnnotationState.Completed; + newReview.StateModel = PdfAnnotationStateModel.Review; + //Add review history + loadedLine.ReviewHistory.Add(newReview); + //Remove review and comments + loadedLine.ReviewHistory.RemoveAt(0); + loadedLine.Comments.RemoveAt(0); + //Save the document + ldoc.Save("Output.pdf"); + //Close the document + ldoc.Close(true); + + + Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("MutipleReview_Edit.pdf") + Dim lpage As PdfLoadedPage = CType(ldoc.Pages(0), PdfLoadedPage) + Dim annots As PdfLoadedAnnotationCollection = lpage.Annotations + Dim loadedLine As PdfLoadedLineAnnotation = CType(annots(0), PdfLoadedLineAnnotation) + Dim review As PdfLoadedPopupAnnotationCollection = loadedLine.ReviewHistory + Dim comments As PdfLoadedPopupAnnotationCollection = loadedLine.Comments + Dim newComment As PdfPopupAnnotation = New PdfPopupAnnotation + newComment.Author = "Comment1" + newComment.Text = "comment1Text" + loadedLine.Comments.Add(newComment) + Dim newReview As PdfPopupAnnotation = New PdfPopupAnnotation + newReview.Author = "NewpopupAuthor" + newReview.State = PdfAnnotationState.Completed + newReview.StateModel = PdfAnnotationStateModel.Review + 'Add review history + loadedLine.ReviewHistory.Add(newReview) + 'Remove review and comments + loadedLine.ReviewHistory.RemoveAt(0) + loadedLine.Comments.RemoveAt(0) + 'Save the document + ldoc.Save("Output.pdf") + 'Close the document + ldoc.Close(true) + + + + + + Check to avoid should not create child review state. + + The annotation dictionary value. + + + + + To update comment state on PdfArray from annotation + + The annotation value. + + + + To update review state from PdfAnnotaion into PdfArray + + The annotation value. + + + + Get or set the annotationcollection + + + + //Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Initialize an object for export annotation collection + PdfExportAnnotationCollection collection = new PdfExportAnnotationCollection(); + //Get the first page from the document + PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; + //Add loaded annotations into the export annotation collection + collection.Add(page.Annotations[0] as PdfLoadedAnnotation); + collection.Add(page.Annotations[1] as PdfLoadedAnnotation); + //Initialize an instance of MemoryStream + MemoryStream stream = new MemoryStream(); + //Export selected annotation's data into Json format + document.ExportAnnotations(stream, AnnotationDataFormat.Json, "Annotation.pdf", collection); + //Close and dispose the document + document.Close(true); + document.Dispose(); + + + 'Load an existing document + Dim document As New PdfLoadedDocument("Input.pdf") + 'Initialize an object for export annotation collection + Dim collection As New PdfExportAnnotationCollection() + 'Get the first page from the document + Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) + 'Add loaded annotations into the export annotation collection + collection.Add(TryCast(page.Annotations[0], PdfLoadedAnnotation)) + collection.Add(TryCast(page.Annotations[1], PdfLoadedAnnotation)) + 'Initialize an instance of MemoryStream + Dim stream As New MemoryStream() + 'Export selected annotation's data into Json format + document.ExportAnnotations(stream, AnnotationDataFormat.Json, "Annotation.pdf", collection) + 'Close and dispose the document + document.Close(true) + document.Dispose() + + + + + + Get or set export appearance + + + + + Initializes a new instance of the class. + + The filename. + + + + Convert AP stream into JSON format stream + + The primitive value. + + + + + Write AP dictionary into JSON + + The text writer value. + The dictionary value. + + + + Write AP primitive objects into JSON + + The text writer value. + The key value. + The primitive value. + The array writer value. + + + + Write Array format JSON primitives + + The text writer value. + The array value. + + + + Convert primitives into JSON list format + + The list value. + + + + + Export appearance dictionary into JSON format + + The primitive value. + + + + + 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 + + + + Collection of button items. + + + + + Gets or sets the complex script language support. + + + + //Load existing PDF document. + PdfLoadedDocument ldoc = new PdfLoadedDocument("form.pdf"); + //Load the existing button box field. + PdfLoadedButtonField button = lfied as PdfLoadedButtonField; + //Create font. + Font font = new Font("Tahoma", 10f); + //Create a new PDF font instance. + PdfFont pdfFont = new PdfTrueTypeFont(font, FontStyle.Regular, 10f, true, true); + //Set font. + button.Font = pdfFont; + //Enable complex script support. + button.ComplexScript = true; + ldoc.Form.SetDefaultAppearance(false); + //Save the document. + ldoc.Save("output.pdf"); + //Close the document. + ldoc.Close(true); + + + 'Load existing PDF document. + Dim ldoc As New PdfLoadedDocument("form.pdf") + 'Load the existing button box field. + Dim button As PdfLoadedButtonField = TryCast(ldoc.Form.Fields(0), PdfLoadedButtonField) + 'Create font. + Dim font As New Font("Tahoma", 10F) + 'Create a new PDF font instance. + Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, FontStyle.Regular, 10F, True, True) + 'Set font. + button.Font = pdfFont + 'Enable complex script support. + button.ComplexScript = True + ldoc.Form.SetDefaultAppearance(False) + 'Save the document. + ldoc.Save("output.pdf") + 'Close the document. + 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 + + + + 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 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 font family name. + 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) + + + + + + Remove the PdfLoadedButtonField item at the specified index. + + + + //Load an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the loaded form. + PdfLoadedForm loadedForm = loadedDocument.Form; + //Get the buttonField + PdfLoadedButtonField buttonField = loadedForm.Fields[0] as PdfLoadedButtonField; + //Remove the buttonField item + buttonField.RemoveAt(0); + //Save the modified document. + loadedDocument.Save("form.pdf"); + //Close the document + loadedDocument.Close(true); + + + + + + Remove the particular PdfLoadedButtonItem from PdfLoadedButtonField. + + + + //Load an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the loaded form. + PdfLoadedForm loadedForm = loadedDocument.Form; + //Get the buttonField + PdfLoadedButtonField buttonField = loadedForm.Fields[0] as PdfLoadedButtonField; + //Get the buttonField Item + PdfLoadedButtonItem buttonFieldItem = textBoxField.Items[0] as PdfLoadedButtonItem; + //Remove the buttonField item + loadedField.Remove(buttonFieldItem); + //Save the modified document. + loadedDocument.Save("form.pdf"); + //Close the document + loadedDocument.Close(true); + + + + + + 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 + + + + Initializes a new instance of the class. + + The field. + The index. + The dictionary. + + + + Cloning the PdfLoadedButtonItem. + + + + + + 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 + + + + 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 + + + + Adds the specified item. + + The item. + + + + Cloning the PdfLoadedButtonItemCollection + + + + + + 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. + + + + + 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 or sets the back color of the field + + + + + Gets or sets the fore color of the field. + + + + + Gets or sets the checkbox style of the field. + + + + + 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 + + + + 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 PdfLoadedCheckBoxField. + + + + + Creates a copy of PdfLoadedCheckBoxItem. + + + + + Remove the PdfLoadedCheckBoxField item at the specified index. + + + + //Load an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the loaded form. + PdfLoadedForm loadedForm = loadedDocument.Form; + //Get the checkBoxField + PdfLoadedCheckBoxField checkBoxField = loadedForm.Fields[0] as PdfLoadedCheckBoxField; + //Remove the checkBoxField item + checkBoxField.RemoveAt(0); + //Save the modified document. + loadedDocument.Save("form.pdf"); + //Close the document + loadedDocument.Close(true); + + + + + + Remove the particular PdfLoadedCheckBoxItem from PdfLoadedCheckBoxField. + + + + //Load an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the loaded form. + PdfLoadedForm loadedForm = loadedDocument.Form; + //Get the checkBox Field + PdfLoadedCheckBoxField checkBoxField = loadedForm.Fields[0] as PdfLoadedCheckBoxField; + //Get the checkBoxField Item + PdfLoadedCheckBoxItem checkBoxFieldItem = checkBoxField.Items[0] as PdfLoadedCheckBoxItem; + //Remove the checkBoxField item + loadedField.Remove(checkBoxFieldItem); + //Save the modified document. + loadedDocument.Save("form.pdf"); + //Close the document + loadedDocument.Close(true); + + + + + + Get the PdfLoadedCheckBoxItem using export value from PdfLoadedCheckBoxField + + + + //Load an existing document + PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); + //Load an existing Check field + PdfLoadedCheckBoxField checkField = doc.Form.Fields["Java"] as PdfLoadedCheckBoxField; + PdfLoadedCheckBoxItem checkBoxItem = null; + //Get checkbox item using an export value + checkField.TryGetFieldItem("3", out checkBoxItem); + 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) + 'Get checkbox item using an export value + Dim checkBoxItem As PdfLoadedCheckBoxItem = Nothing + checkField.TryGetFieldItem("3", checkBoxItem) + doc.Save("Form.pdf") + doc.Close(True) + + + The export value. + The field name. + + + + + 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 + + + + 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) + + + + + + Index of the specified item. + + The item. + The index of specified item + + + + Adds the specified item. + + The item. + + + + Cloning the PdfLoadedCheckBoxItemCollection + + + + + + 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 + + + + Gets or sets the style. + + The object specifies the style of the check box field. + + + + Gets the export value of the checkbox field. + + + + //Load the PDF document. + FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read); + PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream); + //Get the loaded form. + PdfLoadedForm loadedForm = loadedDocument.Form; + //Read the check box from field collection. + PdfLoadedCheckBoxField checkBoxField = loadedDocument.Form.Fields[0] as PdfLoadedCheckBoxField; + //Get the first item of the check box field. + PdfLoadedCheckBoxFieldItem checkBoxItem = checkBoxField.Items[0]; + //Get the export value of the check box item. + string export = checkBoxItem.ExportValue; + //Close the document + loadedDocument.Close(true); + + + + + + 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 + + + + 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 + + + + Get or sets the back color of the field + + + + + Gets or sets the fore color of the field. + + + + + 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 + + + + 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. + + + + + Gets or sets the complex script language support. + + + + //Load existing PDF document. + PdfLoadedDocument ldoc = new PdfLoadedDocument("form.pdf"); + //Load the existing combo box field. + PdfLoadedComboBoxField combo = lfied as PdfLoadedComboBoxField; + //Create font. + Font font = new Font("Tahoma", 10f); + //Create a new PDF font instance. + PdfFont pdfFont = new PdfTrueTypeFont(font, FontStyle.Regular, 10f, true, true); + //Set font. + combo.Font = pdfFont; + //Enable complex script support. + combo.ComplexScript = true; + ldoc.Form.SetDefaultAppearance(false); + //Save the document. + ldoc.Save("output.pdf"); + //Close the document. + ldoc.Close(true); + + + 'Load existing PDF document. + Dim ldoc As New PdfLoadedDocument("form.pdf") + 'Load the existing combo box field. + Dim combo As PdfLoadedComboBoxField = TryCast(ldoc.Form.Fields(0), PdfLoadedComboBoxField) + 'Create font. + Dim font As New Font("Tahoma", 10F) + 'Create a new PDF font instance. + Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, FontStyle.Regular, 10F, True, True) + 'Set font. + combo.Font = pdfFont + 'Enable complex script support. + combo.ComplexScript = True + ldoc.Form.SetDefaultAppearance(False) + 'Save the document. + ldoc.Save("output.pdf") + 'Close the document. + ldoc.Close(True) + + + + + + check whether the combo box field is autosize. + + + + + 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 text alignment. + + + + // Load an existing document. + PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); + // Load an existing combo box field by its name. + PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField; + // Set text alignment to center for the combo box field. + comboField.TextAlignment = PdfTextAlignment.Center; + // Save the updated document. + doc.Save("Form.pdf"); + doc.Close(true); + + + ' Load an existing document. + Dim doc As New PdfLoadedDocument("SourceForm.pdf") + ' Load an existing combo box field by its name. + Dim comboField As PdfLoadedComboBoxField = TryCast(doc.Form.Fields("EmployeeCombo"), PdfLoadedComboBoxField) + ' Set text alignment to center for the combo box field. + comboField.TextAlignment = PdfTextAlignment.Center + ' Save the updated document. + doc.Save("Form.pdf") + doc.Close(True) + + + + + + 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) + + + + + + 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 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 font family name. + The calculated size of font. + + + + Remove the PdfLoadedComboBoxField item at the specified index. + + + + //Load an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the loaded form. + PdfLoadedForm loadedForm = loadedDocument.Form; + //Get the comboBoxField + PdfLoadedComboBoxField comboBoxField = loadedForm.Fields[0] as PdfLoadedComboBoxField; + //Remove the comboBoxField item + comboBoxField.RemoveAt(0); + //Save the modified document. + loadedDocument.Save("form.pdf"); + //Close the document + loadedDocument.Close(true); + + + + + + Remove the particular PdfLoadedComboBoxItem from PdfLoadedComboBoxField. + + + + //Load an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the loaded form. + PdfLoadedForm loadedForm = loadedDocument.Form; + //Get the comboBoxField + PdfLoadedComboBoxField comboBoxField = loadedForm.Fields[0] as PdfLoadedComboBoxField; + //Get the comboBoxfield item + PdfLoadedComboBoxItem comboBoxFieldItem = comboBoxField.Items[0] as PdfLoadedComboBoxItem; + //Remove the ComboBoxItem + loadedField.Remove(comboBoxFieldItem); + //Save the modified document. + loadedDocument.Save("form.pdf"); + //Close the document + loadedDocument.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 + + + + 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 + + + + Cloning PdfLoadedComboBoxItemCollection. + + + + + + Represents a collection of state items. + + Class + + + + Gets the at the specified index.[Read-Only] + + The index of specified item. + + + + Index of the specified item. + + The item. + The index of specified item + + + + Adds the specified item. + + The item. + + + + 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 + + + + NameChanged event handler. + + New name of the field. + + + + Form field identifier + + + + + Cross Table. + + + + + Indicates was field changed or not. + + + + + Indicates was Form field changed or not for fore color, backcolor property has changed. + + + + + Represents index used to default annotation. + + + + + Represent's the field name. + + + + + Represent's the field page. + + + + + Internal variable to store form. + + + + + 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 field changed for fore color, backcolor property has changed. + + + + + Gets or sets the index of the default. + + + + + 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 field's annotation. + + The array of fields annotations. + + + + Get the annotation widget dictionary. + + The dictionary. + The cross table. + + + + + 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. + + + + + + Get the export value for radio button, check box and button fields + + The field value. + The button field primitive. + + + + + Exports the form fields. + + Stream. + Object identifier. + + + + Imports the form fields. + + The text writer value. + + + + Validates the string. + + The text1. + + + + + Gets the name of the field. + + + + + + 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. + + + + + 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. + + + + 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 + + + + + Export and import of form fields + + + + + Store crooss table. + + + + + Dictionaries of tremil fields. + + + + + Indicates is field modified or not. + + + + + Indicates is xfa form or not. + + + + + Indicates Extended feature. + + + + + A string with all delimeter characters of json format except whitespaces, + which are listed elsewhere. + + + + + 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 + + + + Enabling this property will fill both the AcroForm and XFA fields, and disabling this property will fill only AcroForm fields. + + + //Load an existing document + PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); + // Load the existing form + PdfLoadedForm loadedForm = doc.Form; + //Set EnableXfaForm + loadedForm.EnableXfaFormFill = true; + PdfLoadedTextBoxField loadedTextBoxFieldDate = loadedForm.Fields[0] as PdfLoadedTextBoxField; + loadedTextBoxFieldDate.Text = "PDF"; + 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.EnableXfaFormFill = True + Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) + ldField.Text = "PDF" + doc.Save("Form.pdf") + doc.Close(True) + + + + + + + Gets or sets the ExportEmptyFields property, enabling this will export the empty acroform fields. + + + //Load an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + // Load an existing form + PdfLoadedForm loadedForm = loadedDocument.Form; + //Export empty fields + loadedForm.ExportEmptyFields = true; + //Export the existing PDF document to XML file + loadedForm.ExportData("Output.xml", DataFormat.Xml, @"AcroForm1"); + //Close the document + loadedDocument.Close(true); + + + 'Load an existing document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + 'Load the existing form + Dim loadedForm As PdfLoadedForm = loadedDocument.Form + 'Export empty fields + loadedForm.ExportEmptyFields = True + 'Export the existing PDF document to XML file + loadedForm.ExportData("Output.xml", DataFormat.Xml, "AcroForm1") + loadedDocument.Close(True) + + + + + + + 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. + + + + + 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 + + The node name value. + + + + + Find the given document contain extended feature dictionary. + + The catalog. + + + + 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 file with specified ExportFormSettings. + + + + // Loads an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("../../Data/ChineseValue.pdf"); + // Load an existing form + PdfLoadedForm loadedForm = loadedDocument.Form; + //Create new instance for export form settings. + ExportFormSettings settings = new ExportFormSettings(); + //Gets or sets the data format to export form fields. + settings.DataFormat = DataFormat.Fdf; + //Gets or sets the value that indicates the form name of the PDF form is export. + settings.FormName = "formname"; + //Export the form data to a file with specified ExportFormSettings. + loadedForm.ExportData("ChineseValue.Fdf", settings); + //Save the PDF document + loadedDocument.Save("ChineseValue.pdf"); + //close the document + loadedDocument.Close(true); + + + 'Load an existing document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("../../Data/ChineseValue.pdf") + 'Load an existing form + Dim loadedForm As PdfLoadedForm = loadedDocument.Form + 'Create new instance for export form settings. + Dim settings As ExportFormSettings = New ExportFormSettings() + 'Gets or sets the data format to export form fields. + settings.DataFormat = DataFormat.Fdf + 'Gets or sets the value that indicates the form name of the PDF form is export. + settings.FormName = "formname" + 'Export the form data to a file with specified ExportFormSettings. + loadedForm.ExportData("ChineseValue.Fdf", settings) + 'Save the PDF document + loadedDocument.Save("ChineseValue.pdf") + 'close the document + loadedDocument.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 + The formName is only applicable when exporting data in FDF and XFDF formats. + + + // 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.XFdf, "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.XFdf, "SourceForm.pdf") + doc.Close(True) + + + + + + Export the form data to a stream with specified ExportFormSettings. + + + + // Load an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("../../Data/ChineseValue.pdf"); + // Load an existing form + PdfLoadedForm loadedForm = loadedDocument.Form; + //Create new instance for export form settings. + ExportFormSettings settings = new ExportFormSettings(); + //Gets or sets the data format to export form fields. + settings.DataFormat = DataFormat.Fdf; + //Gets or sets the value that indicates the form name of the PDF form is export. + settings.FormName = "formname"; + MemoryStream stream = new MemoryStream(); + //Export the form data to a stream with specified ExportFormSettings. + loadedForm.ExportData(stream, settings); + //Save the PDF document + loadedDocument.Save("ChineseValue.pdf"); + //close the document + loadedDocument.Close(true); + + + 'Load an existing document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("../../Data/ChineseValue.pdf") + 'Load an existing form + Dim loadedForm As PdfLoadedForm = loadedDocument.Form + 'Create new instance for export form settings. + Dim settings As ExportFormSettings = New ExportFormSettings() + 'Gets or sets the data format to export form fields. + settings.DataFormat = DataFormat.Fdf + 'Gets or sets the value that indicates the form name of the PDF form is export. + settings.FormName = "formname" + 'Export the existing PDF document to FDF file + Dim stream As MemoryStream = New MemoryStream() + 'Export the form data to a stream with specified ExportFormSettings. + loadedForm.ExportData(stream, settings) + 'Save the PDF document + loadedDocument.Save("ChineseValue.pdf") + 'close the document + loadedDocument.Close(True) + + + + + + PDF provides support to flatten a form field by removing the existing form field and replacing it with graphical objects that would resemble the form field and cannot be edited. + Flatten the form fields. + + + + // Load an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("../../Data/input.pdf"); + // Load an existing form + PdfLoadedForm loadedForm = loadedDocument.Form; + // Flatten the form fields. + loadedForm.FlattenFields(); + //Save the PDF document + loadedDocument.Save("output.pdf"); + //close the document + loadedDocument.Close(true); + + + 'Load an existing document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("../../Data/input.pdf") + 'Load an existing form + Dim loadedForm As PdfLoadedForm = loadedDocument.Form + 'Flatten the form fields. + loadedForm.FlattenFields() + 'Save the PDF document + loadedDocument.Save("output.pdf") + 'close the document + loadedDocument.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 + + The stream value. + + + + Exports the form data in JSON file format + + The stream value. + + + + Gets the export value for loaded list and combo box fields. + + The field primitive value. + + + + 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. + + + + Get Fields dictionary to create Form Fields + + The page value. + The widget reference. + + + + 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 specified ImportFormSettings. + + + + //Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Load an existing form + loadedForm = document.Form; + //Create new instance for import form settings. + ImportFormSettings settings = new ImportFormSettings(); + //Gets or sets the data format to import form fields. + settings.DataFormat = DataFormat.Fdf; + //Gets or sets the value that indicates the form name of the PDF form is import. + settings.FormName = "../../FDF_output.pdf"; + //Imports the form data from the file with the specified ImportFormSettings. + loadedForm.ImportData("ImportFDF.fdf", settings); + //Save the PDF document + document.Save("WF_60299_Fdf.pdf"); + //close the document + document.Close(true); + + + 'Load an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + ' Load an existing form + loadedForm = document.Form + Dim settings As ImportFormSettings = New ImportFormSettings() + 'Gets or sets the data format to import form fields. + settings.DataFormat = DataFormat.Fdf + 'Gets or sets the value that indicates the form name of the PDF form is import. + settings.FormName = "../../FDF_output.pdf" + 'Imports the form data from the file with the specified ImportFormSettings. + loadedForm.ImportData("ImportFDF.fdf", settings) + //Save the PDF document + document.Save("WF_60299_Fdf.pdf") + //close the document + document.Close(True) + + + + + + Imports the form data from the file with the specific . + + Array data of the file. + The data format. + + + //Load an existing document + PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); + // Load the existing form + PdfLoadedForm form = doc.Form; + byte[] array = System.IO.File.ReadAllBytes("ImportData.xml"); + form.ImportData(array,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 + Dim array as byte[] =System.IO.File.ReadAllBytes("ImportData.xml") + form.ImportData(array,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 form data from the file with the specific . + + Array data 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; + byte[] array = System.IO.File.ReadAllBytes("ImportData.xml"); + 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 + Dim array as byte[] =System.IO.File.ReadAllBytes("ImportData.xml") + form.ImportData(array,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 Json file. + + The Json file + + + //Load an existing document. + PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); + // Load the existing form + PdfLoadedForm form = doc.Form; + // Import the JSON file + form.ImportDataJson("ImportJSON.json"); + 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 JSON file + form.ImportDataJson("ImportJSON.json") + doc.Save("Import.pdf") + doc.Close(True) + + + + + + Import form data from Json file. + + Array data of Json file + + + //Load an existing document. + PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); + // Load the existing form + PdfLoadedForm form = doc.Form; + byte[] array = System.IO.File.ReadAllBytes(ImportJSON.json); + // Import the JSON file + form.ImportDataJson(array); + 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 + Dim array as byte[]=System.IO.File.ReadAllBytes(ImportJSON.json) + ' Import the JSON file + form.ImportDataJson(array) + doc.Save("Import.pdf") + doc.Close(True) + + + + + + Import form data from Json file. + + The Json file stream + + + //Load an existing document. + PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); + // Load the existing form + PdfLoadedForm form = doc.Form; + // Load the Json file + FileStream stream = new FileStream("ImportJSON.json", FileMode.Open); + // Import the JSON file stream + form.ImportDataJson(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 Json file + Dim stream As FileStream= new FileStream("ImportJSON.json", FileMode.Open) + ' Import the JSON file stream + form.ImportDataJson(stream) + doc.Save("Import.pdf") + doc.Close(True) + + + + + + Import form data from FDF file. + + The FDF file stream + + + //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); + 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) + doc.Save("Import.pdf") + doc.Close(True) + + + + + + Import form data from FDF file. + + Array data of the fdf file. + + + //Load an existing document. + PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); + // Load the existing form + PdfLoadedForm form = doc.Form; + // Load the FDF file + byte[] array = System.IO.File.ReadAllBytes("ImportFDF.fdf"); + // Import the FDF stream + form.ImportDataFDF(array); + 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 array As byte[] = System.IO.File.ReadAllBytes("ImportFDF.fdf") + ' Import the FDF stream + form.ImportDataFDF(array) + doc.Save("Import.pdf") + doc.Close(True) + + + + + + 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. + + Array data of the xfdf file. + + + //Load an existing document. + PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); + // Load the existing form + PdfLoadedForm form = doc.Form; + // Load the XFDF file + byte[] array = System.IO.File.ReadAllBytes("ImportXFDF.xfdf"); + // Import the XFDF stream + form.ImportDataXFDF(array); + 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 array As byte[] = System.IO.File.ReadAllBytes("ImportXFDF.xfdf") + ' Import the XFDF stream + form.ImportDataXFDF(array) + 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) + doc.Save("Import.pdf") + doc.Close(True) + + + + + + Imports the form data from the stream with the specified ImportFormSettings. + + + + // Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + // Load an existing form + loadedForm = document.Form; + //Create new instance for import form settings. + ImportFormSettings settings = new ImportFormSettings(); + // Gets or sets the data format to import form fields. + settings.DataFormat = DataFormat.Fdf; + //Gets or sets the value that indicates the form name of the PDF form is import. + settings.FormName = "../../FDF_output.pdf"; + FileStream stream = new FileStream("ImportFDF.fdf", FileMode.Open); + //Imports the form data from the stream with the specified ImportFormSettings. + loadedForm.ImportData(stream, settings); + //Save the PDF document + document.Save("WF_60299_Fdf.pdf"); + //close the document + document.Close(true); + + + 'Load an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + 'Load an existing form + loadedForm = document.Form + 'Create new instance for import form settings. + Dim settings As ImportFormSettings = New ImportFormSettings() + 'Gets or sets the data format to import form fields. + settings.DataFormat = DataFormat.Fdf + 'Gets or sets the value that indicates the form name of the PDF form is import. + settings.FormName = "../../FDF_output.pdf" + Dim stream As FileStream = New FileStream("ImportFDF.fdf", FileMode.Open) + 'Imports the form data from the stream with the specified ImportFormSettings. + loadedForm.ImportData(stream, settings) + //Save the PDF document + document.Save("WF_60299_Fdf.pdf") + //close the document + document.Close(True) + + + + + + Checks if any of the field in the form field collection is flattened. + + + + + Order the form fields by provided form fields tab order. + + Specifies tab order types for form fields. + + + + Represents node information. + + + + + Parsed field count. + + + + + Current kids array. + + + + + Gets or sets the current array. + + + + + Gets or sets the count. + + + + + Initializes a new instance of the class. + + The fields. + 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) + + + + + + Class that represents the form field export settings. + + + + // Load an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("../../Data/ChineseValue.pdf"); + // Load an existing form + PdfLoadedForm loadedForm = loadedDocument.Form; + //Create new instance for export form settings. + ExportFormSettings settings = new ExportFormSettings(); + //Gets or sets the data format to export form fields. + settings.DataFormat = DataFormat.Fdf; + //Gets or sets the value that indicates the form name of the PDF form is export. + settings.FormName = "formname"; + //Export the form data to a file with specified ExportFormSettings. + loadedForm.ExportData("ChineseValue.Fdf", settings); + //Save the PDF document + loadedDocument.Save("ChineseValue.pdf"); + //close the document + loadedDocument.Close(true); + + + 'Load an existing document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("../../Data/ChineseValue.pdf") + 'Load an existing form + Dim loadedForm As PdfLoadedForm = loadedDocument.Form + 'Create new instance for export form settings. + Dim settings As ExportFormSettings = New ExportFormSettings() + 'Gets or sets the data format to export form fields. + settings.DataFormat = DataFormat.Fdf + 'Gets or sets the value that indicates the form name of the PDF form is export. + settings.FormName = "formname" + 'Export the form data to a file with specified ExportFormSettings. + loadedForm.ExportData("ChineseValue.Fdf", settings) + 'Save the PDF document + loadedDocument.Save("ChineseValue.pdf") + 'close the document + loadedDocument.Close(True) + + + + + + Gets or sets data format to export form fields. + + + + // Load an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("../../Data/ChineseValue.pdf"); + // Load an existing form + PdfLoadedForm loadedForm = loadedDocument.Form; + //Create new instance for export form settings. + ExportFormSettings settings = new ExportFormSettings(); + //Gets or sets the data format to export form fields. + settings.DataFormat = DataFormat.Fdf; + //Export the form data to a file with specified ExportFormSettings. + loadedForm.ExportData("ChineseValue.Fdf", settings); + //Save the PDF document + loadedDocument.Save("ChineseValue.pdf"); + //close the document + loadedDocument.Close(true); + + + 'Load an existing document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("../../Data/ChineseValue.pdf") + 'Load an existing form + Dim loadedForm As PdfLoadedForm = loadedDocument.Form + 'Create new instance for export form settings. + Dim settings As ExportFormSettings = New ExportFormSettings() + 'Gets or sets the data format to import form fields. + settings.DataFormat = DataFormat.Fdf + 'Export the form data to a file with specified ExportFormSettings. + loadedForm.ExportData("ChineseValue.Fdf", settings) + 'Save the PDF document + loadedDocument.Save("ChineseValue.pdf") + 'close the document + loadedDocument.Close(True) + + + + + + Gets or sets the value that indicates the form name of the PDF form is export. + + + + // Load an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("../../Data/ChineseValue.pdf"); + // Load an existing form + PdfLoadedForm loadedForm = loadedDocument.Form; + //Create new instance for export form settings. + ExportFormSettings settings = new ExportFormSettings(); + //Gets or sets the value that indicates the form name of the PDF form is export. + settings.FormName = "formname"; + //Export the form data to a file with specified ExportFormSettings. + loadedForm.ExportData("ChineseValue.Fdf", settings); + //Save the PDF document + loadedDocument.Save("ChineseValue.pdf"); + //close the document + loadedDocument.Close(true); + + + 'Load an existing document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("../../Data/ChineseValue.pdf") + 'Load an existing form + Dim loadedForm As PdfLoadedForm = loadedDocument.Form + 'Create new instance for export form settings. + Dim settings As ExportFormSettings = New ExportFormSettings() + 'Gets or sets the value that indicates the form name of the PDF form is export. + settings.FormName = "formname" + 'Export the form data to a file with specified ExportFormSettings. + loadedForm.ExportData("ChineseValue.Fdf", settings) + 'Save the PDF document + loadedDocument.Save("ChineseValue.pdf") + 'close the document + loadedDocument.Close(True) + + + + + + Class that represents the form field import settings. + + + + // Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + // Load an existing form + loadedForm = document.Form; + //Create new instance for import form settings. + ImportFormSettings settings = new ImportFormSettings(); + // Gets or sets the data format to import form fields. + settings.DataFormat = DataFormat.Fdf; + //Gets or sets the value that indicates the form name of the PDF form is import. + settings.FormName = "../../FDF_output.pdf"; + //Imports the form data from the file with the specified ImportFormSettings. + loadedForm.ImportData("WF_60299.Fdf", settings); + //Save the PDF document + document.Save("WF_60299_Fdf.pdf"); + //close the document + document.Close(true); + + + 'Load an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + 'Load an existing form + loadedForm = document.Form + 'ImportFormSettings that represents the form field import settings. + Dim settings As ImportFormSettings = New ImportFormSettings() + 'Gets or sets the data format to import form fields. + settings.DataFormat = DataFormat.Fdf + 'Gets or sets the value that indicates the form name of the PDF form is import. + settings.FormName = "../../FDF_output.pdf" + 'Imports the form data from the file with the specified ImportFormSettings. + loadedForm.ImportData("WF_60299.Fdf", settings) + 'Save the PDF document + document.Save("WF_60299_Fdf.pdf") + 'close the document + document.Close(True) + + + + + + Gets or sets data format to import form fields. + + + + // Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + // Load an existing form + loadedForm = document.Form; + //Create new instance for import form settings. + ImportFormSettings settings = new ImportFormSettings(); + // Gets or sets the data format to import form fields. + settings.DataFormat = DataFormat.Fdf; + //Gets or sets the value that indicates the form name of the PDF form is import. + settings.FormName = "../../FDF_output.pdf"; + //Imports the form data from the file with the specified ImportFormSettings. + loadedForm.ImportData("WF_60299.Fdf", settings); + //Save the PDF document + document.Save("WF_60299_Fdf.pdf"); + //close the document + document.Close(true); + + + 'Load an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + 'Load an existing form + loadedForm = document.Form + Dim settings As ImportFormSettings = New ImportFormSettings() + 'Gets or sets the data format to import form fields. + settings.DataFormat = DataFormat.Fdf + 'Gets or sets the value that indicates the form name of the PDF form is import. + settings.FormName = "../../FDF_output.pdf" + 'Imports the form data from the file with the specified ImportFormSettings. + loadedForm.ImportData("WF_60299.Fdf", settings) + 'Save the PDF document + document.Save("WF_60299_Fdf.pdf") + 'close the document + document.Close(True) + + + + + + Gets or sets the value that indicates the form name of the PDF form is import. + + + + // Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + // Load an existing form + loadedForm = document.Form; + //Create new instance for import form settings. + ImportFormSettings settings = new ImportFormSettings(); + //Gets or sets the value that indicates the form name of the PDF form is import. + settings.FormName = "../../FDF_output.pdf"; + // Imports the form data from the file with the specified ImportFormSettings. + loadedForm.ImportData("WF_60299.Fdf", settings); + //Save the PDF document + document.Save("WF_60299_Fdf.pdf"); + //close the document + document.Close(true); + + + 'Load an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + 'Load an existing form + loadedForm = document.Form + 'Create new instance for import form settings. + Dim settings As ImportFormSettings = New ImportFormSettings() + 'Gets or sets the value that indicates the form name of the PDF form is import. + settings.FormName = "../../FDF_output.pdf" + 'Imports the form data from the file with the specified ImportFormSettings. + loadedForm.ImportData("WF_60299.Fdf", settings) + 'Save the PDF document + document.Save("WF_60299_Fdf.pdf") + 'close the document + document.Close(True) + + + + + + Gets or sets a flag describing whether to ignore errors while importing a PDF form. The default value is false. + + + + // Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + // Load an existing form + loadedForm = document.Form; + ImportFormSettings settings = new ImportFormSettings(); + //Gets or sets a flag describing whether to ignore errors while importing a PDF form. The default value is false + settings.IgnoreErrors = true; + // Imports the form data from the file with the specified ImportFormSettings. + loadedForm.ImportData("WF_60299.Fdf", settings); + //Save the PDF document + document.Save("WF_60299_Fdf.pdf"); + //close the document + document.Close(true); + + + 'Load an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + 'Load an existing form + loadedForm = document.Form + Dim settings As ImportFormSettings = New ImportFormSettings() + 'Gets or sets a flag describing whether to ignore errors while importing a PDF form. The default value is false + settings.IgnoreErrors = true; + 'Imports the form data from the file with the specified ImportFormSettings. + loadedForm.ImportData("WF_60299.Fdf", settings) + 'Save the PDF document + document.Save("WF_60299_Fdf.pdf") + 'close the document + document.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. + + + + + 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) + + + + + + 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. + + + + + Validate all signatures and specifies the signatures's validation result. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Validate all signatures and get validation result + List<PdfSignatureValidationResult> results = new List<PdfSignatureValidationResult>(); + bool isValid = document.Form.Fields.ValidateSignatures(out results); + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Validate all signatures and get validation result + Dim results As New List(Of PdfSignatureValidationResult)() + Dim isValid As Boolean = document.Form.Fields.ValidateSignatures(out results) + ' Close the document + document.Close(true) + + + + + + Validate all signatures and specifies the signatures's validation result with validation option + + The validation options. + The result. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Signature validation options + PdfSignatureValidationOptions options = new PdfSignatureValidationOptions(); + // disable revocation status + options.ValidateRevocationStatus = false; + // Validate all signatures and get validation result + List<PdfSignatureValidationResult> results = new List<PdfSignatureValidationResult>(); + bool isValid = document.Form.Fields.ValidateSignatures(options, out results); + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Signature validation options + Dim options As PdfSignatureValidationOptions = New PdfSignatureValidationOptions() + ' disable revocation status + options.ValidateRevocationStatus = False + ' Validate all signatures and get validation result + Dim results As New List(Of PdfSignatureValidationResult)() + Dim isValid As Boolean = document.Form.Fields.ValidateSignatures(options, out results) + ' Close the document + document.Close(true) + + + + + + Validate all signatures and specifies the signatures's validation result with X509Certificate collection. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Validate all signatures and get validation result + List<PdfSignatureValidationResult> results = new List<PdfSignatureValidationResult>(); + // Collection of X509Certificate + X509CertificateCollection certificates = new X509CertificateCollection(); + certificates.Add(X509Certificate.CreateFromCertFile("certificate1.cer")); + certificates.Add(X509Certificate.CreateFromCertFile("certificate2.cer")) + bool isValid = document.Form.Fields.ValidateSignatures(certificates, out results); + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Validate all signatures and get validation result + Dim results As New List(Of PdfSignatureValidationResult)() + Dim certificates As X509CertificateCollection = New X509CertificateCollection() + certificates.Add(X509Certificate.CreateFromCertFile("certificate1.cer")) + certificates.Add(X509Certificate.CreateFromCertFile("certificate2.cer")) + Dim isValid As Boolean = document.Form.Fields.ValidateSignatures(certificates, out results) + ' Close the document + document.Close(true) + + + + + + Validate all signatures and specifies the signatures's validation result with X509Certificate collection with validation option + + The validation options. + The root certificate value. + The result value. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Validate all signatures and get validation result + List<PdfSignatureValidationResult> results = new List<PdfSignatureValidationResult>(); + // Collection of X509Certificate + X509CertificateCollection certificates = new X509CertificateCollection(); + certificates.Add(X509Certificate.CreateFromCertFile("certificate1.cer")); + certificates.Add(X509Certificate.CreateFromCertFile("certificate2.cer")) + // Signature validation options + PdfSignatureValidationOptions options = new PdfSignatureValidationOptions(); + // disable revocation status + options.ValidateRevocationStatus = false; + bool isValid = document.Form.Fields.ValidateSignatures(certificates, options, out results); + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Validate all signatures and get validation result + Dim results As New List(Of PdfSignatureValidationResult)() + Dim certificates As X509CertificateCollection = New X509CertificateCollection() + certificates.Add(X509Certificate.CreateFromCertFile("certificate1.cer")) + certificates.Add(X509Certificate.CreateFromCertFile("certificate2.cer")) + ' Signature validation options + Dim options As PdfSignatureValidationOptions = New PdfSignatureValidationOptions() + ' disable revocation status + options.ValidateRevocationStatus = False + Dim isValid As Boolean = document.Form.Fields.ValidateSignatures(certificates, options, out results) + ' Close the document + document.Close(true) + + + + + + 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) + + + + + + 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. + + + + + Gets or sets the complex script language support. + + + + //Load existing PDF document. + PdfLoadedDocument ldoc = new PdfLoadedDocument("form.pdf"); + //Load the existing list box field. + PdfLoadedListBoxField list = lfied as PdfLoadedListBoxField; + //Create font. + Font font = new Font("Tahoma", 10f); + //Create a new PDF font instance. + PdfFont pdfFont = new PdfTrueTypeFont(font, FontStyle.Regular, 10f, true, true); + //Set font. + list.Font = pdfFont; + //Enable complex script support. + list.ComplexScript = true; + ldoc.Form.SetDefaultAppearance(false); + //Save the document. + ldoc.Save("output.pdf"); + //Close the document. + ldoc.Close(true); + + + 'Load existing PDF document. + Dim ldoc As New PdfLoadedDocument("form.pdf") + 'Load the existing list box field. + Dim list As PdfLoadedListBoxField = TryCast(ldoc.Form.Fields(0), PdfLoadedListBoxField) + 'Create font. + Dim font As New Font("Tahoma", 10F) + 'Create a new PDF font instance. + Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, FontStyle.Regular, 10F, True, True) + 'Set font. + list.Font = pdfFont + 'Enable complex script support. + list.ComplexScript = True + ldoc.Form.SetDefaultAppearance(False) + 'Save the document. + ldoc.Save("output.pdf") + 'Close the document. + ldoc.Close(True) + + + + + + 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 + + + + 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 PdfLoadedListBoxField. + + + + + Creates a copy of PdfLoadedListField Item. + + The dictionary value. + + + + 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 font family name. + The calculated size of font. + + + + Remove the PdfLoadedListBoxField item at the specified index. + + + + //Load an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the loaded form. + PdfLoadedForm loadedForm = loadedDocument.Form; + //Get the listBoxField + PdfLoadedListBoxField listBoxField = loadedForm.Fields[0] as PdfLoadedListBoxField; + //Remove the listBoxField item + listBoxField.RemoveAt(0); + //Save the modified document. + loadedDocument.Save("form.pdf"); + //Close the document + loadedDocument.Close(true); + + + + + + Remove the particular PdfLoadedListFieldItem from PdfLoadedListBoxField. + + + + //Load an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the loaded form. + PdfLoadedForm loadedForm = loadedDocument.Form; + //Get the listBox field + PdfLoadedListBoxField listBoxField = loadedForm.Fields[0] as PdfLoadedListBoxField; + //Get the listBoxField item + PdfLoadedListFieldItem listBoxFieldItem = listBoxField.Items[0] as PdfLoadedListFieldItem; + //Remove the listBoxField item + loadedField.Remove(listBoxFieldItem); + //Save the modified document. + loadedDocument.Save("form.pdf"); + //Close the document + loadedDocument.Close(true); + + + + + + 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 + + + + 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 + + + + Cloning the PdfLoadedListFieldItemCollection. + + + + + + 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. + + + + + Gets or sets the text of the list item. + + A string value representing the display text 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.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 + + + + 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 + + + + 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. + + The text value. + + + + Sets item value. + + The item value. + + + + 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. + + + + + 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 + + + + 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. + + + + 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 + + + + 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 + + + + Index of the specified item. + + The item. + The index of specified item + + + + Adds the specified item. + + The item. + + + + Cloning the PdfLoadedRadioButtonItemCollection. + + + + + + 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 + + + + 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 an option value of the radio button. + + The option value of the radio button field item + + + // Load an existing document + PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); + // Gets the loaded form + PdfLoadedForm form = doc.Form; + //Set default appearance as false + form.SetDefaultAppearance(false); + // Gets the 'Gender' radio button field + PdfLoadedRadioButtonListField radioButtonField = form.Fields["Gender"] as PdfLoadedRadioButtonListField; + // Select the item which contains option value as "Male" + foreach (PdfLoadedRadioButtonItem item in radioButtonField.Items) + { + // Gets an option value of the item + if (item.OptionValue == "Male") + { + item.Selected = true; + } + } + // Save and close the PDF document + doc.Save("Form.pdf"); + doc.Close(true); + + + ' Load an existing document + Dim doc As New PdfLoadedDocument("SourceForm.pdf") + ' Gets the loaded form + Dim form As PdfLoadedForm = doc.Form + 'Set default appearance as false + form.SetDefaultAppearance(False) + ' Gets the 'Gender' radio button field + Dim radioButtonField As PdfLoadedRadioButtonListField = TryCast(form.Fields("Gender"), PdfLoadedRadioButtonListField) + ' Select the item which contains option value as "Male" + For Each item As PdfLoadedRadioButtonItem In radioButtonField.Items + ' Gets an option value of the item + If item.OptionValue = "Male" Then + item.Selected = True + End If + Next + ' Save and close the PDF document + 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. + + + + + 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. + + + + + + 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. + + + + + 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 + + + + Initializes a new instance of the class. + + The dictionary. + The cross table. + + + + Get the radio button item based on its value/option value. + + The item value. + + + + + 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. + + + + + Begins the save. + + + + + Creates a copy of PdfLoadedRadioButtonListField. + + + + + Creates a copy of PdfLoadedRadioButtonListField. + + + + + Creates a copy of PdfLoadedRadioButtonItem. + + + + + Gets option value from Opt dictionary and map it into item. + + + + + Remove the PdfLoadedRadioButtonListField item at the specified index. + + + + //Load an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the loaded form. + PdfLoadedForm loadedForm = loadedDocument.Form; + //Get the radioButton Field + PdfLoadedRadioButtonListField radioButtonField = loadedForm.Fields[0] as PdfLoadedRadioButtonListField; + //Remove the radioButtonField item + radioButtonField.RemoveAt(0); + //Save the modified document. + loadedDocument.Save("form.pdf"); + //Close the document + loadedDocument.Close(true); + + + + + + Remove the particular PdfLoadedRadioButtonItem from PdfLoadedRadioButtonListField. + + + + //Load an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the loaded form. + PdfLoadedForm loadedForm = loadedDocument.Form; + //Get the RadioButtonList field + PdfLoadedRadioButtonListField radioButtonField = loadedForm.Fields[0] as PdfLoadedRadioButtonListField; + //Get the RadioButtonField item + PdfLoadedRadioButtonItem radioButtonFieldItem = radioButtonField.Items[0] as PdfLoadedRadioButtonItem; + //Remove the radioButtonField item + loadedField.Remove(radioButtonFieldItem); + //Save the modified document. + loadedDocument.Save("form.pdf"); + //Close the document + loadedDocument.Close(true); + + + + + + 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. + + + + + The variable holds signture signed revision + + + + + Initializes a new instance of the class. + + The dictionary. + The cross table. + + + + Checks whether the signature field is signed or not + + A boolean value specifying the digital signature field have signature data or not. + + + //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; + // Checks whether the signature field is signed or not + bool isSigned = signatureField.IsSigned; + 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) + ' Checks whether the signature field is signed or not + Dim isSigned As Boolean = signatureField.IsSigned + doc.Close(True) + + + Class + + + + Gets the collection of signature items.[Read-Only] + + + + //Load an existing document + PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); + // Read the signature field + PdfLoadedSignatureField signatureField = doc.Form.Fields[0] as PdfLoadedSignatureField; + // Signature Item collection + PdfLoadedSignatureItemCollection signatureFieldCollection = signatureField.Items; + // Read the signature Item + PdfLoadedSignatureItem signatureFieldItem = signatureFieldCollection[0] as PdfLoadedSignatureItem; + doc.Save("Form.pdf"); + doc.Close(true); + + + 'Load an existing document + Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") + ' Read the signature field + Dim signatureField As PdfLoadedSignatureField = TryCast(doc.Form.Fields(0), PdfLoadedSignatureField) + ' Signature Item collection + Dim signatureFieldCollection As PdfLoadedSignatureItemCollection = signatureField.Items + Dim signatureFieldItem As PdfLoadedSignatureItem = TryCast(signatureFieldCollection(0), PdfLoadedSignatureItem) + doc.Save("Form.pdf") + doc.Close(True) + + + Class + + + + 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 + + + + Gets the revision index of this signature field. + + If the signature field is "Unsigned," the revision value will be -1. + + + //Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(filename); + //Gets the revisions of the document + PdfRevision[] revisions = document.Revisions; + foreach(PdfRevision rev in revisions) + { + //Gets the revision start position + long startPosition = rev.StartPosition; + } + //Load the existing signature field + PdfLoadedSignatureField field = document.Form.Fields[0] as PdfLoadedSignatureField; + //Gets the revision index of the signature + int revisionIndex = field.Revision; + // Close the document + document.Close(true); + + + 'Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(filename) + 'Gets the revisions of the document + Dim revisions() As PdfRevision = document.Revisions + For Each rev As PdfRevision In revisions + 'Gets the revision start position + Dim startPosition As Long = rev.StartPosition + Next + 'Load the existing signature field + Dim field As PdfLoadedSignatureField = CType(document.Form.Fields(0),PdfLoadedSignatureField) + 'Gets the revision index of the signature + Dim revisionIndex As Integer = field.Revision + ' Close the document + document.Close(true) + + + + + + Sets the signature properties + + The signature value. + + + + Gets the end chain certificate + + The chain element value. + + + + + Begins the save. + + + + + Creates a copy of PdfLoadedSignatureField. + + + + + Creates a copy of loaded item. + + The dictionary value. + + + + Draws this instance if it is flatten. + + + + + Get Rotated bounds to flatten + + The bounds value. + The page value. + The template value. + The graphics value. + + + + + Get Current Rotation angle from Page Graphics + + The matrix value. + + + + + Specifies the signatures's validation result. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Close the document + document.Close(true) + + + + + + Specifies the signatures's validation result with validation option + + The validation option. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Signature validation options + PdfSignatureValidationOptions options = new PdfSignatureValidationOptions(); + // disable revocation status + options.ValidateRevocationStatus = false; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(options); + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Signature validation options + Dim options As PdfSignatureValidationOptions = New PdfSignatureValidationOptions() + ' disable revocation status + options.ValidateRevocationStatus = False + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature(options) + ' Close the document + document.Close(true) + + + + + + Specifies the signatures's validation result with X509Certificate collection. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Collection of X509Certificate + X509CertificateCollection certificates = new X509CertificateCollection(); + certificates.Add(X509Certificate.CreateFromCertFile("certificate1.cer")); + certificates.Add(X509Certificate.CreateFromCertFile("certificate2.cer")) + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(certificates); + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Collection of X509Certificate + Dim certificates As X509CertificateCollection = New X509CertificateCollection() + certificates.Add(X509Certificate.CreateFromCertFile("certificate1.cer")) + certificates.Add(X509Certificate.CreateFromCertFile("certificate2.cer")) + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature(certificates) + ' Close the document + document.Close(true) + + + + + + Specifies the signatures's validation result with X509Certificate collection with validation option + + The validation option. + The root certificate value. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Collection of X509Certificate + X509CertificateCollection certificates = new X509CertificateCollection(); + certificates.Add(X509Certificate.CreateFromCertFile("certificate1.cer")); + certificates.Add(X509Certificate.CreateFromCertFile("certificate2.cer")) + PdfSignatureValidationOptions options = new PdfSignatureValidationOptions(); + // disable revocation status + options.ValidateRevocationStatus = false; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(certificates, options); + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Collection of X509Certificate + Dim certificates As X509CertificateCollection = New X509CertificateCollection() + certificates.Add(X509Certificate.CreateFromCertFile("certificate1.cer")) + certificates.Add(X509Certificate.CreateFromCertFile("certificate2.cer")) + ' Signature validation options + Dim options As PdfSignatureValidationOptions = New PdfSignatureValidationOptions() + ' disable revocation status + options.ValidateRevocationStatus = False + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature(certificates, options) + ' Close the document + document.Close(true) + + + + + + FlattenSignatureApperance + + + + + Get Template from Signature Item + + The dictionary value. + PdfTemplate + + + + Flatten signature appearance + + The dictionary value. + The page value. + The signature template value. + + + + Parse and final all the object reference number + + The form dictionary. + + + + Parse and final all the sub object reference number + + The primitive value. + + + + Update the signature signed revision + + The result value. + + + + Returns an array of images objects that represent the images associated with the signature field. + + An array of image objects that represent the images associated with the signature field + + + //Load the existing PDF document. + PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); + //Get the existing signed signature field. + PdfLoadedSignatureField loadedSignature = ldoc.Forms.Fields[0] as PdfLoadedSignatureField; + //Get the image arrays + Image[] images = loadedSignature.GetImages(); + //Close the PDF document. + ldoc.Close(true); + + + + + + Represents an item in a signature field collection. + + + + //Load an existing document + PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); + // Read the signature field + PdfLoadedSignatureField signatureField = doc.Form.Fields[0] as PdfLoadedSignatureField; + // Signature Item collection + PdfLoadedSignatureItemCollection signatureFieldCollection = signatureField.Items; + // Read the signature Item + PdfLoadedSignatureItem signatureFieldItem = signatureFieldCollection[0] as PdfLoadedSignatureItem; + doc.Save("Form.pdf"); + doc.Close(true); + + + 'Load an existing document + Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") + ' Read the signature field + Dim signatureField As PdfLoadedSignatureField = TryCast(doc.Form.Fields(0), PdfLoadedSignatureField) + ' Signature Item collection + Dim signatureFieldCollection As PdfLoadedSignatureItemCollection = signatureField.Items + Dim signatureFieldItem As PdfLoadedSignatureItem = TryCast(signatureFieldCollection(0), PdfLoadedSignatureItem) + doc.Save("Form.pdf") + doc.Close(True) + + + Class + + + + Initializes a new instance of the class. + + The field. + The index. + The dictionary. + + + + Cloning the PdfLoadedSignatureItem. + + + + + + Represents a collection of signature group items. + + + + //Load an existing document + PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); + // Read the signature field + PdfLoadedSignatureField signatureField = doc.Form.Fields[0] as PdfLoadedSignatureField; + // Signature Item collection + PdfLoadedSignatureItemCollection signatureFieldCollection = signatureField.Items; + // Read the signature Item + PdfLoadedSignatureItem signatureFieldItem = signatureFieldCollection[0] as PdfLoadedSignatureItem; + doc.Save("Form.pdf"); + doc.Close(true); + + + 'Load an existing document + Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") + ' Read the signature field + Dim signatureField As PdfLoadedSignatureField = TryCast(doc.Form.Fields(0), PdfLoadedSignatureField) + ' Signature Item collection + Dim signatureFieldCollection As PdfLoadedSignatureItemCollection = signatureField.Items + Dim signatureFieldItem As PdfLoadedSignatureItem = TryCast(signatureFieldCollection(0), PdfLoadedSignatureItem) + doc.Save("Form.pdf") + doc.Close(True) + + + Class + + + + Gets the at the specified index.[Read-Only] + + The index value. + PdfLoadedSignatureItem + + + //Load an existing document + PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); + // Read the signature field + PdfLoadedSignatureField signatureField = doc.Form.Fields[0] as PdfLoadedSignatureField; + // Signature Item collection + PdfLoadedSignatureItemCollection signatureFieldCollection = signatureField.Items; + // Read the signature Item + PdfLoadedSignatureItem signatureFieldItem = signatureFieldCollection[0] as PdfLoadedSignatureItem; + doc.Save("Form.pdf"); + doc.Close(true); + + + 'Load an existing document + Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") + ' Read the signature field + Dim signatureField As PdfLoadedSignatureField = TryCast(doc.Form.Fields(0), PdfLoadedSignatureField) + ' Signature Item collection + Dim signatureFieldCollection As PdfLoadedSignatureItemCollection = signatureField.Items + Dim signatureFieldItem As PdfLoadedSignatureItem = TryCast(signatureFieldCollection(0), PdfLoadedSignatureItem) + doc.Save("Form.pdf") + doc.Close(True) + + + Class + + + + Add the PdfLoadedSignatureItem + + The item value. + + + + Remove the PdfLoadedSignatureItem + + The item value. + + + + + Cloning the PdfLoadedSignatureItemCollection. + + + + + + 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 + + + + 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) + + + + + + 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. + + + + Remove the PdfLoadedStateField item at the specified index. + + + + //Load an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the loaded form. + PdfLoadedForm loadedForm = loadedDocument.Form; + //Get the stateField + PdfLoadedStateField stateField = loadedForm.Fields[0] as PdfLoadedStateField; + //Remove the stateField item + stateField.RemoveAt(0); + //Save the modified document. + loadedDocument.Save("form.pdf"); + //Close the document + loadedDocument.Close(true); + + + + + + Remove the particular PdfLoadedStateItem from PdfLoadedStateField. + + + + //Load an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the loaded form. + PdfLoadedForm loadedForm = loadedDocument.Form; + //Get the stateField + PdfLoadedStateField stateField = loadedForm.Fields[0] as PdfLoadedStateField; + //Get the stateField Item + PdfLoadedStateItem stateFieldItem = stateField.Items[0] as PdfLoadedStateItem; + //Remove the stateField item + loadedField.Remove(stateFieldItem); + //Save the modified document. + loadedDocument.Save("form.pdf"); + //Close the document + loadedDocument.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) + + + + + + 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) + + + + + + Gets or sets the back color of the field. + + + + + Gets or sets the fore color of the field. + + + + + Gets or sets the border color of the field + + /// + + //Load an existing document + PdfLoadedDocument pdfLoadedDocument = new PdfLoadedDocument("Form.pdf"); + // Load the form field + PdfField pdfFormField = pdfLoadedDocument.Form.Fields[0]; + // Load the Radio Button List field + PdfLoadedRadioButtonListField pdfLoadedRadioButtonList = pdfFormField as PdfLoadedRadioButtonListField; + // Load Radio Button Item + PdfLoadedRadioButtonItem loadedRadioButtonField = pdfLoadedRadioButtonList.Items[0]; + // Set the Border color + loadedRadioButtonField.BorderColor = new Syncfusion.Pdf.Graphics.PdfColor(0, 125, 0); + // close the document + pdfLoadedDocument.Close(true); + + + + + + Initializes a new instance of the class. + + The field. + The index. + The dictionary. + + + + Sets checked status of the field. + + Checked status. + + + + Gets the Back Color of the field. + + Back color of the field. + + + + Creates the color. + + The array. + + + + + 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) + + + + + + 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 PdfLoadedStateItemCollection. + + + + + + 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) + + + + + + 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 + + + + + Internal variable to store rotation value. + + + + + Internal variable to recreate rotation appearance. + + + + + 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 and Sets the fore color of the Field + + 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) + + + + + + Gets and sets the Rotation angle in the FormFields. + + The rotation angle value shall be a multiple of 90. Default value: 0. + + + // Loads the file + PdfLoadedDocument loadedDocument = new PdfLoadedDocument(DataPathOutput + "CheckBox.pdf"); + // Loads the field + PdfLoadedCheckBoxField loadedCheckBoxField = loadedDocument.Form.Fields[0] as PdfLoadedCheckBoxField; + // Gets and sets the rotation angle in the form fields + loadedCheckBoxField.RotationAngle = 90; + Assert.AreEqual(90, loadedCheckBoxField.RotationAngle); + loadedDocument.Form.SetDefaultAppearance(false); + // Save the pdf + loadedDocument.Save("Output.pdf"); + // Close the pdf + loadedDocument.Close(true); + + + ' Loads the file + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument(DataPathOutput + "CheckBox.pdf") + ' Loads the field + Dim loadedCheckBoxField As PdfLoadedCheckBoxField = TryCast(loadedDocument.Form.Fields(0), PdfLoadedCheckBoxField) + ' Gets and sets the rotation angle in the form fields + loadedCheckBoxField.RotationAngle = 90 + Assert.AreEqual(90, loadedCheckBoxField.RotationAngle) + loadedDocument.Form.SetDefaultAppearance(False) + ' Save the pdf + loadedDocument.Save("Output.pdf") + ' Close the pdf + loadedDocument.Close(True) + + + + + + Gets or sets the checkbox style. + + The object specifies the style of the check box field. + + + + Initializes a new instance of the class. + + The dictionary. + The cross table. + + + + Get Annotation flag + + the flag number. + + + + + 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. + + + + Set the back color of the Field. + + PdfColor Value. + + + + 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. + + + + + Reading Font Name from Dictionary. + + The font string value. + The font height value. + + + + + Create metrics for embed font + + The font dictionary value. + + + + + 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 + + The font family. + font name + + + + Gets the font family. + + The font family string. + The font family. + + + + Gets the Back Color of the field. + + Back color 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. + + + + + Gets the checkbox style. + + checkbox style of the field. + + + + Create the checkbox style. + + + + + Sets the CheckBox style. + + The bs. + The CheckBox style. + + + + Styles to string. + + The style. + String representation of the check box' style. + + + + Cloning the PdfLoadedStyledField. + + + + + + Gets the font. + + The font string. + + + + + Parse destination from the action dictionary. + + The action dictionary value. + + + + + Gets the PdfAction from the widget annotation. + + The key value. + + + + + Structure that holds graphics properties. + + + + + Indicates bounds of the field. + + + + + Indicates border color of the field. + + + + + Indicates border style of the field. + + + + + Indicates border width of the field. + + + + + Indicates back brush color of the field. + + + + + Indicates fore brush color of the field. + + + + + Indicates shasow brush color of the field. + + + + + Indicates font of the field. + + + + + Indicates string format of the field. + + + + + Indicates rotation angle of the field. + + + + + Initializes a new instance of the struct. + + The field. + + + + Initializes a new instance of the struct. + + The item. + + + + 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. + + + + + Gets or sets the complex script language support. + + + + //Load existing PDF document. + PdfLoadedDocument ldoc = new PdfLoadedDocument("form.pdf"); + //Load the existing text box field. + PdfLoadedTextBoxField textField = ldoc.Form.Fields[0] as PdfLoadedTextBoxField; + //Create font. + Font font = new Font("Tahoma", 10f); + //Create a new PDF font instance. + PdfFont pdfFont = new PdfTrueTypeFont(font, FontStyle.Regular, 10f, true, true); + //Set font. + textField.Font = pdfFont; + //Enable complex script support. + textField.ComplexScript = true; + ldoc.Form.SetDefaultAppearance(false); + //Save the document. + ldoc.Save("output.pdf"); + //Close the document. + ldoc.Close(true); + + + 'Load existing PDF document. + Dim ldoc As New PdfLoadedDocument("form.pdf") + 'Load the existing text box field. + Dim textField As PdfLoadedTextBoxField = TryCast(ldoc.Form.Fields(0), PdfLoadedTextBoxField) + 'Create font. + Dim font As New Font("Tahoma", 10F) + 'Create a new PDF font instance. + Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, FontStyle.Regular, 10F, True, True) + 'Set font. + textField.Font = pdfFont + 'Enable complex script support. + textField.ComplexScript = True + ldoc.Form.SetDefaultAppearance(False) + 'Save the document. + ldoc.Save("output.pdf") + 'Close the document. + ldoc.Close(True) + + + + + + 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 set the default value of the field. + + A string value representing the default 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.DefaultValue = "Cris"; + 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.DefaultValue = "Cris" + 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 + + + + check whether the textbox field is autosize. + + true if the field autosize property else it 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; + bool value=ldField.IsAutoFontSize + ldField.AutoResizeText=value; + form.Flatten=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) + bool value = ldField.IsAutoFontSize + ldField.AutoResizeText=value; + form.Flatten=true; + doc.Save("Form.pdf") + doc.Close(True) + + + + + + get or set the autosize value of the textbox field + + true if the field autosize property else it 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; + bool value=ldField.AutoResizeText + ldField.AutoResizeText=value; + form.Flatten=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) + bool value = ldField.AutoResizeText + ldField.AutoResizeText=value; + form.Flatten=true; + doc.Save("Form.pdf") + doc.Close(True) + + + + + + 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 + + + + Initializes a new instance of the class. + + The dictionary. + The cross table. + + + + To fill XFA field using Acro API field + + The field value. + + + + Handles the BeginSave event of the Dictionary control. + + The source of the event. + The instance containing the event data. + + + + 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 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. + + The text value. + True if the text contans RTL character or number. + + + + 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 font family name. + The calculated size of font. + + + + Remove the PdfLoadedTextBoxField item at the specified index. + + + + //Load an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the loaded form. + PdfLoadedForm loadedForm = loadedDocument.Form; + //Get the textbox field + PdfLoadedTextBoxField textBoxField = loadedForm.Fields[0] as PdfLoadedTextBoxField; + //Remove the textBox field item + textBoxField.RemoveAt(0); + //Save the modified document. + loadedDocument.Save("form.pdf"); + //Close the document + loadedDocument.Close(true); + + + + + + Remove the particular PdfLoadedTexBoxItem from PdfLoadedTextBoxField. + + + + //Load an existing document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the loaded form. + PdfLoadedForm loadedForm = loadedDocument.Form; + //Get the textbox field + PdfLoadedTextBoxField textBoxField = loadedForm.Fields[0] as PdfLoadedTextBoxField; + //Get the textBox field item + PdfLoadedTexBoxItem texBoxItem = textBoxField.Items[0] as PdfLoadedTexBoxItem; + //Remove the textBox field item + loadedField.Remove(texBoxItem); + //Save the modified document. + loadedDocument.Save("form.pdf"); + //Close the document + loadedDocument.Close(true); + + + + + + Parse and map currency symbol with number format + + The text value. + The update dictionary value. + The final text vale. + The replace boolean value. + + + + Map the unicode character to currency character and space details + + the character value. + The pre append value. + The splitted value. + The space value. + The curraency text. + + + + Updating currency with negative format details + + The negative text. + The negative number style. + The pre append value. + The currency text. + The number value. + The space value. + The final text value. + + + + Update number format text + + The separator style. + The number value. + The splitted value. + The negative text. + The decimal space. + The final text. + The replace value. + + + + Update text with separator style rules + + The separator style. + The number value. + The splitted value. + The decimal space value. + The text value. + + + + + Update text without decimal process + + The number value. + The decimal process. + The text value. + The separator style. + The symbol. + + + + + Update rounded off text with separatorStyle + + The number value. + The parsed number. + The decimal space. + The separator style. + The symbol. + + + + + 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 + + + + 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 + + + + Cloning the PdfLoadedTextBoxItemCollection. + + + + + + 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. + + + + + Specifies the format of Export or Import annotation data. + + + + //Load an existing document + PdfLoadedDocument ldoc = new PdfLoadedDocument("Input.pdf"); + // Export the annotation data as FDF file + ldoc.ExportAnnotations("Export.fdf", AnnotationDataFormat.Fdf, "Input.pdf"); + // Close the document + ldoc.Close(true); + + + 'Load an existing document + Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + ' Export the annotation data as FDF file + ldoc.ExportAnnotations("Export.fdf", AnnotationDataFormat.Fdf, "Input.pdf") + ' Close the document + ldoc.Close(true) + + + Class + + + + Specifies Forms Data Format file format + + + + + Specifies XFDF file format. + + + + + Specifies JSON file format. + + + + + Specifies the field type of PdfCertificate + + + + //Loads the input PDF + PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); + //Load the signature field. + PdfLoadedSignatureField signatureField = ldoc.Form.Fields[0] as PdfLoadedSignatureField; + //Get the signed name. + string signedName = signatureField.Signature.SignedName; + //Get the signed date + DateTime signedDate = signatureField.Signature.SignedDate; + //Get the country name of the subject + string subjectCountry = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Country, PdfCertificateField.Subject); + //Get the organization name of the subject + string subjectOrganization = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Organization, PdfCertificateField.Subject); + //Get the organization unit name of the subject + string subjectOrganizationUnit = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.OrganizationUnit, PdfCertificateField.Subject); + //Get the country name of the issuer + string issuerCountry = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Country, PdfCertificateField.Issuer); + //Get the organization name of the issuer + string issuerOrganization = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Organization, PdfCertificateField.Issuer); + //Get the organization unit name of the issuer + string issuerOrganizationUint = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.OrganizationUnit, PdfCertificateField.Issuer); + ldoc.Close(true); + + + 'Loads the input PDF + Dim ldoc As New PdfLoadedDocument("input.pdf") + 'Load the signature field. + Dim signatureField As PdfLoadedSignatureField = TryCast(ldoc.Form.Fields(0), PdfLoadedSignatureField) + 'Get the signed name. + Dim signedName As String = signatureField.Signature.SignedName + 'Get the signed date + Dim signedDate As DateTime = signatureField.Signature.SignedDate + 'Get the country name of the subject + Dim subjectCountry As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Country, PdfCertificateField.Subject) + 'Get the organization name of the subject + Dim subjectOrganization As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Organization, PdfCertificateField.Subject) + 'Get the organization unit name of the subject + Dim subjectOrganizationUnit As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.OrganizationUnit, PdfCertificateField.Subject) + 'Get the country name of the issuer + Dim issuerCountry As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Country, PdfCertificateField.Issuer) + 'Get the organization name of the issuer + Dim issuerOrganization As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Organization, PdfCertificateField.Issuer) + 'Get the organization unit name of the issuer + Dim issuerOrganizationUint As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.OrganizationUnit, PdfCertificateField.Issuer) + ldoc.Close(True) + + + Class + + + + Specifies the subject of the Certificate + + + + + Specifies the issuer of the Certificate + + + + + You can use this class to replace the system unavailable fonts. + + + + + Raises after the specified font is not available in the system. + + + + + The delegate of the fontnotfound event handler. + + + + + 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. + + + + + Gets or sets a value indicating whether the export process should continue if an error occurs. If set to true, the API will attempt to export the image and ignore any errors. If set to false, an exception will be thrown upon encountering the first error. + + + + + Replace used fonts for documents + + + + + Gets the used font from the document. + + + + + Gets and set the alternate font for the respective fonts. + + + + + The PdfDocumentExtractor class represents a utility class designed to extract images from PDF documents with improved memory consumption and performance. + + + + + Gets the number of pages present in the document. + + + + //Initialize the PDF document extractor + PdfDocumentExtractor documentExtractor = new PdfDocumentExtractor(); + //Gets the number of pages present in the document + int pageCount = documentExtractor.PageCount; + //Loads a PDF document from a Stream. + documentExtractor.Load(fileStream); + // Extracts all the images from the PDF document + Stream[] streams = documentExtractor.ExtractImages(); + //Extracts images from the specified range of pages in the PDF document + Stream[] stream = documentExtractor.ExtractImages(2, 8); + // Release all resources used by the PDF document extractor. + documentExtractor.Dispose(); + + + 'Initialize the PDF document extractor + Dim documentExtractor As PdfDocumentExtractor = New PdfDocumentExtractor + 'Gets the number of pages present in the document + Dim pageCount As Integer = documentExtractor.PageCount + 'Loads a PDF document from a Stream. + documentExtractor.Load(fileStream) + ' Extracts all the images from the PDF document + Dim streams() As Stream = documentExtractor.ExtractImages + 'Extracts images from the specified range of pages in the PDF document + Dim stream() As Stream = documentExtractor.ExtractImages(2, 8) + ' Release all resources used by the PDF document extractor. + documentExtractor.Dispose + + + + + + Loads a PDF document from a Stream. The method allows you to provide a password as a string parameter to decrypt the document if it is password-protected. + + The stream containing the PDF document to load + The password (user or owner) of the encrypted document. + + + //Initialize the PDF document extractor + PdfDocumentExtractor documentExtractor = new PdfDocumentExtractor(); + //Gets the number of pages present in the document + int pageCount = documentExtractor.PageCount; + //Loads a PDF document from a Stream. + documentExtractor.Load(fileStream); + // Extracts all the images from the PDF document + Stream[] streams = documentExtractor.ExtractImages(); + //Extracts images from the specified range of pages in the PDF document + Stream[] stream = documentExtractor.ExtractImages(2, 8); + // Release all resources used by the PDF document extractor. + documentExtractor.Dispose(); + + + 'Initialize the PDF document extractor + Dim documentExtractor As PdfDocumentExtractor = New PdfDocumentExtractor + 'Gets the number of pages present in the document + Dim pageCount As Integer = documentExtractor.PageCount + 'Loads a PDF document from a Stream. + documentExtractor.Load(fileStream) + ' Extracts all the images from the PDF document + Dim streams() As Stream = documentExtractor.ExtractImages + 'Extracts images from the specified range of pages in the PDF document + Dim stream() As Stream = documentExtractor.ExtractImages(2, 8) + ' Release all resources used by the PDF document extractor. + documentExtractor.Dispose + + + + + + Extracts all the images from the PDF document and returns an array of Stream objects representing the image data. + + Returns the array of image streams + + + //Initialize the PDF document extractor + PdfDocumentExtractor documentExtractor = new PdfDocumentExtractor(); + //Gets the number of pages present in the document + int pageCount = documentExtractor.PageCount; + //Loads a PDF document from a Stream. + documentExtractor.Load(fileStream); + // Extracts all the images from the PDF document + Stream[] streams = documentExtractor.ExtractImages(); + //Extracts images from the specified range of pages in the PDF document + Stream[] stream = documentExtractor.ExtractImages(2, 8); + // Release all resources used by the PDF document extractor. + documentExtractor.Dispose(); + + + 'Initialize the PDF document extractor + Dim documentExtractor As PdfDocumentExtractor = New PdfDocumentExtractor + 'Gets the number of pages present in the document + Dim pageCount As Integer = documentExtractor.PageCount + 'Loads a PDF document from a Stream. + documentExtractor.Load(fileStream) + ' Extracts all the images from the PDF document + Dim streams() As Stream = documentExtractor.ExtractImages + 'Extracts images from the specified range of pages in the PDF document + Dim stream() As Stream = documentExtractor.ExtractImages(2, 8) + ' Release all resources used by the PDF document extractor. + documentExtractor.Dispose + + + + + + Extracts images from the specified range of pages in the PDF document and returns an array of Stream objects representing the image data. + + An integer representing the starting page index from which to extract images. + An integer representing the ending page index up to which images should be extracted. + Returns the array of image streams + + + //Initialize the PDF document extractor + PdfDocumentExtractor documentExtractor = new PdfDocumentExtractor(); + //Gets the number of pages present in the document + int pageCount = documentExtractor.PageCount; + //Loads a PDF document from a Stream. + documentExtractor.Load(fileStream); + // Extracts all the images from the PDF document + Stream[] streams = documentExtractor.ExtractImages(); + //Extracts images from the specified range of pages in the PDF document + Stream[] stream = documentExtractor.ExtractImages(2, 8); + // Release all resources used by the PDF document extractor. + documentExtractor.Dispose(); + + + 'Initialize the PDF document extractor + Dim documentExtractor As PdfDocumentExtractor = New PdfDocumentExtractor + 'Gets the number of pages present in the document + Dim pageCount As Integer = documentExtractor.PageCount + 'Loads a PDF document from a Stream. + documentExtractor.Load(fileStream) + ' Extracts all the images from the PDF document + Dim streams() As Stream = documentExtractor.ExtractImages + 'Extracts images from the specified range of pages in the PDF document + Dim stream() As Stream = documentExtractor.ExtractImages(2, 8) + ' Release all resources used by the PDF document extractor. + documentExtractor.Dispose + + + + + + Release all resources used by the PDF document extractor. + + + + //Initialize the PDF document extractor + PdfDocumentExtractor documentExtractor = new PdfDocumentExtractor(); + //Gets the number of pages present in the document + int pageCount = documentExtractor.PageCount; + //Loads a PDF document from a Stream. + documentExtractor.Load(fileStream); + // Extracts all the images from the PDF document + Stream[] streams = documentExtractor.ExtractImages(); + //Extracts images from the specified range of pages in the PDF document + Stream[] stream = documentExtractor.ExtractImages(2, 8); + // Release all resources used by the PDF document extractor. + documentExtractor.Dispose(); + + + 'Initialize the PDF document extractor + Dim documentExtractor As PdfDocumentExtractor = New PdfDocumentExtractor + 'Gets the number of pages present in the document + Dim pageCount As Integer = documentExtractor.PageCount + 'Loads a PDF document from a Stream. + documentExtractor.Load(fileStream) + ' Extracts all the images from the PDF document + Dim streams() As Stream = documentExtractor.ExtractImages + 'Extracts images from the specified range of pages in the PDF document + Dim stream() As Stream = documentExtractor.ExtractImages(2, 8) + ' Release all resources used by the PDF document extractor. + documentExtractor.Dispose + + + + + + The GetResources API method retrieves the resources associated with a given PDF dictionary. + + + + + + + The ParseResources API method parses and extracts the resources associated with a given PDF dictionary. + + + + + + The ParseTemplate API method parses and extracts the content of a PDF template. + + + + + + + The ParseImage API method parses and extracts the content of a PDF image + + + + + + + Updating SMask image reference by parsing xObject dictionary + + + + + + 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. + + + + + Store the K dictionary reference values. + + + + + 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 + + + + + The variable is used to indicate whether resources need to optimize or not + + + + + The variable is used to hold destination document while merging PDF + + + + + Class that represents the annotation export settings + + + + + The variable is used to hold the document information + + + + + The variable is used to hold the order of structure element + + + + + The variable is used to indicate to split the PDF with structure element or not + + + + + The variable is used to indicate to merge the PDF with structure element or not + + + + + Gets or sets a value indicating whether this form is XFA Form or AcroForm. + + + + + Gets or sets a value indicating whether this PDF is used for Split. + + + + + Gets or sets a value indicating whether this PDF is used for Split. + + + + + Gets or sets a value indicating whether this PDF is used for Merging. + + + + + Returns true, when the PDF document has extended features enabled, otherwise it returns false. + + + + //Load an existing document + PdfLoadedDocument doc = new PdfLoadedDocument("input.pdf"); + //Get extended feature enabled + bool extendedFeature = doc.IsExtendedFeatureEnabled; + //Save and close the PDF document. + doc.Save("output.pdf"); + doc.Close(true); + + + 'Load an existing document + Dim doc As New PdfLoadedDocument("input.pdf") + 'Get extended feature enabled. + Dim extendedFeature As Boolean = doc.IsExtendedFeatureEnabled + doc.Save("output.pdf") + doc.Close(true) + + + + + + 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 actions to be performed when the document is opened/closed. + + This property has impact on javascript actions only. + + + //Load a PDF document + PdfLoadedDocument ldoc = new PdfLoadedDocument("Input.pdf"); + //Load and change new javascript action to the document + ldoc.Actions.AfterOpen = new PdfJavaScriptAction("app.alert(\"Content Changed!\")"); + //Save the document + ldoc.Save("Output.pdf"); + //Close the document + ldoc.Close(true); + + + 'Load a PDF document. + Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + 'Load and change new javascript action to the document. + ldoc.Actions.AfterOpen = new PdfJavaScriptAction("app.alert(\"Content Changed!\")") + 'Save the document + ldoc.Save("Output.pdf") + 'Close the document + ldoc.Close(True) + + + + + + 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 the list of PdfPageTemplateCollection in the PDF document. + + + + // Loads an existing PDF Document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the first page of the document + PdfPageBase page = loadedDocument.Pages[0]; + //Create a page template + PdfPageTemplate pageTemplate = new PdfPageTemplate(page); + //Sets the PdfPageTemplate name + pageTemplate.Name = "pageTemplate"; + //Sets the PdfPageTemplate is visible + pageTemplate.IsVisible = true; + //Adds the page template + loadedDocument.PdfPageTemplates.Add(pageTemplate); + //Save the document + loadedDocument.Save("output.pdf"); + //Close the document + loadedDocument.Close(true); + + + 'Loads an existing PDF Document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + 'Get the first page of the document + Dim page As PdfPageBase = loadedDocument.Pages(0) + 'Create a page template + Dim pageTemplate As PdfPageTemplate = New PdfPageTemplate(page) + 'Sets the PdfPageTemplate name + pageTemplate.Name = "pageTemplate" + 'Sets the PdfPageTemplate is visible + pageTemplate.IsVisible = True + 'Adds the page template + loadedDocument.PdfPageTemplates.Add(pageTemplate) + 'Save the document + loadedDocument.Save("output.pdf") + 'Close the document + loadedDocument.Close(True) + + + + + + Gets a value that indicates whether the document fonts are embedded or not. . + + + + //Load an existing document + PdfLoadedDocument doc = new PdfLoadedDocument("input.pdf"); + //Get extended feature enabled + bool isAllFontsEmbedded = doc.IsAllFontsEmbedded; + //Save and close the PDF document. + doc.Save("output.pdf"); + doc.Close(true); + + + 'Load an existing document + Dim doc As New PdfLoadedDocument("input.pdf") + 'Get extended feature enabled. + Dim isAllFontsEmbedded As Boolean = doc.IsAllFontsEmbedded + doc.Save("output.pdf") + doc.Close(true) + + + + + + Gets number of pages. + + + + + Gets the conformance level applied to 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 the fonts which are available in the PDF document. + + Retruns the fonts which are used in the PDF document. + This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight + + + //Load the existing PDF document + PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); + //Get the use fonts + PdfUsedFont[] fonts = ldoc.UsedFonts; + List<string> usedFontNames = new List<string>(); + //Get the used font Names + foreach(PdfUsedFont font in fonts) + usedFontNames.Add(font.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 + Dim usedFontNames As List(Of String) = New List(Of String) + 'Get the used font Names + For Each font As PdfUsedFont In fonts + usedFontNames.Add(font.Name) + Next + 'Close the document + ldoc.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) + + + + + + Remove all the conformance from the PDF document. + + + This method will not remove the PDF/X, PDF/VT, and PDF/E conformances. + + //Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); + // Remove PDF/A information. + document.RemoveConformance(); + //Save a document + document.Save("output.pdf"); + //Close the document. + document.Close(true); + + + 'Load an existing document + Dim document As New PdfLoadedDocument("input.pdf") + 'Remove PDF/A information. + document.RemoveConformance() + 'Save a document + document.Save("output.pdf") + 'Close the document. + document.Close(True) + + + + + + Gets and Sets the Optimize Identical Content + + + + + Gets and Sets the Destination document + + + + + Gets the root structure element of the loaded PDF document. The structure element represents the top-level structure element in the document's logical structure hierarchy. + + The logical structure hierarchy is an optional feature of PDF documents that allows authors to tag content with structural information, making the document more accessible and easier to navigate for users with disabilities. The root structure element is the top-level element in this hierarchy, and all other structure elements are descendants of it. + + + FileStream fileStream = File.OpenRead("TaggedPDF.pdf"); + //Load existing PDF document. + PdfLoadedDocument document = new PdfLoadedDocument(fileStream); + //Get the structure element root from document. + PdfStructureElement rootElement = document.StructureElement; + //Get the first page from the document. + PdfLoadedPage loadedPage = document.Pages[0] as PdfLoadedPage; + //Get the structure elements associated with the page. + PdfStructureElement[] pageElements = loadedPage.StrutureElements; + //Get the first element from the page. + PdfStructureElement element = pageElements[0]; + //Get the element properties. + string abbrevation = element.Abbrevation; + string ActualText = element.ActualText; + string AlternateText = element.AlternateText; + string Language = element.Language; + int Order = element.Order; + PdfTagType TagType = element.TagType; + string Title = element.Title; + ScopeType scope = element.Scope; + //Gets the parent and child for first element. + PdfStructureElement parent = element.Parent; + //Gets the child elements for the element. + PdfStructureElement[] child = element.ChildElements; + //Gets the page bounds for the element. + RectangleF bounds = element.Bounds; + //Save the document. + MemoryStream stream = new MemoryStream(); + document.Save(stream); + document.Close(true); + + + Dim fileStream As FileStream = File.OpenRead("TaggedPDF.pdf") + //Load existing PDF document. + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileStream) + //Get the structure element root from document. + Dim rootElement As PdfStructureElement = document.StructureElement + //Get the first page from the document. + Dim loadedPage As PdfLoadedPage = CType(document.Pages(0),PdfLoadedPage) + //Get the structure elements associated with the page. + Dim pageElements() As PdfStructureElement = loadedPage.StrutureElements + //Get the first element from the page. + Dim element As PdfStructureElement = pageElements(0) + //Get the element properties. + Dim abbrevation As String = element.Abbrevation + Dim ActualText As String = element.ActualText + Dim AlternateText As String = element.AlternateText + Dim Language As String = element.Language + Dim Order As Integer = element.Order + Dim TagType As PdfTagType = element.TagType + Dim Title As String = element.Title + Dim scope As ScopeType = element.Scope + //Gets the parent and child for first element. + Dim parent As PdfStructureElement = element.Parent + //Gets the child elements for the element. + Dim child() As PdfStructureElement = element.ChildElements + //Gets the page bounds for the element. + Dim bounds As RectangleF = element.Bounds + //Save the document. + Dim stream As MemoryStream = New MemoryStream + document.Save(stream) + document.Close(true) + + + + + + Gets an array of PdfRevision objects representing the revisions of the loaded PDF document. + + + + //Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(filename); + //Gets the revisions of the document + PdfRevision[] revisions = document.Revisions; + foreach(PdfRevision rev in revisions) + { + //Gets the revision start position + long startPosition = rev.StartPosition; + } + //Load the existing signature field + PdfLoadedSignatureField field = document.Form.Fields[0] as PdfLoadedSignatureField; + //Gets the revision index of the signature + int revisionIndex = field.Revision; + // Close the document + document.Close(true); + + + 'Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(filename) + 'Gets the revisions of the document + Dim revisions() As PdfRevision = document.Revisions + For Each rev As PdfRevision In revisions + 'Gets the revision start position + Dim startPosition As Long = rev.StartPosition + Next + 'Load the existing signature field + Dim field As PdfLoadedSignatureField = CType(document.Form.Fields(0),PdfLoadedSignatureField) + 'Gets the revision index of the signature + Dim revisionIndex As Integer = field.Revision + ' Close the document + document.Close(true) + + + + + + Access the Document Security Store (DSS) details. + + + + //Load the existing PDF document. + PdfLoadedDocument ldoc = new PdfLoadedDocument(fileStream); + //Get the document secure store. + PdfDocumentSecureStore dss = ldoc.DocumentSecureStore; + // Close the document + document.Close(true); + + + + + 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. + + + + + The event raised on Pdf password. + + + + // Creates a new document + PdfLoadedDocument lDoc = new PdfLoadedDocument("Input.pdf"); + // Subscribe the On pdf password event + lDoc.OnPdfPassword += LDoc_OnPdfPassword; + //Access the attachments + PdfAttachmentCollection attachment=lDoc.Attachments; + //Save the document + lDoc.save("Ouput.pdf"); + // On Pdf Password event handler + void LDoc_OnPdfPassword(object sender, OnPdfPasswordEventArgs args) + { + args.UserPassword = "syncfusion"; + } + + + + + + Delegate for handling Pdf Password. + + + + // Creates a new document + PdfLoadedDocument lDoc = new PdfLoadedDocument("Input.pdf"); + // Subscribe the On pdf password event + lDoc.OnPdfPassword += new OnPdfPasswordEventHandler(LDoc_OnPdfPassword); + //Access the attachments + PdfAttachmentCollection attachment=lDoc.Attachments; + //Save the document + lDoc.save("Ouput.pdf"); + // On Pdf Password event handler + void LDoc_OnPdfPassword(object sender, OnPdfPasswordEventArgs args) + { + args.UserPassword = "syncfusion"; + } + + + + + + Delegate for handling redaction progress. + + + + PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); + // Get first page from the document + PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; + PdfRedaction redaction = new PdfRedaction(new RectangleF(37, 94, 50, 10), System.Drawing.Color.Black); + //Adds redaction to the loaded page + page.Redactions.Add(redaction); + document.RedactionProgress += redaction_TrackProgress; + //Save the document + document.Save("output.pdf"); + document.Close(true); + // Event handler for Track redaction process + void redaction_TrackProgress(object sender, RedactionProgressEventArgs arguments) + { + MessageBox.Show(String.Format("Redaction Process " + arguments.Progress + " % completed")); + } + + + Dim document As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + 'Get first page from the document + Dim page As PdfLoadedPage = document.Pages(0) as PdfLoadedPage + Dim redaction As PdfRedaction = New PdfRedaction(New RectangleF(37,94,50,10),System.Drawing.Color.Black) + 'Adds redaction to the loaded page + page.Redactions.Add(redaction) + document.RedactionProgress += redaction_TrackProgress + 'Save the document + document.Save("output.pdf") + document.Close(True) + 'Event handler for Track redaction process + Private Sub redaction_TrackProgress(ByVal sender As Object, ByVal arguments As RedactionProgressEventArgs) + MessageBox.Show(String.Format("Redaction Process " + arguments.Progress + " % completed")) + End Sub + + + + + + The event raised while starting redaction progress. + + + + PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); + // Get first page from the document + PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; + PdfRedaction redaction = new PdfRedaction(new RectangleF(37, 94, 50, 10), System.Drawing.Color.Black); + //Adds redaction to the loaded page + page.Redactions.Add(redaction); + document.RedactionProgress += redaction_TrackProgress; + //Save the document + document.Save("output.pdf"); + document.Close(true); + // Event handler for Track redaction process + void redaction_TrackProgress(object sender, RedactionProgressEventArgs arguments) + { + MessageBox.Show(String.Format("Redaction Process " + arguments.Progress + " % completed")); + } + + + Dim document As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + 'Get first page from the document + Dim page As PdfLoadedPage = document.Pages(0) as PdfLoadedPage + Dim redaction As PdfRedaction = New PdfRedaction(New RectangleF(37,94,50,10),System.Drawing.Color.Black) + 'Adds redaction to the loaded page + page.Redactions.Add(redaction) + document.RedactionProgress += redaction_TrackProgress + 'Save the document + document.Save("output.pdf") + document.Close(True) + 'Event handler for Track redaction process + Private Sub redaction_TrackProgress(ByVal sender As Object, ByVal arguments As RedactionProgressEventArgs) + MessageBox.Show(String.Format("Redaction Process " + arguments.Progress + " % completed")) + End Sub + + + + + + Delegate for handling PDF/A conversion progress. + + + + PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); + //Set the conformance level. + loadedDocument.Conformance = PdfConformanceLevel.Pdf_A1B; + document.PdfAConversionProgress += pdfAConversion_TrackProgress; + //Save the document + document.Save("output.pdf"); + document.Close(true); + // Event handler for Track redaction process + void pdfAConversion_TrackProgress(object sender, PdfAConversionProgressEventArgs arguments) + { + MessageBox.Show(String.Format("Pdf/A conversion Process " + arguments.Progress + " % completed"); + } + + + Dim document As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + 'Set the conformance level. + loadedDocument.Conformance = PdfConformanceLevel.Pdf_A1B + document.PdfAConversionProgress += pdfAConversion_TrackProgress + 'Save the document + document.Save("output.pdf") + document.Close(True) + 'Event handler for Track redaction process + Private Sub pdfAConversion_TrackProgress(ByVal sender As Object, ByVal arguments As PdfAConversionProgressEventArgs) + MessageBox.Show(String.Format("Pdf/A conversion Process " + arguments.Progress + " % completed")) + End Sub + + + + + + The event raised while starting PDF/A conversion progress. + + + + PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); + //Set the conformance level. + loadedDocument.Conformance = PdfConformanceLevel.Pdf_A1B; + document.PdfAConversionProgress += pdfAConversion_TrackProgress; + //Save the document + document.Save("output.pdf"); + document.Close(true); + // Event handler for Track redaction process + void pdfAConversion_TrackProgress(object sender, PdfAConversionProgressEventArgs arguments) + { + MessageBox.Show(String.Format("Pdf/A conversion Process " + arguments.Progress + " % completed"); + } + + + Dim document As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + 'Set the conformance level. + loadedDocument.Conformance = PdfConformanceLevel.Pdf_A1B + document.PdfAConversionProgress += pdfAConversion_TrackProgress + 'Save the document + document.Save("output.pdf") + document.Close(True) + 'Event handler for Track redaction process + Private Sub pdfAConversion_TrackProgress(ByVal sender As Object, ByVal arguments As PdfAConversionProgressEventArgs) + MessageBox.Show(String.Format("Pdf/A conversion Process " + arguments.Progress + " % completed")) + End Sub + + + + + + 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 + + + + Gets the instance of the 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 + + + + Exports the specified pages as Images + + The starting page index + The ending page index + exportSettings used to set image export properties + + + + Returns rectangle positions of the text matches for specific page + + The text to be searched + The specified page index + Holds the rectangle positions of the text matches + + + + Returns rectangle positions of the text matches for specific page + + The text to be searched + The specified page index + Holds the rectangle positions of the text matches + + + + Returns the page number and rectangle positions of the text matches + + 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 information of the matched texts in a specific page + + The List of items to be searched. + The specified page index + Holds the information of the matched texts + 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 information of the matched texts in a specific page + + The List of items to be searched. + The specified page index + Holds the information of the matched texts + 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 + + + + Returns the information of the matched texts in a specific page. + + List of items to be searched. + The specified page index + Search option to find the texts + Holds the information of the matched texts. + Returns true if found any match + + + + Returns the TextSearchResultCollection instance which contains collection of MatchedItemCollection + + List of items to be searched. + Instance of TextSearchResultCollection + If true,then the text search will be performed asynchronously + 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. + If true,then the text search will be performed asynchronously + 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 + If true,then the text search will be performed asynchronously + Returns true if found any match + + + + Redact the contents from PDF document. + + This method returns a list of redaction results. + + + // Load the existing PDF document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream); + // Create a redaction object + PdfRedaction redaction = new PdfRedaction(new RectangleF(343, 167, 100, 25), Color.Black); + // Add redaction object into redaction collection of loaded page + page.AddRedaction(redaction); + List<PdfRedactionResult> signatureValidationErrors = loadedDocument.Redact(); + //Creating the stream object + MemoryStream stream = new MemoryStream(); + // Save the document into stream. + loadedDocument.Save(stream); + // Close the documents. + loadedDocument.Close(true); + + + ' Load the existing PDF document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument(docStream) + ' Create a redaction object + Dim redaction As PdfRedaction = New PdfRedaction(New RectangleF(343, 167, 100, 25), Color.Black) + ' Add redaction object into redaction collection of loaded page + page.AddRedaction(redaction) + Dim redactionResult As List(Of PdfRedactionResult) = loadedDocument.Redact() + 'Creating the stream object + Dim stream As MemoryStream = New MemoryStream() + ' Save the document into stream. + loadedDocument.Save(stream) + ' Close the document. + loadedDocument.Close(True) + + + + + + Convert the existing PDF document to PDF/A document. + + + + //Load an existing PDF document + PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf"); + //Sample level Font event handling + doc.SubstituteFont += LoadedDocument_SubstituteFont; + //Convert loaded document to PDF/A document + doc.ConvertToPDFA(PdfConformanceLevel.Pdf_A1B); + //Save the document + doc.Save("Output.pdf"); + //Close the document + doc.Close(true); + + + 'Load an existing PDF document + Dim doc As New PdfLoadedDocument("Input.pdf") + doc.SubstituteFont += LoadedDocument_SubstituteFont + 'Convert loaded document to PDF/A document + doc.ConvertToPDFA(PdfConformanceLevel.Pdf_A1B) + 'Save the document + doc.Save("Output.pdf") + 'Close the document. + doc.Close(True) + + + + + + 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 with PdfSplitOptions. + + The name of the individual destination pages. + Customize the split PDF + + 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"); + PdfSplitOptions splitOptions = new PdfSplitOptions(); + splitOptions.SplitTags = true; + // Splits the source document + ldoc.Split("Output.pdf", splitOptions); + ldoc.Close(true); + + + ' Loads an existing document + Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + Dim splitOptions As PdfSplitOptions = New PdfSplitOptions + splitOptions.SplitTags = true + ' Splits the source document + ldoc.Split("Output.pdf", splitOptions) + ldoc.Close(true) + + + Class + + + + Splits a PDF document into individual pages with PdfSplitOptions. + + The name of the individual destination pages + The number that is use as a start + Customize the split PDF + 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("Input.pdf"); + PdfSplitOptions splitOptions = new PdfSplitOptions(); + splitOptions.SplitTags = true; + // Splits the source document + ldoc.Split("Output.pdf",1, splitOptions); + ldoc.Close(true); + + + ' Loads an existing document + Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + Dim splitOptions As PdfSplitOptions = New PdfSplitOptions + splitOptions.SplitTags = true + ' Splits the source document + ldoc.Split("Output.pdf",1, splitOptions) + 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) + + + + + Number to be split + + + Number to be split + Customize the split PDF + + + // Loads an existing document + PdfLoadedDocument ldoc = new PdfLoadedDocument("Input.pdf"); + PdfSplitOptions splitOptions = new PdfSplitOptions(); + splitOptions.SplitTags = true; + // Splits the source document + ldoc.SplitByFixedNumber("Output.pdf", 1, splitOptions); + ldoc.Close(true); + + + ' Loads an existing document + Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + Dim splitOptions As PdfSplitOptions = New PdfSplitOptions + splitOptions.SplitTags = true + ' Splits the source document + ldoc.SplitByFixedNumber("Output.pdf", 1, splitOptions) + ldoc.Close(true) + + + Class + + + Ranges of page index values + Page range index starts with 0 + + + + Ranges of page index values + Customize the split PDF + Page range index starts with 0 + + + + // Loads an existing document + PdfLoadedDocument ldoc = new PdfLoadedDocument("Input.pdf"); + PdfSplitOptions splitOptions = new PdfSplitOptions(); + splitOptions.SplitTags = true; + // Splits the source document + ldoc.SplitByRanges("Output.pdf", new int[,] { { 0, 5 }, { 5, 10 } }, splitOptions); + ldoc.Close(true); + + + ' Loads an existing document + Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + Dim splitOptions As PdfSplitOptions = New PdfSplitOptions + splitOptions.SplitTags = true + ' Splits the source document + ldoc.SplitByRanges("Output.pdf", New Integer(,) {{2, 5}, {8, 10}}, splitOptions) + ldoc.Close(true) + + + Class + + + + Imports the loaded document pages + + The start page index. + The end page index. + The name of the destination file pattern. + The document number. + + + + 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. + + + + Convert PDFA to PDF 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 + + + + Embed all the non-embedded fonts to the PDF document. + + It will use a default font like Microsoft San Serif, if the required font is not available on the system. + + + //Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); + if (!loadedDocument.IsAllFontsEmbedded) + { + loadedDocument.EmbedFont(); + } + //Save the document. + document.Save("output.pdf"); + //Close the document. + document.Close(true); + + + 'Load an existing document + Dim document As New PdfLoadedDocument("input.pdf") + If Not loadedDocument.IsAllFontsEmbedded Then + loadedDocument.EmbedFont() + End If + 'Save the document. + document.Save("output.pdf") + 'Close the document. + document.Close(True) + + + + + + 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 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 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 + + + + + Update the form fields. + + + + + 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) + + + + + + Variable to store document level actions. + + + + + 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. + + + + Flatten all annotations in the PDF document + + + + + Flatten all annotations in the PDF document with popups. + + + + + Flatten annotations. + + Represents the annotations to be ignored. + + + + Flattens the specified types of annotations in the PDF document. + This process converts the annotations into static content, making them non-interactive. + + An array of annotation types to be flattened. + A boolean value indicating whether to flatten popup annotations as well. Default is false. + + // Load the PDF document + FileStream docStream = new FileStream(@"D:\Data\Screen.pdf", FileMode.Open, FileAccess.Read); + PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream); + // Specify the annotation types to flatten + PdfLoadedAnnotationType[] pdfLoadedAnnotationTypes = new PdfLoadedAnnotationType[] { PdfLoadedAnnotationType.ScreenAnnotation }; + // Flatten the selected annotations + loadedDocument.FlattenAnnotations(pdfLoadedAnnotationTypes); + // Save the flattened document + MemoryStream memoryStream = new MemoryStream(); + loadedDocument.Save(memoryStream); + loadedDocument.Close(); + + /// + ' Load the PDF document + Dim docStream As FileStream = New FileStream("D:\Data\Screen.pdf", FileMode.Open, FileAccess.Read) + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument(docStream) + ' Specify the annotation types to flatten + Dim pdfLoadedAnnotationTypes As PdfLoadedAnnotationType() = {PdfLoadedAnnotationType.ScreenAnnotation} + ' Flatten the selected annotations + loadedDocument.FlattenAnnotations(pdfLoadedAnnotationTypes) + ' Save the flattened document + Dim memoryStream As MemoryStream = New MemoryStream() + loadedDocument.Save(memoryStream) + loadedDocument.Close() + + + + + returns the LoadedAnnotation type of the annotation in the Pdf + + A PdfName value contains subtype of the annotation + A dictionary annotation in the pdf + crossTable of the document + + + + Exports the annotation data. + + Output file name. + Exporting data format. + Returns whether the annotation data is exported or not + + + //Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Export annotation data into FDF/XFDF format + document.ExportAnnotations("Annotations.fdf", AnnotationDataFormat.Fdf); + //Close and dispose the document + document.Close(true); + document.Dispose(); + + + 'Load an existing document + Dim document As New PdfLoadedDocument("Input.pdf") + 'Export annotation data into FDF/XFDF format + document.ExportAnnotations("Annotations.fdf", AnnotationDataFormat.Fdf) + 'Close and dispose the document + document.Close(true) + document.Dispose() + + + + + + Export the annotations to a file with the specified PdfAnnotationExportSettings. + + + + //Loads an existing PDF Document + PdfLoadedDocument lDoc = new PdfLoadedDocument(@"...\...\Input.pdf"); + //Class that represents the annotation export settings. + PdfAnnotationExportSettings settings = new PdfAnnotationExportSettings(); + PdfLoadedAnnotationType[] annotType = { PdfLoadedAnnotationType.RectangleAnnotation, PdfLoadedAnnotationType.RubberStampAnnotation,PdfLoadedAnnotationType.FreeTextAnnotation }; + //It Specifies the format to export annotation data. + settings.DataFormat = AnnotationDataFormat.Fdf + //Set the array of annotation types that needs to be exported. + settings.AnnotationTypes = annotType; + //Gets or sets the flag to export the annotations with appearance. + settings.ExportAppearance = true; + //Export the annotations to a file with the specified PdfAnnotationExportSettings. + lDoc.ExportAnnotations("Annotation.FDF", settings); + //Close the document + lDoc.Close(true); + + + 'Loads an existing PDF Document + Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("...\...\Input.pdf") + 'Class that represents the annotation export settings. + Dim settings As PdfAnnotationExportSettings = New PdfAnnotationExportSettings() + 'It Specifies the format to export annotation data. + settings.DataFormat = AnnotationDataFormat.Fdf + Dim annotType As PdfLoadedAnnotationType() = {PdfLoadedAnnotationType.FreeTextAnnotation, PdfLoadedAnnotationType.CircleAnnotation} + 'Set the array of annotation types that needs to be exported. + settings.AnnotationTypes = annotType; + 'Export annotations to a file with specified PdfAnnotationExportSettings. + 'Gets or sets the flag to export the annotations with appearance. + settings.ExportAppearance = true; + 'Export the annotations to a file with the specified PdfAnnotationExportSettings. + lDoc.ExportAnnotations(Annotation.FDF, settings) + 'Close the document + lDoc.Close(True) + + + + + + Exports the annotation data. + + Output file name. + Exporting data format. + Target file name or path. + Returns whether the annotation data is exported or not + + + //Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Export annotation data into FDF/XFDF format + document.ExportAnnotations("Annotations.fdf", AnnotationDataFormat.Fdf, "Annotation.Pdf"); + //Close and dispose the document + document.Close(true); + document.Dispose(); + + + 'Load an existing document + Dim document As New PdfLoadedDocument("Input.pdf") + 'Export annotation data into FDF/XFDF format + document.ExportAnnotations("Annotations.fdf", AnnotationDataFormat.Fdf, "Annotation.Pdf") + 'Close and dispose the document + document.Close(true) + document.Dispose() + + + + + + Exports the annotation data. + + Output file name. + Exporting data format. + Annotation collection to export. + Returns whether the annotation data is exported or not + + + //Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Initialize an object for export annotation collection + PdfExportAnnotationCollection collection = new PdfExportAnnotationCollection(); + //Get the first page from the document + PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; + //Add loaded annotations into the export annotation collection + collection.Add(page.Annotations[0] as PdfLoadedAnnotation); + collection.Add(page.Annotations[1] as PdfLoadedAnnotation); + //Export selected annotation's data into FDF/XFDF format + document.ExportAnnotations("Annotations.fdf", AnnotationDataFormat.Fdf, collection); + //Close and dispose the document + document.Close(true); + document.Dispose(); + + + 'Load an existing document + Dim document As New PdfLoadedDocument("Input.pdf") + 'Initialize an object for export annotation collection + Dim collection As New PdfExportAnnotationCollection() + 'Get the first page from the document + Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) + 'Add loaded annotations into the export annotation collection + collection.Add(TryCast(page.Annotations[0], PdfLoadedAnnotation)) + collection.Add(TryCast(page.Annotations[1], PdfLoadedAnnotation)) + 'Export selected annotation's data into FDF/XFDF format + document.ExportAnnotations("Annotations.fdf", AnnotationDataFormat.Fdf, collection) + 'Close and dispose the document + document.Close(true) + document.Dispose() + + + + + + Exports the annotation data. + + Output file name. + Exporting data format. + Target file name or path. + Annotation collection to export. + Returns whether the annotation data is exported or not + + + //Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Initialize an object for export annotation collection + PdfExportAnnotationCollection collection = new PdfExportAnnotationCollection(); + //Get the first page from the document + PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; + //Add loaded annotations into the export annotation collection + collection.Add(page.Annotations[0] as PdfLoadedAnnotation); + collection.Add(page.Annotations[1] as PdfLoadedAnnotation); + //Export selected annotation's data into FDF/XFDF format + document.ExportAnnotations("Annotations.fdf", AnnotationDataFormat.Fdf, "Annotation.pdf", collection); + //Close and dispose the document + document.Close(true); + document.Dispose(); + + + 'Load an existing document + Dim document As New PdfLoadedDocument("Input.pdf") + 'Initialize an object for export annotation collection + Dim collection As New PdfExportAnnotationCollection() + 'Get the first page from the document + Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) + 'Add loaded annotations into the export annotation collection + collection.Add(TryCast(page.Annotations[0], PdfLoadedAnnotation)) + collection.Add(TryCast(page.Annotations[1], PdfLoadedAnnotation)) + 'Export selected annotation's data into FDF/XFDF format + document.ExportAnnotations("Annotations.fdf", AnnotationDataFormat.Fdf, "Annotation.pdf", collection) + 'Close and dispose the document + document.Close(true) + document.Dispose() + + + + + + Exports the annotation data. + + Output file stream. + Exporting data format. + Returns whether the annotation data is exported or not + + + //Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Initialize an instance of MemoryStream + MemoryStream stream = new MemoryStream(); + //Export annotation data into the memory stream + document.ExportAnnotations(stream, AnnotationDataFormat.Fdf); + //Close and dispose the document + document.Close(true); + document.Dispose(); + + + 'Load an existing document + Dim document As New PdfLoadedDocument("Input.pdf") + 'Initialize an instance of MemoryStream + Dim stream As New MemoryStream() + 'Export annotation data into the memory stream + document.ExportAnnotations(stream, AnnotationDataFormat.Fdf) + 'Close and dispose the document + document.Close(true) + document.Dispose() + + + + + + Export the annotations to a stream with the specified AnnotationExportSettings. + + + + //Loads an existing PDF Document + PdfLoadedDocument lDoc = new PdfLoadedDocument(@"...\...\Input.pdf"); + //Class that represents the annotation export settings. + PdfAnnotationExportSettings settings = new PdfAnnotationExportSettings(); + PdfLoadedAnnotationType[] annotType = { PdfLoadedAnnotationType.RectangleAnnotation, PdfLoadedAnnotationType.RubberStampAnnotation,PdfLoadedAnnotationType.FreeTextAnnotation }; + //It Specifies the format to export annotation data. + settings.DataFormat = AnnotationDataFormat.Fdf + //Set the array of annotation types that needs to be exported. + settings.AnnotationTypes = annotType; + //Gets or sets the flag to export the annotations with appearance. + settings.ExportAppearance = true; + //Creating the stream object + MemoryStream memstream = new MemoryStream(); + //Export the annotations to a stream with the specified AnnotationExportSettings. + lDoc.ExportAnnotations(memstream, settings); + //Close the document + lDoc.Close(true); + + + 'Loads an existing PDF Document + Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("...\...\Input.pdf") + 'Class that represents the annotation export settings. + Dim settings As PdfAnnotationExportSettings = New PdfAnnotationExportSettings() + 'It Specifies the format to export annotation data. + settings.DataFormat = AnnotationDataFormat.Fdf + 'Export annotations to a file with specified PdfAnnotationExportSettings. + Dim annotType As PdfLoadedAnnotationType() = {PdfLoadedAnnotationType.FreeTextAnnotation, PdfLoadedAnnotationType.CircleAnnotation} + 'Set the array of annotation types that needs to be exported. + settings.AnnotationTypes = annotType; + 'Gets or sets the flag to export the annotations with appearance. + settings.ExportAppearance = true; + 'Creating the stream object + MemoryStream memstream = new MemoryStream(); + 'Export the annotations to a stream with the specified AnnotationExportSettings. + lDoc.ExportAnnotations(memstream, settings) + 'Close the document + lDoc.Close(True) + + + + + + Exports the annotation data. + + Output file stream. + Exporting data format. + Target file name or path. + Returns whether the annotation data is exported or not + + + //Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Initialize an instance of MemoryStream + MemoryStream stream = new MemoryStream(); + //Export annotation data into the memory stream + document.ExportAnnotations(stream, AnnotationDataFormat.Fdf, "Annotation.pdf"); + //Close and dispose the document + document.Close(true); + document.Dispose(); + + + 'Load an existing document + Dim document As New PdfLoadedDocument("Input.pdf") + 'Initialize an instance of MemoryStream + Dim stream As New MemoryStream() + 'Export annotation data into the memory stream + document.ExportAnnotations(stream, AnnotationDataFormat.Fdf, "Annotation.pdf") + 'Close and dispose the document + document.Close(true) + document.Dispose() + + + + + + Exports the annotation data. + + Output file stream. + Exporting data format. + Annotation collection to export. + Returns whether the annotation data is exported or not + + + //Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Initialize an object for export annotation collection + PdfExportAnnotationCollection collection = new PdfExportAnnotationCollection(); + //Get the first page from the document + PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; + //Add loaded annotations into the export annotation collection + collection.Add(page.Annotations[0] as PdfLoadedAnnotation); + collection.Add(page.Annotations[1] as PdfLoadedAnnotation); + //Initialize an instance of MemoryStream + MemoryStream stream = new MemoryStream(); + //Export selected annotation's data into FDF/XFDF format + document.ExportAnnotations(stream, AnnotationDataFormat.Fdf, collection); + //Close and dispose the document + document.Close(true); + document.Dispose(); + + + 'Load an existing document + Dim document As New PdfLoadedDocument("Input.pdf") + 'Initialize an object for export annotation collection + Dim collection As New PdfExportAnnotationCollection() + 'Get the first page from the document + Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) + 'Add loaded annotations into the export annotation collection + collection.Add(TryCast(page.Annotations[0], PdfLoadedAnnotation)) + collection.Add(TryCast(page.Annotations[1], PdfLoadedAnnotation)) + 'Initialize an instance of MemoryStream + Dim stream As New MemoryStream() + 'Export selected annotation's data into FDF/XFDF format + document.ExportAnnotations(stream, AnnotationDataFormat.Fdf, collection) + 'Close and dispose the document + document.Close(true) + document.Dispose() + + + + + + Exports the annotation data. + + Output file stream. + Exporting data format. + Target file name or path. + Annotation collection to export. + Returns whether the annotation data is exported or not + + + //Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Initialize an object for export annotation collection + PdfExportAnnotationCollection collection = new PdfExportAnnotationCollection(); + //Get the first page from the document + PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; + //Add loaded annotations into the export annotation collection + collection.Add(page.Annotations[0] as PdfLoadedAnnotation); + collection.Add(page.Annotations[1] as PdfLoadedAnnotation); + //Initialize an instance of MemoryStream + MemoryStream stream = new MemoryStream(); + //Export selected annotation's data into FDF/XFDF/Json format + document.ExportAnnotations(stream, AnnotationDataFormat.Fdf, "Annotation.pdf", collection); + //Close and dispose the document + document.Close(true); + document.Dispose(); + + + 'Load an existing document + Dim document As New PdfLoadedDocument("Input.pdf") + 'Initialize an object for export annotation collection + Dim collection As New PdfExportAnnotationCollection() + 'Get the first page from the document + Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) + 'Add loaded annotations into the export annotation collection + collection.Add(TryCast(page.Annotations[0], PdfLoadedAnnotation)) + collection.Add(TryCast(page.Annotations[1], PdfLoadedAnnotation)) + 'Initialize an instance of MemoryStream + Dim stream As New MemoryStream() + 'Export selected annotation's data into FDF/XFDF format + document.ExportAnnotations(stream, AnnotationDataFormat.Fdf, "Annotation.pdf", collection) + 'Close and dispose the document + document.Close(true) + document.Dispose() + + + + + + Imports the annotation data from FDF/XFDF/Json file. + + FDF/XFDF file name. + Importing data format. + + + //Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Import annotation data from FDF file + document.ImportAnnotations("Annotations.fdf", AnnotationDataFormat.Fdf); + //Save and close the document + document.Save("Output.pdf"); + document.Close(true); + //dispose the document + document.Dispose(); + + + 'Load an existing document + Dim document As New PdfLoadedDocument("Input.pdf") + 'Import annotation data from FDF file + document.ImportAnnotations("Annotations.fdf", AnnotationDataFormat.Fdf) + Save and close the document + 'Close and dispose the document + document.Save("Output.pdf") + document.Close(true) + //dispose the document + document.Dispose() + + + + + + Imports the annotation data from FDF/XFDF/Json stream. + + FDF/XFDF stream. + Importing data format. + + + //Load an existing document + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Import annotation data from FDF stream + Stream stream = new FileStream("Annotations.fdf", FileMode.Open, FileAccess.Read, FileShare.Read); + document.ImportAnnotations(stream, AnnotationDataFormat.Fdf); + //Save and close the document + document.Save("Output.pdf"); + document.Close(true); + //dispose the document + document.Dispose(); + + + 'Load an existing document + Dim document As New PdfLoadedDocument("Input.pdf") + 'Import annotation data from FDF stream + Dim stream As Stream = New FileStream("Annotations.fdf", FileMode.Open, FileAccess.Read, FileShare.Read) + document.ImportAnnotations(stream, AnnotationDataFormat.Fdf) + Save and close the document + 'Close and dispose the document + document.Save("Output.pdf") + document.Close(true) + //dispose the document + document.Dispose() + + + + + + Parse and create StructTreeRoot + + + + + + Get the structure element from the structure dictionary + + The root value. + + + + + Check root elements is single root node or not + + The structure dictionary value. + + + + + Get the Structure Element + + The structure dictionary value. + The parent value. + + + + + Get the revisions of the PDF file + + + + + + 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. + + + + Arguments of Pdf Password. + + + + // Creates a new document + PdfLoadedDocument lDoc = new PdfLoadedDocument("Input.pdf"); + // Subscribe the On pdf password event + lDoc.OnPdfPassword += LDoc_OnPdfPassword; + //Access the attachments + PdfAttachmentCollection attachment=lDoc.Attachments; + //Save the document + lDoc.save("Ouput.pdf"); + // On Pdf Password event handler + void LDoc_OnPdfPassword(object sender, OnPdfPasswordEventArgs args) + { + args.UserPassword = "syncfusion"; + } + + + + + + Gets or sets a value of pdf password. + + + + // Creates a new document + PdfLoadedDocument lDoc = new PdfLoadedDocument("Input.pdf"); + // Subscribe the On pdf password event + lDoc.OnPdfPassword += LDoc_OnPdfPassword; + //Access the attachments + PdfAttachmentCollection attachment=lDoc.Attachments; + //Save the document + lDoc.save("Ouput.pdf"); + // On Pdf Password event handler + void LDoc_OnPdfPassword(object sender, OnPdfPasswordEventArgs args) + { + args.UserPassword = "syncfusion"; + } + + + + + + Shows the redaction progress of the PDF document. + + + + PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); + // Get first page from the document + PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; + PdfRedaction redaction = new PdfRedaction(new RectangleF(37, 94, 50, 10), System.Drawing.Color.Black); + //Adds redaction to the loaded page + page.Redactions.Add(redaction); + document.RedactionProgress += redaction_TrackProgress; + //Save the document + document.Save("output.pdf"); + document.Close(true); + // Event handler for Track redaction process + void redaction_TrackProgress(object sender, RedactionProgressEventArgs arguments) + { + MessageBox.Show(String.Format("Redaction Process " + arguments.Progress + " % completed")); + } + + + Dim document As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + 'Get first page from the document + Dim page As PdfLoadedPage = document.Pages(0) as PdfLoadedPage + Dim redaction As PdfRedaction = New PdfRedaction(New RectangleF(37,94,50,10),System.Drawing.Color.Black) + 'Adds redaction to the loaded page + page.Redactions.Add(redaction) + document.RedactionProgress += redaction_TrackProgress + 'Save the document + document.Save("output.pdf") + document.Close(True) + 'Event handler for Track redaction process + Private Sub redaction_TrackProgress(ByVal sender As Object, ByVal arguments As RedactionProgressEventArgs) + MessageBox.Show(String.Format("Redaction Process " + arguments.Progress + " % completed")) + End Sub + + + + + + Gets the redaction progress in percentage. + + Progress constantly increases from 0 to 100. + 100 value means that redaction prcoess completed for entire document. + + + + Initializes a new instance of the class. + + + + + Shows the PDF/A conversion progress of the PDF document. + + + + PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); + //Set the conformance level. + loadedDocument.Conformance = PdfConformanceLevel.Pdf_A1B; + document.PdfAConversionProgress += pdfAConversion_TrackProgress; + //Save the document + document.Save("output.pdf"); + document.Close(true); + // Event handler for Track redaction process + void pdfAConversion_TrackProgress(object sender, PdfAConversionProgressEventArgs arguments) + { + MessageBox.Show(String.Format("Pdf/A conversion Process " + arguments.Progress + " % completed"); + } + + + Dim document As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + 'Set the conformance level. + loadedDocument.Conformance = PdfConformanceLevel.Pdf_A1B + document.PdfAConversionProgress += pdfAConversion_TrackProgress + 'Save the document + document.Save("output.pdf") + document.Close(True) + 'Event handler for Track redaction process + Private Sub pdfAConversion_TrackProgress(ByVal sender As Object, ByVal arguments As PdfAConversionProgressEventArgs) + MessageBox.Show(String.Format("Pdf/A conversion Process " + arguments.Progress + " % completed")) + End Sub + + + + + + Gets the PDF/A conversion progress in percentage. + + Progress constantly increases from 0 to 100. If the value reaches 100 means, that PDF/A conversion process completed for the entire document. + + + + Initializes a new instance of the class. + + + + + Represents to customize the signature validations. + + + + + Gets or sets to validate revocation while validating signature. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Signature validation options + PdfSignatureValidationOptions options = new PdfSignatureValidationOptions(); + // disable revocation status + options.ValidateRevocationStatus = false; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(options); + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Signature validation options + Dim options As PdfSignatureValidationOptions = New PdfSignatureValidationOptions() + ' disable revocation status + options.ValidateRevocationStatus = False + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature(options) + ' Close the document + document.Close(true) + + + + + + Gets or sets the revocation validation type. + + /// + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Signature validation options + PdfSignatureValidationOptions options = new PdfSignatureValidationOptions(); + // Sets the revocation type + options.RevocationValidationType = RevocationValidationType.Crl; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(options); + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Signature validation options + Dim options As PdfSignatureValidationOptions = New PdfSignatureValidationOptions() + ' Sets the revocation type + options.RevocationValidationType = RevocationValidationType.Crl + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature(options) + ' Close the document + document.Close(true) + + + + + + Gets or sets to OCSP response data + + + + + Gets or sets to CRL response data + + + + + + + + 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. + + + + + 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 + + + + 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 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. + + + + + 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. + + + + + 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 + + + + + + + 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 + + + + + Gets 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 + + + + + + + + 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. + + + + + 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. + + + + 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 + + + + + + + Exports the specified page as Image + + The page pageIndex 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 pageIndex 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 capured terms found in the given page index + + The Specified pageindex. + List of items 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 + + + + 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 positions of the text matches + + The text which is to be searched + Holds the page number and rectangle positions of the text matches + + + + + Returns the text matches from the page text. + + + + + Returns the text matches from the page text. + + + + + Returns the rectangle postions of the text matches + + The text which is to be searched + Holds the page number and rectangle positions of the text matches + + + + + 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 + + + + + Gets or sets the Domain value of Function. + + + + + Gets or sets the Range value 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 + + + + Perform Interpolate function + + result + + + + Clip the Data + + result + + + + + + + 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 + + + + + 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. + + + + + Load the Type0 function stream to local variable + + Type0 Data + + + + + Execute the Type0 function + + Input Data + Color values + + + + Encode the input data of Type0 + + EncodedData + + + + Decode the input data of Type0 + + DecodedData + + + + 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 + + + + + + + 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 + + + + + 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 + + + + + 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 + + + + + + + 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 + + + + + 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. + + + + + Perform the Type4 function + + Input Data + Color values + + + + + + + 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 + + + + + Gets the output element value length + + + + + Gets or sets the Filter value of Type4 function stream. + + + + + 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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Class which represents the collection of text search result. + + + + + Gets the details of character in the word. + + + + + Get the text of glyph. + + + + + Get the Rotate angle of glyph. + + + + + Gets the bounds of glyph. + + + + + + Gets the font size of glyph. + + + + + Gets the font name of glyph. + + + + + Gets the font style of glyph. + + + + + Details of the text present in a line + + + + + Gets the text. + + + + + It will be exposed to public once its implemented for Pdfium. + + + + + It will be exposed to public once its implemented for Pdfium. + + + + + It will be exposed to public once its implemented for Pdfium. + + + + + Gets the text color. + + + + + Gets the collection of words present in the line. + + + + + Gets the bounds of the text. + + + + + Text lines collection in the page. + + + + + Details of a word present in the line. + + + + + Gets the text. + + + + + Gets the bounds of the text. + + + + + Gets the font size of the text. + + + It will be exposed to public once its implemented for Pdfium. + + + + + Gets the font name of the text. + + + It will be exposed to public once its implemented for Pdfium. + + + + + Gets the font style of the text. + + + It will be exposed to public once its implemented for Pdfium. + + + + + Gets the text glyph with bounds in the word. + + + + + 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() + + + + + + 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() + + + + + + 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 + + The field count value. + The xfa writer value. + + + + Save the acroform button field + + The page value. + The bounds value. + The name value. + + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + 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 + + The xfa writer value. + The height value. + The width value. + The size. + + + + Measure the caption string + + + + + + Measure the caption string + + The text value. + + + + + 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 + + The xml node value. + + + + save the existing node + + The xml node value. + + + + set the new attribute for existing node + + The xml node value. + The name value. + The attribute value. + + + + convert string to point value + + The convert value. + + + + + read the font informations + + The xml node value. + + + + 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() + + + + + + 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() + + + + + + 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 + + The bounds value. + + + + + Get the border pen + + + + + + read the node + + The xml node value. + + + + save the existing node + + The xml node value. + + + + create a new edge node + + The xml node value. + The xfa edge value. + + + + Set the new attribute for existing node + + The xml node value. + The name value. + The attribute value. + + + + 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() + + + + + + 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() + + + + + + 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 + + The xml node value. + The xfa edge value + + + + Save the existing node + + The xml node value + + + + Set new attribute + + The xml node value + The name value + The attribute value + + + + clone the object + + + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + 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. + + + + + 30/10/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 (eg: 10:43:01 AM) + + + + + short(eg: 10:43 AM) + + + + + Medium (eg: 10:43:01 AM) + + + + + Long (eg: 10:43:01 AM GMT+05:30) + + + + + full (eg: 10:43:01 AM GMT+05:30) + + + + + eg:1:30 PM + + + + + eg:1:30:30 PM + + + + + eg:1:30:43 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() + + + + + + 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() + + + + + + 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. + + The xfa writer value. + + + + Save acrform checkbox field. + + The page value. + The bounds value. + The name value. + + + + + Get the acroform checkbox style. + + The xfa checked 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() + + + + + + 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() + + + + + + 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() + + + + + + 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 + + The xfa writer value. + + + + Draw the circle to PDF document. + + The page value. + The bounds value. + + + + 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() + + + + + + 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() + + + + + + 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); + List<string> items = new List<string>() { "One", "Two", "Three", "Four", "Five" }; + //Create a new XFA combo box field + PdfXfaComboBoxField field = new PdfXfaComboBoxField("combo1", new SizeF(100, 30)); + //Set paddings. + field.Padding.All = 2; + //Set data source. + field.DataSource = items; + //Set caption. + field.Caption.Text = "Combo Box"; + //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) + Dim items As New List(Of String)() + items.Add("One") + items.Add("Two") + items.Add("Three") + items.Add("Four") + items.Add("Five") + 'Create a new XFA combo box field + Dim field As New PdfXfaComboBoxField("combo1", New SizeF(100, 30)) + 'Set paddings. + field.Padding.All = 2 + 'Set data source. + field.DataSource = items + 'Set caption. + field.Caption.Text = "Combo Box" + '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 the combo box items. + + It only supports the list of string or array of string values. + + + //Create a new XFA document + PdfXfaDocument document = new PdfXfaDocument(); + //Create a new XFA form + PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); + List<string> items = new List<string>() { "One", "Two", "Three", "Four", "Five" }; + //Create a new XFA combo box field + PdfXfaComboBoxField field = new PdfXfaComboBoxField("combo1", new SizeF(100, 30)); + //Set paddings. + field.Padding.All = 2; + //Set data source. + field.DataSource = items; + //Set caption. + field.Caption.Text = "Combo Box"; + //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) + Dim items As New List(Of String)() + items.Add("One") + items.Add("Two") + items.Add("Three") + items.Add("Four") + items.Add("Five") + 'Create a new XFA combo box field + Dim field As New PdfXfaComboBoxField("combo1", New SizeF(100, 30)) + 'Set paddings. + field.Padding.All = 2 + 'Set data source. + field.DataSource = items + 'Set caption. + field.Caption.Text = "Combo Box" + '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); + List<string> items = new List<string>() { "One", "Two", "Three", "Four", "Five" }; + //Create a new XFA combo box field + PdfXfaComboBoxField field = new PdfXfaComboBoxField("combo1", new SizeF(100, 30)); + //Set paddings. + field.Padding.All = 2; + //Set data source. + field.DataSource = items; + //Set caption. + field.Caption.Text = "Combo Box"; + //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) + Dim items As New List(Of String)() + items.Add("One") + items.Add("Two") + items.Add("Three") + items.Add("Four") + items.Add("Five") + 'Create a new XFA combo box field + Dim field As New PdfXfaComboBoxField("combo1", New SizeF(100, 30)) + 'Set paddings. + field.Padding.All = 2 + 'Set data source. + field.DataSource = items + 'Set caption. + field.Caption.Text = "Combo Box" + '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 field items + + + + //Create a new XFA document + PdfXfaDocument document = new PdfXfaDocument(); + //Create a new XFA form + PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); + List<string> items = new List<string>() { "One", "Two", "Three", "Four", "Five" }; + //Create a new XFA combo box field + PdfXfaComboBoxField field = new PdfXfaComboBoxField("combo1", new SizeF(100, 30)); + //Set caption. + field.Caption.Text = "Combo Box"; + //Set items. + field.Items = items; + //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) + Dim items As New List(Of String)() + items.Add("One") + items.Add("Two") + items.Add("Three") + items.Add("Four") + items.Add("Five") + 'Create a new XFA combo box field + Dim field As New PdfXfaComboBoxField("combo1", New SizeF(100, 30)) + 'Set caption. + field.Caption.Text = "Combo Box" + 'Set items. + field.Items = items + '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 selected index + + + + //Create a new XFA document + PdfXfaDocument document = new PdfXfaDocument(); + //Create a new XFA form + PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); + List<string> items = new List<string>() { "One", "Two", "Three", "Four", "Five" }; + //Create a new XFA combo box field + PdfXfaComboBoxField field = new PdfXfaComboBoxField("combo1", new SizeF(100, 30)); + //Set items. + field.Items = items; + //Set selected index. + field.SelectedIndex = 1; + //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) + Dim items As New List(Of String)() + items.Add("One") + items.Add("Two") + items.Add("Three") + items.Add("Four") + items.Add("Five") + 'Create a new XFA combo box field + Dim field As New PdfXfaComboBoxField("combo1", New SizeF(100, 30)) + 'Set items. + field.Items = items + 'Set selected index. + field.SelectedIndex = 1 + '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 selected value + + + + //Create a new XFA document + PdfXfaDocument document = new PdfXfaDocument(); + //Create a new XFA form + PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); + List<string> items = new List<string>() { "One", "Two", "Three", "Four", "Five" }; + //Create a new XFA combo box field + PdfXfaComboBoxField field = new PdfXfaComboBoxField("combo1", new SizeF(100, 30)); + //Set items. + field.Items = items; + //Set selected value + field.SelectedValue = "Three"; + //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) + Dim items As New List(Of String)() + items.Add("One") + items.Add("Two") + items.Add("Three") + items.Add("Four") + items.Add("Five") + 'Create a new XFA combo box field + Dim field As New PdfXfaComboBoxField("combo1", New SizeF(100, 30)) + 'Set items. + field.Items = items + 'Set selected value + field.SelectedValue = "Three" + '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 text entry + + + + //Create a new XFA document + PdfXfaDocument document = new PdfXfaDocument(); + //Create a new XFA form + PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); + List<string> items = new List<string>() { "One", "Two", "Three", "Four", "Five" }; + //Create a new XFA combo box field + PdfXfaComboBoxField field = new PdfXfaComboBoxField("combo1", new SizeF(100, 30)); + //Set items. + field.Items = items; + //Set text entry. + field.AllowTextEntry = 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) + Dim items As New List(Of String)() + items.Add("One") + items.Add("Two") + items.Add("Three") + items.Add("Four") + items.Add("Five") + 'Create a new XFA combo box field + Dim field As New PdfXfaComboBoxField("combo1", New SizeF(100, 30)) + 'Set items. + field.Items = items + 'Set text entry. + field.AllowTextEntry = 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() + + + + + + 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. + Size of the field. + Field items. + + + //Create a new XFA document + PdfXfaDocument document = new PdfXfaDocument(); + //Create a new XFA form + PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); + List<string> items = new List<string>() { "One", "Two", "Three", "Four", "Five" }; + //Create a new XFA combo box field + PdfXfaComboBoxField field = new PdfXfaComboBoxField("combo1", new SizeF(100, 30), items); + //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) + Dim items As New List(Of String)() + items.Add("One") + items.Add("Two") + items.Add("Three") + items.Add("Four") + items.Add("Five") + 'Create a new XFA combo box field + Dim field As New PdfXfaComboBoxField("combo1", New SizeF(100, 30), items) + '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() + + + + + + Initialize a new instance of the class. + + The name of the field. + Width of the field. + Height of the field. + Field items. + + + //Create a new XFA document + PdfXfaDocument document = new PdfXfaDocument(); + //Create a new XFA form + PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); + List<string> items = new List<string>() { "One", "Two", "Three", "Four", "Five" }; + //Create a new XFA combo box field + PdfXfaComboBoxField field = new PdfXfaComboBoxField("combo1", 100, 30, items); + //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) + Dim items As New List(Of String)() + items.Add("One") + items.Add("Two") + items.Add("Three") + items.Add("Four") + items.Add("Five") + 'Create a new XFA combo box field + Dim field As New PdfXfaComboBoxField("combo1", 100, 30, items) + '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. + + The xfa writer value. + + + + Save the acroform combo box field. + + The page value. + The bounds value. + The name. + + + + + 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() + + + + + + 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() + + + + + + 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. + + The xfa writer value. + + + + Save the acroform text box field. + + The page value. + The bounds value. + The name value. + + + + + Set size + + + + + set the date Pattern + + The format value. + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + 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. + + The PDF document value. + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + Convet XFA text alignment to PdfTextAlignment. + + The xfa alignment value. + + + + + 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() + + + + + + 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() + + + + + + 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 + + + + + + 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. + + + + + 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. + + + + + 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 + + The PDF document. + + + + Save the top most form + + The xfa eriter value. + + + + Add the second level Parent form + + The xfa writer value. + + + + Draw the edge + + The edge value. + The start point value. + The end point value. + The page value. + + + + Get pens dash style. + + The xfa border style. + + + + + Add all the subforms + + The xfa sub form. + The xfa eriter value. + + + + Get the field names + + The field name. + + + + + Get the sub form names + + The sub form name. + + + + + Add all the subforms + + The xfa writer value. + + + + Break the subform to new page. + + The writer value. + The page value. + + + + Get the subforms background height. + + The xfa sub foem. + + + + Draw the background color. + + The xfa temp form. + + + + Add a PDF page + + The xfa page. + + + + + Set the current pont + + The xfa sub form. + + + + Set the background height. + + The xfa sub form. + The height value. + + + + Find the subform width and height + + The xfa sub form. + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + 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 + + The bitmap image value. + The bounds value. + + + + Save the image field. + + The field count. + The image name. + The xfa writer name. + + + + Save the image to the PDF document. + + The page value. + The bounds value. + + + + Get the fields rotation angle. + + + + + + Clone. + + + + + + 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() + + + + + + 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() + + + + + + 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. + + The xfa writer value. + + + + Draw the line in PDF document. + + The page value. + The bounds value. + + + + 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() + + + + + + 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() + + + + + + 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 set the list box items. + + It only supports the list of string or array of string values. + + + //Create a new PDF XFA document. + PdfXfaDocument document = new PdfXfaDocument(); + //Add a new XFA page. + PdfXfaPage xfaPage = document.Pages.Add(); + //Create a new PDF XFA form + PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); + List<string> items = new List<string>() { "English", "French", "German" }; + //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; + //Set data source. + listBoxField.DataSource = items; + //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) + Dim items As New List(Of String)() + items.Add("English") + items.Add("French") + items.Add("German") + '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 + 'Set data source. + listBoxField.DataSource = items + '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() + + + + + + 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 size. + Field 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); + List<string> items = new List<string>() { "English", "French", "German" }; + //Create a list box field and add the properties. + PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50), items); + //Set the caption text. + listBoxField.Caption.Text = "Known Languages"; + listBoxField.Caption.Position = PdfXfaPosition.Top; + listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; + //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) + Dim items As New List(Of String)() + items.Add("English") + items.Add("French") + items.Add("German") + 'Create a list box field and add the properties. + Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50), items) + 'Set the caption text. + listBoxField.Caption.Text = "Known Languages" + listBoxField.Caption.Position = PdfXfaPosition.Top + listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center + '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() + + + + + + Initialize a new instance of the class. + + Field name. + Field width. + Field height. + Field 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); + List<string> items = new List<string>() { "English", "French", "German" }; + //Create a list box field and add the properties. + PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", 150, 50, items); + //Set the caption text. + listBoxField.Caption.Text = "Known Languages"; + listBoxField.Caption.Position = PdfXfaPosition.Top; + listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; + //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) + Dim items As New List(Of String)() + items.Add("English") + items.Add("French") + items.Add("German") + 'Create a list box field and add the properties. + Dim listBoxField As New PdfXfaListBoxField("listBoxField", 150, 50, items) + 'Set the caption text. + listBoxField.Caption.Text = "Known Languages" + listBoxField.Caption.Position = PdfXfaPosition.Top + listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center + '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. + + The xfa writer value. + + + + Save the acroform list box. + + The page value. + The bounds value. + The name. + + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + 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. + + The xfa writer value. + + + + Save acroform textbox field. + + The page value. + The bounds value. + The name. + + + + + set the size of the numeric field + + The xfa writter value. + + + + 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() + + + + + + 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. + + The xfa writter value. + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + 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. + + The xfa writter value. + + + + Set Margins, font, tooltip and alignments. + + The xfa writter value. + + + + Save acroform radio button field. + + The page value. + The bounds value. + + + + + Convert XFA check box style to acroform check box style. + + The style value. + + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + 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 + + The xfa writter value. + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + 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. + + The xfa writter value. + + + + Draw the rectangle field to PDF document. + + The page value. + The bounds value. + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + Set Margins, font, tooltip and alignments. + + The xfa writter value. + + + + Get the size of the field. + + + + + + Get the fields rotation angle. + + + + + + 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() + + + + + + 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() + + + + + + 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. + + The xfa writter value. + + + + Save the text box field. + + The xfa writter value. + + + + Save the acroform textbox field. + + The page value. + The bounds value. + The name. + + + + + set the size of the textbox field + + The xfa writter value. + + + + 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() + + + + + + 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() + + + + + + 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() + + + + + + 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. + + The xfa writter value. + + + + Draw the tex to the PDF document. + + The page value. + The bounds value. + + + + 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() + + + + + + Writes the XFA document templates + + The PDF xfa form. + + + + + Writes the preamble dictionary + + + + + + Start the datasets + + The xml data writer. + + + + End element of the datasets + + The xml data writer. + + + + Writes the postable dictionary + + + + + + Writes configuration section + + + + + + Writes the XFA UI tag + + The name. + The values. + + + + Writes the XFA UI tag + + The name. + The values. + The border value. + The padding value. + + + + Writes the XFA UI tag + + The name. + The values. + The border style. + The comb value. + + + + Writes the XFA UI tag. + + The name. + The values. + The border value. + The comb value. + The padding value. + + + + Writes the XFA field value tag. + + The text value. + + + + Write the XFA field value with numeric + + The text value. + The value. + + + + Writes the XFA field margins + + The l value. + The r value. + The b value. + The t value. + + + + Draw the margin + + The margin value. + + + + write the font info + + The font name. + The font fore color. + + + + Writes the font information + + The font name. + The font size. + The font style. + + + + Write the width and height of the fields + + The fixed height value. + The fixed width value. + The minimum height value. + The minimum width value. + + + + Write the width and height of the fields + + The fixed height value. + The fixed width value. + The minimum height value. + The minimum width value. + The maximum height value. + The maximum width value. + + + + Draws the XFA line value + + The thicknes value. + Thye slope value. + + + + Writes the caption of the field + + The text value. + + + + Writes the items of fields + + The text value. + + + + Writes the items of fields + + The roll over value. + The down value. + + + + Writes the list of items + + The lsit value. + The save string value. + + + + Writes the toolTip of fields + + The text value. + + + + Draw's the fill color of the field + + The fill color value. + + + + Writes the location of the field + + The location value. + + + + Write the paragraph alignments + + The PDF xfa vertical alignment. + The PDF xfa horizontal alignment. + + + + Write patterns + + The pattern value. + + + + Draws the edges of the border + + The xfa border value. + Is skip boolean value. + + + + Draws a field Border + + The xfa border value. + + + + Draw the button field fill color and border + + The xfa border value. + The xfa fill color value. + + + + Draws the edge + + The pdf xfa edge value. + + + + Draws the corner + + The pdf xfa corner value. + + + + Drw the color + + The pdf color value. + + + + Draws the stroke + + The pdf xfa border style. + + + + Draws the fill color + + The xfa brush vaue. + + + + Draws the radial brush + + The pdf xfa radial brush. + + + + Draws the linear brush + + The pdf xfa linear brush. + + + + Set rotation presence and readOnly + + The pdf xfa rotate angle. + The pdf xfa visibility. + Is read only boolean value. + + + + Get the date pattern string. + + Th epdf xfa date pattern. + + + + + Get the time pattern string. + + The pdf xfa time pattern. + + + + + Get the date time pattern string. + + The pdf xfa date pattern. + The pdf xfa time pattern. + + + + + Get date pattern. + + The pattern value. + + + + + Get time pattern. + + The pdf xfa time pattern. + + + + + 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 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() + + + + + + 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 + + + + + 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() + + + + + + 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() + + + + + + 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 + + + + + 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 items 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; + //Get the combo box items. + List<string> items = loadedComboBoxField.Items; + //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) + 'Get the combo box items. + Dim items As List(Of String) = loadedComboBoxField.Items + '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() + + + + + + Gets or 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() + + + + + + Clear the DateTime field value. By doing this, the DateTime field will be set to empty. + + + + //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; + //Clear the value + loadedDateTimeField.ClearValue();+ /// //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) + 'Clear the value + loadedDateTimeField.ClearValue() + '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() + + + + + + 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() + + + + + + Get value of the XML Data Package. + + + + //Load the existing PDF document + PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); + //Get the XML Data Package + XmlDocument xdp = loadedDocument.XmlData; + //Save the document + loadedDocument.Save("output.pdf"); + //Close the document + loadedDocument.Close(); + + + 'Load the existing PDF document + Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") + 'Get the XML Data Package + Dim xdp As XmlDocument = loadedDocument.XmlData + '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() + + + + + + 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() + + + + + + Represents the XFA field names + + + + + Represents the XFA subform names + + + + + Represents the XFA field names + + + + + Represents the XFA subform names + + + + + Represents the field doesn't have name. + + + + + Represents the area name. + + + + + Represents the XFA Field collections + + + + + Represents the acroform field. + + + + + convert string to float + + The point value. + + + + + Read the margin details + + the xml node value. + + + + set the size of the field + + The xml node value. + The attribute value. + The value for set size. + + + + Read the XFA form fields + + The xml node value. + The pdf loaded xfa form. + The field names. + The sub form names. + + + + 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() + + + + + + 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. + + The index value. + + + + + 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() + + + + + + 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. + + The pdf loaded xfa field. + teh field name. + + + + Get fields name. + + The name value. + + + + + 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() + + + + + + 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 + + + + + Repersents the XFA image array + + + + + 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 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. + + + + + 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() + + + + + + Load the XFA documents + + The pdf catalog. + + + + Save the XFA document + + The pdf loaded document. + + + + save main form + + + + + Fill and save the subforms and fields + + The pdf loaded xfa form. + The xml data set writer. + + + + Read the main form details + + + + + Read subForms and fields + + The xml sub node. + + + + + 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() + + + + + + Import XFA form data from XML file to Pdf document. + + The file path of XML file to import + + + //Load the XFA form document + PdfLoadedXfaDocument xfaDocument = new PdfLoadedXfaDocument(xfaFormFile); + //Import XFA data from xml file + xfaDocument.XfaForm.ImportXfaData("Import.xml"); + //Save and close the XFA document + xfaDocument.Save("Output.pdf"); + xfaDocument.Close(); + + + 'Load the XFA form document + Dim xfaDocument As PdfLoadedXfaDocument = New PdfLoadedXfaDocument(xfaFormFile) + 'Import XFA data from xml file + xfaDocument.XfaForm.ImportXfaData("Import.xml") + 'Save and close the XFA document + xfaDocument.Save("Output.pdf") + xfaDocument.Close() + stream.Dispose() + + + + + + Import XFA form data from stream to Pdf document. + + The stream of XFA data to import + + + //Load the XFA PDF document. + PdfLoadedXfaDocument xfaDocument = new PdfLoadedXfaDocument(xfaFormFile); + //Import XFA data from stream. + FileStream fileStream = new FileStream("Import.xml", FileMode.Open); + xfaDocument.XfaForm.ImportXfaData(fileStream); + //Save and Close the document. + xfaDocument.Save("Output.pdf"); + xfaDocument.Close(); + //Dispose the Stream. + fileStream.Dispose(); + + + 'Load the XFA form document + Dim xfaDocument As PdfLoadedXfaDocument = New PdfLoadedXfaDocument(xfaFormFile) + 'Import XFA data from stream. + Dim fileStream As FileStream = New FileStream("Import.xml", FileMode.Open) + xfaDocument.XfaForm.ImportXfaData(fileStream) + 'Save and Close the document. + xfaDocument.Save("Output.pdf") + xfaDocument.Close() + 'Dispose the Stream. + fileStream.Dispose() + + + + + + Export XFA form data from Pdf document to a file in XML format. + + The name/path of the file to export XFA data + + + //Load the XFA form document + PdfLoadedXfaDocument xfaDocument = new PdfLoadedXfaDocument(xfaFormFile); + //Export XFA data to xml format in a file + xfaDocument.XfaForm.ExportXfaData("Export.xml"); + //Save and close the XFA document + xfaDocument.Save("Output.pdf"); + xfaDocument.Close(); + + + 'Load the XFA form document + Dim xfaDocument As PdfLoadedXfaDocument = New PdfLoadedXfaDocument(xfaFormFile) + 'Export XFA data to xml format in a file + xfaDocument.XfaForm.ExportXfaData("Export.xml") + 'Save and close the XFA document + xfaDocument.Save("Output.pdf") + xfaDocument.Close() + stream.Dispose() + + + + + + Export XFA form data from Pdf document to a stream in XML format. + + The stream to export XFA form data + + + //Load the XFA form document + PdfLoadedXfaDocument xfaDocument = new PdfLoadedXfaDocument(xfaFormFile); + //Create stream to export the data + MemoryStream stream = new MemoryStream(); + //Export XFA data to xml format to stream + xfaDocument.XfaForm.ExportXfaData(stream); + //Save and close the XFA document + xfaDocument.Save("Output.pdf"); + xfaDocument.Close(); + + + 'Load the XFA form document + Dim xfaDocument As PdfLoadedXfaDocument = New PdfLoadedXfaDocument(xfaFormFile) + 'Create stream to export the data + Dim stream As MemoryStream = New MemoryStream() + 'Export XFA data to xml format to stream + xfaDocument.XfaForm.ExportXfaData(stream) + 'Save and close the XFA document + xfaDocument.Save("Output.pdf.pdf") + xfaDocument.Close() + stream.Dispose() + + + + + + Get the name + + The name. + + + + + Save the attributes of the current form + + The pdf loaded xfa form. + + + + Get the complete field names + + The pdf loaded xfa form. + + + + Get complete field names + + The pdf loaded xfa form. + + + + Get the fields by name + + The name. + The pdf loaded xfa form. + + + + Save the new XFA fields + + The pdf loaded xfa form. + + + + Get the loaded fields + + The name. + Is try get flag value. + + + + + 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 set the list items. + + + + //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 items of the list box field. + List<string> items = loadedComboBoxField.Items; + //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 items of the list box + Dim items As List(Of String) = loadedListBoxField.Items + '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() + + + + + + 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() + + + + + + Save acroform textbox field. + + The graphics value. + The bounds value. + The name. + + + + + Get the content area + + + + + + 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() + + + + + + 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() + + + + + + Add Radiobutton fields + + The pdf loaded xfa radio button field. + + + + Read the exclGroup items + + The xml node value. + + + + Set the Default Index + + + + + 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 rectangle field to PDF document. + + The pdf page. + The bound value. + + + + 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() + + + + + + 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() + + + + + + Get the size of the field. + + + + + + Read the border of the field + + The xml node value. + + + + Read the caption details + + The xml node value. + + + + Read the font info + + The xml font node value. + + + + create a new attribute + + The xml node value. + The name value. + The value for set attribute. + + + + Get the fields rotation angle. + + + + + + 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() + + + + + + 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() + + + + + + 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. + + The xml node value. + The xml data set. + + + + Save the acroform textbox field. + + The page value. + The bounds value. + The name. + + + + + save the textBox + + The reader value. + + + + Gets or sets the text + + + + + Draw the tex to the PDF document. + + The pdf graphics value. + The bounds value. + + + + Draw the background color. + + + + + + Draw the edge + + + + + + + + + Get pens dash style. + + + + + + + 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. + + + + Gets or Set ThaiShape + + + + + Move Glyph + + The end value. + The start value. + The count value. + + + + ThaiToneMark + + The character code value. + + + + + ThaiGlyphRanges + + The character code value. + The lowest1 value. + The height1 value. + The lowest2 value. + The heighest2 value. + The lowest3 value. + The heighest 3 value. + + + + + ThaiGlyphRange + + The character code value. + The low value. + The high value. + + + + + Do Arabic Script Shaping + + The font value. + The glyph list value. + The table value. + The script tag value. + The language record value. + + + + + Split Arabic line into word blocks + + The glyph list value. + The initial value. + The medial value. + The terminal value. + The table value. + + + + + Check the letter is medial block + + The word value. + + + + + Do Inital, Medial and terminal shaping + + The glypoh line value. + The initial value. + The medial value. + The final value. + The table value. + The word value. + + + + Shaping Ligature character glyphs + + The glyph line value. + The rlig value. + + + + + Represents the open type glyph substitution table. + + + + + Represents the lookup table type 2. + + + + + Represents GPOS lookup table type 4. + + + + + Represents the GPOS lookup table type 5. + + + + + Represents GPOS lookup table type 6. + + + + + Represents the GSUB lookup table type 1. + + + + + Represents the open type font table. + + + + + Represents the open type class definition table. + + + + + The PdfFontSettings class provides a convenient way to manage settings for TrueType 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; + //Load the TrueType font from the local *.ttf file. + FileStream fontStream = new FileStream("Arial.ttf", FileMode.Open, FileAccess.Read); + // Initialize the PdfFontSettings + PdfFontSettings fontSettings = new PdfFontSettings(10, PdfFontStyle.Bold, true, true, true); + PdfFont pdfFont = new PdfTrueTypeFont(fontStream, fontSettings); + //Draw the text. + graphics.DrawString("Hello World!!!", pdfFont, 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 + '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 fontStream installed in the machine. + Dim fontStream As FileStream = New FileStream("Arial.ttf", FileMode.Open, FileAccess.Read) + Dim fontSettings As PdfFontSettings = New PdfFontSettings(10, PdfFontStyle.Bold, true, true, true) + Dim pdfFont As PdfFont = New PdfTrueTypeFont(fontStream, fontSettings) + 'Draw the text. + graphics.DrawString("Hello World!!!", pdfFont, 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 PdfFontSettings class with the specified font style, font size, embed and subset options. + + The font size, in points, to use when rendering text with this font. + The style of the font + A boolean value that specifies whether to embed the font with the PDF document. + A boolean value that specifies whether to subset the font to only include the characters used in the document. + "A boolean value that specifies whether to use a floating-point value type to measure width and render." + If the embed parameter is true, the font stream data will be embedded in the PDF document. This ensures that the font will be available for viewing and printing, even if the original font is not installed on the user's computer. + If the subset parameter is true, only the characters used in the document will be included in the embedded font. This can reduce the size of the PDF document, but may also make it more difficult to edit the document in the future. + + /// + + //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; + //Load the TrueType font from the local *.ttf file. + FileStream fontStream = new FileStream("Arial.ttf", FileMode.Open, FileAccess.Read); + // Initialize the PdfFontSettings + PdfFontSettings fontSettings = new PdfFontSettings(10, PdfFontStyle.Bold, true, true, true); + PdfFont pdfFont = new PdfTrueTypeFont(fontStream, fontSettings); + //Draw the text. + graphics.DrawString("Hello World!!!", pdfFont, 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 + '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 fontStream installed in the machine. + Dim fontStream As FileStream = New FileStream("Arial.ttf", FileMode.Open, FileAccess.Read) + Dim fontSettings As PdfFontSettings = New PdfFontSettings(10, PdfFontStyle.Bold, true, true, true) + Dim pdfFont As PdfFont = New PdfTrueTypeFont(fontStream, fontSettings) + 'Draw the text. + graphics.DrawString("Hello World!!!", pdfFont, PdfBrushes.Black, New PointF(0, 0)) + 'Save the document. + document.Save("Output.pdf") + 'Close the document. + document.Close(true) + + + + + + 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. + + + + + 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). + + + + + RTL character types. + + + + + Gets the character types. + + + + + A Class representing Pdf document which is used for Cid Font Descryptor Factory. + + + + + 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. + + + + 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. + + + + + Gets the at the specified index. + + index + + + + 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. + + + + + + Implements a width table for standard fonts. + + + + + The widths of the supported characters. + + + + + Gets the at the specified index. + + index + + + + Gets the length of the internal array. + + + + + 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. + + + + 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. + + + + Gets the default character width. + + + + + Gets the at the specified index. + + index + + + + 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. + + + + The base class of CJK widths types. + + + + + Gets the starting character. + + + + + Gets the ending character. + + + + + Gets the width of the specified character. + + + + + 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. + + + + Implements capabilities to control a range of character with the same width. + + + + + The Form + + + + + The to + + + + + The Width + + + + + Gets the starting character. + + + + + Gets the ending character. + + + + + Gets the width of the specified character. + + + + + 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. + + + + Implements capabilities to control a sequent range of characters with different width. + + + + + The form + + + + + The width + + + + + Gets the starting character. + + + + + Gets the ending character. + + + + + Gets the width of the specified character. + + + + + 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. + + + + 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. + + + + The Syncfusion.Pdf.Graphics.Fonts namespace contains classes for retrieving used fonts in existing PDF documents. + + + + + Represents the used fonts in a PDF document. + + This API is not supported in .NET Core, WinUI, MAUI, Xamarin, and Universal Windows Platform. + + + //Load the existing PDF document + PdfLoadedDocument ldoc = new PdfLoadedDocument("Input.pdf"); + //Get the used fonts + PdfUsedFont[] fonts = ldoc.UsedFonts; + //Get the used font Names + foreach (PdfUsedFont font in fonts) + { + string usedFontName = font.Name; + } + //Close the document + ldoc.Close(true); + + + 'Load the existing PDF document + Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + 'Get the used fonts + Dim fonts As PdfUsedFont() = ldoc.UsedFonts + 'Get the used font Names + For Each font As PdfUsedFont In fonts + Dim usedFontName As String = font.Name + Next + 'Close the document + ldoc.Close(True) + + + + + + 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 API is not supported in .NET Core, WinUI, MAUI, Xamarin, and Universal Windows Platform. + 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 API is not supported in .NET Core, WinUI, MAUI, Xamarin, and Universal Windows Platform. + 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 API is not supported in .NET Core, WinUI, MAUI, Xamarin, and Universal Windows Platform. + 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. + + + + 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 API is not supported in .NET Core, WinUI, MAUI, Xamarin, and Universal Windows Platform. + + + //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. + + PDF font + Existing page + + + + Gets the actual name of the font. + + + + + + Checks the preambula. + + + + + Renderers text and layouts it for RTL support. + + + + + Bitmap used for text shaping. + + + + + Open bracket symbol. + + + + + Close bracket symbol. + + + + + 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. + + + + Trim LRM characters + + The text value. + + + + + 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. + + + + Creator of TrueType type font. + + + + + 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 + + + + + Gets size of the font. + + + + + Gets system font. + + + + + Gets font metrics. + + + + + Gets ttf reader. + + + + + 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 + + + + + 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 + + + + + Font 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 + + + + + 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. + + + + Get or set the font embed type. + + + + + Get or set the font embed type. + + + + + 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. + + + + Compare font stream and return true when it's have same font stream + + The current font value. + The previous font value. + + + + + 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. + + + + + Check whether the font file is TTC or not + + + + + + + + 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 + + The sender value. + The ars value. + + + + 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. + + + + + Gets a value indicating whether this is empty. + + true if empty; otherwise, false. + + + + Compares two WidthDescriptor objects. + + Another object for comparing. + A signed integer that indicates the relative order of this instance and value. + + + + Ttf structure. + + + + + Structure field. + + + + + Ttf structure. + + + + + Structure field. + + + + + Structure field. + + + + + Structure field. + + + + + Structure field. + + + + + Structure field. + + + + + Start of image marker. + + + + + JFIF marker. + + + + + Start of scan marker. + + + + + End of image marker. + + + + + Start of file markers. + + + + + indicates the colorspace for image + + + + + Get the image horizonatal and vertical resolution. + + The stream value. + it returns the image resolutions + + + + Get the resolution from the exif data + + The jpeg stream value. + The byte data value. + The little endian contains list. + The jpeg reader value. + + + + + Get ColorSpace for JPG/JPEG image + + + + + + Get the image horizonatal and vertical resolution. + + The stream value. + it returns the image resolutions + + + + Indicates the width of the image. + + + + + Indicates the height of the image. + + + + + Indicates the Png image type. + Possible values : 0,2,3,4 and 6. + + + + + Indicates the type of compression. + + 0 - Zlib Compression + + + + + + Indicates the number of bits per sample or per palette index. + Valid values are : 1,2,4,8 and 16. + |-----------------------------------------| + | ColorType | BitDepth | ImageType | + |-----------------------------------------| + | 0 | 1,2,4,8,16 | GrayScale | + | 2 | 8,16 | TrueColor | + | 3 | 1,2,4,8 | Indexed PLTE | + | 4 | 8,16 | GrayScaleAlpha | + | 6 | 8,16 | TrueColorAlpha | + |------------------------------------------ + + + + + Indicates the preprocessing method applied to the image data before compression. + + + + + Indicates the transmission order of the image data. + Possible values : 0 and 1 + + + + + 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. + + + + + Gets the collection of created graphic objects that can be used currently + + + + + Gets the list of avaible indexes + + + + + 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. + + + + 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. + + + + + Indicates background mode. + + + + + Initializes a new instance of the class. + + The dpi. + + + + 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 BackGroundMode + + + + + 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. + + + + + 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. + + + + + Class holding font and it's rotating angle. + + + + + Font object. + + + + + Structure describing font. + + + + + Initializes a new instance of the class. + + The font. + The structure. + + + + Gets font object. + + + + + Gets text rotating angle. + + + + + Gets LOGFONT structure from which font was created. + + + + + Disposes object. + + + + + Class implementing capabilities to parse EMF metafiles. + + + + + 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 + + + + + Overloaded. Gets MetafileType.Emf + + + + + Gets help objects. + + + + + Gets text region mananger. + + + + + Gets image region mananger. + + + + + 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. + + + + 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. + + + + Check object path drawn pen is visible or not + + + + + + + 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. + + + + + + + + + + + + + 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. + + + + + Overloaded. Returns metafile type. + + + + + Gets a collection of objects in the stack. + + + + + 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. + + + + + 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. + + + + Gets or sets Y co-ordinate of the region when the text starts. + + + + + Gets or sets Height of the text region. + + + + + 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. + + + + 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. + + + + Size of Int32 type. + + + + + Size of Short type. + + + + + Size of Single type. + + + + + Number of numbers in the point type. + + + + + Number of numbers in the rectangle 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. + + + + + 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. + + + + Check result of function. If function failed - writes debug message. + + Result of the function. + + + + Gets type of metafile parser is able to parse. + + + + + 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. + + + + Size of Int32 type. + + + + + Size of Short type. + + + + + Size of Single type. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + 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. + + + + + Gets internal graphics context. + + + + + 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. + + + + + + + + + + + + + + + + + + + + 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. + + + + + Gets or sets the complex script layouting. + + + + + 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 + + + + + Gets or Sets to recreate inner metafile + + + + + 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. + + + + + Check whether solid brush is empty color + + + + + + + Region of the space which text in metafile can take. + + + + + Y co-ordinate of the region. + + + + + Height of the region. + + + + + Gets or sets Y co-ordinate of the region when the text starts. + + + + + Gets or sets Height of the text 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. + + + + Manages TextRegion objects. + + + + + Collection of the regions. + + + + + Creates new object. + + + + + Adds a text region into the collection. + + The text region value. + + + + 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. + + + + Initializes a new instance of the class with the specified parameters. + + The to be used for either the fill or stroke path. + Represents the PdfLineCap + Represents the base inset + Determines whether the is used as a fill path. + If true, the is set as the fill path; otherwise, it is set as the stroke path. + + + + 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. + + + + + 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. + + + + 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 Cloud polygon annotation. + + The g. + The paint params. + The radius. + The points. + + + + Draws the cloud rectangle annotation. + + The g. + The paint params. + The rectangle. + The radius. + The width. + The borderwidth. + + + + Draws the cloud shape. + + The g. + The PdfBrush. + The PdfPen. + The radius. + The overlap. + The PointF. + The Appearance. + + + + 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. + + + + + 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. + + + + + Gets or set InsertSpace bool value + + + + + Rotation of current form field page + + + + + 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) + + + + + + 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) + + + + + + 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) + + + + + + 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. + + + + 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. + + + + 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. + + + + + 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 + + + + 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 value. + The maximal value. + + + + + Sets the array. + + The array, which has values. + The array if it's passed all tests. + + + + 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) + + + + + + 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. + + + + + 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) + + + + + + Creates the default brush. + + The color. + Name of the color. + The proper PdfBrush instance. + + + + 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 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) + + + + + + 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. + + + + 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. + + + + 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. + + + + 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 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. + + + + 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) + + + + + + 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. + + + + + 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. + + + + 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) + + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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) + + + + + + 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) + + + + + + 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. + + + + + Local variable to identify whether the brush is created from XPS to PDF converter. + + + + + Local variable to store the outer size of brush cell. + + + + + Location representing the start position of the tiles. + + + + + Transformation matrix to store the brush 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) + + + + + + Initialize a new instance of PdfTilingBrush with the specified size for the pattern and the outer size that defines the spacing between repeated instances of the pattern. + + Specify the dimensions of the pattern. + The spacing between the repeated instances of the pattern is defined by its size. + + + //Create a new PDF document. + PdfDocument 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), 842); + //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), 842) + '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) + + + + + + Initialize a new instance of PdfTilingBrush with the specified rectangle as the pattern and the outer size that defines the spacing between repeated instances of the pattern. + + The rectangular region that serves as the pattern's area is defined. + The spacing between the repeated instances of the pattern is defined by its size. + + + //Create a new PDF document. + PdfDocument 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), 842); + //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), 842) + '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) + + + + + + Initializes a new instance of the class. + + The rectangular region that serves as the pattern's area is defined. + The spacing between the repeated instances of the pattern is defined by its size. + The Current Page Object. + The Tile start location. + + + + Sets the obligatory fields. + + + + + Sets the BBox coordinates. + + The box. + + + + 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 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. + + + + Gets the element. + + + + + 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 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) + + + + + + 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 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) + + + + + + A pen object. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class with the specified pen + + The pen. + + + + 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) + + + + + + Gets the pen. If both pen and brush are not explicitly defined, default pen will be used. + + Gets the pen for drawing. + + + + + Base class for elements lay outing. + + + + + + Layout the element. + + + + + Initializes a new instance of the class. + + The element. + + + + Gets element`s layout. + + + + + 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. + + + + 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. + + + + + 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. + + + + 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) + + + + + + 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 + + + + + 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 result format including bounds and resultant page. + + The current page. + The current bounds. + The page might be null, which means that + lay outing was performed on PdfGraphics. + + + + 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 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) + + + + + + Gets the pen. If both pen and brush are not explicitly defined, default pen will be used. + + + brush + + + + Represents a base class for all the page graphics elements. + + + + //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. + + + + + Draws an element on the Graphics. + + Graphics context where the element should be drawn. + + + //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.Graphics); + //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.Graphics) + 'Save the PDF docment. + document.Save("output.pdf") + Close the PDF document. + document.Close(True) + + + + + + Draws an element on the Graphics. + + Graphics context where the element should be drawn. + Location of the element in the Graphics' co-ordinate system. + + + //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) + + + + + + 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. + + + //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, 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(200, 100) + 'Draw the rectangle to PDF page. + rect.Draw(page, 10, 10) + 'Save the PDF docment. + document.Save("output.pdf") + Close the PDF document. + document.Close(True) + + + + + + Draws an element on the Graphics. + + Graphics context where the element should be printed. + + + + 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) + + + + + + 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) + + + + + + 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. + + + + Layouts the metafiles. + + + + + 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. + + + + Gets shape element. + + + + + + Gets the Text regions manager. + + + + + Gets the Image regions manager. + + + + + 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. + + + + + // 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 to use the orginal Horizontal and Vertical resolution of the metafile. + + true if [to use the orginal Horizontal and Vertical resolution of the metafile]; 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(); + //Uses the orginal Horizontal and Vertical resolution of the metafile + format.UseImageResolution = 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() + 'Uses the orginal Horizontal and Vertical resolution of the metafile + format.UseImageResolution = 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) + + + + + + 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. + + + + ShapeLayouter class. + + + + + 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. + + + + + Determines the document link annotation border width. + + + + + 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. + + + + 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 + + + + + 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. + + + + 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. + + + + + Class that layouts the text. + + + + + String format. + + + + + Initializes a new instance of the class. + + The element. + + + + Gets element`s layout. + + + + + + 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. + + + + 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. + + + + + 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 + + + + + + Initializes a new instance of the class. + + The page. + The bounds. + The remainder. + The last line bounds. + + + + 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. + + + + + 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) + + + + + + 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. + + + + 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. + + + + + 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) + + + + + + Draws an element on the Graphics. + + Graphics context where the element should be printed. + + + + 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) + + + + + + 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. + + + + + 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. + + + + 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. + + + + + 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) + + + + + + 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. + + + + 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) + + + + + + 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. + + + + 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) + + + + + + Initializes a new instance of the class. + + The fill mode specifies how the interiors of shapes in this path are filled. + + + + 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. + + + + 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) + + + + + + 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) + + + + + + Gets or sets value that indicates whether to use native or managed code rendering. + + 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(); + //Disable native rendering to avoid GDI+ error in Windows azure + htmlTextElement.IsNativeRenderingEnabled= false; + 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() + 'Disable native rendering to avoid GDI+ error in Windows azure. + htmlTextElement.IsNativeRenderingEnabled=false; + 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) + + + Default value is 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) + + + + + + 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. + + Current page where the text should be drawn. + Start location on the page. + Width of the text bounds. + Height of the text bounds. + Layouting format. + Layouting 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 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 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) + + + + + + Draws the text on the page. + + Current page where the text should be drawn. + Start location on the page. + Width of the text bounds. + Layout format. + Layouting 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 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 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 page. + + Current page where the text should be drawn. + RectangleF structure that specifies the bounds of the text. + 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 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 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) + + + + + + Parsing the HTML text + + The text value. + + + + Pick style from HTML node + + The font style value. + + + + Get color values + + The color value. + + + + + Get Color from RGB + + The red color value. + The green color value. + The blue color value. + + + + + Gets a value indicating whether EndPageLayout is not null. + + + + + Gets a value indicating whether BeginPageLayout is not null. + + + + + Event. Raises after the element was printed on the page. + + + + + Event. Raises before the element should be printed on the page. + + + + + Raises EndPageLayout event. + + Event arguments. + + + + Raises BeginPageLayout event. + + Event arguments. + + + + + + + + + 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. + + + + + To create custom pdftemplate name and set signature validation appearance + + + + + Indicates template contains appearance of annotation + + + + + Indicates annotation template needs scaling + + + + + 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. + + + + Initializes a new instance of the class. + + The templates value. + The bounds value. + + + + Default Constructor + + + + + 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 original size of 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) + + + + + + Create PdfTemplate from json data. + + + + + Gets the wrapped element. + + + + + 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. + + + + + create new BBOX based minimum(x,y) and maximum(x,y) coordinate pairs from 3-by-3 transformation matrix + + The bbox value. + The matrix value. + + + + + Obtain maximum value from collection + + The maximum value. + + + + + Obtain minimum value from collection + + The minimum value. + + + + + Transformation matrix values + + The x value. + The y value. + The matrix value. + + + + + Export the appearance as json. + + + + + + Gets or sets a value, indicating the annotation graphics. + + + + + Gets or sets a value, indicating the annotation template need scaling. + + + + + 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. + + + + + 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) + + + + + + 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. + + + + 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. + + + + 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. + + + + 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) + + + + + + Overloaded. Returns a rectangle that bounds this element. + + Returns a rectangle that bounds this element. + + + + 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. + + + + + 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. + + + + + Method for maintaining the performance of RTF control while + updating. + + + + + Method invoked once the RTF control is updated. + + + + + Gets a value indicating whether [internal updating]. + + true if [internal updating]; otherwise, false. + + + + 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 + + + + 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. + + + + + 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) + + + + + + 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) + + + + + + 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) + + + + + + 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. + + + + 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. + + + + + 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 + + + + + + Initializes a new instance of the class with the specified rectangle and page + + The bounds. + The page. + + + + 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. + + + + + 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 + + + + + + Initializes a new instance of the class. with the specified + + The result. + + + + 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 + + + + + + Represents the method that will handle an event, once completed the 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 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. + + + + + 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) + + + + + + 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) + + + + + + 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) + + + + + + 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. + + + + 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. + + + + + Ascent value of the Font + + + + + Initializes a new instance of the class. + + The size. + + + + Initializes a new instance of the class. + + The size. + The style. + + + + 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 or sets the ascent value + + + + + 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) + + + + + + Measures a string by using this font and it returns layout result. + + 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. + The result value for layout. + + + + + Gets Pdf primitive representing the font. + + + + + 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. + + + + 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) + + + + + + Releases unmanaged resources and performs other cleanup operations before the + is reclaimed by garbage collection. + + + + + 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) + + + + + + Sets the text encoding in PdfFont + + Supported text encoding code page numbers 37, 437, 500, 708, 720,737,775,850, 852,855,857,858,860,861,862, 863,864,865, 866,869,870, 875,1026,1047, 1140,1141,1142,1143,1144,1145, 1146,1147, 1148,1149,1250,1251,1252,1253,1254,1255,1256,1257,1258,20280,20420,20273,20277,20278,20280,20284,20285,20297,20420,20423,20424,20866, 20871,20880,20905,20924 + + + //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); + //Set the text encoding + font.SetTextEncoding(Encoding.GetEncoding("Windows-1250")); + //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) + 'Set the text encoding + font.SetTextEncoding(Encoding.GetEncoding("Windows-1250")) + '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. + + + + Adobe Glyph list + + + + + Get Width Table + + + + + Update Standrad Font Width Table + + + + + + Save custom encoding differences + + The sender value. + The arugument value. + + + + 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. + + + + Converts the specified text. + + The unicode text. + The encoded string. + + + + 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. + + + + + Indicates whether the text layout is complex script. + + + + + Indicates line baseline + + + + + Indicates if new line indent is enabled or not. + + + + + Gets or sets a value indicating whether [measure tilting space]. + + + + + 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) + + + + + + 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 complex text layout rendering. + + + + + 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 baseline for line 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 PdfTrueTypeFont(new Font("Tahoma",8), 8); + PdfFont font1 = new PdfTrueTypeFont(new Font("Calibri",20), 20); + PdfFont font2 = new PdfStandardFont(PdfFontFamily.Helvetica,16); + PdfFont font3 = new PdfTrueTypeFont(new Font("Arial",25), 25); + //Create a new PDF string format instance. + PdfStringFormat format = new PdfStringFormat(); + //Set the line alignment. + format.LineAlignment = PdfVerticalAlignment.Bottom; + //Set baseline for line alignment + format.EnableBaseline = true; + //Draw string to PDF page. + graphics.DrawString("Hello World!", font, PdfBrushes.Black, new PointF(0, 50), format); + graphics.DrawString("Hello World!", font1, PdfBrushes.Black, new PointF(65, 50), format); + graphics.DrawString("Hello World!", font2, PdfBrushes.Black, new PointF(220, 50), format); + graphics.DrawString("Hello World!", font3, PdfBrushes.Black, new PointF(320, 50), 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 PdfTrueTypeFont(new Font("Tahoma",8), 8); + Dim font1 As PdfFont = New PdfTrueTypeFont(new Font("Calibri",20), 20); + Dim font2 As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica,16); + Dim font3 As PdfFont = New PdfTrueTypeFont(new Font("Arial",25), 25); + 'Create a new PDF string format instance. + Dim format As PdfStringFormat = New PdfStringFormat() + 'Set the line alignment. + format.LineAlignment = PdfVerticalAlignment.Bottom; + 'Set baseline for line alignment + format.EnableBaseline = true; + 'Draw string to PDF page. + graphics.DrawString("Hello World!", font, PdfBrushes.Black, New PointF(0, 50), format); + graphics.DrawString("Hello World!", font1, PdfBrushes.Black, New PointF(65, 50), format); + graphics.DrawString("Hello World!", font2, PdfBrushes.Black, New PointF(220, 50), format); + graphics.DrawString("Hello World!", font3, PdfBrushes.Black, New PointF(320, 50), 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. + + + + + Gets or sets whether the new line indent is enabled or not. + + /// + + //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; + //Enable/Diable new line indent. + format.EnableNewLineIndent = 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 paragraph indent. + format.ParagraphIndent = 2.1F + 'Enable/Diable new line indent. + format.EnableNewLineIndent = 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 a value indicating whether [measure tilting space]. + + + true if [measure tilting space]; otherwise, false. + + + + //Create the new PDF document + PdfDocument document = new PdfDocument(); + //Add a page to the document + PdfPage page = document.Pages.Add(); + // Load the font file from the stream + FileStream fontStream = new FileStream(@"font.ttf", FileMode.Open, FileAccess.Read); + //Create a new PDF font instance + PdfFont font = new PdfTrueTypeFont(fontStream, 14, PdfFontStyle.Italic); + //Create a new PDF string format instance + PdfStringFormat format = new PdfStringFormat(); + //Enable a measure tilting space + format.MeasureTiltingSpace = true; + string text = "Hello World!"; + //Measure the tilted text + SizeF size = font.MeasureString(text, format); + //Creating the stream object + MemoryStream stream = new MemoryStream(); + //Save the document as stream + document.Save(stream); + //Close the document + document.Close(true); + + + 'Create the new PDF document + Dim document As PdfDocument = New PdfDocument() + 'Add a page to the document + Dim page As PdfPage = document.Pages.Add() + 'Load the font file from the stream + Dim fontStream As FileStream = New FileStream("font.ttf", FileMode.Open, FileAccess.Read) + 'Create a new PDF font instance + Dim font As PdfFont = New PdfTrueTypeFont(fontStream, 14, PdfFontStyle.Italic) + 'Create a new PDF string format instance + Dim format As PdfStringFormat = New PdfStringFormat() + 'Enable a measure tilting space + format.MeasureTiltingSpace = True + Dim text As String = "Hello World!" + 'Measure the tilted text + Dim size As SizeF = font.MeasureString(text, format) + Dim stream As MemoryStream = New MemoryStream() + Save the document as stream + document.Save(stream) + 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) + + + + + + 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) + + + + + + Encoding for the font. + + + + + Code page for the encoding. + + + + + Create Instance of the rtl render lock. + + + + + Indicates whether the font should be embeded. + + + + + Indicates whether the font should use unicode symbols. + + + + + Internal font object. + + + + + True type font. + + + + + 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 PdfTrueTypeFont class with the specified Font object, font size, and embedding options. + + A Font object that represents the font to use. + The font size, in points, to use when rendering text with this font. + A boolean value that specifies whether to embed the font with the PDF document. + A boolean value that specifies whether to subset the font to only include the characters used in the document. + If the embed parameter is true, the font stream data will be embedded in the PDF document. This ensures that the font will be available for viewing and printing, even if the original font is not installed on the user's computer. + If the subset parameter is true, only the characters used in the document will be included in the embedded font.This can reduce the size of the PDF document, but may also make it more difficult to edit the document in the future. + + + + //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, true, false); + //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, true, false) + '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. + + The font file. + 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; + //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, 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 + '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, 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. + Embedded. + The style. + 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; + //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, false, PdfFontStyle.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 + '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, false, PdfFontStyle.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 PdfTrueTypeFont class with the specified font stream and font settings options. + + The system font that defines the text format of the string. + The option to manage settings for TrueType fonts. + + The system font style is used to determine the font style of the PdfTrueTypeFont object. + + + + //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 + Font font = new Font("Arial", 14); + // Initialize the PdfFontSettings + PdfFontSettings fontSettings = new PdfFontSettings(10, PdfFontStyle.Bold, true, true, true); + PdfFont pdfFont = new PdfTrueTypeFont(font, fontSettings); + //Draw the text. + graphics.DrawString("Hello World!!!", pdfFont, 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 + '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 Font = New Font("Arial", 14) + 'Initialize the PdfFontSettings. + Dim fontSettings As PdfFontSettings = New PdfFontSettings(10, PdfFontStyle.Bold, true, true, true) + Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, fontSettings) + 'Draw the text. + graphics.DrawString("Hello World!!!", pdfFont, 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 PdfTrueTypeFont class with the specified font stream, font size, and embedding options. + + A Stream object that represents the font stream data. + The font size, in points, to use when rendering text with this font. + A boolean value that specifies whether to embed the font with the PDF document. + A boolean value that specifies whether to subset the font to only include the characters used in the document. + If the embed parameter is true, the font stream data will be embedded in the PDF document. This ensures that the font will be available for viewing and printing, even if the original font is not installed on the user's computer. + If the subset parameter is true, only the characters used in the document will be included in the embedded font.This can reduce the size of the PDF document, but may also make it more difficult to edit the document in the future. + + + + //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, true, false); + //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, true, false) + '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. + Embedding. + + + + Initialize this constructor to avoid embedding fonts. + + A Stream object that represents the font stream data. + The font size, in points, to use when rendering text with this font. + The boolean flag represents the support of unicode text. + The matrics name value. + + + + 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 PdfTrueTypeFont class with the specified font stream and font settings options. + + A Stream object that represents the font stream data. + The option to manage settings for TrueType 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; + //Load the TrueType font from the local *.ttf file. + FileStream fontStream = new FileStream("Arial.ttf", FileMode.Open, FileAccess.Read); + // Initialize the PdfFontSettings + PdfFontSettings fontSettings = new PdfFontSettings(10, PdfFontStyle.Bold, true, true, true); + PdfFont pdfFont = new PdfTrueTypeFont(fontStream, fontSettings); + //Draw the text. + graphics.DrawString("Hello World!!!", pdfFont, 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 + '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 fontStream installed in the machine. + Dim fontStream As FileStream = New FileStream("Arial.ttf", FileMode.Open, FileAccess.Read) + Dim fontSettings As PdfFontSettings = New PdfFontSettings(10, PdfFontStyle.Bold, true, true, true) + Dim pdfFont As PdfFont = New PdfTrueTypeFont(fontStream, fontSettings) + 'Draw the text. + graphics.DrawString("Hello World!!!", pdfFont, 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 prototype. + The size. + + + + Releases unmanaged resources and performs other cleanup operations before the + is reclaimed by garbage collection. + + + + 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. + + + + + 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. + + + + 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. + Page height of the text. + Layout result. + + + + 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. + + + + Find next word is hyphenated or not and fit in the line. + + The maximum width value. + The line width value. + The current indent value. + The reader value. + + + + + Read the next nearest hyphenated word. + + The read string value. + The maximum width value. + The current indent value. + The next hyphen value. + + + + Find the last hyphenated word in the line. + + The text value. + + + + + Find the first hyphenated word in the line. + + The text value. + + + + + Read the hyphenated word fit in the line. + + The read hyphen value. + The maximum width value. + The current indent value. + The hyphen position. + + + + 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. + + + + + Array of spaces. + + + + + Default RegEx checks object's options. + + + + + Pattern for WhiteSpace. + + + + + Whitespace regex. + + + + + Text data. + + + + + Current position. + + + + + Initializes a new instance of the class. + + The text. + + + + Gets a value indicating whether this is EOF. + + true if EOF; otherwise, false. + + + + Gets text length. + + + + + Gets or sets the position. + + The position. + + + + + 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. + + + + Reader of the TTF data. + + + + + Encoding class. + + + + + Width multiplier. + + + + + Version of Ttf file. + + + + + Version of Ttf file. + + + + + Version of Mac Ttf file + + + + + FP. + + + + + 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 whether the font is opentype or not. + + + + + Indicated whether the Encoding with Ansi or not + + + + + Indicates the current font which is currently under processing. + + + + + Indicates the number of glyphs missed during measure string + + + + + 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. + + + + 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. + + + + Generate Type0 Font Program from font all glyphs + + + + + + Get all character glyphs + + + + + + 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. + + + + + Text is wrapped by soft hyphen. In this case the word has reached its maximum length, it looks for a soft hyphen within the word and wraps the word accordingly using the soft hyphen. + + + + + 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. + + + + + When building a Unicode font for Windows (plane characters). + + + + + Microsoft encoding ID + + + + + Undefined encoding. + + + + + Unicode encoding. + + + + + Unicode UCS 4 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. + + + + + This is the Microsoft standard character-to-glyph-index mapping table for fonts supporting Unicode supplementary-plane characters (U+10000 to U+10FFFF). + + + + + 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. + + + + + Type 0. + + + + + True type. + + + + + + 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) + + + + + + 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. + + + + + Holds extractd Image mask stream for PDF compression + + + + + 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. + + + + + Gets or sets the encoding type of the images. + + The which represents the compression type 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. + PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); + // Set image quality. + image.Quality = 50; + // Set the image encoding type. + image.Encoding = EncodingType.JBIG2; + // 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 + ' Set the image encoding type. + image.Encoding = EncodingType.JBIG2 + ' 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 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 with enable metadata extraction. + PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg", true); + //Get image metadata + XmpMetadata metadata = image.Metadata; + //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 with enable metadata extraction. + Dim image As New PdfBitmap("Autumn Leaves.jpg", true) + 'Get image metadata + Dim metadata As XmpMetadata = image.Metadata + '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. + Enable metadata extraction from image + 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", true); + //Get image metadata + XmpMetadata metadata = image.Metadata; + //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", true) + 'Get image metadata + Dim metadata As XmpMetadata = image.Metadata + '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) + + + + + + Initializes a new instance of the class from the specified file. + + The data stream used to load the image. + Enable metadata extraction from image + 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 with enable metadata extraction. + PdfBitmap image = new PdfBitmap(File.OpenRead("Autumn Leaves.jpg"), true); + //Get image metadata + XmpMetadata metadata = image.Metadata; + //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 with enable metadata extraction. + Dim image As New PdfBitmap(File.OpenRead("Autumn Leaves.jpg"), true) + 'Get image metadata + Dim metadata As XmpMetadata = image.Metadata + '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. + + + + + 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) + + + + + + Holds start color of color mask. + + + + + Holds end color of color mask. + + + + + 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) + + + + + + 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) + + + + + + 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 + + + + + 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 images + 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. + + + + 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) + + + + + + Gets the wrapped element. + + + + + Checks the stream existence. + + The stream. + The stream if it exists. + It's thrown if the stream is null. + + + + Gets or sets Xmp metadata 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 with enable metadata extraction. + PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg", true); + //Get image metadata + XmpMetadata metadata = image.Metadata; + //Create custom schema. + CustomSchema customSchema = new CustomSchema(metadata, "custom", "http://www.syncfusion.com"); + customSchema["Author"] = "Syncfusion"; + customSchema["creationDate"] = DateTime.Now.ToString(); + customSchema["DOCID"] = "SYNCSAM001"; + //Set image metadata + image.Metadata = metadata; + //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 with enable metadata extraction. + Dim image As New PdfBitmap("Autumn Leaves.jpg", true) + 'Get image metadata + Dim metadata As XmpMetadata = image.Metadata + //Create custom schema. + Dim customSchema As New CustomSchema(metadata, "custom", "http://www.syncfusion.com") + customSchema("Author") = "Syncfusion" + customSchema("creationDate") = DateTime.Now.ToString() + customSchema("DOCID") = "SYNCSAM001" + 'Set image metadata + image.Metadata = metadata + 'Draw the image + graphics.DrawImage(image, 0, 0) + 'Save the document. + doc.Save("Output.pdf") + 'Close the document. + doc.Close(True) + + + + + + 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. + + + + 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. + + + + + 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) + + + + + + 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) + + + + + + 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) + + + + + + Class representing metafile image + + This API is not supported in WinRT, Windows Phone, ASP.NET Core, 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 + + + + + Indicates whether the metafile rendered by complex script layout. + + + + + Gets or sets the text complex script layouting. + + + + + 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 to recreate metafile + + + + + Gets or Sets to detect WordtoPDF metafile rendering + + + + + 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) + + + + + + Gets or sets the custom font collection. + + + + + Gets or set the embedded fonts. + + + + + 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) + + + + + + + + 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. + + + + + + + Max value of color channel. + + + + + + + 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. + + + + + 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) + + + + + + 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. + + If stroking value. + + + + + Sets Calibrated Lab color. + + If stroking value. + + + + + Sets Calibrated Gray color. + + If stroking value. + + + + + Sets Calibrated RGB color. + + If stroking value. + + + + + Sets Calibrated CMYK color. + + If stroking value. + + + + + Sets Calibrated Lab color. + + If stroking value. + + + + + 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. + + The color space value. + If set to True stroke. + + + + + + + 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. + + + + 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. + + + + + Indicate whether the Word to PDF DirectConversion need to optimize identical Image + + + + + Indicate variable whether XPS token or not + + + + + Dictionary hold the XPS replace character token + + + + + 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. + + + + + get or set the bool value to to idetenctical image + + + + + Get or set value, indicating the XPS token. + + + + + Gets the XPS replace character tokens + + + + + 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 a line connecting two structures. + + Pen that determines the color, width, and style of the line. + PointF structure that represents the first point to connect. + PointF structure that represents the second point to connect. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds pen. + PdfPen pen = new PdfPen(PdfBrushes.Brown, 1f); + //Draw line + page.Graphics.DrawLine(pen, new PointF(100, 100), new PointF(200, 100)); + //Save document + doc.Save("Line.pdf"); + //Close the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds pen. + Dim pen As New PdfPen(PdfBrushes.Brown, 1.0F) + 'Draw line + page.Graphics.DrawLine(pen, New PointF(100, 100), New PointF(200, 100)) + 'Saves the PDF. + doc.Save("Line.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a line connecting the two points specified by the coordinate pairs. + + Pen that determines the color, width, and style of the line. + The x-coordinate of the first point. + The y-coordinate of the first point. + The x-coordinate of the second point. + The y-coordinate of the second point. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds pen. + PdfPen pen = new PdfPen(PdfBrushes.Brown, 1f); + //Draw line + page.Graphics.DrawLine(pen, 100, 100, 200, 100); + //Save document + doc.Save("Line.pdf"); + //Close the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds pen. + Dim pen As New PdfPen(PdfBrushes.Brown, 1.0F) + 'Draw line + page.Graphics.DrawLine(pen, 100, 100, 200, 100) + 'Saves the PDF. + doc.Save("Line.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a rectangle specified by a pen, a Rectangle structure. + + A Pen that determines the color, width, and style of the rectangle. + A Rectangle structure that represents the rectangle to draw. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds Brush. + PdfPen pen = new PdfPen (Color.Red); + //Draw Rectangle + page.Graphics.DrawRectangle(pen, new RectangleF(10, 10, 100, 100)); + //Save document + doc.Save("Rect.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds Brush. + Dim pen As New PdfPen(Color.Red) + 'Draw Rectangle + page.Graphics.DrawRectangle(pen, New RectangleF(10, 10, 100, 100)) + 'Saves the PDF. + doc.Save("Rect.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a rectangle specified by a pen, a coordinate pair, a width, and a height. + + A Pen that determines the color, width, and style of the rectangle. + The x-coordinate of the upper-left corner of the rectangle to draw. + The y-coordinate of the upper-left corner of the rectangle to draw. + Width of the rectangle to draw. + Height of the rectangle to draw. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds Brush. + PdfPen pen = new PdfPen (Color.Red); + //Draw Rectangle + page.Graphics.DrawRectangle(pen, 10, 10, 100, 100); + //Save document + doc.Save("Rect.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds Brush. + Dim pen As New PdfPen(Color.Red) + 'Draw Rectangle + page.Graphics.DrawRectangle(pen, 10, 10, 100, 100) + 'Saves the PDF. + doc.Save("Rect.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a rectangle specified by a Rectangle structure. + + Brush that determines the color and texture of the rectangle. + A Rectangle structure that represents the rectangle to draw. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds Brush. + PdfBrush brush = new PdfSolidBrush (Color.Red); + //Draw Rectangle + page.Graphics.DrawRectangle(brush, new RectangleF(10, 10, 100, 100)); + //Save document + doc.Save("Rect.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds Brush. + Dim brush As New PdfSolidBrush (Color.Red) + 'Draw Rectangle + page.Graphics.DrawRectangle(brush, New RectangleF(10, 10, 100, 100)) + 'Saves the PDF. + doc.Save("Rect.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a rectangle specified by a brush, coordinate pair, a width, and a height. + + Brush that determines the color and texture of the rectangle. + The x-coordinate of the upper-left corner of the rectangle to draw. + The y-coordinate of the upper-left corner of the rectangle to draw. + Width of the rectangle to draw. + Height of the rectangle to draw. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds Brush. + PdfBrush brush = new PdfSolidBrush (Color.Red); + //Draw Rectangle + page.Graphics.DrawRectangle(brush, 10, 10, 100, 100); + //Save document + doc.Save("Rect.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds Brush. + Dim brush As New PdfSolidBrush (Color.Red) + 'Draw Rectangle + page.Graphics.DrawRectangle(brush, 10, 10, 100, 100) + 'Saves the PDF. + doc.Save("Rect.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a rectangle specified by a pen, a brush and a Rectangle structure. + + A Pen that determines the color, width, and style of the rectangle. + Brush that determines the color and texture of the rectangle. + A Rectangle structure that represents the rectangle to draw. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds Brush. + PdfBrush brush = new PdfSolidBrush (Color.Red); + //Draw Rectangle + page.Graphics.DrawRectangle(PdfPens.Black, brush, new RectangleF(10, 10, 100, 100)); + //Save document + doc.Save("Rect.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds Brush. + Dim brush As New PdfSolidBrush (Color.Red) + 'Draw Rectangle + page.Graphics.DrawRectangle(PdfPens.Black, brush, New RectangleF(10, 10, 100, 100)) + 'Saves the PDF. + doc.Save("Rect.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a rectangle specified by a pen, a coordinate pair, a width, and a height. + + A Pen that determines the color, width, and style of the rectangle. + Brush that determines the color and texture of the rectangle. + The x-coordinate of the upper-left corner of the rectangle to draw. + The y-coordinate of the upper-left corner of the rectangle to draw. + Width of the rectangle to draw. + Height of the rectangle to draw. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds Brush. + PdfBrush brush = new PdfSolidBrush (Color.Red); + //Draw Rectangle + page.Graphics.DrawRectangle(PdfPens.Black, brush, 10, 10, 100, 100); + //Save document + doc.Save("Rect.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds Brush. + Dim brush As New PdfSolidBrush (Color.Red) + 'Draw Rectangle + page.Graphics.DrawRectangle(PdfPens.Black, brush, 10, 10, 100, 100) + 'Saves the PDF. + doc.Save("Rect.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a rounded rectangle specified by a pen, a brush, a radius and Rectangle structure. + + A Rectangle structure that represents the rectangle to draw + A Radius that determines the curve of ronded rectangle + A Pen that determines the color, width, and style of the rectangle. + Brush that determines the color and texture of the rectangle + + + + Draws a rounded rectangle specified by a pen, a brush, a coordinate pair, a width, and a height. + + The x-coordinate of the upper-left corner of the rectangle to draw. + The y-coordinate of the upper-left corner of the rectangle to draw. + Width of the rectangle to draw. + Height of the rectangle to draw. + A Radius that determines the curve of ronded rectangle + A Pen that determines the color, width, and style of the rectangle. + Brush that determines the color and texture of the rectangle + + + + Draws an ellipse specified by a pen, a bounding Rectangle structure. + + Pen that determines the color, width, and style of the ellipse. + RectangleF structure that defines the boundaries of the ellipse. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Draw Ellipse + page.Graphics.DrawEllipse(PdfPens.Red, new RectangleF(10, 10, 100, 100)); + //Save document + doc.Save("Ellipse.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Draw Ellipse + page.Graphics.DrawEllipse(PdfPens.Red, New RectangleF(10, 10, 100, 100)) + 'Saves the PDF. + doc.Save("Ellipse.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws an ellipse defined by a bounding rectangle specified by coordinates for the upper-left corner of the rectangle, a height, and a width. + + 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. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Draw Ellipse + page.Graphics.DrawEllipse(PdfPens.Red, 10, 10, 100, 100); + //Save document + doc.Save("Ellipse.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Draw Ellipse + page.Graphics.DrawEllipse(PdfPens.Red, 10, 10, 100, 100) + 'Saves the PDF. + doc.Save("Ellipse.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws an ellipse specified by a brush, a bounding Rectangle structure. + + Brush that determines the color and texture of the ellipse. + RectangleF structure that defines the boundaries of the ellipse. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds Brush. + PdfBrush brush = new PdfSolidBrush (Color.Red); + //Draw Ellipse + page.Graphics.DrawEllipse(brush, new RectangleF(10, 10, 100, 100)); + //Save document + doc.Save("Ellipse.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds Brush. + Dim brush As New PdfSolidBrush (Color.Red) + 'Draw Ellipse + page.Graphics.DrawEllipse(brush, New RectangleF(10, 10, 100, 100)) + 'Saves the PDF. + doc.Save("Ellipse.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws an ellipse defined by a bounding rectangle specified by coordinates for the upper-left corner of the rectangle, a height, and a width. + + 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. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds Brush. + PdfBrush brush = new PdfSolidBrush (Color.Red); + //Draw Ellipse + page.Graphics.DrawEllipse(brush, 10, 10, 100, 100); + //Save document + doc.Save("Ellipse.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds Brush. + Dim brush As New PdfSolidBrush (Color.Red) + 'Draw Ellipse + page.Graphics.DrawEllipse(brush, 10, 10, 100, 100) + 'Saves the PDF. + doc.Save("Ellipse.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws an ellipse specified by a bounding Rectangle 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. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds Brush. + PdfBrush brush = new PdfSolidBrush (Color.Red); + //Draw Ellipse + page.Graphics.DrawEllipse(PdfPens.Black, brush, new RectangleF(10, 10, 100, 100)); + //Save document + doc.Save("Ellipse.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds Brush. + Dim brush As New PdfSolidBrush (Color.Red) + 'Draw Ellipse + page.Graphics.DrawEllipse(PdfPens.Black, brush, New RectangleF(10, 10, 100, 100)) + 'Saves the PDF. + doc.Save("Ellipse.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws an ellipse specified by a pen, a brush and coordinates for the upper-left corner of the rectangle, a height, and a width. + + 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. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds Brush. + PdfBrush brush = new PdfSolidBrush (Color.Red); + //Draw Ellipse + page.Graphics.DrawEllipse(PdfPens.Black, brush, 10, 10, 100, 100); + //Save document + doc.Save("Ellipse.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds Brush. + Dim brush As New PdfSolidBrush (Color.Red) + 'Draw Ellipse + page.Graphics.DrawEllipse(PdfPens.Black, brush, 10, 10, 100, 100) + 'Saves the PDF. + doc.Save("Ellipse.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws an arc representing a portion of an ellipse specified by a Rectangle structure. + + Pen that determines the color, width, and style of the arc. + RectangleF structure that defines the boundaries of the ellipse. + 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. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Draw Arc + page.Graphics.DrawArc(PdfPens.Red, new RectangleF(10, 10, 100, 200), 90, 270); + //Save document + doc.Save("Arc.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Draw Arc + page.Graphics.DrawArc(PdfPens.Red, New RectangleF(10, 10, 100, 200), 90, 270) + 'Saves the PDF. + doc.Save("Arc.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height. + + 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 ellipse. + Height of the rectangle that defines the ellipse. + 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. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Draw Arc + page.Graphics.DrawArc(PdfPens.Red, 10, 10, 100, 200, 90, 270); + //Save document + doc.Save("Arc.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Draw Arc + page.Graphics.DrawArc(PdfPens.Red, 10, 10, 100, 200, 90, 270) + 'Saves the PDF. + doc.Save("Arc.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a pie shape defined by an ellipse specified by a Rectangle structure and two radial lines. + + Pen that determines the color, width, and style of the pie shape. + Rectangle structure that represents the bounding rectangle that defines the ellipse from which the pie shape comes. + Angle measured in degrees clockwise from the x-axis to the first side of the pie shape. + Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Draw Pie + page.Graphics.DrawPie(PdfPens.Green, new RectangleF(10, 10, 100, 200), 90, 270); + //Save document + doc.Save("Pie.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Draw Pie + page.Graphics.DrawPie(PdfPens.Green, New RectangleF(10, 10, 100, 200), 90, 270) + 'Saves the PDF. + doc.Save("Pie.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines. + + Pen that determines the color, width, and style of the pie shape. + The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes. + The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes. + Width of the bounding rectangle that defines the ellipse from which the pie shape comes. + Height of the bounding rectangle that defines the ellipse from which the pie shape comes. + Angle measured in degrees clockwise from the x-axis to the first side of the pie shape. + Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Draw Pie + page.Graphics.DrawPie(PdfPens.Green, 10, 10, 100, 200, 90, 270); + //Save document + doc.Save("Pie.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Draw Pie + page.Graphics.DrawPie(PdfPens.Green, 10, 10, 100, 200, 90, 270) + 'Saves the PDF. + doc.Save("Pie.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a pie shape defined by an ellipse specified by a Rectangle structure and two radial lines. + + Brush that determines the color and texture of the pie. + Rectangle structure that represents the bounding rectangle that defines the ellipse from which the pie shape comes. + Angle measured in degrees clockwise from the x-axis to the first side of the pie shape. + Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds Brush. + PdfBrush brush = new PdfSolidBrush (Color.Red); + //Draw Pie + page.Graphics.DrawPie(brush, new RectangleF(10, 10, 100, 200), 90, 270); + //Save document + doc.Save("Pie.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds Brush. + Dim brush As New PdfSolidBrush (Color.Red) + 'Draw Pie + page.Graphics.DrawPie(brush, New RectangleF(10, 10, 100, 200), 90, 270) + 'Saves the PDF. + doc.Save("Pie.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines. + + Brush that determines the color and texture of the pie. + The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes. + The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes. + Width of the bounding rectangle that defines the ellipse from which the pie shape comes. + Height of the bounding rectangle that defines the ellipse from which the pie shape comes. + Angle measured in degrees clockwise from the x-axis to the first side of the pie shape. + Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds Brush. + PdfBrush brush = new PdfSolidBrush (Color.Red); + //Draw Pie + page.Graphics.DrawPie(brush, 10, 10, 100, 200, 90, 270); + //Save document + doc.Save("Pie.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds Brush. + Dim brush As New PdfSolidBrush (Color.Red) + 'Draw Pie + page.Graphics.DrawPie(brush,10, 10, 100, 200, 90, 270) + 'Saves the PDF. + doc.Save("Pie.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a pie shape defined by an ellipse specified by a Rectangle structure and two radial lines. + + Pen that determines the color, width, and style of the pie shape. + Brush that determines the color and texture of the pie. + Rectangle structure that represents the bounding rectangle that defines the ellipse from which the pie shape comes. + Angle measured in degrees clockwise from the x-axis to the first side of the pie shape. + Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds Brush. + PdfBrush brush = new PdfSolidBrush (Color.Red); + //Draw Pie + page.Graphics.DrawPie(PdfPens.Green, brush, new RectangleF(10, 10, 100, 200), 90, 270); + //Save document + doc.Save("Pie.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds Brush. + Dim brush As New PdfSolidBrush (Color.Red) + 'Draw Pie + page.Graphics.DrawPie(PdfPens.Green, brush, New RectangleF(10, 10, 100, 200), 90, 270) + 'Saves the PDF. + doc.Save("Pie.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a pie shape defined by an ellipse specified by a Rectangle structure and two radial lines. + + Pen that determines the color, width, and style of the pie shape. + Brush that determines the color and texture of the pie. + The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes. + The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes. + Width of the bounding rectangle that defines the ellipse from which the pie shape comes. + Height of the bounding rectangle that defines the ellipse from which the pie shape comes. + Angle measured in degrees clockwise from the x-axis to the first side of the pie shape. + Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds Brush. + PdfBrush brush = new PdfSolidBrush (Color.Red); + //Draw Pie + page.Graphics.DrawPie(PdfPens.Green, brush, 10, 10, 100, 200, 90, 270); + //Save document + doc.Save("Pie.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds Brush. + Dim brush As New PdfSolidBrush (Color.Red) + 'Draw Pie + page.Graphics.DrawPie(PdfPens.Green, brush, 10, 10, 100, 200, 90, 270) + 'Saves the PDF. + doc.Save("Pie.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a polygon defined by a pen, an array of Point structures. + + Pen that determines the color, width, and style of the polygon. + Array of PointF structures that represent the vertices of the polygon. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds points. + PointF p1 = new PointF(10, 100); + PointF p2 = new PointF(10, 200); + PointF p3 = new PointF(100, 100); + PointF p4 = new PointF(100, 200); + PointF p5 = new PointF(55, 150); + PointF[] points = { p1, p2, p3, p4, p5}; + //Draw Polygon + page.Graphics.DrawPolygon(PdfPens.Red, points); + //Save document + doc.Save("Polygon.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Add Points + Dim p1 As New PointF(10, 100) + Dim p2 As New PointF(10, 200) + Dim p3 As New PointF(100, 100) + Dim p4 As New PointF(100, 200) + Dim p5 As New PointF(55, 150) + Dim points As PointF() = {p1, p2, p3, p4, p5} + 'Draw Polygon + page.Graphics.DrawPolygon(PdfPens.Red, points); + 'Saves the PDF. + doc.Save("Polygon.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a polygon defined by a brush, an array of Point structures. + + Brush that determines the color and texture of the pie. + Array of Point structures that represent the vertices of the polygon. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds Brush. + PdfBrush brush = new PdfSolidBrush (Color.Red); + //Adds points. + PointF p1 = new PointF(10, 100); + PointF p2 = new PointF(10, 200); + PointF p3 = new PointF(100, 100); + PointF p4 = new PointF(100, 200); + PointF p5 = new PointF(55, 150); + PointF[] points = { p1, p2, p3, p4, p5}; + //Draw Polygon + page.Graphics.DrawPolygon(brush, points); + //Save document + doc.Save("Polygon.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds Brush. + Dim brush As New PdfSolidBrush (Color.Red) + 'Add Points + Dim p1 As New PointF(10, 100) + Dim p2 As New PointF(10, 200) + Dim p3 As New PointF(100, 100) + Dim p4 As New PointF(100, 200) + Dim p5 As New PointF(55, 150) + Dim points As PointF() = {p1, p2, p3, p4, p5} + 'Draw Polygon + page.Graphics.DrawPolygon(brush, points); + 'Saves the PDF. + doc.Save("Polygon.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a polygon defined by a pen, a brush, an array of Point structures. + + Pen that determines the color, width, and style of the polygon. + Brush that determines the color and texture of the pie. + Array of Point structures that represent the vertices of the polygon. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds Brush. + PdfBrush brush = new PdfSolidBrush (Color.Red); + //Adds points. + PointF p1 = new PointF(10, 100); + PointF p2 = new PointF(10, 200); + PointF p3 = new PointF(100, 100); + PointF p4 = new PointF(100, 200); + PointF p5 = new PointF(55, 150); + PointF[] points = { p1, p2, p3, p4, p5}; + //Draw Polygon + page.Graphics.DrawPolygon(PdfPens.Black, brush, points); + //Save document + doc.Save("Polygon.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds Brush. + Dim brush As New PdfSolidBrush (Color.Red) + 'Add Points + Dim p1 As New PointF(10, 100) + Dim p2 As New PointF(10, 200) + Dim p3 As New PointF(100, 100) + Dim p4 As New PointF(100, 200) + Dim p5 As New PointF(55, 150) + Dim points As PointF() = {p1, p2, p3, p4, p5} + 'Draw Polygon + page.Graphics.DrawPolygon(PdfPens.Black, brush, points); + 'Saves the PDF. + doc.Save("Polygon.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a Bezier spline defined by four Point structures. + + Pen structure that determines the color, width, and style of the curve. + Point structure that represents the starting point of the curve. + Point structure that represents the first control point for the curve. + Point structure that represents the second control point for the curve. + Point structure that represents the ending point of the curve. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds pen. + PdfPen pen = new PdfPen(PdfBrushes.Brown, 1f); + //Draw Bezier + page.Graphics.DrawBezier(pen, new PointF(10, 10), new PointF(10, 50), new PointF(50, 80), new PointF(80, 10)); + //Save document + doc.Save("Bezier.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds pen. + Dim pen As New PdfPen(PdfBrushes.Brown, 1.0F) + 'Draw Bezier + page.Graphics.DrawBezier(pen, New PointF(10, 10), New PointF(10, 50), New PointF(50, 80), New PointF(80, 10)); + 'Saves the PDF. + doc.Save("Bezier.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a Bezier spline defined by four ordered pairs of coordinates that represent points. + + Pen structure 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. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds pen. + PdfPen pen = new PdfPen(PdfBrushes.Brown, 1f); + //Draw Bezier + page.Graphics.DrawBezier(pen, 10, 10, 10, 50, 50, 80, 80, 10); + //Save document + doc.Save("Bezier.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds pen. + Dim pen As New PdfPen(PdfBrushes.Brown, 1.0F) + 'Draw Bezier + page.Graphics.DrawBezier(pen, 10, 10, 10, 50, 50, 80, 80, 10); + 'Saves the PDF. + doc.Save("Bezier.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a GraphicsPath defined by a pen and path + + Pen that determines the color, width, and style of the path. + GraphicsPath to draw. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds Path. + PdfPath path = new PdfPath(); + path.AddRectangle (new RectangleF (10,10,100,100)); + path.AddEllipse (new RectangleF (100,100,100,100)); + //Draw Paths + page.Graphics.DrawPath(PdfPens.Red, path); + //Save document + doc.Save("Paths.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds Path. + Dim path As New PdfPath(); + path.AddRectangle (New RectangleF (10,10,100,100)); + path.AddEllipse (New RectangleF (100,100,100,100)); + 'Draw Path + page.Graphics.DrawPath(PdfPens.Red, path) + 'Saves the PDF. + doc.Save("Paths.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a GraphicsPath defined by a brush and path + + Brush that determines the color and texture of the path. + GraphicsPath to draw. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds Path. + PdfPath path = new PdfPath(); + path.AddRectangle (new RectangleF (10,10,100,100)); + path.AddEllipse (new RectangleF (100,100,100,100)); + //Draw Paths + page.Graphics.DrawPath(PdfBrushes.Red, path); + //Save document + doc.Save("Paths.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds Path. + Dim path As New PdfPath(); + path.AddRectangle (New RectangleF (10,10,100,100)); + path.AddEllipse (New RectangleF (100,100,100,100)); + 'Draw Path + page.Graphics.DrawPath(PdfBrushes.Red, path) + 'Saves the PDF. + doc.Save("Paths.pdf") + 'Closes the document. + doc.Close() + + + + + + Draws a GraphicsPath defined by a pen, a brush and path + + Pen that determines the color, width, and style of the path. + Brush that determines the color and texture of the path. + GraphicsPath to draw. + + + // Creates a document. + PdfDocument doc = new PdfDocument(); + //Adds a new page. + PdfPage page = doc.Pages.Add(); + //Adds Path. + PdfPath path = new PdfPath(); + path.AddRectangle (new RectangleF (10,10,100,100)); + path.AddEllipse (new RectangleF (100,100,100,100)); + //Draw Paths + page.Graphics.DrawPath(PdfPens.Black, PdfBrushes.Red, path); + //Save document + doc.Save("Paths.pdf"); + //Closes the document. + doc.Close(true); + + + 'Creates a document. + Dim doc As New PdfDocument() + 'Adds a new page. + Dim page As PdfPage = doc.Pages.Add() + 'Adds Path. + Dim path As New PdfPath(); + path.AddRectangle (New RectangleF (10,10,100,100)); + path.AddEllipse (New RectangleF (100,100,100,100)); + 'Draw Path + page.Graphics.DrawPath(PdfPens.Black, PdfBrushes.Red, path) + 'Saves the PDF. + doc.Save("Paths.pdf") + 'Closes the document. + doc.Close() + + + + + + 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 + + The layer value. + + + + Write End Mark Content for PDFLayer + + + + + Write Begin Mark Content for PDFLayer + + + + + 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. + + The color space value. + + + + 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. + + The color space value. + + + + 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. + + The tag value. + + + + Delegate declaring a method returning resources. + + + + + + Delegate declaring a method to process tag. + + The tag value. + + + + 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. + + + + + Draws a text string. + + The text. + The font. + The brush. + The text boundaries. + The string format. + + + + Check and returns, text glyph are avaliable in PdfFont + + The font value. + The text value. + + + + + Returns opentype font + + The font format. + The font value. + + + + + Returns the script tags values + + The line value. + + + + + 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. + + The graphics unit value. + 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. + + + + 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. + + + + + 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. + + + + + default constructor. + + + + + Creates new object. + + Parent graphics state. + The current transformation matrix. + + + + 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. + + + + + 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) + + + + + + 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) + + + + + + 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. + + + + + 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) + + + + + + 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 with and width. + + The provides color and texture 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 PdfSolidBrush(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 PdfSolidBrush(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. + + 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. + + + + 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) + + + + + + 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) + + + + + + Creates the default pen. + + The color. + Name of the color. + The proper PdfPen instance. + + + + Disallows to create an instance of PDfPens class. + + + + + + + Class for representing Root transformation matrix. + + + + + + + Value for angle converting. + + + + + + + Value for angle converting. + + + + + + + Transformation matrix. + + + + + Gets the X translation value. + + + + + Gets the Y translation value. + + + + + + + Gets or sets the internal matrix object. + + + + + 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. + + + + + Represents a simple transparency. + + + + + Internal variable to store dictionary. + + + + + Gets the stroke operation alpha value. + + + + + Gets the fill operation alpha value. + + + + + Gets the blend mode. + + + + + 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 element. + + + + + + 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. + + + + Represents the Painting and graphics state + + + + + Text + + + + + Grayscale images or image masks + + + + + Color images + + + + + Indexed (color-table) images + + + + + 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. + + + + + The content is resized to fill the destination dimensions. The aspect ratio is not preserved. + + + + + The content is resized to fit in the destination dimensions while it preserves its native aspect ratio. + + + + + The content is resized to fill the destination dimensions while it preserves its native aspect ratio. + If the aspect ratio of the destination rectangle differs from the source, the source content is clipped to fit in the destination dimensions. + + + + + The content preserves its original size. + + + + + Base interface for true type internal fonts. + + + + + Gets system font. + + + + + Gets size of the font. + + + + + Gets font metrics. + + + + + 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. + + + + + 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. + + + + + Internal variable to store the page bottom margin + + + + + Maximum header level + + + + + 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 + + + + + Draw hierarchical bookmarks + + + + + 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) + + + + + + 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 + + + + + Rectangle begin position + + + + + TOC title begin position + + + + + Rectangle left padding + + + + + Rectangle right padding + + + + + Space between two rectangle + + + + + Maximum header level + + + + + 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 starting page number for table of contents in HTML to PDF conversion. + + + + //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; + //Going to insert two pages before TOC, so added the offset value as 2 + settings.Toc.StartingPageNumber = 2; + //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 + //Going to insert two pages before TOC, so added the offset value as 2 + settings.Toc.StartingPageNumber = 2; + '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 + + + + + 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) + + + + + + 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 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. + + + + 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. + + + + + Converts the bounds from pixel to point. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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 + + + + + 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. + + + + Initializes a new instance of the class. + + + + + 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. + + + + + Holds the Quality of image. + + + + + 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. + The input elements. + The select elements. + The button elements. + + + + 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. + + + + + + + + + + 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 or sets a value that indicates whether to remove the IE engine warning. The default value is false. + + + + + Sets a value that indicates whether to remove the WebKit engine warning or not. The default value is false. + + + + + 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. + + + + + 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 + + The pdf page. + The page layout format. + + + + 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. + + + + + 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 + + + + + Gets or sets the target page index for importing. This property specifies the index of the page to be imported. + + + + //Load the PDF document. + FileStream docStream = new FileStream("file1.pdf", FileMode.Open, FileAccess.Read); + //Load the PDF document. + PdfLoadedDocument lDoc = new PdfLoadedDocument(docStream); + //Create a new document. + PdfImportOptions options = new PdfImportOptions(); + options.TragetPageIndex = 1; + PdfPageBase pdfPageBase = lDoc.Pages[0]; + //Imports the page at 1 from the lDoc. + lDoc.ImportPageRange(lDoc, 0, lDoc.Pages.Count - 1, options); + lDoc.ImportPage(lDoc, 0, options); + lDoc.ImportPage(lDoc, pdfPageBase, options); + //Save the document into stream. + MemoryStream stream = new MemoryStream(); + lDoc.Save(stream); + //Closes the document. + lDoc.Close(true); + + + ' Load the PDF document. + Dim docStream As New FileStream("file1.pdf", FileMode.Open, FileAccess.Read) + ' Load the PDF document. + Dim lDoc As New PdfLoadedDocument(docStream) + ' Create a new document. + Dim options As New PdfImportOptions() + options.TargetPageIndex = 1 + ' Get the first page from the loaded document. + Dim pdfPageBase As PdfPageBase = lDoc.Pages(0) + ' Import the page range from the loaded document. + lDoc.ImportPageRange(lDoc, 0, lDoc.Pages.Count - 1, options) + ' Import the first page from the loaded document. + lDoc.ImportPage(lDoc, 0, options) + ' Import the first page using the PdfPageBase. + lDoc.ImportPage(lDoc, pdfPageBase, options) + ' Save the document into a memory stream. + Dim stream As New MemoryStream() + lDoc.Save(stream) + ' Close the document. + lDoc.Close(True) + + + + + + Gets or Sets the boolean value indicating whether the form fields are grouped or not while importing pages. + + /// + + //Load the PDF document. + FileStream docStream = new FileStream("file1.pdf", FileMode.Open, FileAccess.Read); + //Load the PDF document. + PdfLoadedDocument lDoc = new PdfLoadedDocument(docStream); + //Create a new document. + PdfImportOptions options = new PdfImportOptions(); + options.GroupFormFields = true; + PdfPageBase pdfPageBase = lDoc.Pages[0]; + //Imports the page at 1 from the lDoc. + lDoc.ImportPageRange(lDoc, 0, lDoc.Pages.Count - 1, options); + lDoc.ImportPage(lDoc, 0, options); + lDoc.ImportPage(lDoc, pdfPageBase, options); + //Save the document into stream. + MemoryStream stream = new MemoryStream(); + lDoc.Save(stream); + //Closes the document. + lDoc.Close(true); + + + ' Load the PDF document. + Dim docStream As New FileStream("file1.pdf", FileMode.Open, FileAccess.Read) + ' Load the PDF document. + Dim lDoc As New PdfLoadedDocument(docStream) + ' Create a new document. + Dim options As New PdfImportOptions() + options.GroupFormFields = true + ' Get the first page from the loaded document. + Dim pdfPageBase As PdfPageBase = lDoc.Pages(0) + ' Import the page range from the loaded document. + lDoc.ImportPageRange(lDoc, 0, lDoc.Pages.Count - 1, options) + ' Import the first page from the loaded document. + lDoc.ImportPage(lDoc, 0, options) + ' Import the first page using the PdfPageBase. + lDoc.ImportPage(lDoc, pdfPageBase, options) + ' Save the document into a memory stream. + Dim stream As New MemoryStream() + lDoc.Save(stream) + ' Close the document. + lDoc.Close(True) + + + + + + Gets or Sets the boolean value indicating whether the form fields are grouped or not while importing pages. + + /// + + //Load the PDF document. + FileStream docStream = new FileStream("file1.pdf", FileMode.Open, FileAccess.Read); + //Load the PDF document. + PdfLoadedDocument lDoc = new PdfLoadedDocument(docStream); + //Create a new document. + PdfImportOptions options = new PdfImportOptions(); + options.RemoveBookmark = true; + PdfPageBase pdfPageBase = lDoc.Pages[0]; + //Imports the page at 1 from the lDoc. + lDoc.ImportPageRange(lDoc, 0, lDoc.Pages.Count - 1, options); + lDoc.ImportPage(lDoc, 0, options); + lDoc.ImportPage(lDoc, pdfPageBase, options); + //Save the document into stream. + MemoryStream stream = new MemoryStream(); + lDoc.Save(stream); + //Closes the document. + lDoc.Close(true); + + + ' Load the PDF document. + Dim docStream As New FileStream("file1.pdf", FileMode.Open, FileAccess.Read) + ' Load the PDF document. + Dim lDoc As New PdfLoadedDocument(docStream) + ' Create a new document. + Dim options As New PdfImportOptions() + options.RemoveBookmark = true + ' Get the first page from the loaded document. + Dim pdfPageBase As PdfPageBase = lDoc.Pages(0) + ' Import the page range from the loaded document. + lDoc.ImportPageRange(lDoc, 0, lDoc.Pages.Count - 1, options) + ' Import the first page from the loaded document. + lDoc.ImportPage(lDoc, 0, options) + ' Import the first page using the PdfPageBase. + lDoc.ImportPage(lDoc, pdfPageBase, options) + ' Save the document into a memory stream. + Dim stream As New MemoryStream() + lDoc.Save(stream) + ' Close the document. + lDoc.Close(True) + + + + + + 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 + + + + 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 + + + + 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 + + + + 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 + + + + Initializes the PdfLab Colorspace. + + + + + Creates PdfCalGray ColorSpace Array + + PdfCalGray's ColorSpace Array. + + + + 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 + + + + 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 + + + + Initializes the PdfCalRGB ColorSpace + + + + + Creates PdfCalRGB ColorSpace Array + + PdfCalRGB's ColorSpace Array. + + + + 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 + + + + 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. + + + + + Gets Pdf primitive representing the font. + + + + + 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. + + + + 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 Colorspace 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 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") + + + + + + 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. + + + + + Constants value compressed Base64 CMYK ICC profile data. + + + + + 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 + + + + 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 + + + + 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. + + + + Get the profile data value. + + + + + + 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 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 + + + + 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. + + + + 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 + + + + 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 + + + + Initializes the PdfLab Colorspace. + + + + + Creates PdfLab colorspace Array + + PdfLab's colorspace Array. + + + + 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 + + + + 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 + + + + 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. + + + + Class for default compressor. Default compressor does not + compress data. + + + + + + Initializes a new instance of the class. + + + + + Gets the name of the compressor in PDF format. + + + + + + + Gets the type of the compressor. + + + + + + + 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. + + + + + 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 + + + + + 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. + + + + + 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. + + + + + Gets a value indicating whether this codec can decode data. + + + + + 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. + + + + + 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. + + + + + JPEG library source data manager. + + + + + Alternate source manager for reading from JPEGTables. + + + + + Gets a value indicating whether this codec can decode data. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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 + + + + + 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 + + + + + + + + + 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. + + + + + 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. + + + + + 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. + + + + + Color quantization or color precision reduction + + + + + 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. + + + + + Entropy decoding + + + + + Expand a Huffman table definition into the derived format + + + + + 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. + + + + + Upsampling (note that upsampler must also call color converter) + + + + + 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. + + + + + 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. + + + + + Gets the value. + + The value. + + + + 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. + + + + + Tag Image File Format (TIFF) + + + + + 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. + + + + + undefined state + + + + + undefined state + + + + + 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. + + + + + Delegate for LibTiff.Net extender method + + + + + Delegate for a method used to image decoded spans. + + + + + 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. + + + + Base class for both JPEG compressor and decompresor. + + + + Base constructor. + + + + + Gets a value indicating whether this instance is Jpeg decompressor. + + + + + Progress monitor. + + + + + Creates the array of samples. + + + + + Creates the array of blocks. + + + + + Creates 2-D sample array. + + + + + JPEG decompression routine. + + + + + The delegate for application-supplied marker processing methods. + + + + + Initializes a new instance of the class. + + + + + 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 + + + + + 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. + + + + + 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. + + + + + 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 + + + + + Gets or sets the error processor. + + + + + Access the part of a virtual array. + + + + + 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. + + + + + 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. + + + + + The progress monitor object. + + + + + 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. + + + + + Indicates that progress was changed. + + + + + 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. + + + + + Gets a value indicating whether this codec can decode data. + + + + + 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 + + + + + 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. + + + + + 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. + + + + + Compresses data using the ASCII85 compression + method, reproducing the original text or binary data. + + + + + 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. + + + + + Gets the Type of the compressor. + + + + + + Decompresses the specified input data. + + The input data. + The output data. + + + + Gets name of compressor in PDF format. + + + + + + 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. + + + + 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. + + + + + 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. + + + + + Gets the Type of the compressor. + + + + + + Decompresses the specified input data. + + The input data. + The output data. + + + + Gets name of compressor in PDF format. + + + + + + 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 + + + + PdfPngFilter provides methods that allows to restore original data + being modified by similar filter or modify data to better compression ratio. + + + + + Defines Png Filtern Type. + + + + + None compression. + + + + + Sub compression + + + + + Up compression + + + + + Average compression + + + + + Paeth compression + + + + + 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. + + + + + Required for type cast. + + + + + 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. + + + + 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. + + + + Gets name of compressor in PDF format. + + + + + Gets type of compressor. + + + + + Gets encoding value for this compressor. + + + + + Gets or sets level of compression. + + + + + 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. + + + + + Summary description of IPDFCompressor. + + + + + + Gets the compressor type. + + + + + + Gets the compressor name in PDF format. + + + + + + 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. + + + + + 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. + + + + + Represents a fields which is calculated before the document saves. + + + + //Create a new document. + PdfDocument document = new PdfDocument(); + //Create new instance of PDF font. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); + //Create new instance of PDF brush. + PdfSolidBrush brush = new PdfSolidBrush(Color.Blue); + //Creates page number field. + PdfPageNumberField pageNumber = new PdfPageNumberField(font); + //Set number style for page number field. + pageNumber.NumberStyle = PdfNumberStyle.Numeric; + //Create automatic field. + PdfAutomaticField field = pageNumber; + //Set font for automatic field. + field.Font = font; + //Set brush for automatic field. + field.Brush = brush; + //Set size for automatic field. + field.Size = new SizeF(100, 50); + //Set location for automatic field. + field.Location = new PointF(50, 50); + for (int i = 0; i != 2; i++) + { + PdfPage page = document.Pages.Add(); + field.Draw(page.Graphics); + } + //Save and close the document. + document.Save("AutomaticField.pdf"); + document.Close(true); + + + 'Create a new document. + Dim document As PdfDocument = New PdfDocument() + 'Create new instance of PDF font. + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) + 'Create new instance of PDF brush. + Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Blue) + 'Creates page number field. + Dim pageNumber As PdfPageNumberField = New PdfPageNumberField() + 'Set number style for page number field. + pageNumber.NumberStyle = PdfNumberStyle.Numeric + 'Create automatic field. + Dim field As PdfAutomaticField = pageNumber + 'Set font for automatic field. + field.Font = font + 'Set brush for automatic field. + field.Brush = brush + 'Set size for automatic field. + field.Size = New SizeF(100, 50) + 'Set location for automatic field. + field.Location = New PointF(50, 50) + For i As Integer = 0 To 1 + Dim page As PdfPage = document.Pages.Add() + field.Draw(page.Graphics) + Next i + 'Save and close the document. + document.Save("AutomaticField.pdf") + document.Close(True) + + + Class + Class + Class + Class + Class + + + + 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. + + + + Gets or sets the bounds of the field. + + The bounds value. + + + //Create a new document. + PdfDocument document = new PdfDocument(); + //Create new instance of PDF font. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); + //Create new instance of PDF brush. + PdfSolidBrush brush = new PdfSolidBrush(Color.Blue); + //Creates page number field. + PdfPageNumberField pageNumber = new PdfPageNumberField(font); + //Set number style for page number field. + pageNumber.NumberStyle = PdfNumberStyle.Numeric; + //Create automatic field. + PdfAutomaticField field = pageNumber; + //Set font for automatic field. + field.Font = font; + //Set brush for automatic field. + field.Brush = brush; + //Set location and size for the automatic field. + field.Bounds = new RectangleF(50, 50, 100, 100); + for (int i = 0; i != 2; i++) + { + PdfPage page = document.Pages.Add(); + field.Draw(page.Graphics); + } + //Save and close the document. + document.Save("AutomaticField.pdf"); + document.Close(true); + + + 'Create a new document. + Dim document As PdfDocument = New PdfDocument() + 'Create new instance of PDF font. + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) + 'Create new instance of PDF brush. + Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Blue) + 'Creates page number field. + Dim pageNumber As PdfPageNumberField = New PdfPageNumberField() + 'Set number style for page number field. + pageNumber.NumberStyle = PdfNumberStyle.Numeric + 'Create automatic field. + Dim field As PdfAutomaticField = pageNumber + 'Set font for automatic field. + field.Font = font + 'Set brush for automatic field. + field.Brush = brush + 'Set location and size for the automatic field. + field.Bounds = New RectangleF(50, 50, 100, 50) + For i As Integer = 0 To 1 + Dim page As PdfPage = document.Pages.Add() + field.Draw(page.Graphics) + Next i + 'Save and close the document. + document.Save("AutomaticField.pdf") + document.Close(True) + + + Class + Class + Class + Class + + + + Gets or sets the size of the field. + + The size of the field. + + + //Create a new document. + PdfDocument document = new PdfDocument(); + //Create new instance of PDF font. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); + //Create new instance of PDF brush. + PdfSolidBrush brush = new PdfSolidBrush(Color.Blue); + //Creates page number field. + PdfPageNumberField pageNumber = new PdfPageNumberField(font); + //Set number style for page number field. + pageNumber.NumberStyle = PdfNumberStyle.Numeric; + //Create automatic field. + PdfAutomaticField field = pageNumber; + //Set font for automatic field. + field.Font = font; + //Set brush for automatic field. + field.Brush = brush; + //Set size for automatic field. + field.Size = new SizeF(100, 50); + //Set location for automatic field. + field.Location = new PointF(50, 50); + for (int i = 0; i != 2; i++) + { + PdfPage page = document.Pages.Add(); + field.Draw(page.Graphics); + } + //Save and close the document. + document.Save("AutomaticField.pdf"); + document.Close(true); + + + 'Create a new document. + Dim document As PdfDocument = New PdfDocument() + 'Create new instance of PDF font. + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) + 'Create new instance of PDF brush. + Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Blue) + 'Creates page number field. + Dim pageNumber As PdfPageNumberField = New PdfPageNumberField() + 'Set number style for page number field. + pageNumber.NumberStyle = PdfNumberStyle.Numeric + 'Create automatic field. + Dim field As PdfAutomaticField = pageNumber + 'Set font for automatic field. + field.Font = font + 'Set brush for automatic field. + field.Brush = brush + 'Set size for automatic field. + field.Size = New SizeF(100, 50) + 'Set location for automatic field. + field.Location = New PointF(50, 50) + For i As Integer = 0 To 1 + Dim page As PdfPage = document.Pages.Add() + field.Draw(page.Graphics) + Next i + 'Save and close the document. + document.Save("AutomaticField.pdf") + document.Close(True) + + + Class + Class + Class + Class + + + + Gets or sets the location of the field. + + The location. + + + //Create a new document. + PdfDocument document = new PdfDocument(); + //Create new instance of PDF font. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); + //Create new instance of PDF brush. + PdfSolidBrush brush = new PdfSolidBrush(Color.Blue); + //Creates page number field. + PdfPageNumberField pageNumber = new PdfPageNumberField(font); + //Set number style for page number field. + pageNumber.NumberStyle = PdfNumberStyle.Numeric; + //Create automatic field. + PdfAutomaticField field = pageNumber; + //Set font for automatic field. + field.Font = font; + //Set brush for automatic field. + field.Brush = brush; + //Set size for automatic field. + field.Size = new SizeF(100, 50); + //Set location for automatic field. + field.Location = new PointF(50, 50); + for (int i = 0; i != 2; i++) + { + PdfPage page = document.Pages.Add(); + field.Draw(page.Graphics); + } + //Save and close the document. + document.Save("AutomaticField.pdf"); + document.Close(true); + + + 'Create a new document. + Dim document As PdfDocument = New PdfDocument() + 'Create new instance of PDF font. + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) + 'Create new instance of PDF brush. + Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Blue) + 'Creates page number field. + Dim pageNumber As PdfPageNumberField = New PdfPageNumberField() + 'Set number style for page number field. + pageNumber.NumberStyle = PdfNumberStyle.Numeric + 'Create automatic field. + Dim field As PdfAutomaticField = pageNumber + 'Set font for automatic field. + field.Font = font + 'Set brush for automatic field. + field.Brush = brush + 'Set size for automatic field. + field.Size = New SizeF(100, 50) + 'Set location for automatic field. + field.Location = New PointF(50, 50) + For i As Integer = 0 To 1 + Dim page As PdfPage = document.Pages.Add() + field.Draw(page.Graphics) + Next i + 'Save and close the document. + document.Save("AutomaticField.pdf") + document.Close(True) + + + Class + Class + Class + Class + + + + Gets or sets the of the field. + + The represents the format of the text. + + + //Create a new document. + PdfDocument document = new PdfDocument(); + //Create new instance of PDF font. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); + //Create new instance of PDF brush. + PdfSolidBrush brush = new PdfSolidBrush(Color.Blue); + //Creates page number field. + PdfPageNumberField pageNumber = new PdfPageNumberField(font); + //Set number style for page number field. + pageNumber.NumberStyle = PdfNumberStyle.Numeric; + //Create automatic field. + PdfAutomaticField field = pageNumber; + //Set font for automatic field. + field.Font = font; + //Set brush for automatic field. + field.Brush = brush; + //Set size for automatic field. + field.Size = new SizeF(100, 50); + //Set location for automatic field. + field.Location = new PointF(50, 50); + for (int i = 0; i != 2; i++) + { + PdfPage page = document.Pages.Add(); + field.Draw(page.Graphics); + } + //Save and close the document. + document.Save("AutomaticField.pdf"); + document.Close(true); + + + 'Create a new document. + Dim document As PdfDocument = New PdfDocument() + 'Create new instance of PDF font. + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) + 'Create new instance of PDF brush. + Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Blue) + 'Creates page number field. + Dim pageNumber As PdfPageNumberField = New PdfPageNumberField() + 'Set number style for page number field. + pageNumber.NumberStyle = PdfNumberStyle.Numeric + 'Create automatic field. + Dim field As PdfAutomaticField = pageNumber + 'Set font for automatic field. + field.Font = font + 'Set brush for automatic field. + field.Brush = brush + 'Set size for automatic field. + field.Size = New SizeF(100, 50) + 'Set location for automatic field. + field.Location = New PointF(50, 50) + For i As Integer = 0 To 1 + Dim page As PdfPage = document.Pages.Add() + field.Draw(page.Graphics) + Next i + 'Save and close the document. + document.Save("AutomaticField.pdf") + document.Close(True) + + + Class + Class + Class + Class + + + + Gets or sets the of the field + + The provides color and texture to the text. + + + //Create a new document. + PdfDocument document = new PdfDocument(); + //Create new instance of PDF font. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); + //Create new instance of PDF brush. + PdfSolidBrush brush = new PdfSolidBrush(Color.Blue); + //Creates page number field. + PdfPageNumberField pageNumber = new PdfPageNumberField(font); + //Set number style for page number field. + pageNumber.NumberStyle = PdfNumberStyle.Numeric; + //Create automatic field. + PdfAutomaticField field = pageNumber; + //Set font for automatic field. + field.Font = font; + //Set brush for automatic field. + field.Brush = brush; + //Set size for automatic field. + field.Size = new SizeF(100, 50); + //Set location for automatic field. + field.Location = new PointF(50, 50); + for (int i = 0; i != 2; i++) + { + PdfPage page = document.Pages.Add(); + field.Draw(page.Graphics); + } + //Save and close the document. + document.Save("AutomaticField.pdf"); + document.Close(true); + + + 'Create a new document. + Dim document As PdfDocument = New PdfDocument() + 'Create new instance of PDF font. + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) + 'Create new instance of PDF brush. + Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Blue) + 'Creates page number field. + Dim pageNumber As PdfPageNumberField = New PdfPageNumberField() + 'Set number style for page number field. + pageNumber.NumberStyle = PdfNumberStyle.Numeric + 'Create automatic field. + Dim field As PdfAutomaticField = pageNumber + 'Set font for automatic field. + field.Font = font + 'Set brush for automatic field. + field.Brush = brush + 'Set size for automatic field. + field.Size = New SizeF(100, 50) + 'Set location for automatic field. + field.Location = New PointF(50, 50) + For i As Integer = 0 To 1 + Dim page As PdfPage = document.Pages.Add() + field.Draw(page.Graphics) + Next i + 'Save and close the document. + document.Save("AutomaticField.pdf") + document.Close(True) + + + Class + Class + Class + Class + + + + Gets or sets the of the field. + + The that determines the color, width, and style of the text. + + + //Create a new document. + PdfDocument document = new PdfDocument(); + //Create new instance of PDF font. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); + //Create new instance of PDF brush. + PdfSolidBrush brush = new PdfSolidBrush(Color.Blue); + //Creates page number field. + PdfPageNumberField pageNumber = new PdfPageNumberField(font); + //Set number style for page number field. + pageNumber.NumberStyle = PdfNumberStyle.Numeric; + //Create automatic field. + PdfAutomaticField field = pageNumber; + //Set font for automatic field. + field.Font = font; + //Set brush for automatic field. + field.Brush = brush; + //Set size for automatic field. + field.Size = new SizeF(100, 50); + //Set location for automatic field. + field.Location = new PointF(50, 50); + for (int i = 0; i != 2; i++) + { + PdfPage page = document.Pages.Add(); + field.Draw(page.Graphics); + } + //Save and close the document. + document.Save("AutomaticField.pdf"); + document.Close(true); + + + 'Create a new document. + Dim document As PdfDocument = New PdfDocument() + 'Create new instance of PDF font. + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) + 'Create new instance of PDF brush. + Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Blue) + 'Creates page number field. + Dim pageNumber As PdfPageNumberField = New PdfPageNumberField() + 'Set number style for page number field. + pageNumber.NumberStyle = PdfNumberStyle.Numeric + 'Create automatic field. + Dim field As PdfAutomaticField = pageNumber + 'Set font for automatic field. + field.Font = font + 'Set brush for automatic field. + field.Brush = brush + 'Set size for automatic field. + field.Size = New SizeF(100, 50) + 'Set location for automatic field. + field.Location = New PointF(50, 50) + For i As Integer = 0 To 1 + Dim page As PdfPage = document.Pages.Add() + field.Draw(page.Graphics) + Next i + 'Save and close the document. + document.Save("AutomaticField.pdf") + document.Close(True) + + + Class + Class + Class + Class + + + + Gets or sets the of the field. + + The determines text layout information on PDF + + + + 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. + + + + + + + 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 which can concatenate multiple automatic fields into single string. + + + + //Creates a new document + PdfDocument doc = new PdfDocument(); + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); + PdfBrush brush = PdfBrushes.Black; + //Create a composite field + PdfCompositeField compositeField = new PdfCompositeField(font, brush); + compositeField.Text = "AutomaticFields"; + for (int i = 0; i != 3; i++) + { + //Creates a new page + PdfPage page = doc.Pages.Add(); + compositeField.Draw(page.Graphics); + } + //Save and close the document + doc.Save("AutomaticField.pdf"); + doc.Close(true); + + + 'Creates a new document + Dim doc As New PdfDocument() + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F) + Dim brush As PdfBrush = PdfBrushes.Black + 'Create a composite field + Dim compositeField As New PdfCompositeField(font, brush) + compositeField.Text = "AutomaticFields" + For i As Integer = 0 To 2 + ' Creates a new page + Dim page As PdfPage = doc.Pages.Add() + ' compositeField.Draw(page.Graphics) + Next i + 'Save and close the document + doc.Save("AutomaticField.pdf") + doc.Close(True) + + + Class + Class + Class + Class + Class + + + + Internal variable to store list of automatic fields. + + + + + Internal variable to store value. + + + + + Initializes a new instance of the class. + + + + //Creates a new document. + PdfDocument doc = new PdfDocument(); + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); + PdfBrush brush = PdfBrushes.Black; + //Create a composite field. + PdfCompositeField compositeField = new PdfCompositeField(); + compositeField.Text = "AutomaticFields"; + for (int i = 0; i != 3; i++) + { + //Creates a new page. + PdfPage page = doc.Pages.Add(); + compositeField.Draw(page.Graphics); + } + //Save and close the document. + doc.Save("AutomaticField.pdf"); + doc.Close(true); + + + 'Creates a new document. + Dim doc As New PdfDocument() + 'Create a composite field. + Dim compositeField As New PdfCompositeField() + compositeField.Text = "AutomaticFields" + For i As Integer = 0 To 2 + ' Creates a new page + Dim page As PdfPage = doc.Pages.Add() + ' compositeField.Draw(page.Graphics) + Next i + 'Save and close the document. + doc.Save("AutomaticField.pdf") + doc.Close(True) + + + Class + Class + Class + 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. + + + // Creates a new document + PdfDocument doc = new PdfDocument(); + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); + //Create a composite field + PdfCompositeField compositeField = new PdfCompositeField(font); + compositeField.Text = "AutomaticFields"; + for (int i = 0; i != 3; i++) + { + //Creates a new page + PdfPage page = doc.Pages.Add(); + compositeField.Draw(page.Graphics); + } + //Save and close the document + doc.Save("AutomaticField.pdf"); + doc.Close(true); + + + 'Creates a new document. + Dim doc As New PdfDocument() + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F) + 'Create a composite field. + Dim compositeField As New PdfCompositeField(font) + compositeField.Text = "AutomaticFields" + For i As Integer = 0 To 2 + ' Creates a new page + Dim page As PdfPage = doc.Pages.Add() + ' compositeField.Draw(page.Graphics) + Next i + 'Save and close the document. + doc.Save("AutomaticField.pdf") + doc.Close(True) + + + Class + Class + + + + Initializes a new instance of the class with and + + The 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. + + + //Creates a new document. + PdfDocument doc = new PdfDocument(); + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); + PdfBrush brush = PdfBrushes.Black; + //Create a composite field. + PdfCompositeField compositeField = new PdfCompositeField(font, brush); + compositeField.Text = "AutomaticFields"; + for (int i = 0; i != 3; i++) + { + //Creates a new page. + PdfPage page = doc.Pages.Add(); + compositeField.Draw(page.Graphics); + } + //Save and close the document. + doc.Save("AutomaticField.pdf"); + doc.Close(true); + + + 'Creates a new document. + Dim doc As New PdfDocument() + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F) + Dim brush As PdfBrush = PdfBrushes.Black + 'Create a composite field. + Dim compositeField As New PdfCompositeField(font, brush) + compositeField.Text = "AutomaticFields" + For i As Integer = 0 To 2 + ' Creates a new page + Dim page As PdfPage = doc.Pages.Add() + ' compositeField.Draw(page.Graphics) + Next i + 'Save and close the document. + doc.Save("AutomaticField.pdf") + doc.Close(True) + + + Class + Class + + + + Initializes a new instance of the class with and text + + 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. + + + //Creates a new document. + PdfDocument doc = new PdfDocument(); + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); + //Create a composite field. + PdfCompositeField compositeField = new PdfCompositeField(font,"AutomaticField"); + compositeField.Text = "AutomaticFields"; + for (int i = 0; i != 3; i++) + { + //Creates a new page. + PdfPage page = doc.Pages.Add(); + compositeField.Draw(page.Graphics); + } + //Save and close the document. + doc.Save("AutomaticField.pdf"); + doc.Close(true); + + + 'Creates a new document. + Dim doc As New PdfDocument() + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F) + 'Create a composite field. + Dim compositeField As New PdfCompositeField(font,"AutomaticField") + compositeField.Text = "AutomaticFields" + For i As Integer = 0 To 2 + ' Creates a new page + Dim page As PdfPage = doc.Pages.Add() + ' compositeField.Draw(page.Graphics) + Next i + 'Save and close the document. + doc.Save("AutomaticField.pdf") + doc.Close(True) + + + Class + Class + + + + Initializes a new instance of the class with , and text. + + 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. + 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; + //Create a composite field + PdfCompositeField compositeField = new PdfCompositeField(font,brush,"AutomaticField"); + compositeField.Text = "AutomaticFields"; + for (int i = 0; i != 3; i++) + { + //Creates a new page + PdfPage page = doc.Pages.Add(); + compositeField.Draw(page.Graphics); + } + //Save and close the document + doc.Save("AutomaticField.pdf"); + doc.Close(true); + + + 'Creates a new document. + Dim doc As New PdfDocument() + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F) + Dim brush As PdfBrush = PdfBrushes.Black + 'Create a composite field. + Dim compositeField As New PdfCompositeField(font,brush,"AutomaticField") + compositeField.Text = "AutomaticFields" + For i As Integer = 0 To 2 + ' Creates a new page + Dim page As PdfPage = doc.Pages.Add() + ' compositeField.Draw(page.Graphics) + Next i + 'Save and close the document. + doc.Save("AutomaticField.pdf") + doc.Close(True) + + + + + + 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 or sets the text. + + The wide-character string to be drawn. + + + //Creates a new document + PdfDocument doc = new PdfDocument(); + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); + PdfBrush brush = PdfBrushes.Black; + //Create a composite field + PdfCompositeField compositeField = new PdfCompositeField(font, brush); + compositeField.Text = "AutomaticFields"; + for (int i = 0; i != 3; i++) + { + //Creates a new page + PdfPage page = doc.Pages.Add(); + compositeField.Draw(page.Graphics); + } + //Save and close the document + doc.Save("AutomaticField.pdf"); + doc.Close(true); + + + 'Creates a new document + Dim doc As New PdfDocument() + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F) + Dim brush As PdfBrush = PdfBrushes.Black + 'Create a composite field + Dim compositeField As New PdfCompositeField(font, brush) + compositeField.Text = "AutomaticFields" + For i As Integer = 0 To 2 + ' Creates a new page + Dim page As PdfPage = doc.Pages.Add() + ' compositeField.Draw(page.Graphics) + Next i + 'Save and close the document + doc.Save("AutomaticField.pdf") + doc.Close(True) + + + Class + Class + Class + Class + + + + 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 + + + + Gets the value of the field at the specified graphics. + + The graphics. + + + + + + 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 + + + + 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 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) + + + + + + Gets the value of the field at the specified graphics. + + The graphics. + + + + + + Represents the 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 to remove metadata information from the PDF document. + + + + //Load an existing document. + PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); + //Initialize new instance of PdfCompressionOptions class. + PdfCompressionOptions options = new PdfCompressionOptions(); + //Remove metadata information from the document. + 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() + 'Remove metadata information from the document. + options.RemoveMetadata = True + ldoc.CompressionOptions = options + 'Save and Close the document. + ldoc.Save("Output.pdf") + ldoc.Close(True) + + + + + + Gets or sets whether to 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; + 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 + ldoc.CompressionOptions = options + 'Save and Close the document. + ldoc.Save("Output.pdf") + ldoc.Close(True) + + + + + + + //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; + 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 + 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 optimize page contents. + options.OptimizePageContents = 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 optimize page contents. + options.OptimizePageContents = 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 optimize font. + options.OptimizeFont = 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 optimize font. + options.OptimizeFont = 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 + + + + + Collection holds used fonts in a page + + + + + The variable used to store the Optimized dictionary collection + + + + + 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. + + + + + + Check page resoucres contains identical resoucres + + + + + + 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 + + + + + + + Create a font stream by using used characters + + + + + + + + + Add font used text in a collection + + + + + + + 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. + + + + + + + + + Create hash from the current stream and returns true if present in the collection + + + + + + + + + Create hash value from the current stream + + + + + + + Find Adobe standard Latin characters + + + + + + + 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 + + + + 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) + + + + + + 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) + + + + + + Get the value of the field at the specified graphics. + + The graphics. + value + + + + + 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 + + + + 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) + + + + + + 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) + + + + + + Gets the value of the field at the specified graphics. + + The graphics. + + + + + 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. + + + + + + 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 + + + + Represents automatic field which has the same value within the + + Class + + + + 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. + + + + Represents automatic field which has the same value within the + + Class + + + + Internal variable to store templates associated with the graphics. + + + + + Gets or sets the tag for the element + + + + + 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. + + + + 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. + + + + //Create a new document. + PdfDocument document = new PdfDocument(); + //Create a new page. + PdfPage page = document.Pages.Add(); + //Create new instance of PDF font. + PdfTrueTypeFont font = new PdfTrueTypeFont(new Font("Tahoma", 10f), true); + //Create new instance of PDF brush. + PdfSolidBrush brush = new PdfSolidBrush(Color.Black); + SizeF bounds = page.GetClientSize(); + //Create new instance of page count field. + PdfPageCountField pageCount = new PdfPageCountField(); + //Set font for page count field. + pageCount.Font = font; + //Set brush for page count field. + pageCount.Brush = brush; + //Set size for page count field. + pageCount.Size = new SizeF(100, 50); + //Set location for page count field. + pageCount.Location = new PointF(110, 20); + //Set number style for page count field. + pageCount.NumberStyle = PdfNumberStyle.Numeric; + for (int i = 0; i != 100; i++) + { + //Draw the text. + page.Graphics.DrawString("Total page count :", font, PdfBrushes.Blue, new PointF(20, 20)); + //Draw the page count field. + pageCount.Draw(page.Graphics); + //Add new page to DPF document. + page = document.Pages.Add(); + } + //Save and close the document. + document.Save("Output.pdf"); + document.Close(true); + + + 'Create a new document. + Dim document As PdfDocument = New PdfDocument() + 'Create a new page. + Dim page As PdfPage = document.Pages.Add() + 'Create new instance of PDF font. + Dim font As PdfTrueTypeFont = New PdfTrueTypeFont(New Font("Tahoma", 10.0F), True) + 'Create new instance of PDF brush. + Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Black) + Dim bounds As SizeF = page.GetClientSize() + 'Create new instance of page count field. + Dim pageCount As PdfPageCountField = New PdfPageCountField() + 'Set font for page count field. + pageCount.Font = font + 'Set brush for page count field. + pageCount.Brush = brush + 'Set size for page count field. + pageCount.Size = New SizeF(100, 50) + 'Set location for page count field. + pageCount.Location = New PointF(110, 20) + 'Set number style for page count field. + pageCount.NumberStyle = PdfNumberStyle.Numeric + For i As Integer = 0 To 99 + 'Draw the text. + page.Graphics.DrawString("Total page count :", font, PdfBrushes.Blue, New PointF(20, 20)) + 'Draw the page count field. + pageCount.Draw(page.Graphics) + 'Add new page to PDF document. + page = document.Pages.Add() + Next i + 'Save and close the document. + document.Save("Output.pdf") + document.Close(True) + + + Class + Class + Class + 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. + + + // 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 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); + + + + + + Gets the value of the field at the specified graphics. + + The graphics. + result + + + + 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 + + + + 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 + + + + + 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 + + + + 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 + + + + 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. + + + + 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. + + + + 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. + + + + 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 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. + + + + 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. + + + + 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 + + + + + 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 or sets the embedded files. + + The embedded files. + + + + Gets the destinations. + + + + + 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). + + + + Gets the element. + + + + + + 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. + + + + To be sorted attachment name and update the current document Catalog.Names + Note: If the attachment not store in sorted order,the attachments are not open. + + The loaded attachement names. + The catalog names. + + + + Check and update unique name as attachment merge + + The attachement name. + The attachement collection. + + + + + Generates the list of embedded file dictionaries. + + The list of embedded file dictionaries. + + + + Collects the objects. + + The leaf node. + The array. + + + + Clear catalog names. + + + + + 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. + + + + Contains types used to create and manipulate the PDF document. + + + + + 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 + + + + + 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 image collection + + + + + Internal variable to store the private font 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 + + + + Set to create a separate table on pagination in Tagged PDF document + + + + + Initializes a new instance of the class. + + Is merging boolean value. + + + + 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 + + + + Get or set the ZugferdConformanceLevel + + + It supports only in PdfConformanceLevel Pdf_A3B + + + + //Creates a new PDF document. + PdfDocument doc = new PdfDocument(PdfConformanceLevel.Pdf_A3B); + //Add a page. + PdfPage page = doc.Pages.Add(); + //Set the ZugferdProfile. + doc.ZugferdConformanceLevel = ZugferdConformanceLevel.Basic; + //Create the PdfTrueTypeFont + PdfFont font = new PdfTrueTypeFont(new Font("arial", 12f, FontStyle.Regular), true); + page.Graphics.DrawString("Hello World", font, PdfBrushes.Black, PointF.Empty); + //Creates an attachment + PdfAttachment attachment = new PdfAttachment("ZUGFeRD-invoice.xml"); + //Set the file relationship + attachment.Relationship = PdfAttachmentRelationship.Alternative; + attachment.ModificationDate = DateTime.Now; + attachment.Description = "About Syncfusion"; + attachment.MimeType = "application/xml"; + //add attachment to the doucment + doc.Attachments.Add(attachment); + doc.Save("output.pdf"); + + + 'Creates a new PDF document. + Dim doc As New PdfDocument(PdfConformanceLevel.Pdf_A3B) + 'Add a page. + Dim page As PdfPage = doc.Pages.Add() + 'Set the ZugferdProfile. + doc.ZugferdConformanceLevel = ZugferdConformanceLevel.Basic + 'Create the PdfTrueTypeFont + Dim font As PdfFont = New PdfTrueTypeFont(New Font("arial", 12F, FontStyle.Regular), True) + page.Graphics.DrawString("Hello World", font, PdfBrushes.Black, PointF.Empty) + 'Creates an attachment + Dim attachment As New PdfAttachment("ZUGFeRD-invoice.xml") + 'Set the file relationship + attachment.Relationship = PdfAttachmentRelationship.Alternative + attachment.ModificationDate = DateTime.Now + attachment.Description = "About Syncfusion" + attachment.MimeType = "application/xml" + 'add attachment to the doucment + doc.Attachments.Add(attachment) + doc.Save("output.pdf") + + + + + + Get or set the ZUGFeRD version to the PDF + + + It supports only in PdfConformanceLevel Pdf_A3B + + /// + + //Creates a new PDF document. + PdfDocument doc = new PdfDocument(PdfConformanceLevel.Pdf_A3B); + //Add a page. + PdfPage page = doc.Pages.Add(); + //Set the ZugferdProfile. + doc.ZugferdVersion = ZugferdVersion.ZugferdVersion1_0; + //Set the ZugferdProfile. + doc.ZugferdConformanceLevel = ZugferdConformanceLevel.Basic; + //Create the PdfTrueTypeFont + PdfFont font = new PdfTrueTypeFont(new Font("arial", 12f, FontStyle.Regular), true); + page.Graphics.DrawString("Hello World", font, PdfBrushes.Black, PointF.Empty); + //Creates an attachment + PdfAttachment attachment = new PdfAttachment("ZUGFeRD-invoice.xml"); + //Set the file relationship + attachment.Relationship = PdfAttachmentRelationship.Alternative; + attachment.ModificationDate = DateTime.Now; + attachment.Description = "About Syncfusion"; + attachment.MimeType = "application/xml"; + //add attachment to the doucment + doc.Attachments.Add(attachment); + doc.Save("output.pdf"); + + + 'Creates a new PDF document. + Dim doc As New PdfDocument(PdfConformanceLevel.Pdf_A3B) + 'Add a page. + Dim page As PdfPage = doc.Pages.Add() + 'Set the ZugferdProfile. + doc.ZugferdVersion = ZugferdVersion.ZugferdVersion1_0 + 'Set the ZugferdProfile. + doc.ZugferdConformanceLevel = ZugferdConformanceLevel.Basic + 'Create the PdfTrueTypeFont + Dim font As PdfFont = New PdfTrueTypeFont(New Font("arial", 12F, FontStyle.Regular), True) + page.Graphics.DrawString("Hello World", font, PdfBrushes.Black, PointF.Empty) + 'Creates an attachment + Dim attachment As New PdfAttachment("ZUGFeRD-invoice.xml") + 'Set the file relationship + attachment.Relationship = PdfAttachmentRelationship.Alternative + attachment.ModificationDate = DateTime.Now + attachment.Description = "About Syncfusion" + attachment.MimeType = "application/xml" + 'add attachment to the doucment + doc.Attachments.Add(attachment) + doc.Save("output.pdf") + + + + + + 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 + + + + 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) + + + + + + Releases all the font resources in multi-threading + + + + + Informs the document that the page labels were set. + + + + + Checks the pages presence. + + + + 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) + + + + + + Gets or sets the enable thread safe. This property is used to manage the PDF cache objects in multithreading. Default value is false. + + + To know more about refer this link + + + + //Set document range to be generated. + IEnumerable<int> works = Enumerable.Range(0, 100); + //Create PDF document in multi threading environment. + Parallel.ForEach(works, index => GeneratePDF(index)); + //Method for create PDF document. + private static void GeneratePDF(int index) + { + //Enable the thread safe in PDF document. + PdfDocument.EnableThreadSafe = true; + //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 instance for PDF standard font. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); + //Draw the text. + graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); + string name = Guid.NewGuid().ToString(); + //Save the document. + document.Save(name + ".pdf"); + //Close the document. + document.Close(true); + } + + + ' Set document range to be generated. + Dim works As IEnumerable(Of Integer) = Enumerable.Range(0, 100) + ' Create PDF document in multi-threading environment. + Parallel.ForEach(works, Sub(index) GeneratePDF(index)) + ' Method for creating a PDF document. + Private Sub GeneratePDF(index As Integer) + ' Enable the thread-safe mode in PDF document. + PdfDocument.EnableThreadSafe = 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 instance for the PDF standard font. + Dim font As New PdfStandardFont(PdfFontFamily.Helvetica, 20) + ' Draw the text. + graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) + Dim name As String = Guid.NewGuid().ToString() + ' Save the document. + document.Save(name + ".pdf") + ' Close the document. + document.Close(True) + End Sub + + + + + + Processes the page labels. + + + + + Embeds the RGB ICC ColorProfile to the document to attain PDF/A conformance. + + + + + Get the hash value from the image + + The image data. + + + + + 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. + + + + Clones pages and their resource dictionaries and adds them into the document. + + The loaded document. + The page being cloned. + The destinations. + page + + + + Add Acroform font resources + + The loaded document value. + + + + 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. + + The current index. + The total number. + The total number of pages progressed. + + + + Initializes a new instance of the class. + + The current index. + The total number. + The total number of pages progressed. + The number of changed pages. + + + + 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. + + + + + 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. + + + + + Varibale to store the PDF is WCAG compliant or not. + + + + + 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 + + + + + The delegade of the progress event handler. + + + + + Variable used to maintain fields have kids in imported page + + + + + Variable used to maintain fields are added in Form Field collection in imported PDF + + + + + The variable used to store the Optimized dictionary collection + + + + + variable used to maintain layers in loaded document + + + + + private variable to store base uri. + + + + + Specifies the licensing message is added or not. + + + + + Delegate. Is used for raising events after document saving. + + + + + 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 + + + + + + + Event. Rises when the document has been saved. + + + + + 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 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 + + + + If PDF is set as tagged, initializes StructTree in the catalog. + + The sender value. + The event aruguments value. + + + + Gets the bookmarks. + + + To know more about refer this link . + + + + //Create a new instance of PdfDocument class. + PdfDocument document = new PdfDocument(); + //Add the section. + PdfSection sec = document.Sections.Add(); + //Add pages to the section. + PdfPage page = document.Pages.Add(); + //Get boookmarks from pdf document. + PdfBookmarkBase outlines = document.Bookmarks; + //Add new bookmark. + PdfBookmark bookmark = outlines.Add("Section"); + for (int i = 0; i != 5; i++) + { + //Add pages to the section. + page = sec.Pages.Add(); + //Add new bookmark. + bookmark.Add("Page" + i); + //Set the destination for the created bookmark. + bookmark.Destination = new PdfDestination(page); + } + //Save and close the pdf document. + document.Save("Output.pdf"); + document.Close(true); + + + 'Create a new instance of PdfDocument class. + Dim document As PdfDocument = New PdfDocument() + 'Add the section. + Dim sec As PdfSection = document.Sections.Add() + 'Add pages to the section. + Dim page As PdfPage = document.Pages.Add() + 'Get boookmarks from pdf document. + Dim outlines As PdfBookmarkBase = document.Bookmarks + 'Add new bookmark. + Dim bookmark As PdfBookmark = outlines.Add("Section") + For i As Integer = 0 To 5 - 1 + page = sec.Pages.Add() + bookmark.Add("Page" + i) + bookmark.Destination = New PdfDestination(page) + Next + 'Save and close the document. + document.Save("Output.pdf") + document.Close(True) + + + Class + 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 + + + + + Gets the Optimized dictionary collection + + + + + Gets or sets the Base URI of the PDF document. + + + + //Create a new instance of PdfDocument class. + PdfDocument document = new PdfDocument(); + //Set the Base URI. + document.BaseUri = "https://www.syncfusion.com/"; + //Create a new page. + PdfPage page = document.Pages.Add(); + //Save the document. + document.Save("Output.pdf"); + //Close the document. + document.Close(true); + + + 'Create a new instance of PdfDocument class. + Dim document As PdfDocument = New PdfDocument() + 'Set the Base URI. + document.BaseUri = "https://www.syncfusion.com/" + 'Create a new page. + Dim page As PdfPage = document.Pages.Add() + 'Save the document. + document.Save("Output.pdf") + 'Close the document. + document.Close(True) + + + Class + + + + Wherther to Split the PDF with WCAG compliant + + + + + Gets the collection of JavaScript actions associated with the PDF document. + + + + // Create a new PDF document. + PdfDocument document = new PdfDocument(); + // Get the JavaScript collection from the document. + PdfDocumentJavaScriptCollection javaScriptCollection = document.DocumentJavaScripts; + // Create a new JavaScript action that shows an alert with the message "Hello World!!!". + PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); + //Set name of the JavaScript action + javaScriptAction.Name = "Test"; + // Add the JavaScript action to the collection. + javaScriptCollection.Add(javaScriptAction); + // Remove the JavaScript action from the collection. + javaScriptCollection.Remove(javaScriptAction); + // Insert the JavaScript action at the first position in the collection. + javaScriptCollection.Insert(0, javaScriptAction); + // Clear all JavaScript actions from the collection. + javaScriptCollection.Clear(); + // Save the PDF document to a file named "Output.pdf". + document.Save("Output_Creation.pdf"); + + + 'Create a new PDF Document. + Dim document As PdfDocument = New PdfDocument + 'Get the JavaScript collection from the document. + Dim javaScriptCollection As PdfDocumentJavaScriptCollection = document.DocumentJavaScripts + 'Create a new JavaScript action that shows an alert with the message "Hello World!!!". + Dim javaScriptAction As PdfJavaScriptAction = New PdfJavaScriptAction("app.alert(""Hello World!!!"")") + 'Set name of the JavaScript action + javaScriptAction.Name = "Test" + ' Add the JavaScript action to the collection. + javaScriptCollection.Add(javaScriptAction) + ' Remove the JavaScript action from the collection. + javaScriptCollection.Remove(javaScriptAction) + ' Insert the JavaScript action at the first position in the collection. + javaScriptCollection.Insert(0, javaScriptAction) + ' Clear all JavaScript actions from the collection. + javaScriptCollection.Clear + ' Save the PDF document to a file named "Output.pdf". + document.Save("Output_Creation.pdf") + + + + + + Merges the specified source documents with PdfMergeOptions 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. + customize the merging PDF. + The options contain Optimizing resources. + The source documents. + The document containing merged documents. + + + // Destination PDF document + PdfDocument destDoc = new PdfDocument(); + // Source PDF documents + string[] source = { "Src1.pdf", "Src2.pdf" }; + PdfMergeOptions option = new PdfMergeOptions(); + option.OptimizeResources = true; + //Merge the source pdf document. + PdfDocumentBase.Merge(destDoc, option, source); + destDoc.Save("Merge.pdf"); + + + ' Destination PDF document + Dim destDoc As PdfDocument = New PdfDocument() + ' Source PDF documents + Dim [option] As PdfMergeOptions = New PdfMergeOptions() + [option].OptimizeResources = True + PdfDocumentBase.Merge(destDoc, [option], source) + 'Merge the source pdf document. + PdfDocumentBase.Merge(destDoc, source) + destDoc.Save("Merge.pdf") + + + Class + + + + 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 with PdfMergeOptions. + + 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. + customize the merging PDF. + The options contain Optimizing resources. + + + // Destination PDF document + PdfDocument destDoc = new PdfDocument(); + // Source PDF documents + string[] source = { "Src1.pdf", "Src2.pdf" }; + PdfMergeOptions option = new PdfMergeOptions(); + option.OptimizeResources = true; + //Merge the source pdf document. + destDoc = PdfDocument.Merge(source, option); + 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. + Dim [option] As PdfMergeOptions = New PdfMergeOptions() + [option].OptimizeResources = True + destDoc = PdfDocument.Merge(source, [option]) + 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) + + + + + + Gets the checkbox style. + + checkbox style of the field. + + + + Create the checkbox style. + + + + + Gets the border style. + + Border style of the field. + + + + Creates the border style. + + The bs. + The border style. + + + + Gets border pen. + + The border style. + + + + Gets DashPatern. + + The DashPatern. + + + + Gets border width. + + The boder width. + + + + Gets the font colour. + + The default appearance. + The colour of the text value. + + + + Parses the float. + + The text. + + + + + Creates the color. + + The array. + + + + + 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. + + + + Called when a page is saved. + + The page. + + + + Raises the Progress event. + + The + instance containing the event data. + + + + 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 + + The named destination value. + The page value. + + + + + Get the Destination + + The page value. + The destination value. + + + + + 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. + + + + Resets the progress mechanism. + + + + + Sets the progress mechanism. + + + + + Create hash value from the current stream + + The stream value. + + + + + Get a hash algorithm based on FIPS mode + + + + + Gets the Base URI from the document catalog. + + + + + Sets the Base URI to the document catalog. + + + + + 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. + + + + Represents to customize the support of merging PDF documents. + + + + // Destination PDF document + PdfDocument destDoc = new PdfDocument(); + // Source PDF documents + string[] source = { "Src1.pdf", "Src2.pdf" }; + PdfMergeOptions option = new PdfMergeOptions(); + option.OptimizeResources = true; + //Merge the source pdf document. + PdfDocumentBase.Merge(destDoc, option, 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. + Dim [option] As PdfMergeOptions = New PdfMergeOptions() + [option].OptimizeResources = True + PdfDocumentBase.Merge(destDoc, [option], source) + destDoc.Save("Merge.pdf") + + + Class + Class + + + + The variable to indicates whether resource optimization needed. + + + + + The variable to indicates whether final PDF externs margin. + + + + + The variable to indicates whether the tags need to be merged or not. + + + + + Gets or sets to optimize resources while merging PDF documents. + + /// + + // Destination PDF document + PdfDocument destDoc = new PdfDocument(); + // Source PDF documents + string[] source = { "Src1.pdf", "Src2.pdf" }; + PdfMergeOptions option = new PdfMergeOptions(); + option.OptimizeResources = true; + //Merge the source pdf document. + PdfDocumentBase.Merge(destDoc, option, 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. + Dim [option] As PdfMergeOptions = New PdfMergeOptions() + [option].OptimizeResources = True + PdfDocumentBase.Merge(destDoc, [option], source) + destDoc.Save("Merge.pdf") + + + + + + When ExtendMargin is set to true, then specified margin is considered while importing the pages from the existing document. + + + + // Destination PDF document + PdfDocument destDoc = new PdfDocument(); + 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. + destDoc.PageSettings.Margins = margin; + // Source PDF documents + string[] source = { "Src1.pdf", "Src2.pdf" }; + PdfMergeOptions option = new PdfMergeOptions(); + option.ExtendMargin = true; + //Merge the source pdf document. + PdfDocumentBase.Merge(destDoc, option, source); + destDoc.Save("Merge.pdf"); + + + ' Destination PDF document + Dim destDoc As PdfDocument = New PdfDocument() + 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. + destDoc.PageSettings.Margins = margin + ' Source PDF documents + Dim source() As String = { "Src1.pdf", "Src2.pdf" } + 'Merge the source pdf document. + Dim [option] As PdfMergeOptions = New PdfMergeOptions() + [option].ExtendMargin = True + PdfDocumentBase.Merge(destDoc, [option], source) + destDoc.Save("Merge.pdf") + + + + + + Gets or sets a value indicating whether accessibility tags should be merged when combining PDF documents. + + + + //Create a new PDF document. + PdfDocument finalDoc = new PdfDocument(); + //Creates a string array of source files to be merged. + string[] source = { "file1.pdf", "file2.pdf" }; + PdfMergeOptions mergeOptions = new PdfMergeOptions(); + //Enable MergeAccessibilityTags. + mergeOptions.MergeAccessibilityTags = true; + //Merges PDFDocument. + PdfDocument.Merge(finalDoc, mergeOptions, source); + //Save the final document. + finalDoc.Save("Sample.pdf"); + //Close the document. + finalDoc.Close(true); + + + 'Create a new PDF document. + Dim finalDoc As PdfDocument = New PdfDocument() + 'Creates a string array of source files to be merged. + Dim source As String() = {"file1.pdf", "file2.pdf"} + Dim mergeOptions As PdfMergeOptions = New PdfMergeOptions() + 'Enable MergeAccessibilityTags. + mergeOptions.MergeAccessibilityTags = True + 'Merges PDFDocument. + PdfDocument.Merge(finalDoc, mergeOptions, source) + 'Save the final document. + finalDoc.Save("Sample.pdf") + 'Close the document. + finalDoc.Close(True) + + + + + + Arguments for event raised when annotation added + + + + + Gets or sets annotation + + + + + Arguments for event raised when annotation removed + + + + + Gets or sets annotation + + + + + Arguments for event raised when Formfields added and items in FormFields + + + + + Gets or sets Formfields + + + + + Gets or sets Method Nmae + + + + + Gets or sets Index value + + + + + Gets or sets Formfields items + + + + + Gets or sets Formfields items + + + + + Arguments for event raised when Formfields removed and items in FormFields + + + + + Gets or sets Formfields + + + + + Gets or sets Method Nmae + + + + + Gets or sets Index value + + + + + Gets or sets Formfields items + + + + + Gets or sets Formfields items + + + + + Gets Form fields + + + + + Gets or sets Property Name + + + + + Gets or sets Index value + + + + + Represents to customize the support of splitting PDF documents. + + + + // Loads an existing document + PdfLoadedDocument ldoc = new PdfLoadedDocument("Input.pdf"); + PdfSplitOptions splitOptions = new PdfSplitOptions(); + splitOptions.SplitTags = true; + // Splits the source document + ldoc.Split("Output.pdf", splitOptions); + ldoc.Close(true); + + + ' Loads an existing document + Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + Dim splitOptions As PdfSplitOptions = New PdfSplitOptions + splitOptions.SplitTags = true + ' Splits the source document + ldoc.Split("Output.pdf", splitOptions) + ldoc.Close(true) + + + Class + + + + Gets or sets to split tags while splitting PDF documents. + + + + // Loads an existing document + PdfLoadedDocument ldoc = new PdfLoadedDocument("Input.pdf"); + PdfSplitOptions splitOptions = new PdfSplitOptions(); + splitOptions.SplitTags = true; + // Splits the source document + ldoc.Split("Output.pdf", splitOptions); + ldoc.Close(true); + + + ' Loads an existing document + Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + Dim splitOptions As PdfSplitOptions = New PdfSplitOptions + splitOptions.SplitTags = true + ' Splits the source document + ldoc.Split("Output.pdf", splitOptions) + ldoc.Close(true) + + + Class + + + + Gets or sets to RemoveUnusedResources while splitting PDF documents. + + + + // Loads an existing document + PdfLoadedDocument ldoc = new PdfLoadedDocument("Input.pdf"); + PdfSplitOptions splitOptions = new PdfSplitOptions(); + splitOptions.RemoveUnusedResources = true; + // Splits the source document + ldoc.Split("Output.pdf", splitOptions); + ldoc.Close(true); + + + ' Loads an existing document + Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + Dim splitOptions As PdfSplitOptions = New PdfSplitOptions + splitOptions.RemoveUnusedResources = true + ' Splits the source document + ldoc.Split("Output.pdf", splitOptions) + ldoc.Close(true) + + + Class + + + + Find Operator + + The token value. + + + + + 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. + + + + + Indicates the language of the document + + + + + Creates a new object. + + + + + Initializes a new instance of the class. + + The dictionary. + The catalog. + + + + 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 + + + + + Update Custom metadata to PdfDocumentInfo Dictionary + + The custom metadata value. + + + + Gets the dictionary. + + The dictionary. + + + + get or set the ZugFerdConformanceLevel + + + + + Gets or sets the Language. + + The Language. + + + //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.Language = "En-Us"; + 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.Language = "En-Us" + 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 + + + + Applies to attributes to attain PDF/X1a:2001 conformance. + + + + + Remove a specified key from the document information in a PDF document. + + + + //Load the existing PDF document. + PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); + //Remove the document information properties. + document.DocumentInformation.Remove("Title"); + document.DocumentInformation.Remove("Author"); + document.DocumentInformation.Remove("Subject"); + document.DocumentInformation.Remove("Keywords"); + document.DocumentInformation.Remove("Creator"); + document.DocumentInformation.Remove("Producer"); + document.DocumentInformation.Remove("ModDate"); + document.DocumentInformation.Remove("CreationDate"); + //Save the document + document.Save("DocumentInformation.pdf"); + document.Close(true); + + + + + + Remove the modification date from existing document. + + + + + Clear the document information in a PDF document. + + + + + Gets the element. + + + + + + CusotmMetadata used for add CustomMetadata to PDFDictionary + + + + + Add Cusotm MetaData to CustomMetadataDictionary + + + + + Remove the custom field from CustomMetadataDictionary,Dictionary,CustomSchema + + + + + Gets the the key value at present or not + + + + + Gets the current count CustomMetadataDictionary + + + + + Add the CustomMetadataDictionary + + + + + Get Enumerator of the CustomMetadataDictionary + + + + + Gets the dictionary. + + The dictionary. + + + + 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 + + + + + Notifies if TaggedPDF property is changed. + + + + + Indicates whether enable FileID or not + + + + + 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. + + + + 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 a value indicating whether the trailer Id is added or not to the PDF document. + + If true trailer Id is added to the PDF document, otherwise false. Default value is false + + + + 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 + + + + Create the OnPropertyChanged method to raise the event + + + + + 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 + + + + + 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 + + + + Initializes new instance of class + + + + + Initialize the new instance + + portfolio dictionary + + + + Initializes instance. + + + + + 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 + + The dictionary value. + + + + Gets attribute keys + + The array of attribute keys + + + + 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 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 + + + + + Get the field keys from schema field + + The array of field keys + + + + Initialize the instance of the class + + + + + Initialize the instance of the class + + The schema dictionary. + + + + 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. + + + + + 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; + + + + + 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 + + + + initialize the instance of the class + + + + + initialize the instance of the class + + schema field dictionary + + + + Initializes instance. + + + + + Gets the element. + + + + + + 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. + + + + + Gets or sets print duplex mode handling option to use when printing the file from the print dialog. + + + + + 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 sets print duplex mode handling option to use when printing the file from the print dialog. + + + + //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.Duplex = DuplexMode.DuplexFlipShortEdge; + //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.Duplex = DuplexMode.DuplexFlipShortEdge + '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. + + + + + + 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. + + + + + PDF version 2.0. + + + + + 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. + + + + + PDF/A-2 Standard is based on a PDF 1.7 (ISO 32000-1) + which provides support for transparency effects and layers + embedding of OpenType fonts + + + + //Create a new PDF document + PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A2B); + //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_A2B) + '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) + + + + + + PDF/A-3 Standard is based on a PDF 1.7 (ISO 32000-1) + which provides support for embedding the arbitrary file formats (XML, CSV, CAD, Word Processing documents) + + + + //Create a new PDF document + PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A3B); + //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_A3B) + '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) + + + + + + This PDF/A ISO standard [ISO 19005-1:2005] is based on Adobe PDF version 1.4 + and This Level A conformance was intended to increase the accessibility of conforming files for physically impaired users by allowing assistive software, + such as screen readers, to more precisely extract and interpret a file's contents. + + /// + + //Create a new PDF document + PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A1A); + //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, FontStyle.Regular, 12, false, true); + //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_A1A) + '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, FontStyle.Regular, 12, False, True) + '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) + + + + + + PDF/A-2 Standard is based on a PDF 1.7 (ISO 32000-1) + and This Level A conformance was intended to increase the accessibility of conforming files for physically impaired users by allowing assistive software, + such as screen readers, to more precisely extract and interpret a file's contents. + + /// + + //Create a new PDF document + PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A2A); + //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, FontStyle.Regular, 12, false, true); + //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_A2A) + '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, FontStyle.Regular, 12, False, True) + '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) + + + + + + PDF/A-2 Standard is based on a PDF 1.7 (ISO 32000-1) + and This Level U conformance represents Level B conformance (PDF/A-2b) with the additional requirement that all text in the document have Unicode mapping. + + /// + + //Create a new PDF document + PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A2U); + //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, FontStyle.Regular, 12, false, true); + //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_A2U) + '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, FontStyle.Regular, 12, False, True) + '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) + + + + + + PDF/A-3 Standard is based on a PDF 1.7 (ISO 32000-1) + which provides support for embedding the arbitrary file formats (XML, CSV, CAD, Word Processing documents) + and This Level A conformance was intended to increase the accessibility of conforming files for physically impaired users by allowing assistive software, + such as screen readers, to more precisely extract and interpret a file's contents. + + /// + + //Create a new PDF document + PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A3A); + //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, FontStyle.Regular, 12, false, true); + //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_A3A) + '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, FontStyle.Regular, 12, False, True) + '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) + + + + + + PDF/A-3 Standard is based on a PDF 1.7 (ISO 32000-1) + and This Level U conformance represents Level B conformance (PDF/A-3b) with the additional requirement that all text in the document have Unicode mapping. + + /// + + //Create a new PDF document + PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A3U); + //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, FontStyle.Regular, 12, false, true); + //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_A3U) + '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, FontStyle.Regular, 12, False, True) + '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) + + + + + + PDF/A-4 Standard is based on a PDF 2.0 (ISO 32000-2). The separate conformance levels a, b, and u are not used in PDF/A-4. Instead, PDF/A-4 encourages but does not require the addition of higher-level logical structures, and it requires Unicode mappings for all fonts. + + /// + + //Create a new PDF document + PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A4); + //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, FontStyle.Regular, 12, false, true); + //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_A4) + '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, FontStyle.Regular, 12, False, True) + '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) + + + + + + PDF/A-4E Standard is based on a PDF 2.0 (ISO 32000-2). PDF/A-4e is intended for engineering documents and acts as a successor to the PDF/E-1 standard. PDF/A-4e supports Rich Media and 3D Annotations as well as embedded files. + + /// + + //Create a new PDF document + PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A4E); + //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, FontStyle.Regular, 12, false, true); + //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_A4E) + '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, FontStyle.Regular, 12, False, True) + '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) + + + + + + PDF/A-4F Standard is based on a PDF 2.0 (ISO 32000-2). It allows embedding files in any other format. + + /// + + //Create a new PDF document + PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A4F); + //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, FontStyle.Regular, 12, false, true); + //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_A4F) + '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, FontStyle.Regular, 12, False, True) + '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) + + + + + + Specifies the ZugferdConformanceLevel + + + It supports only in PdfConformanceLevel Pdf_A3B + + + + //Creates a new PDF document. + PdfDocument doc = new PdfDocument(PdfConformanceLevel.Pdf_A3B); + //Add a page. + PdfPage page = doc.Pages.Add(); + //Set the ZugferdProfile. + doc.ZugferdConformanceLevel = ZugferdConformanceLevel.Basic; + //Create the PdfTrueTypeFont + PdfFont font = new PdfTrueTypeFont(new Font("arial", 12f, FontStyle.Regular), true); + page.Graphics.DrawString("Hello World", font, PdfBrushes.Black, PointF.Empty); + //Creates an attachment + PdfAttachment attachment = new PdfAttachment("ZUGFeRD-invoice.xml"); + //Set the file relationship + attachment.Relationship = PdfAttachmentRelationship.Alternative; + attachment.ModificationDate = DateTime.Now; + attachment.Description = "About Syncfusion"; + attachment.MimeType = "application/xml"; + //add attachment to the doucment + doc.Attachments.Add(attachment); + doc.Save("output.pdf"); + + + 'Creates a new PDF document. + Dim doc As New PdfDocument(PdfConformanceLevel.Pdf_A3B) + 'Add a page. + Dim page As PdfPage = doc.Pages.Add() + 'Set the ZugferdProfile. + doc.ZugferdConformanceLevel = ZugferdConformanceLevel.Basic + 'Create the PdfTrueTypeFont + Dim font As PdfFont = New PdfTrueTypeFont(New Font("arial", 12F, FontStyle.Regular), True) + page.Graphics.DrawString("Hello World", font, PdfBrushes.Black, PointF.Empty) + 'Creates an attachment + Dim attachment As New PdfAttachment("ZUGFeRD-invoice.xml") + 'Set the file relationship + attachment.Relationship = PdfAttachmentRelationship.Alternative + attachment.ModificationDate = DateTime.Now + attachment.Description = "About Syncfusion" + attachment.MimeType = "application/xml" + 'add attachment to the doucment + doc.Attachments.Add(attachment) + doc.Save("output.pdf") + + + + + + Represent the no Level + + + + + Represent the Basic Level, + which contains basic details and additional information included as free text. + + + + + Represent the Comfort Level, + The details are structured and fully automated. + + + + + Represent the Extend Level, + which contains still more structured data for exchanging invoice across different industry segments. + This level is fully automated and highly qualified XML + + + + + Represent the Minimum Level, + which contains basic invoice details and compatible with the French standard Factur-X + + Supported only in version ZUGFeRD 2.0 + + + + Represent the EN1 6931 Level, + The European standard supported in ZUGFeRD 2.0. + + Supported only in version ZUGFeRD 2.0 + + + + Represent the Basic_WL Level, + it does not contain any invoicing information and therefore does not represent VAT-conformant invoices, but in document level it contains accounting entries. + + Supported only in version ZUGFeRD 2.1 + + + + Specifies the ZUGFeRD versions supported. + + + It is supported only in PdfConformanceLevel Pdf_A3B conformance + + /// + + //Creates a new PDF document. + PdfDocument doc = new PdfDocument(PdfConformanceLevel.Pdf_A3B); + //Add a page. + PdfPage page = doc.Pages.Add(); + //Set the ZugferdProfile. + doc.ZugferdVersion = ZugferdVersion.ZugferdVersion1_0; + //Set the ZugferdProfile. + doc.ZugferdConformanceLevel = ZugferdConformanceLevel.Basic; + //Create the PdfTrueTypeFont + PdfFont font = new PdfTrueTypeFont(new Font("arial", 12f, FontStyle.Regular), true); + page.Graphics.DrawString("Hello World", font, PdfBrushes.Black, PointF.Empty); + //Creates an attachment + PdfAttachment attachment = new PdfAttachment("ZUGFeRD-invoice.xml"); + //Set the file relationship + attachment.Relationship = PdfAttachmentRelationship.Alternative; + attachment.ModificationDate = DateTime.Now; + attachment.Description = "About Syncfusion"; + attachment.MimeType = "application/xml"; + //add attachment to the doucment + doc.Attachments.Add(attachment); + doc.Save("output.pdf"); + + + 'Creates a new PDF document. + Dim doc As New PdfDocument(PdfConformanceLevel.Pdf_A3B) + 'Add a page. + Dim page As PdfPage = doc.Pages.Add() + 'Set the ZugferdProfile. + doc.ZugferdVersion = ZugferdVersion.ZugferdVersion1_0 + 'Set the ZugferdProfile. + doc.ZugferdConformanceLevel = ZugferdConformanceLevel.Basic + 'Create the PdfTrueTypeFont + Dim font As PdfFont = New PdfTrueTypeFont(New Font("arial", 12F, FontStyle.Regular), True) + page.Graphics.DrawString("Hello World", font, PdfBrushes.Black, PointF.Empty) + 'Creates an attachment + Dim attachment As New PdfAttachment("ZUGFeRD-invoice.xml") + 'Set the file relationship + attachment.Relationship = PdfAttachmentRelationship.Alternative + attachment.ModificationDate = DateTime.Now + attachment.Description = "About Syncfusion" + attachment.MimeType = "application/xml" + 'add attachment to the doucment + doc.Attachments.Add(attachment) + doc.Save("output.pdf") + + + + + + Represent the ZUGFeRD version 1.0 + + + + + Represent the ZUGFeRD version 2.0 + + + + + Represent the ZUGFeRD version 2.1 + + + + + Specifies the file relationship of attachment. + + + + //Creates a new PDF document. + PdfDocument doc = new PdfDocument(PdfConformanceLevel.Pdf_A3B); + //Add a page. + PdfPage page = doc.Pages.Add(); + //Set the ZugferdProfile. + doc.ZugferdConformanceLevel = ZugferdConformanceLevel.Basic; + //Create the PdfTrueTypeFont + PdfFont font = new PdfTrueTypeFont(new Font("arial", 12f, FontStyle.Regular), true); + page.Graphics.DrawString("Hello World", font, PdfBrushes.Black, PointF.Empty); + //Creates an attachment + PdfAttachment attachment = new PdfAttachment("ZUGFeRD-invoice.xml"); + //Set the file relationship + attachment.Relationship = PdfAttachmentRelationship.Alternative; + attachment.ModificationDate = DateTime.Now; + attachment.Description = "About Syncfusion"; + attachment.MimeType = "application/xml"; + //add attachment to the doucment + doc.Attachments.Add(attachment); + doc.Save("output.pdf"); + + + 'Creates a new PDF document. + Dim doc As New PdfDocument(PdfConformanceLevel.Pdf_A3B) + 'Add a page. + Dim page As PdfPage = doc.Pages.Add() + 'Set the ZugferdProfile. + doc.ZugferdConformanceLevel = ZugferdConformanceLevel.Basic + 'Create the PdfTrueTypeFont + Dim font As PdfFont = New PdfTrueTypeFont(New Font("arial", 12F, FontStyle.Regular), True) + page.Graphics.DrawString("Hello World", font, PdfBrushes.Black, PointF.Empty) + 'Creates an attachment + Dim attachment As New PdfAttachment("ZUGFeRD-invoice.xml") + 'Set the file relationship + attachment.Relationship = PdfAttachmentRelationship.Alternative + attachment.ModificationDate = DateTime.Now + attachment.Description = "About Syncfusion" + attachment.MimeType = "application/xml" + 'add attachment to the doucment + doc.Attachments.Add(attachment) + doc.Save("output.pdf") + + + + + + The original source material for the associated content + + + + + Represents information used to derive a visual presentation + + + + + Alternative representation of the PDF contents + + + + + supplemental representation of the original source or data that may be more easily consumable + + + + + Relationship is not known or cannot be described using one of the other values + + + + + 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. + + + + + Represent the types as string + + + + + Represent the type of the portfolio schema field as date + + + + + Represent the type of the portfolio schema field as number + + + + + Represent the type of the portfolio schema field as filename + + + + + Represent the type of the portfolio schema field as description + + + + + Represent the type of the portfolio schema field as moddate + + + + + Represent the type of the portfolio schema field as creationdate + + + + + Represent the type of the portfolio schema field as size + + + + + indicates the type of the portfolio view mode. + + + + + Represent the portfolio view mode as details + + + + + Represent the portfolio view mode as tile + + + + + Represent the portfolio view mode as hidden + + + + + 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 + + + + + Occurs prior to the rendering of every image in the document + + + ImagePreRenderEventArgs + + + + Flag to indicate PDF compression image extract + + + + + Holds origial image stream + + + + + Holds mask image stream + + + + + 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 + + + + + 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 + + + + + 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. + + + + + Gets XMP metadata 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 with enable metadata extraction. + PdfBitmap image = new PdfBitmap(File.OpenRead("Autumn Leaves.jpg"), true); + //Get image metadata + XmpMetadata metadata = image.Metadata; + //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 with enable metadata extraction. + Dim image As New PdfBitmap(File.OpenRead("Autumn Leaves.jpg"), true) + 'Get image metadata + Dim metadata As XmpMetadata = image.Metadata + 'Draw the image + graphics.DrawImage(image, 0, 0) + 'Save the document. + doc.Save("Output.pdf") + 'Close the document. + doc.Close(True) + + + + + + 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 + + + + 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 + + + + + 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 + + + + 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 + + + + + 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 + + + + 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 + + + + + Releasing, or resetting unmanaged resources. + + + + + 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 + + + + + + + WinAnsiEncoding Charcode table + + + + + Internal variable that holds cff glyphs + + + + + Gets or sets the value indicating whether the encoded text is hexa decimal string + + + + + Gets the Font Matrix + + + + + Gets the Font BBox + + + + + 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 + + + + + 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. + + Same font. + + 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 + + decoded text + rendered string + 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 + + + + Organizes the hex string enclosed within the hexa brackets + + Mapping string in the map table of the document + list of HEX entries in the string + + + + 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 + + + + Releasing, or resetting unmanaged resources. + + + + + Gets or sets the rendered text. + + + + + Gets or sets the index and width for encode text (only utilized when different encode text decoded as same character). + + + + + 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. + + + + + Gets the PDF page resources. + + + + + Gets or sets the value associated with the key. + + + + + 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 or sets the value that indicating the extracting of text data. + + + + + Gets or sets the value that indicating the extracting of text data. + + + + + Gets or sets the value that indicating the extracting of text data. + + + + + 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. + + + 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. + + + + 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. + + + + Gets the element. + + + + + + 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. + + + + + + Implements PDF Exponential Interpolation Function. + + + + + 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. + + + + + Gets or sets the function result when x = 0. + + + + + Gets or sets the function result when x = 1. + + + + + Gets or sets the Exponent. + + + + + TO calulate the interpolation exponent. + + singleArray1 + + + + + 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. + + + + + + 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. + + + + + Collection of the cached objects. + + + + + Stores the similar objects. + + + + + Initializes a new instance of the class. + + + + + Gets the at the specified index. + + + + + + Gets the font offset table. + + The font offset table. + + + + Gets the font data. + + The font data. + + + + 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. + + + + 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 + + + + 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. + + + + + 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. + + + + + 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. + + File name. + + + The name of the file. + + + + Saves object. + + + + + 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. + + + + 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. + + + + + 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. + + + + Wrapped SortedListEx. + + + + + Sync object. + + + + + Initializes a new instance of the class. + + The list. + + + + 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 + + + + 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. + + + + + 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. + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + List for which this collection was created. + + + + + Creates KeyList for specified SortedListEx. + + SortedListEx for which KeyList must be created. + + + + 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. + + + + + 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. + + + + Gets or sets the key at the specified index. + + + + + 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. + + + + 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. + + + + + 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. + + + + + 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. + + + + Gets or sets the value at the specified index. + + + + + 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. + + + + 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. + + + + + 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. + + + + + 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. + + + + Wrapped SortedListEx. + + + + + Sync object. + + + + + Creates SyncSortedListEx for specified SortedListEx. + + SortedListEx that will be wrapped. + + + + 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. + + + + + 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. + + + + + 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. + + + + Returns key of the current element. Read-only. + + + When the current version is not equal to the SortedListEx version + or if current is false. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + 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. + + + + + 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. + + + + Gets or sets the key at the specified index. + + + + + 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. + + + + 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. + + + + + 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. + + + + + 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. + + + + Gets or sets the value at the specified index. + + + + + 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. + + + + 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. + + + + Represents the image to PDF converter + + + + + Default positon of the image + + + + + Default size of the page + + + + + Holds that margin of the page + + + + + Gets or sets the position of the image + + + + + Gets or sets the size of the PDF page + + + + + Gets or sets the margin of the PDF page + + + + + Initializes the new instance of the image to PDF converter class + + + + + Get the page to draw the image + + PDF document + The image + + + + + Draw the image using position of the page + + The image + The page + + + + Convert image to PDF document + + Image file path + PDF document + + + + Convert image to PDF document + + System.Drawing.Image instance to convert PDF + PDF document + + + + Convert images to PDF document + + Collection of image file path + PDF document + + + + Convert images to PDF document + + Collection of images + PDF document + + + + Convert image to PDF document + + The image stream + PDF document + + + + Convert images to PDF Document + + Collection of image streams + PDF document + + + + Dictionary of the objects names. + + + + + Dictionary of the properties names. + + + + + 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. + + + + + 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. + + The pdf color. + The pdf name. + + + + Adds the specified Dictionary to the resources. + + The pdf color. + The pdf name. + + + + Reader of the big endian data. + + + + + Size of Int32 type. + + + + + Size of Int16 type. + + + + + Size of long type. + + + + + Reader encoding. + + + + + Fraction coefficient for getting fixed type. + + + + + Binary reader. + + + + + Gets or sets binary reader. + + + + + Gets base stream. + + + + + 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. + + + + Writes data in BigEndian order. + + + + + Size of Int32 type. + + + + + Size of Int16 type. + + + + + Size of long type. + + + + + Reader encoding. + + + + + Fraction coefficient for getting fixed type. + + + + + Internal buffer. + + + + + Current position. + + + + + Gets data written to the writter. + + + + + Gets position of the internal buffer. + + + + + 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. + + + + 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. + + + + + Read the initial number of the subsection. + + + + + Internal variable to cross check the initial number of subsection. + + + + + Read the total number of the subsection. + + + + + Check whether the PDF document objects are altered + + + + + Repairing wrong offset values + + + + + Read the whitespaces in front of the document + + + + + Check whether the PDF document completely closed or not + + + + + Returns the offset of an obkect specified. + + + + + Returns the collection of all object offsets and list of object information. + + + + + 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. + + + + + Check whether the PDF document objects are altered + + + + + Gets or sets the encryptor. + + + + + Gets the prev offset. + + + + + Gets the eof offset. + + + + + Searches for all instances of reference tables and parses them. + + The stream with the document. + The high-level cross table. + + + + Searches for all instances of reference tables and parses them. + + The stream with the document. + The high-level cross table. + Indicates is Fdf export or not. + + + + 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. + + The archieve 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. + + + + + 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. + + + + + Gets a number of an object stream that holds the object. + + + + + Gets the index of the object within the archive. + + + + + Gets the archive 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. + + + + 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. + + + + + Gets the type of the object. + + + + + The PDF reader wich can read from the archive. + + + + + The offset of the object. + + + + + Gets the archive information. + + + + + 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. + + + + + + Implements functionality of PDF object stream (or PDF + archive). + + + + + + + Holds sorted indices. + + + + + + + Holds the objects. + + + + + + + PDF stream writer. + + + + + + + PDF stream writer. + + + + + + + The current document. + + + + + + + Gets the count of objects. + + + + + + + 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. + + + + + + + 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 + + + + + internal varible to conform bookmark + + + + + 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. + + + + + Check whether the PDF document completely closed or not + + + + + Varibale to store the PDF is WCAG compliant or not. + + + + + Variable to store the clone object reference. + + + + + Gets or sets the current object is PdfEncryptor or not. + + + + + PDF is WCAG compliant 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. + + + + + Gets the PdfReference of cloned object. + + + + + 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 stream which contains the document. + Repair the crosstable witch contains wrong offsets. + + + + 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. + + + + The costructor of the table. + + Indicates is Fdf export or not + A stream which contains the document. + + + + 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. + + + + Checks the dictionary if it is an outline type. + + + + + 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'. + + + + + IPdfPrimitive decyption process + + The result value. + + + + Decrypt the object + + The encrypted object. + The result. + + + + 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. + + + + + Get the FileID value. + + Two strings of array + + + + + + Saves all objects in the collection. + + Writer object. + + + + Save object primitivies + + The object value. + The pdf writer value. + + + + 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. + + + + Check Stream End With NewLine + + The pdf writer value. + + + + + 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. + + + + 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. + + + + + Gets the object number. + + + + + Gets the offset. + + + + + 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. + + + + 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. + + + + + 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. + + + + + 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. + + + + + Moves the buffer index back. + + + + + Gets the next token. + + + + + + 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. + + + + + Synchronization object. + + + + + Gets the at the specified index. + + + + + Gets the count. + + + + + 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. + + + + Look For object Index + + The primitive object value. + + + + + Looks through the collection for the object specified by the reference. + + The reference. + The index of the objec. + + + + 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. + + + + + Gets a value indicating whether the object has been modified. + + + + + Gets the reference. + + + + + Gets 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. + + + + + 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. + + + + 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 + + + + + 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. + + + + 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. + + + + + Internal variable to indicate the string is certificate string or not. + + + + + Internal variable to indicate force rebuild + + + + + Initializes a new instance of the class. + + The cross-reference table. + The reader. + The cross table. + + + + Gets or sets the current object is PdfEncryptor or not. + + + + + Gets the lexer object of the current parser + + + + + Gets or sets the force rebuild + + + + + Gets the current position of PDF reader + + + + + Parses a PDF object. + + The offset to the object. + The object. + + + + Seek and Match offset Object + + the offset value. + + + + 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 + + The new objects. + The cross table. + + + + Create PdfParser + + The data. + + + + Find object values + + The line. + The position. + + + + + Find first object to identify fast web view PDF documents + + The new object. + The cross table. + + + + + Reads a simple object from the stream. + + + + + + Reads the object flag. + + A string that holds the flag. + + + + Starts from the offset specified. + + The offset. + + + + Read fdf object + + + + + 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. + + + + + Gets 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. + + The lex postion. + The vlue for check stream length. + + + + + Reads the pair. + + The well filled pair on success or Pair.Emty on failure. + + + + Find text contains unprocessed control character and non-ascii character + + The text value. + + + + + decode escape sequence + + The text value. + The unicode boolean value. + + + + Checks if the string is ended with Byte Order Mark + + The text value. + True if the string is ended with Byte Order Mark + + + + Process BigEndianUnicode escape sequence + + The text value. + The unicode value. + + + + Process Big Indian Escapes + + The text value. + + + + + 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. + + + + + Sets or gets the position within the stream. + + + + + Returns the underlying stream. + + + + + Initialize an instance of the PDFReader class. + + The stream. + + + + Disposes the object. + + The disposing boolean value. + + + + Closes the object. + + + + + Reads a single line from the stream. + + The line read. + + + + Check whitespace + + The character + The white space. + + + + + 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. + + + + Helper class to write PDF graphic streams easily. + + + + + 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. + + The pdf color space. + The name. + + + + 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. + + The tag value. + + + + 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. + + The comment value. + + + + 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. + + The color. + The color space. + if it is for for stroking, set to true. + if it is to check, set to true. + + + + 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. + + + + Gets or sets the current position within the stream. + + + + + Gets stream length. + + + + + + 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. + + + + 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. + + The structure type + Alternate text. + Page + The bounds value. + + + + + Adds the specified element to the document structure tree. + + The structure type + Alternate text. + The bounds value. + + + + + 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 + + + + Group the same structure element + + Th epdf struct element. + + + + Map the elements into the array + + The current element. + The pdf struct element. + + + + 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 + + The element. + + + + + Indicates whether the tag is identical + + The tag value. + 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. + + The tag value. + 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 + + + + Gets the stream. + + + + + Initializes a new instance of the class. + + The stream. + + + + Performs application-defined tasks associated with freeing, + releasing, or resetting unmanaged resources. + + + + + Closes this instance. + + + + + Gets or Sets the document required for saving process. + + + + + Gets or sets the current position within the stream. + + + + + Gets stream length. + + + + + 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. + + + + 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. + + + + + Defines the basic interace of the various writers. + + + + + Gets or sets the current position within the stream. + + + + + Stream length. + + + + + The document required for saving process. + + + + + 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. + + + + 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. + + + + + 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. + + + + + Specifies raster operation. + + + + + Represents raster operation as BLACK. + + + + + Represents raster operation as NOTMERGEPEN. + + + + + Represents raster operation as MASKNOTPEN. + + + + + Represents raster operation as NOTCOPYPEN. + + + + + Represents raster operation as MASKPENNOT. + + + + + Represents raster operation as NOT. + + + + + Represents raster operation as XORPEN. + + + + + Represents raster operation as NOTMASKPEN. + + + + + Represents raster operation as MASKPEN. + + + + + Represents raster operation as NOTXORPEN. + + + + + Represents raster operation as NOP. + + + + + Represents raster operation as MERGENOTPEN. + + + + + Represents raster operation as COPYPEN. + + + + + Represents raster operation as MERGEPENNOT. + + + + + Represents raster operation as MERGEPEN. + + + + + Represents raster operation as WHITE. + + + + + 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. + + + + 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 + + + + 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. + + + + Represents information about various predefined page sizes. + + + + //Create new document. + PdfDocument document = new PdfDocument(); + //Set page size 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. + + + + + 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 + + + + + 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 + + + + 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 + + + + Gets the index of the page in the document. + + The current page. + Index of the page in the document if exists, -1 otherwise. + + + //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 from new document. + PdfDocumentPageCollection docPages = document.Pages; + for (int i = 0; i != docPages.Count; i++) + { + //Get index for all the pages from source document. + int index = docPages.IndexOf(docPages[0]); + } + //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) + 'Get all the pages from new document. + Dim docPages As PdfDocumentPageCollection = document.Pages + For i As Integer = 0 To docPages.Count - 1 + ' Get index for all the pages from source document. + Dim index As Integer = docPages.IndexOf(docPages(0)) + Next i + '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. + + + + + Section collection enumerator. + + + + + Parent page collection. + + + + + Current index of the enumerator. + + + + + Initializes a new instance of the class. + + The section collection. + + + + Gets the current 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. + + + + + 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. + + + + + 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. + + + + 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. + + + + + 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 + + + + + private variable to store list of redaction objects + + + + + Holds the page's structure elements. + + + + + Collection of remove popup annotation + + + + + 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 collection of the page's redactions. + + + list of redaction objects + + + + //Load the document. + PdfLoadedDocument lDoc = new PdfLoadedDocument("input.pdf"); + //Get the first page from the document. + PdfLoadedPage page = lDoc.Pages[0] as PdfLoadedPage; + //Create a redaction object + PdfRedaction redaction = new PdfRedaction(new RectangleF(40, 40, 50, 20)); + //Set fill color for the redaction bounds + redaction.FillColor = System.Drawing.Color.Green; + //Add redaction object into redaction collection of loaded page + page.Redactions.Add(redaction); + //Save and Close the document. + lDoc.Save("sample.pdf"); + lDoc.Close(true); + + + 'Load the document. + Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + //Create a redaction object + Dim redaction As PdfRedaction = New PdfRedaction(New RectangleF(40, 40, 50, 20)) + //Set fill color for the redaction bounds + redaction.FillColor = Color.Green + //Add redaction object into collection + page.Redactions.Add(redaction) + 'Save the document. + lDoc.Save("sample.pdf") + lDoc.Close(True) + + + + + + Gets the media box of the PDF page (Read only). + + + The RectangleF that represents the media box of the page, which is intended to be displayed or printed. + + + Media box is only read only, we cann't set value for loaded page Media 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 Media box value. + RectangleF rect = lpage.MediaBox; + //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 Media box value. + Dim rect As RectangleF = lpage.MediaBox + 'Save and Close the document. + document.Save("Output.pdf") + document.Close(True) + + + 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 ColorSpace details(Read only). + + + + //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. + string colorSpace = page.ColorSpace; + //Save and close the document. + document.Save("Output.pdf"); + document.Close(true); + + + Class + + + + Gets the cross table. + + + + + Add redaction to the PDF page. + + + + //Load the existing PDF document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream); + //Create a redaction object + PdfRedaction redaction = new PdfRedaction(new RectangleF(343, 167, 100, 25), Color.Black); + //Add redaction object into redaction collection of loaded page + page.AddRedaction(redaction); + //Redact the contents from PDF document. + loadedDocument.Redact(); + //Creating the stream object + MemoryStream stream = new MemoryStream(); + //Save the document into stream. + loadedDocument.Save(stream); + //Close the documents. + loadedDocument.Close(true); + + + 'Load the existing PDF document + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument(docStream) + 'Create a redaction object + Dim redaction As PdfRedaction = New PdfRedaction(New RectangleF(343, 167, 100, 25), Color.Black) + 'Add redaction object into redaction collection of loaded page + page.AddRedaction(redaction) + 'Redact the contents from PDF document. + loadedDocument.Redact() + 'Creating the stream object + Dim stream As MemoryStream = New MemoryStream() + 'Save the document into stream. + loadedDocument.Save(stream) + 'Close the document. + loadedDocument.Close(True) + + + + + + Gets the resources and modifies the page dictionary. + + Pdf resources. + + + + Parsing Xobject dictionary to get current page images + + The page content. + The xobject. + The xobhjects. + + + + Gets or sets the terminal fields. + + + + + Gets the origin coordinate of the loaded page + + + + + Gets or sets the array of annotation reference + + + + + Gets the collection of structure elements in the loaded PDF page. Structure elements represent logical units of content in the page, such as headings, paragraphs, and tables. + + The logical structure hierarchy in a PDF document is composed of a tree of structure elements, with the root element at the top and the individual content items at the leaves. Each page in the document may contain a separate logical structure hierarchy, which is represented by the collection of structure elements returned by this property. + + + FileStream fileStream = File.OpenRead("TaggedPDF.pdf"); + //Load existing PDF document. + PdfLoadedDocument document = new PdfLoadedDocument(fileStream); + //Get the structure element root from document. + PdfStructureElement rootElement = document.StructureElement; + //Get the first page from the document. + PdfLoadedPage loadedPage = document.Pages[0] as PdfLoadedPage; + //Get the structure elements associated with the page. + PdfStructureElement[] pageElements = loadedPage.StructureElements; + //Get the first element from the page. + PdfStructureElement element = pageElements[0]; + //Get the element properties. + string abbrevation = element.Abbrevation; + string ActualText = element.ActualText; + string AlternateText = element.AlternateText; + string Language = element.Language; + int Order = element.Order; + PdfTagType TagType = element.TagType; + string Title = element.Title; + ScopeType scope = element.Scope; + //Gets the parent and child for first element. + PdfStructureElement parent = element.Parent; + //Gets the child elements for the element. + PdfStructureElement[] child = element.ChildElements; + //Gets the page bounds for the element. + RectangleF bounds = element.Bounds; + //Save the document. + MemoryStream stream = new MemoryStream(); + document.Save(stream); + document.Close(true); + + + Dim fileStream As FileStream = File.OpenRead("TaggedPDF.pdf") + //Load existing PDF document. + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileStream) + //Get the structure element root from document. + Dim rootElement As PdfStructureElement = document.StructureElement + //Get the first page from the document. + Dim loadedPage As PdfLoadedPage = CType(document.Pages(0),PdfLoadedPage) + //Get the structure elements associated with the page. + Dim pageElements() As PdfStructureElement = loadedPage.StructureElements + //Get the first element from the page. + Dim element As PdfStructureElement = pageElements(0) + //Get the element properties. + Dim abbrevation As String = element.Abbrevation + Dim ActualText As String = element.ActualText + Dim AlternateText As String = element.AlternateText + Dim Language As String = element.Language + Dim Order As Integer = element.Order + Dim TagType As PdfTagType = element.TagType + Dim Title As String = element.Title + Dim scope As ScopeType = element.Scope + //Gets the parent and child for first element. + Dim parent As PdfStructureElement = element.Parent + //Gets the child elements for the element. + Dim child() As PdfStructureElement = element.ChildElements + //Gets the page bounds for the element. + Dim bounds As RectangleF = element.Bounds + //Save the document. + Dim stream As MemoryStream = New MemoryStream + document.Save(stream) + document.Close(true) + + + + + + Gets the structure elements in the page. + + The pdf struct element. + + + + Initializes a new instance of the class. + + The document. + The cross-reference table. + The page's dictionary. + + + + Raises before the page saves. + + + + + 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. + + + + Removes field and kids annotation from dictionaries. + + The field. + + + + Remove the review history + + The annotation. + + + + Type cast and get annotaion Reviewhistory + + The annotation. + + + + Type cast and get annotaion comments + + The annotation. + + + + Removes all the reference for particular object + + The annotation need to be removed + + + + Gets the page template bounds collection + + + + + Gets the documents widget reference collection + + + + + + Retrieves the terminal annotations. + + + + + 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 + + The font dictionary value. + + + + + 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. + + + + Calculates the bounds from dictionary bounds values. + + X Coordinate + Y Coordinate + Width + Height + Calculated Bounds + + + + Gets the cropbox from dictionary. + + + + + 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. + + + + + Gets the number of from collection (Read only). + + The count. + + + + Gets the at the specified index (Read only). + + + + + + Add the to the collection + + The pdf page label. + + + + Gets the element. + + + + + 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 + + + + 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. + + + + 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. + + + + 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. + + + + 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. + + + + + Flag to initialize graphics + + + + + Local variable to store the Font Names. + + + + + Local variable to store the Font Refences. + + + + + Local variable to store the Fontcollection. + + + + + Local variable to store page template. + + + + + 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 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 + + + + + Indicate variable to store if page is tagged. + + + + + Indicate variable to store existing annotations reference. + + + + + Indicate variable to store content mapped tag ID. + + + + + Indicate variable to store interactive objects mapped tag ID. + + + + + Local variable to store if page updated. + + + + + Internal variable to store image count for the page. + + + + + The variable is used to hold destination document while merging PDF + + + + + Holds the abbreviation collection + + + + + Holds the mcid and text elements + + + + + Holds the mcid and figure bounds + + + + + Local variable to store resource information + + + + + Local variable to store information about images. + + + + + 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. + + + + + 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 + + + + Clear the page resource and record collection + + + + + 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 or sets the PDF page rotation. + + + 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. + + + + + Gets or Sets the Destination document + + + + + PDF is WCAG compliant or not + + + + + Gets the Imported Annotation Reference + + + + + Gets the Content Type marked MCID + + + + + Gets the Object Type marked Obbjects + + + + + 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) + + + + + + Get page graphics. + + + + + Return true, when the page contains colored content. + + + + + Gets the PdfLoadedPage is blank or not;Default value is false + + + + //load the existing pdf document + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); + //set the bool value + bool value = true; + //load first page + bool page = loadedDocument.Pages[0].IsBlank; + //return the bool value of IsBlank property + page.Equals(value); + //close the loaded document + loadedDocument.Close(true) + + + 'load the existing pdf document. + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + 'set the bool value + Dim value As Boolean = True + 'load first page. + Dim page As Boolean = loadedDocument.Pages(0).IsBlank + 'return the bool value of IsBlank property. + page.Equals(value) + 'close the loaded document. + 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. + + + + Extracts text from the page of PDF document with lines and words collection. + + Holds the lines with bounds in the page. + 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 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) + + + + + + Remove the image from PDF page in existing PDF document + + + + //Load an existing PDF. + PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName); + //Load first page. + PdfPageBase pageBase = loadedDocument.Pages[0]; + //Extract images from first page. + PdfImageInfo imageInfo = loadedDocument.Pages[0].ImagesInfo[0]; + //Remove the Image. + loadedDocument.Pages[0].RemoveImage(imageInfo); + // Save the document. + loadedDocument.Save("output.pdf"); + //close the document + loadedDocument.Close(true); + + + 'Load an existing PDF + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument(fileName) + 'Load first page. + Dim pageBase As PdfPageBase = loadedDocument.Pages(0) + 'Extract images from first page. + Dim imageInfo As PdfImageInfo = loadedDocument.Pages(0).ImagesInfo(0) + 'Remove the Image. + loadedDocument.Pages(0).RemoveImage(imageInfo) + ' Save the document. + loadedDocument.Save("output.pdf") + 'close the document + loadedDocument.Close(True) + + + + + + specifies whether check skip node. + + + + + Regenerate the image if the image stream is disposed + + The image + Name of the image to regenerate + + + + Get marked text content and bounds + + The mcids value. + The abbreviation. + The bounds value. + + + + + Get tagged content bounds + + The abbreviation. + The mcid value. + The object type. + + + + + Gets the resources and modifies the page dictionary. + + Pdf resources. + + + + Sets the resources. + + The resources object. + + + + Gets the wrapped element. + + + + + Sets the progress. + + + + + Resets the progress. + + + + + 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 + + The xobject data. + re-initialized Optical content + + + + Re-initialize image External object references + + The image data. + + + + 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. + + + + Obtain Field Count + + The loaded document. + + + + + Add Field Parent Dictionary + + The annotation dictionary. + The loaded document. + + + + 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. + + + + Remove duplicate dictionary from Document + + The dictionary. + + + + Remove identical image and font resources from page resource + + Pdf resources. + new page. + + + + Check is Repeated Resource + + Pdf reference holder. + + + + + Remove identical font resources from page resource + + Pdf dictionary. + new page. + + + + Create hash from the current stream and returns true if present in the collection + + Image stream. + Pdf page. + + + + + Add hash value to resource collection + + The pdf stream. + The new page. + The xobject value. + The xobject dictionary. + The xobject key. + + + + Validated XObject dictionary is already optimized or not + + existing dictionary + current dictionary + + + + + Optimizing descendant fonts + + + + + 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. + + + + + Variable used to hold the start page index + + + + + 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 + + + + Get or Set the Start page index for page label + + + + + 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 the element. + + + + + + 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. + + + + + Indicates layer presented in xObject resources + + + + + 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 + + + + + specifies whether visibility 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 + + + + + Adds a new PDF Page layer. + + The + + + + Gets the collection of , this collection handle by the class + + The used to handle collection of + + + + 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 + + + + Gets the wrapped element. + + + + + Catches BeforeSave of the content event. + + Sender of the event. + event arguments. + + + + 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 + + + + + BeginMarkContent count + + + + + variable used to maintain layers in loaded document + + + + + Initializes a new instance of the class + + + + + Gets or sets by its index from + + The layers belonging to the same page can be added to the collection only. + + + + Skip Operators + + + + + 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 + + The pdf layer value. + + + + + creates a pdf page layer from loaded page + + The pdf layer value. + + + + 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. + + + + Combine page content into specified stream + + The loaded page. + The decompress boolean value. + The stream value. + The endl boolean value. + + + + 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 + + The pdf loaded page. + The pdf layer value. + + + + Remove layer reference from ocg, order, on and off array + + The pdf loaded page. + The pdf layer value. + + + + Registers layer at the page. + + Index of the layer in the collection. + The new layer. + + + + Parses the layers. + + The loaded page. + + + + Check visibilty of loaded layer + + Tye OCR properties. + The layer dictionary. + + + + Make layers as correct order, based on Optical content group + + The OCR properties. + The layer collections. + + + + Check whether page contains any layer + + The properties. + The resources. + Is property layer boolean. + Is resource layer boolean. + + + + Add layer to page + + The pdf page value. + The dictionary value. + The reference value. + The key. + Page layer collection + + + + Parse resouces contains layer + + The resource value. + The layer dictionary. + The layer reference. + The loaded page. + The layer dictionary. + + + + Remove Layer content from page + + The pdf layer value. + + + + Find Operator + + The token value. + + + + + Rewrite PDFLayer content stream + + The operands value. + The operator value. + Skip boolean value. + The strem data. + + + + Process Begin Mark Content to remove layer content + + The parser value. + The operator value. + The operands value. + The stream dat. + + + + Process layer content + + The pdf layer value. + The parser value. + The straem data. + Is skip boolean value. + + + + + 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 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 + + + + + internal variable to maintain list of parent layers + + + + + internal variable to maintain child layers + + + + + internal variable to maintain parent layer + + + + + Dictionary to maintain all graphics content of current layer + + + + + Dictionary to maintain all graphics content of current layer belong to page + + + + + internal varible helps to parse the layer page onces + + + + + varible helps to parse and get content stream + + + + + collection helps to maintain layer contains in xobject resources + + + + + 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 + + + + Gets or sets a lock state of a layer + + + + //Create new PDF document + PdfDocument document = new PdfDocument(); + //Add page + PdfPage page = document.Pages.Add(); + //Add the layer + PdfLayer layer = document.Layers.Add("Layer"); + //Set a lock state + layer.Locked = true; + //Create graphics for layer + PdfGraphics graphics = layer.CreateGraphics(page); + //Draw ellipse + graphics.DrawEllipse(PdfPens.Red, new RectangleF(50, 50, 40, 40)); + //Save the document + document.Save("Output.pdf"); + //Close the document + document.Close(true); + + + 'Create new PDF document + Dim document As PdfDocument = New PdfDocument() + 'Add page + Dim page As PdfPage = document.Pages.Add() + 'Add the layer + Dim layer As PdfLayer = document.Layers.Add("Layer") + 'Set a lock state + layer.Locked = True + 'Create graphics for layer + Dim graphics As PdfGraphics = layer.CreateGraphics(page) + 'Draw ellipse + graphics.DrawEllipse(PdfPens.Red, New RectangleF(50, 50, 40, 40)) + 'Save the document + document.Save("Output.pdf") + 'Close the document + document.Close(True) + + + + + + Gets the layer content stream + + + + + 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 lock boolean value. + + + + Set PrintState for layer + + + + + Gets the wrapped element. + + + + + Catches BeforeSave of the content event. + + Sender of the event. + event arguments. + + + + Write Begin Mark Content of layer + + The current graphics value. + + + + Create new content stream for PdfLayer + + The pdf page. + + + + Parsing PdfPagelayer and set the content stream to Pdflayer + + + + + Parsing all pages and set page information to required layer + + Get pdf layer for parsing. + + + + Parse the dictionary that contains required layer + + The pdf dictionary. + The pdf reference holder + The pdf pagebase. + The layer id. + + + + + Set the page information to layer + + The pdf reference holder. + The pdf pagebase. + The layer id. + + + + + 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 + + + + + BeginMarkContent count + + + + + Initializes a new instance of the class + + + + + Gets or sets by its index from + + + + + Skip Operators + + + + + Initializes a new instance of the class + + The pdf document. + The pdf layer. + + + + Initializes a new instance of the class + + The pdf document. + + + + 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 + + layer value.. + index of created layer + + + + Creates a Optional Content Properties and adds it to Catalog. + + Layer. + + + + Creates Usage Dictionary and adds it to OCG dictionary + + The layer value. + + + + + Creates a pdf layer from loaded PDF document + + The layer value. + + + + 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. + + + + Creating Nested/Sublayer layer for parent layer + + The OCR properties. + The pdf reference holder. + The pdf layer value. + + + + 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 + + Name. + Remove graphical content + + + + 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. + + 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 + + The pdf layer value. + remove content. + + + + Registers layer at specified index in layer collection + + Index of the layer in the collection. + Pdf layer. + + + + Check and set layer visible + + + + + Check and set layer lock + + + + + Remove layer reference from OCGroup + + The pdf layer. + The oc array. + + + + Remove layer reference from usage application + + pdf layer. + The usage value. + + + + Remove layer reference from Order + + The pdf layer. + The order array list. + + + + Remove layer reference from On and Off + + The pdf layer. + The on array value. + The off array value. + + + + Remove layer reference from locked + + The pdf layer. + locked array value. + + + + Remove graphics content for PDF layer + + + + + Check parent layer + + The OCR properties. + + + + Parsing order array to get parent layer + + The pdf layer parent value. + Pdf array. + layer dictionary. + + + + Find Operator + + The token value. + + + + + Rewrite PDFLayer content stream + + The operands value. + The operator value. + skip boolean value. + pdf stream data. + + + + Process Begin Mark Content to remove layer content + + The parser value. + The operator value. + The operands value. + The stream data + + + + Create layer with respective hierarchical + + + + + Add child layers + + The pdf layer. + + + + 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. + + + + + 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 Points + + + //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 Points + + + //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 Points + + + //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 + + + + + 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. + + + + Sets orientation to the page based on its size. + + + + + 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. + + + + + 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 + + + + + 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. + + + + 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. + + + + + 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 + + + + 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. + + + + + Gets the element. + + + + + + Creates a new object that is a copy of the current instance. + + + A new object that is a copy of this instance. + + + + + 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. + + + + + 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 + + + + 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. + + + + + Gets the wrapped element. + + + + + 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 + + + + Initializes a new instance of the class. + + The section. + + + + Gets the current. + + + + + 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. + + + + + 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. + + + + 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. + + + + + 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. + + + + + 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. + + + + + Gets the wrapped element. + + + + + 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. + + + + Section collection enumerator. + + + + + Initializes a new instance of the class. + + The section collection. + + + + Gets the current 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. + + + + + 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 + + + + 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 + + + + 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. + + + + + 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 + + + + + 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 + + + + 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 + + + + A collection of stamps that are applied to the page templates. + + + It is used only on PdfPageTemplateElement. + + + + + Gets a stamp element by its index. + + The describes a page template object + + + + 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. + + + + + PdfPageTemplate enumerator. + + + + + Stamps collection + + + + + Current index of the enumerator. + + + + + Initializes a new instance of the class. + + The stanps collection. + + + + Gets the current 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. + + + + + 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. + + + + + Enum that represents the PDF image position. + + + + + The image will be placed in the left bottom corner of the page. + + + + + The image will be placed in the right bottom corner of the page + + + + + The image will be placed in the center of the page + + + + + The page will be fit to the image + + + + + The image will be fit to the page + + + + + The image will be fit to the page and keep the aspect ratio + + + + + The image will be placed in the left top corner of the page + + + + + The image will be placed in the right top corner of the page + + + + + 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 + + + + + The paper handling option to use when printing the file from the print dialog. + + + + //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.Duplex = DuplexMode.DuplexFlipShortEdge; + //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.Duplex = DuplexMode.DuplexFlipShortEdge + 'Save the document. + document.Save("Output.pdf") + 'Close the documents. + document.Close(True) + lDoc.Close(True) + + + Class + Class + Class + Class + + + + Print single-sided. + + + + + Duplex and flip on the short edge of the sheet. + + + + + Duplex and flip on the long edge of the sheet. + + + + + Default Value + + + + + 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. + + + + + Enumeration of possible transition styles when moving to the page from another + during a presentation + + + + //Create a new document. + PdfDocument document = new PdfDocument(); + //Declare new Pdf Page. + PdfPage page; + //Declare new PdfSection. + PdfSection section; + //Create few sections with one page in each. + for (int i = 0; i != 4; i++) + { + // Add new PdfSection. + section = document.Sections.Add(); + + // Create page label. + PdfPageLabel label = new PdfPageLabel(); + label.Prefix = "Sec" + i + "-"; + section.PageLabel = label; + + // Add new page to section. + page = section.Pages.Add(); + + section.Pages[0].Graphics.SetTransparency(0.35f); + + // Set page display duration. + section.PageSettings.Transition.PageDuration = 1; + + // Set transition effect duration. + section.PageSettings.Transition.Duration = 1; + + // Set transition style. + section.PageSettings.Transition.Style = PdfTransitionStyle.Box; + } + //Set page size. + document.PageSettings.Size = PdfPageSize.A6; + //Set viewer prefernce. + document.ViewerPreferences.HideToolbar = true; + //Set page mode. + document.ViewerPreferences.PageMode = PdfPageMode.FullScreen; + //Set page orientation. + document.PageSettings.Orientation = PdfPageOrientation.Landscape; + //Create a brush. + PdfSolidBrush brush = new PdfSolidBrush(System.Drawing.Color.Black); + brush.Color = new PdfColor(System.Drawing.Color.LightGreen); + //Create a Rectangle. + PdfRectangle rect = new PdfRectangle(0, 0, 1000f, 1000f); + rect.Brush = brush; + //Create a pen. + PdfPen pen = new PdfPen(System.Drawing.Color.Black); + pen.Width = 6f; + //Get the first page in first section. + page = document.Sections[0].Pages[0]; + //Draw the rectangle. + rect.Draw(page.Graphics); + //Draw a line. + page.Graphics.DrawLine(pen, 0, 100, 300, 100); + // Add margins. + document.PageSettings.SetMargins(0f); + //Get the first page in second section. + page = document.Sections[1].Pages[0]; + //Set page rotation angle. + document.Sections[1].PageSettings.Rotate = PdfPageRotateAngle.RotateAngle90; + rect.Draw(page.Graphics); + //Draw a line. + page.Graphics.DrawLine(pen, 0, 100, 300, 100); + //Change the angle f the section. This should rotate the previous page. + document.Sections[2].PageSettings.Rotate = PdfPageRotateAngle.RotateAngle180; + //Get section with specified index. + page = document.Sections[2].Pages[0]; + rect.Draw(page.Graphics); + page.Graphics.DrawLine(pen, 0, 100, 300, 100); + section = document.Sections[3]; + section.PageSettings.Orientation = PdfPageOrientation.Portrait; + page = section.Pages[0]; + rect.Draw(page.Graphics); + page.Graphics.DrawLine(pen, 0, 100, 300, 100); + //Set the font + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 16f); + PdfSolidBrush fieldBrush = new PdfSolidBrush(System.Drawing.Color.Black); + //Create page number field + PdfPageNumberField pageNumber = new PdfPageNumberField(font, fieldBrush); + //Create page count field + PdfPageCountField count = new PdfPageCountField(font, fieldBrush); + //Draw page template + PdfPageTemplateElement templateElement = new PdfPageTemplateElement(400, 400); + templateElement.Graphics.DrawString("Page :\tof", font, PdfBrushes.Black, new PointF(260, 200)); + //Draw current page number + pageNumber.Draw(templateElement.Graphics, new PointF(306, 200)); + //Draw number of pages + count.Draw(templateElement.Graphics, new PointF(345, 200)); + document.Template.Stamps.Add(templateElement); + templateElement.Background = true; + //Save the document. + document.Save("output.pdf"); + //Close the document. + document.Close(true); + + + 'Create a new document. + Dim document As PdfDocument = New PdfDocument() + 'Declare new Pdf Page. + Dim page As PdfPage + 'Declare new PdfSection. + Dim section As PdfSection + 'Create few sections with one page in each. + For i As Integer = 0 To 3 + ' Add new PdfSection. + section = document.Sections.Add() + ' Create page label. + Dim label As New PdfPageLabel() + label.Prefix = "Sec" + i + "-" + section.PageLabel = label + ' Add new page to section. + page = section.Pages.Add() + section.Pages(0).Graphics.SetTransparency(0.35F) + ' Set page display duration. + section.PageSettings.Transition.PageDuration = 1 + ' Set transition effect duration. + section.PageSettings.Transition.Duration = 1 + ' Set transition style. + section.PageSettings.Transition.Style = PdfTransitionStyle.Box + i += 1 + Next + document.PageSettings.Size = PdfPageSize.A6 + document.ViewerPreferences.HideToolbar = True + document.ViewerPreferences.PageMode = PdfPageMode.FullScreen + document.PageSettings.Orientation = PdfPageOrientation.Landscape + Dim brush As PdfSolidBrush = New PdfSolidBrush(System.Drawing.Color.Black) + brush.Color = New PdfColor(System.Drawing.Color.LightGreen) + Dim rect As PdfRectangle = New PdfRectangle(0, 0, 1000.0F, 1000.0F) + rect.Brush = brush + Dim pen As PdfPen = New PdfPen(System.Drawing.Color.Black) + pen.Width = 6.0F + page = document.Sections(0).Pages(0) + rect.Draw(page.Graphics) + page.Graphics.DrawLine(pen, 0, 100, 300, 100) + document.PageSettings.SetMargins(0F) + page = document.Sections(1).Pages(0) + document.Sections(1).PageSettings.Rotate = PdfPageRotateAngle.RotateAngle90 + rect.Draw(page.Graphics) + page.Graphics.DrawLine(pen, 0, 100, 300, 100) + document.Sections(2).PageSettings.Rotate = PdfPageRotateAngle.RotateAngle180 + page = document.Sections(2).Pages(0) + rect.Draw(page.Graphics) + page.Graphics.DrawLine(pen, 0, 100, 300, 100) + section = document.Sections(3) + section.PageSettings.Orientation = PdfPageOrientation.Portrait + page = section.Pages(0) + rect.Draw(page.Graphics) + page.Graphics.DrawLine(pen, 0, 100, 300, 100) + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 16.0F) + Dim fieldBrush As PdfSolidBrush = New PdfSolidBrush(System.Drawing.Color.Black) + Dim pageNumber As PdfPageNumberField = New PdfPageNumberField(font, fieldBrush) + Dim count As PdfPageCountField = New PdfPageCountField(font, fieldBrush) + Dim templateElement As PdfPageTemplateElement = New PdfPageTemplateElement(400, 400) + templateElement.Graphics.DrawString("Page :" + vbTab + "of", font, PdfBrushes.Black, New PointF(260, 200)) + pageNumber.Draw(templateElement.Graphics, New PointF(306, 200)) + count.Draw(templateElement.Graphics, New PointF(345, 200)) + document.Template.Stamps.Add(templateElement) + templateElement.Background = True + document.Save("output.pdf") + document.Close(True) + + + Class + Class + Class + Class + + + + 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 visible 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 + + + + + Form fields are visited widget order + + + + + 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 type of 3DAnnotation. + + + + + 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. + + + + 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. + + + + Gets a value indicating whether the object was encrypted. + + + + + Gets a value indicating whether this is decrypted. + + true if decrypted; otherwise, false. + + + + 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. + + + + 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. + + + + + Represents to skip element from the array. + + + + + 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 + + + + + Indicates whether to skip the element from the 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. + + + + + Gets a value indicating whether this is 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + 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. + + + + + 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. + + + + + 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. + + + + Gets a value indicating whether this is changed. + + true if changed; otherwise, false. + + + + Checks the changes. + + Returns true if the dictionary was changed. + + + + Freezes the changes. + + The freezer. + + + + Mark this instance modified. + + + + + Internal structure describing a pair of Key/Value. + + + + + Event arguments class. + + + + + Pdf document writer. + + + + + Gets a document that is currently generating. + + + + + Creates the new object. + + The writer. + + + + 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. + + + + + 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. + + + + + 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. + + + + Encode the PdfName + + Encode value. + + + + + Decode the PdfName + + Decode name. + + + + + Convert to hex value + + hex value. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + Saves the object. + + PDF writer. + + + + + Creates a copy of PdfNull. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + 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. + + + + + 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. + + + + 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 + + + + + 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. + + + + + 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. + + + + + + Internal variable to hold cloned object. + + + + + 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. + + + + + Get or Set ObjNumber to decypt the PdfStream + + + + + Get or Set PdfCrossTable object to decypt the PdfStream + + + + + 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. + + + + + Gets a value indicating whether the object was encrypted. + + + + + Gets a value indicating whether this is decrypted. + + true if decrypted; otherwise, false. + + + + 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 filter name from the stream dictionary. + + The dictionary. + The filter name. + + + + 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 + + + + + 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. + + + + + 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 + + The text. + The encoding value. + + + + Shows what encoding must be used. + + + + + The types of the PDFString data source. + + + + + Gets a value indicating whether the object was encrypted. + + + + + Decrypts the specified encryptor. + + The encryptor. + The current object number. + + + + Defines the basic interace of the various Primitive.. + + + + + 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. + + + + + Saves the object using the specified writer. + + The writer. + + + + Creates a deep copy of the IPdfPrimitive object. + + + + + Gets or sets the position of the object. + + + + + + + + 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 + + + + Represents a redactor for a loaded page. + + + + //Load the document. + PdfLoadedDocument lDoc = new PdfLoadedDocument("input.pdf"); + //Get the first page from the document. + PdfLoadedPage page = lDoc.Pages[0] as PdfLoadedPage; + //Create a redaction object + PdfRedaction redaction = new PdfRedaction(new RectangleF(40, 40, 50, 20)); + //Add redaction object into redaction collection of loaded page + page.Redactions.Add(redaction); + //Save and Close the document. + lDoc.Save("sample.pdf"); + lDoc.Close(true); + + + 'Load the document. + Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + //Create a redaction object + Dim redaction As PdfRedaction = New PdfRedaction(New RectangleF(40, 40, 50, 20)) + //Add redaction object into collection + page.Redactions.Add(redaction) + 'Save the document. + lDoc.Save("sample.pdf") + lDoc.Close(True) + + + + + + Gets or sets the fill color on the redaction bounds (Read only). + + + + //Load the document. + PdfLoadedDocument lDoc = new PdfLoadedDocument("input.pdf"); + //Get the first page from the document. + PdfLoadedPage page = lDoc.Pages[0] as PdfLoadedPage; + //Create a redaction object + PdfRedaction redaction = new PdfRedaction(new RectangleF(40, 40, 50, 20)); + //Set fill color for the redaction bounds + redaction.FillColor = System.Drawing.Color.Green; + //Add redaction object into redaction collection of loaded page + page.Redactions.Add(redaction); + //Save and Close the document. + lDoc.Save("sample.pdf"); + lDoc.Close(true); + + + 'Load the document. + Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + //Create a redaction object + Dim redaction As PdfRedaction = New PdfRedaction(New RectangleF(40, 40, 50, 20)) + //Set fill color for the redaction bounds + redaction.FillColor = Color.Green + //Add redaction object into collection + page.Redactions.Add(redaction) + 'Save the document. + lDoc.Save("sample.pdf") + lDoc.Close(True) + + + + + + Gets or sets whether only the text within the redaction bounds should be redacted. + + + + //Load the document. + PdfLoadedDocument lDoc = new PdfLoadedDocument("input.pdf"); + //Get the first page from the document. + PdfLoadedPage page = lDoc.Pages[0] as PdfLoadedPage; + //Create a redaction object + PdfRedaction redaction = new PdfRedaction(new RectangleF(40, 40, 50, 20)); + //Set to redact text only + redaction.TextOnly = true; + //Set fill color for the redaction bounds + redaction.FillColor = System.Drawing.Color.Green; + //Add redaction object into redaction collection of loaded page + page.Redactions.Add(redaction); + //Save and Close the document. + lDoc.Save("sample.pdf"); + lDoc.Close(true); + + + 'Load the document. + Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + //Create a redaction object + Dim redaction As PdfRedaction = New PdfRedaction(New RectangleF(40, 40, 50, 20)) + '//Set to redact text only + redaction.TextOnly = true + //Set fill color for the redaction bounds + redaction.FillColor = Color.Green + //Add redaction object into collection + page.Redactions.Add(redaction) + 'Save the document. + lDoc.Save("sample.pdf") + lDoc.Close(True) + + + + + + Gets or sets the appearance on the redaction bounds (Read only). + + + + //Load the document. + PdfLoadedDocument lDoc = new PdfLoadedDocument("input.pdf"); + //Get the first page from the document. + PdfLoadedPage page = lDoc.Pages[0] as PdfLoadedPage; + //Create a redaction object + PdfRedaction redaction = new PdfRedaction(new RectangleF(40, 40, 100, 20)); + //Set appearance on the redaction bounds + redaction.Appearance.Graphics.DrawString("Redacted", new PdfStandardFont(PdfFontFamily.Helvetica, 10), PdfBrushes.Black, PointF.Empty); + //Add redaction object into redaction collection of loaded page + page.Redactions.Add(redaction); + //Save and Close the document. + lDoc.Save("sample.pdf"); + lDoc.Close(true); + + + 'Load the document. + Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + //Create a redaction object + Dim redaction As PdfRedaction = New PdfRedaction(New RectangleF(40, 40, 100, 20)) + //Set appearance on the redaction bounds + redaction.Appearance.Graphics.DrawString("Redacted", New PdfStandardFont(PdfFontFamily.Helvetica, 10), PdfBrushes.Black, PointF.Empty) + //Add redaction object into collection + page.Redactions.Add(redaction) + 'Save the document. + lDoc.Save("sample.pdf") + lDoc.Close(True) + + + + + + Initializes a new instance of the class. + + The rectangle bounds to be redact. + + + + Initializes a new instance of the class. + + The rectangle bounds to be redact. + The fill color on the redaction bounds. + + + + Represents a redaction result for a loaded page. + + + + //Load the document. + PdfLoadedDocument lDoc = new PdfLoadedDocument("input.pdf"); + //Get the first page from the document. + PdfLoadedPage page = lDoc.Pages[0] as PdfLoadedPage; + //Create a redaction object + PdfRedaction redaction = new PdfRedaction(new RectangleF(40, 40, 50, 20)); + //Add redaction object into redaction collection of loaded page + page.Redactions.Add(redaction); + //Redact the contents from PDF document. + List<PdfRedactionResult> results = lDoc.Redact(); + //Save and Close the document. + lDoc.Save("sample.pdf"); + lDoc.Close(true); + + + 'Load the document. + Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + 'Get the first page from document + Dim page As PdfLoadedPage = TryCast(doc.Pages(0), PdfLoadedPage) + //Create a redaction object + Dim redaction As PdfRedaction = New PdfRedaction(New RectangleF(40, 40, 50, 20)) + //Add redaction object into collection + page.Redactions.Add(redaction) + 'Redact the contents from PDF document + Dim results As List(Of PdfRedactionResult) = lDoc.Redact() + 'Save the document. + lDoc.Save("sample.pdf") + lDoc.Close(True) + + + + + + Gets the page number. + + + + //Load the document. + PdfLoadedDocument lDoc = new PdfLoadedDocument("input.pdf"); + //Get the first page from the document. + PdfLoadedPage page = lDoc.Pages[0] as PdfLoadedPage; + bool value = true; + //Create a redaction object + PdfRedaction redaction = new PdfRedaction(new RectangleF(40, 40, 50, 20)); + //Set fill color for the redaction bounds + redaction.FillColor = System.Drawing.Color.Green; + //Add redaction object into redaction collection of loaded page + page.Redactions.Add(redaction); + //Perform Redaction for the loaded object and get redaction result + List<PdfRedactionResult> results = lDoc.Redact(); + //Gets the redaction bounds. + RectangleF redactionBounds = results[0].RedactionBounds; + redaction.Equals(value); + //Save and Close the document. + lDoc.Save("sample.pdf"); + lDoc.Close(true); + + + 'Load the document. + Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + Dim value As Boolean = True + 'Create a redaction object + Dim redaction As PdfRedaction = New PdfRedaction(New RectangleF(40, 40, 50, 20)) + 'Set fill color for the redaction bounds + redaction.FillColor = Color.Green + 'Add redaction object into collection + page.Redactions.Add(redaction) + 'Perform Redaction for the loaded object and get redaction result + Dim results As List(Of PdfRedactionResult) = lDoc.Redact() + 'Gets the redaction bounds. + Dim redactionBounds As RectangleF = results[0].RedactionBounds + 'Save the document + lDoc.Save("sample.pdf") + lDoc.Close(True) + + + + + + Gets the particular bounds is redacted or not. Default value is false. + + + + //Load the document. + PdfLoadedDocument lDoc = new PdfLoadedDocument("input.pdf"); + //Get the first page from the document. + PdfLoadedPage page = lDoc.Pages[0] as PdfLoadedPage; + bool value = true; + //Create a redaction object + PdfRedaction redaction = new PdfRedaction(new RectangleF(40, 40, 50, 20)); + //Set fill color for the redaction bounds + redaction.FillColor = System.Drawing.Color.Green; + //Add redaction object into redaction collection of loaded page + page.Redactions.Add(redaction); + //Perform Redaction for the loaded object and get redaction result + List<PdfRedactionResult> results = lDoc.Redact(); + //Returns whether the bounds is redacted or not. + bool isRedactionSuccess = results[0].IsRedactionSuccess; + redaction.Equals(value); + //Save and Close the document. + lDoc.Save("sample.pdf"); + lDoc.Close(true); + + + 'Load the document. + Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + Dim value As Boolean = True + 'Create a redaction object + Dim redaction As PdfRedaction = New PdfRedaction(New RectangleF(40, 40, 50, 20)) + 'Set fill color for the redaction bounds + redaction.FillColor = Color.Green + 'Add redaction object into collection + page.Redactions.Add(redaction) + 'Perform Redaction for the loaded object and get redaction result + Dim results As List(Of PdfRedactionResult) = lDoc.Redact()) + 'Returns whether the bounds is redacted or not + Dim isRedactionSuccess As Boolean = results[0].IsRedactionSuccess + 'Save the document + lDoc.Save("sample.pdf") + lDoc.Close(True) + + + + + + Gets the page number. + + + + //Load the document. + PdfLoadedDocument lDoc = new PdfLoadedDocument("input.pdf"); + //Get the first page from the document. + PdfLoadedPage page = lDoc.Pages[0] as PdfLoadedPage; + bool value = true; + //Create a redaction object + PdfRedaction redaction = new PdfRedaction(new RectangleF(40, 40, 50, 20)); + //Set fill color for the redaction bounds + redaction.FillColor = System.Drawing.Color.Green; + //Add redaction object into redaction collection of loaded page + page.Redactions.Add(redaction); + //Perform Redaction for the loaded object and get redaction result + List<PdfRedactionResult> results = lDoc.Redact(); + //Gets the page number. + int pageNumber = results[0].PageNumber; + redaction.Equals(value); + //Save and Close the document. + lDoc.Save("sample.pdf"); + lDoc.Close(true); + + + 'Load the document. + Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") + Dim value As Boolean = True + 'Create a redaction object + Dim redaction As PdfRedaction = New PdfRedaction(New RectangleF(40, 40, 50, 20)) + 'Set fill color for the redaction bounds + redaction.FillColor = Color.Green + 'Add redaction object into collection + page.Redactions.Add(redaction) + 'Perform Redaction for the loaded object and get redaction result + Dim results As List(Of PdfRedactionResult) = lDoc.Redact() + 'Gets the page number + Dim pageNumber As Int = results[0].PageNumber + 'Save the document + lDoc.Save("sample.pdf") + lDoc.Close(True) + + + + + + Get the object from IPdfPrimitive + + + + + + + Class used for implementing Advanced Encryption Standard algorithm. + + + + + Possible key sizes. + + + + + 128-bit. + + + + + 192-bit. + + + + + 256-bit. + + + + + 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 + + Input value. + Output value. + + + + Dump + + + + + Dump key. + + + + + + Dump two by two. + + The 'a' Value. + + + + + 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. + current offset of the output 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. + + + + 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 + + + + Get DER ecoded byte + + + + + + 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 + + + + Represents the tag of the AsnObject + + + + + Stream used for encoding + + + + + Creates a new instance of the Asnobject + + + + + Creates a new instance of the Asnobject + + Tag value. + + + + Encodes the AsnObject + + Input bytes + Encoded bytes + + + + Get the DER encoded bytes + + + + + + Calculates the correct length of the encoded bytes + + length value. + + + + 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 + + + + 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 + + + + + Returns the Asn1Objects in the sequence + + + + + Creates a new instance of the Asn1Sequence + + + + + Creates a new instance of the Asn1Sequence + + List containing the AsnObjects + + + + Encodes as Asn1Object + + Encoded bytes + + + + 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. + + Input + + + + List of Asn Tags. + http://www.obj-sys.com/asn1tutorial/node124.html + + + + + Represents Cipher Block Chaining Mode + + + + + Add more seed material to the generator. + + Bytes. + + + + Add more seed material to the generator. + + Value. + + + + Fill byte array with random values. + + Bytes. + + + + Fill byte array with random values. + + Bytes. + Start. + Length. + + + + Algorithm name + + + + + Initilaize the cipher + + Is Encryption value. + Parameters. + + + + Size of the cipher + + + + + + Indicates whether this cipher can handle partial blocks. + + + + + Process a block + + In Bytes value. + In Offset value. + Out Bytes value. + Out Offset Value. + + + + + Reset the cipher. + + + + + Name of the algorithm + + + + + initialize the cipher + + Is Encryption value. + Parameters value. + + + + Get the input size + + + + + + Get output size + + + + + + Process blocks + + Bytes value. + Offset value. + Length value. + + + + + Retuns the agorithm name + + + + + Gets the size in bytes + + + + + + Gets the buffer length + + + + + + Updates the message digit + + Input value. + + + + Updates the message digit + + Bytes value. + Offset Value + Length value. + + + + Updates the message digit with block of bytes + + Bytes value. + Offset value. + Length value. + + + + Retruns the final dighit values + + Bytes value. + Offset Value. + + + + + Reset + + + + + Initialize the padding + + Random value. + + + + get the padding name + + + + + Add padding + + Bytes value. + Offset value. + + + + + Pad count + + Bytes value. + + + + + 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 + + + + + Initalize CMS with content and certificate bytes + + ContentBytes value. + CertBytes value. + + + + Get the OCSP from the DSS + + Sequence Object value. + + + + Update the intermediate certificate URIs + + + + + Update the signature embed OCSP collection + + ocsps value. + EmbbedOcsp value. + + + + Update the signature embed OCSP collection + + ocsps value for UpdateDSSOCSP. + EmbbedOcsp value for UpdateDSSOCSP. + + + + Update the OCSP collection + + ocsps value for UpdateOCSPCollection. + m_basicOcspResponse value for UpdateOCSPCollection. + EmbbedOcsp value for UpdateOCSPCollection. + + + + Update the OCSP collection from DSS + + Bytes value for UpdateFromDSS. + ocsps value for UpdateFromDSS. + + + + Update embbed CRL + + crls value for UpdateEmbbedCRL. + Certificate List for UpdateEmbbedCRL. + + + + Update CRL certificate collection + + Bytes value for UpdateCertificateCollection. + Certificate List for UpdateCertificateCollection. + + + + Get distinguish attribute collection + + Name for GetDistinguishedAttributes. + Key for GetDistinguishedAttributes. + + + + Distinguished name separator + + + + + Adding distinguish string to dictionary + + Name for AddStringToDictionary. + Dictionary values for AddStringToDictionary. + + + + Read PEM CRL + + Stream value. + + + + + Clear all the collections + + + + + Get all the byte collection from the DSS dictionary + + + + + Gets revocation byte collection from the array + + Array value. + + + + + Update the signer details + + The signer certificates value. + The validation result value + + + + Update the timestamp signer details + + The signer certificates value. + The validation result value. + + + + Get the list of certificates from time stamp + + + + + + Check the Dss has contains cert collection + + + + + + Get the all the urls from extension + + The extension value. + The crlUrls value. + + + + Is root certificate is presented or not + + The root found value. + + + + Update the certificate collection from the DSS dictionary + + + + + Represent RSA Message digest signer + + + + + Signer Utility class contains methods that can not be specifically grouped into other classes. + + + + + Encryption algorithms class converts encryption algorithms into human-readable forms. + + + + + 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 + + + + + Encoding type. + + + + + Encoding type. + + + + + Encoding type. + + + + + 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. + + + + + Gets the certificate's version number.[Read-Only] + + This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. + + + PdfDocument doc = new PdfDocument(); + PdfPage page = doc.Pages.Add(); + PdfSolidBrush brush = new PdfSolidBrush(Color.Black); + PdfPen pen = new PdfPen(brush, 0.2f); + PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12, PdfFontStyle.Regular); + PdfCertificate pdfCert = new PdfCertificate(@"PDF.pfx", "syncfusion"); + PdfSignature signature = new PdfSignature(page, pdfCert, "Signature"); + signature.Bounds = new RectangleF(new PointF(5, 5), page.Size); + signature.ContactInfo = "johndoe@owned.us"; + signature.LocationInfo = "Honolulu, Hawaii"; + signature.Reason = "I am author of this document."; + PdfGraphics g = signature.Appearence.Normal.Graphics; + string validto = "Version: " + signature.Certificate.Version.ToString(); + string validfrom = "Valid From: " + signature.Certificate.ValidFrom.ToString(); + doc.Pages[0].Graphics.DrawString(validfrom, font, pen, brush, 0, 90); + doc.Pages[0].Graphics.DrawString(validto, font, pen, brush, 0, 110); + doc.Pages[0].Graphics.DrawString(" Protected Document. Digitally signed Document.", font, pen, brush, 0, 130); + doc.Pages[0].Graphics.DrawString("* To validate Signature click on the signature on this page \n * To check Document Status \n click document status icon on the bottom left of the acrobat reader.", font, pen, brush, 0, 150); + // Save the PDF file. + doc.Save("Sample.pdf"); + doc.Close(true); + + + Dim doc As PdfDocument = New PdfDocument() + Dim page As PdfPage = doc.Pages.Add() + Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Black) + Dim pen As PdfPen = New PdfPen(brush, 0.2f) + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12, PdfFontStyle.Regular) + Dim pdfCert As PdfCertificate = New PdfCertificate("PDF.pfx", "syncfusion") + Dim signature As PdfSignature = New PdfSignature(page, pdfCert, "Signature") + signature.Bounds = New RectangleF(New PointF(5, 5), page.Size) + signature.ContactInfo = "johndoe@owned.us" + signature.LocationInfo = "Honolulu, Hawaii" + signature.Reason = "I am author of this document." + Dim g As PdfGraphics = signature.Appearence.Normal.Graphics + Dim validto As String = "Version: " + signature.Certificate.Version.ToString() + Dim validfrom As String = "Valid From: " + signature.Certificate.ValidFrom.ToString() + doc.Pages(0).Graphics.DrawString(validfrom, font, pen, brush, 0, 90) + doc.Pages(0).Graphics.DrawString(validto, font, pen, brush, 0, 110) + doc.Pages(0).Graphics.DrawString(" Protected Document. Digitally signed Document.", font, pen, brush, 0, 130) + doc.Pages(0).Graphics.DrawString("* To validate Signature click on the signature on this page" + vbCrLf + " * To check Document Status" + vbCrLf + " click document status icon on the bottom left of the acrobat reader.", font, pen, brush, 0, 150) + ' Save the PDF file. + doc.Save("Sample.pdf") + doc.Close(True) + + + Class + Class + Class + Class + + + + 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) + + + + + + Gets the certificate issuer's name.[Read-Only] + + The certificate issuer`s name. + This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. + + + PdfDocument doc = new PdfDocument(); + PdfPage page = doc.Pages.Add(); + PdfSolidBrush brush = new PdfSolidBrush(Color.Black); + PdfPen pen = new PdfPen(brush, 0.2f); + PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12, PdfFontStyle.Regular); + PdfCertificate pdfCert = new PdfCertificate(@"PDF.pfx", "syncfusion"); + PdfSignature signature = new PdfSignature(page, pdfCert, "Signature"); + signature.Bounds = new RectangleF(new PointF(5, 5), page.Size); + signature.ContactInfo = "johndoe@owned.us"; + signature.LocationInfo = "Honolulu, Hawaii"; + signature.Reason = "I am author of this document."; + PdfGraphics g = signature.Appearence.Normal.Graphics; + string validto = "Issuer Name: " + signature.Certificate.IssuerName.ToString() + string validfrom = "Valid From: " + signature.Certificate.ValidFrom.ToString(); + doc.Pages[0].Graphics.DrawString(validfrom, font, pen, brush, 0, 90); + doc.Pages[0].Graphics.DrawString(validto, font, pen, brush, 0, 110); + doc.Pages[0].Graphics.DrawString(" Protected Document. Digitally signed Document.", font, pen, brush, 0, 130); + doc.Pages[0].Graphics.DrawString("* To validate Signature click on the signature on this page \n * To check Document Status \n click document status icon on the bottom left of the acrobat reader.", font, pen, brush, 0, 150); + // Save the PDF file. + doc.Save("Sample.pdf"); + doc.Close(true); + + + Dim doc As PdfDocument = New PdfDocument() + Dim page As PdfPage = doc.Pages.Add() + Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Black) + Dim pen As PdfPen = New PdfPen(brush, 0.2f) + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12, PdfFontStyle.Regular) + Dim pdfCert As PdfCertificate = New PdfCertificate("PDF.pfx", "syncfusion") + Dim signature As PdfSignature = New PdfSignature(page, pdfCert, "Signature") + signature.Bounds = New RectangleF(New PointF(5, 5), page.Size) + signature.ContactInfo = "johndoe@owned.us" + signature.LocationInfo = "Honolulu, Hawaii" + signature.Reason = "I am author of this document." + Dim g As PdfGraphics = signature.Appearence.Normal.Graphics + Dim validto As String = "Issuer Name: " + signature.Certificate.IssuerName.ToString() + Dim validfrom As String = "Valid From: " + signature.Certificate.ValidFrom.ToString() + doc.Pages(0).Graphics.DrawString(validfrom, font, pen, brush, 0, 90) + doc.Pages(0).Graphics.DrawString(validto, font, pen, brush, 0, 110) + ' Save the PDF file. + doc.Save("Sample.pdf") + doc.Close(True) + + + Class + Class + Class + + + + Gets the certificate subject's name.[Read-Only] + + This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. + + + PdfDocument doc = new PdfDocument(); + PdfPage page = doc.Pages.Add(); + PdfSolidBrush brush = new PdfSolidBrush(Color.Black); + PdfPen pen = new PdfPen(brush, 0.2f); + PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12, PdfFontStyle.Regular); + PdfCertificate pdfCert = new PdfCertificate(@"PDF.pfx", "syncfusion"); + PdfSignature signature = new PdfSignature(page, pdfCert, "Signature"); + signature.Bounds = new RectangleF(new PointF(5, 5), page.Size); + signature.ContactInfo = "johndoe@owned.us"; + signature.LocationInfo = "Honolulu, Hawaii"; + signature.Reason = "I am author of this document."; + PdfGraphics g = signature.Appearence.Normal.Graphics; + string validto = "Issuer Name: " + signature.Certificate.IssuerName.ToString() + string validfrom = "Valid From: " + signature.Certificate.ValidFrom.ToString(); + doc.Pages[0].Graphics.DrawString(validfrom, font, pen, brush, 0, 90); + doc.Pages[0].Graphics.DrawString(validto, font, pen, brush, 0, 110); + doc.Pages[0].Graphics.DrawString(" Protected Document. Digitally signed Document.", font, pen, brush, 0, 130); + doc.Pages[0].Graphics.DrawString("* To validate Signature click on the signature on this page \n * To check Document Status \n click document status icon on the bottom left of the acrobat reader.", font, pen, brush, 0, 150); + // Save the PDF file. + doc.Save("Sample.pdf"); + doc.Close(true); + + + Dim doc As PdfDocument = New PdfDocument() + Dim page As PdfPage = doc.Pages.Add() + Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Black) + Dim pen As PdfPen = New PdfPen(brush, 0.2f) + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12, PdfFontStyle.Regular) + Dim pdfCert As PdfCertificate = New PdfCertificate("PDF.pfx", "syncfusion") + Dim signature As PdfSignature = New PdfSignature(page, pdfCert, "Signature") + signature.Bounds = New RectangleF(New PointF(5, 5), page.Size) + signature.ContactInfo = "johndoe@owned.us" + signature.LocationInfo = "Honolulu, Hawaii" + signature.Reason = "I am author of this document." + Dim g As PdfGraphics = signature.Appearence.Normal.Graphics + Dim validto As String = "Subject Name: " + signature.Certificate.SubjectName.ToString() + Dim validfrom As String = "Valid From: " + signature.Certificate.ValidFrom.ToString() + doc.Pages(0).Graphics.DrawString(validfrom, font, pen, brush, 0, 90) + doc.Pages(0).Graphics.DrawString(validto, font, pen, brush, 0, 110) + ' Save the PDF file. + doc.Save("Sample.pdf") + doc.Close(True) + + + Class + Class + Class + + + + Gets the date and time before which the certificate is not valid.[Read-Only] + + This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. + + + PdfDocument doc = new PdfDocument(); + PdfPage page = doc.Pages.Add(); + PdfSolidBrush brush = new PdfSolidBrush(Color.Black); + PdfPen pen = new PdfPen(brush, 0.2f); + PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12, PdfFontStyle.Regular); + PdfCertificate pdfCert = new PdfCertificate(@"PDF.pfx", "syncfusion"); + PdfSignature signature = new PdfSignature(page, pdfCert, "Signature"); + signature.Bounds = new RectangleF(new PointF(5, 5), page.Size); + signature.ContactInfo = "johndoe@owned.us"; + signature.LocationInfo = "Honolulu, Hawaii"; + signature.Reason = "I am author of this document."; + PdfGraphics g = signature.Appearence.Normal.Graphics; + string validto = "Version To: " + signature.Certificate.ValidTo.ToString() + string validfrom = "Valid From: " + signature.Certificate.ValidFrom.ToString(); + doc.Pages[0].Graphics.DrawString(validfrom, font, pen, brush, 0, 90); + doc.Pages[0].Graphics.DrawString(validto, font, pen, brush, 0, 110); + doc.Pages[0].Graphics.DrawString(" Protected Document. Digitally signed Document.", font, pen, brush, 0, 130); + doc.Pages[0].Graphics.DrawString("* To validate Signature click on the signature on this page \n * To check Document Status \n click document status icon on the bottom left of the acrobat reader.", font, pen, brush, 0, 150); + // Save the PDF file. + doc.Save("Sample.pdf"); + doc.Close(true); + + + Dim doc As PdfDocument = New PdfDocument() + Dim page As PdfPage = doc.Pages.Add() + Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Black) + Dim pen As PdfPen = New PdfPen(brush, 0.2f) + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12, PdfFontStyle.Regular) + Dim pdfCert As PdfCertificate = New PdfCertificate("PDF.pfx", "syncfusion") + Dim signature As PdfSignature = New PdfSignature(page, pdfCert, "Signature") + signature.Bounds = New RectangleF(New PointF(5, 5), page.Size) + signature.ContactInfo = "johndoe@owned.us" + signature.LocationInfo = "Honolulu, Hawaii" + signature.Reason = "I am author of this document." + Dim g As PdfGraphics = signature.Appearence.Normal.Graphics + Dim validto As String = "Version To: " + signature.Certificate.ValidTo.ToString() + Dim validfrom As String = "Valid From: " + signature.Certificate.ValidFrom.ToString() + doc.Pages(0).Graphics.DrawString(validfrom, font, pen, brush, 0, 90) + doc.Pages(0).Graphics.DrawString(validto, font, pen, brush, 0, 110) + doc.Pages(0).Graphics.DrawString(" Protected Document. Digitally signed Document.", font, pen, brush, 0, 130) + doc.Pages(0).Graphics.DrawString("* To validate Signature click on the signature on this page " + Constants.vbLf + " * To check Document Status " + Constants.vbLf + " click document status icon on the bottom left of the acrobat reader.", font, pen, brush, 0, 150) + ' Save the PDF file. + doc.Save("Sample.pdf") + doc.Close(True) + + + Class + Class + Class + + + + Gets the date and time after which the certificate is not valid.[Read-Only] + + This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. + + + PdfDocument doc = new PdfDocument(); + PdfPage page = doc.Pages.Add(); + PdfSolidBrush brush = new PdfSolidBrush(Color.Black); + PdfPen pen = new PdfPen(brush, 0.2f); + PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12, PdfFontStyle.Regular); + PdfCertificate pdfCert = new PdfCertificate(@"PDF.pfx", "syncfusion"); + PdfSignature signature = new PdfSignature(page, pdfCert, "Signature"); + signature.Bounds = new RectangleF(new PointF(5, 5), page.Size); + signature.ContactInfo = "johndoe@owned.us"; + signature.LocationInfo = "Honolulu, Hawaii"; + signature.Reason = "I am author of this document."; + PdfGraphics g = signature.Appearence.Normal.Graphics; + string validto = "Version To: " + signature.Certificate.ValidTo.ToString() + string validfrom = "Valid From: " + signature.Certificate.ValidFrom.ToString(); + doc.Pages[0].Graphics.DrawString(validfrom, font, pen, brush, 0, 90); + doc.Pages[0].Graphics.DrawString(validto, font, pen, brush, 0, 110); + doc.Pages[0].Graphics.DrawString(" Protected Document. Digitally signed Document.", font, pen, brush, 0, 130); + doc.Pages[0].Graphics.DrawString("* To validate Signature click on the signature on this page \n * To check Document Status \n click document status icon on the bottom left of the acrobat reader.", font, pen, brush, 0, 150); + // Save the PDF file. + doc.Save("Sample.pdf"); + doc.Close(true); + + + Dim doc As PdfDocument = New PdfDocument() + Dim page As PdfPage = doc.Pages.Add() + Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Black) + Dim pen As PdfPen = New PdfPen(brush, 0.2f) + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12, PdfFontStyle.Regular) + Dim pdfCert As PdfCertificate = New PdfCertificate("PDF.pfx", "syncfusion") + Dim signature As PdfSignature = New PdfSignature(page, pdfCert, "Signature") + signature.Bounds = New RectangleF(New PointF(5, 5), page.Size) + signature.ContactInfo = "johndoe@owned.us" + signature.LocationInfo = "Honolulu, Hawaii" + signature.Reason = "I am author of this document." + Dim g As PdfGraphics = signature.Appearence.Normal.Graphics + Dim validto As String = "Version To: " + signature.Certificate.ValidTo.ToString() + Dim validfrom As String = "Valid From: " + signature.Certificate.ValidFrom.ToString() + doc.Pages(0).Graphics.DrawString(validfrom, font, pen, brush, 0, 90) + doc.Pages(0).Graphics.DrawString(validto, font, pen, brush, 0, 110) + doc.Pages(0).Graphics.DrawString(" Protected Document. Digitally signed Document.", font, pen, brush, 0, 130) + doc.Pages(0).Graphics.DrawString("* To validate Signature click on the signature on this page " + Constants.vbLf + " * To check Document Status " + Constants.vbLf + " click document status icon on the bottom left of the acrobat reader.", font, pen, brush, 0, 150) + ' Save the PDF file. + doc.Save("Sample.pdf") + doc.Close(True) + + + Class + Class + Class + + + + Certificate's structure. + + + + + 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 + + + + Retruns the value of given + + + + //Loads the input PDF + PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); + //Load the signature field. + PdfLoadedSignatureField signatureField = ldoc.Form.Fields[0] as PdfLoadedSignatureField; + //Get the signed name. + string signedName = signatureField.Signature.SignedName; + //Get the signed date + DateTime signedDate = signatureField.Signature.SignedDate; + //Get the country name of the subject + string subjectCountry = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Country, PdfCertificateField.Subject); + //Get the organization name of the subject + string subjectOrganization = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Organization, PdfCertificateField.Subject); + //Get the organization unit name of the subject + string subjectOrganizationUnit = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.OrganizationUnit, PdfCertificateField.Subject); + //Get the country name of the issuer + string issuerCountry = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Country, PdfCertificateField.Issuer); + //Get the organization name of the issuer + string issuerOrganization = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Organization, PdfCertificateField.Issuer); + //Get the organization unit name of the issuer + string issuerOrganizationUint = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.OrganizationUnit, PdfCertificateField.Issuer); + ldoc.Close(true); + + + 'Loads the input PDF + Dim ldoc As New PdfLoadedDocument("input.pdf") + 'Load the signature field. + Dim signatureField As PdfLoadedSignatureField = TryCast(ldoc.Form.Fields(0), PdfLoadedSignatureField) + 'Get the signed name. + Dim signedName As String = signatureField.Signature.SignedName + 'Get the signed date + Dim signedDate As DateTime = signatureField.Signature.SignedDate + 'Get the country name of the subject + Dim subjectCountry As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Country, PdfCertificateField.Subject) + 'Get the organization name of the subject + Dim subjectOrganization As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Organization, PdfCertificateField.Subject) + 'Get the organization unit name of the subject + Dim subjectOrganizationUnit As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.OrganizationUnit, PdfCertificateField.Subject) + 'Get the country name of the issuer + Dim issuerCountry As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Country, PdfCertificateField.Issuer) + 'Get the organization name of the issuer + Dim issuerOrganization As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Organization, PdfCertificateField.Issuer) + 'Get the organization unit name of the issuer + Dim issuerOrganizationUint As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.OrganizationUnit, PdfCertificateField.Issuer) + ldoc.Close(True) + + + + s + + + + + Get distinguish attribute collection + + Name for GetDistinguishedAttributes. + Key for GetDistinguishedAttributes. + + + + Adding distinguish string to dictionary + + Name for AddStringToDictionary. + Dictionary for AddStringToDictionary. + + + + 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) + + + + + Initialize the new instance of the class. + + The X509 certificate. + Bild chain value for PdfCertificate. + + + + Gets the certificates in all storages. + + This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. + PdfCertificate array. + + + PdfDocument doc = new PdfDocument(); + PdfPage page = doc.Pages.Add(); + PdfSolidBrush brush = new PdfSolidBrush(Color.Black); + PdfPen pen = new PdfPen(brush, 0.2f); + PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12, PdfFontStyle.Regular); + PdfCertificate[] pdfCert = GetCertificates(); + PdfSignature signature = new PdfSignature(page, pdfCert[0], "Signature"); + signature.Bounds = new RectangleF(new PointF(5, 5), page.Size); + signature.ContactInfo = "johndoe@owned.us"; + signature.LocationInfo = "Honolulu, Hawaii"; + signature.Reason = "I am author of this document."; + PdfGraphics g = signature.Appearence.Normal.Graphics; + string validto = "Version To: " + signature.Certificate.ValidTo.ToString() + string validfrom = "Valid From: " + signature.Certificate.ValidFrom.ToString(); + doc.Pages[0].Graphics.DrawString(validfrom, font, pen, brush, 0, 90); + doc.Pages[0].Graphics.DrawString(validto, font, pen, brush, 0, 110); + doc.Pages[0].Graphics.DrawString(" Protected Document. Digitally signed Document.", font, pen, brush, 0, 130); + doc.Pages[0].Graphics.DrawString("* To validate Signature click on the signature on this page \n * To check Document Status \n click document status icon on the bottom left of the acrobat reader.", font, pen, brush, 0, 150); + // Save the PDF file. + doc.Save("Sample.pdf"); + doc.Close(true); + + + Dim doc As PdfDocument = New PdfDocument() + Dim page As PdfPage = doc.Pages.Add() + Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Black) + Dim pen As PdfPen = New PdfPen(brush, 0.2f) + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12, PdfFontStyle.Regular) + Dim pdfCert As PdfCertificate() = GetCertificates() + Dim signature As New PdfSignature(page, pdfCert(0), "Signature") + signature.Bounds = New RectangleF(New PointF(5, 5), page.Size) + signature.ContactInfo = "johndoe@owned.us" + signature.LocationInfo = "Honolulu, Hawaii" + signature.Reason = "I am author of this document." + Dim g As PdfGraphics = signature.Appearence.Normal.Graphics + Dim validto As String = "Version To: " + signature.Certificate.ValidTo.ToString() + Dim validfrom As String = "Valid From: " + signature.Certificate.ValidFrom.ToString() + doc.Pages(0).Graphics.DrawString(validfrom, font, pen, brush, 0, 90) + doc.Pages(0).Graphics.DrawString(validto, font, pen, brush, 0, 110) + doc.Pages(0).Graphics.DrawString(" Protected Document. Digitally signed Document.", font, pen, brush, 0, 130) + doc.Pages(0).Graphics.DrawString("* To validate Signature click on the signature on this page " + Constants.vbLf + " * To check Document Status " + Constants.vbLf + " click document status icon on the bottom left of the acrobat reader.", font, pen, brush, 0, 150) + ' Save the PDF file. + doc.Save("Sample.pdf") + doc.Close(True) + + + + + + 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 issuer. + + This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. + The certification system store type. + The issuer. + + + + PdfDocument doc = new PdfDocument(); + PdfPage page = doc.Pages.Add(); + PdfSolidBrush brush = new PdfSolidBrush(Color.Black); + PdfPen pen = new PdfPen(brush, 0.2f); + PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12, PdfFontStyle.Regular); + PdfCertificate pdfCert = PdfCertificate.FindByIssuer(StoreType.ROOT, "syncfusion"); + PdfSignature signature = new PdfSignature(page, pdfCert, "Signature"); + signature.Bounds = new RectangleF(new PointF(5, 5), page.Size); + signature.ContactInfo = "johndoe@owned.us"; + signature.LocationInfo = "Honolulu, Hawaii"; + signature.Reason = "I am author of this document."; + PdfGraphics g = signature.Appearence.Normal.Graphics; + string validto = "Version To: " + signature.Certificate.ValidTo.ToString() + string validfrom = "Valid From: " + signature.Certificate.ValidFrom.ToString(); + doc.Pages[0].Graphics.DrawString(validfrom, font, pen, brush, 0, 90); + doc.Pages[0].Graphics.DrawString(validto, font, pen, brush, 0, 110); + doc.Pages[0].Graphics.DrawString(" Protected Document. Digitally signed Document.", font, pen, brush, 0, 130); + doc.Pages[0].Graphics.DrawString("* To validate Signature click on the signature on this page \n * To check Document Status \n click document status icon on the bottom left of the acrobat reader.", font, pen, brush, 0, 150); + // Save the PDF file. + doc.Save("Sample.pdf"); + doc.Close(true); + + + Dim doc As PdfDocument = New PdfDocument() + Dim page As PdfPage = doc.Pages.Add() + Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Black) + Dim pen As PdfPen = New PdfPen(brush, 0.2f) + Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12, PdfFontStyle.Regular) + Dim pdfCert As PdfCertificate = PdfCertificate.FindByIssuer(StoreType.ROOT, "syncfusion") + Dim signature As New PdfSignature(page, pdfCert, "Signature") + signature.Bounds = New RectangleF(New PointF(5, 5), page.Size) + signature.ContactInfo = "johndoe@owned.us" + signature.LocationInfo = "Honolulu, Hawaii" + signature.Reason = "I am author of this document." + Dim g As PdfGraphics = signature.Appearence.Normal.Graphics + Dim validto As String = "Version To: " + signature.Certificate.ValidTo.ToString() + Dim validfrom As String = "Valid From: " + signature.Certificate.ValidFrom.ToString() + doc.Pages(0).Graphics.DrawString(validfrom, font, pen, brush, 0, 90) + doc.Pages(0).Graphics.DrawString(validto, font, pen, brush, 0, 110) + doc.Pages(0).Graphics.DrawString(" Protected Document. Digitally signed Document.", font, pen, brush, 0, 130) + doc.Pages(0).Graphics.DrawString("* To validate Signature click on the signature on this page " + Constants.vbLf + " * To check Document Status " + Constants.vbLf + " click document status icon on the bottom left of the acrobat reader.", font, pen, brush, 0, 150) + ' Save the PDF file. + doc.Save("Sample.pdf") + doc.Close(True) + + + + + + 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. + + + + Specifies the distinguished names of PdfCertificate + + + + //Loads the input PDF + PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); + //Load the signature field. + PdfLoadedSignatureField signatureField = ldoc.Form.Fields[0] as PdfLoadedSignatureField; + //Get the signed name. + string signedName = signatureField.Signature.SignedName; + //Get the signed date + DateTime signedDate = signatureField.Signature.SignedDate; + //Get the country name of the subject + string subjectCountry = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Country, PdfCertificateField.Subject); + //Get the organization name of the subject + string subjectOrganization = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Organization, PdfCertificateField.Subject); + //Get the organization unit name of the subject + string subjectOrganizationUnit = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.OrganizationUnit, PdfCertificateField.Subject); + //Get the Email name of the subject. + string emailSubject = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Email, PdfCertificateField.Subject); + //Get the DomainComponent of the subject + string DCSubject = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.DomainComponent, PdfCertificateField.Subject); + //Get the Given Name of the subject + string GivenNameSubject = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.GivenName, PdfCertificateField.Subject); + //Get the Serial Number of subject + string SerialNumber = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.SerialNumber, PdfCertificateField.Subject); + //Get the State name of subject + string State = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.State, PdfCertificateField.Subject); + //Get the Street name of subject + string Street = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Street, PdfCertificateField.Subject); + //Get the SurName name of subject + string SurName = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.SurName, PdfCertificateField.Subject); + //Get the Title of subject + string Title = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Title, PdfCertificateField.Subject); + //Get the UserID of subject + string UserID = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.UserID, PdfCertificateField.Subject); + //Get the country name of the issuer + string issuerCountry = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Country, PdfCertificateField.Issuer); + ldoc.Close(true); + + + 'Loads the input PDF + Dim ldoc As New PdfLoadedDocument("input.pdf") + 'Load the signature field. + Dim signatureField As PdfLoadedSignatureField = TryCast(ldoc.Form.Fields(0), PdfLoadedSignatureField) + 'Get the signed name. + Dim signedName As String = signatureField.Signature.SignedName + 'Get the signed date + Dim signedDate As DateTime = signatureField.Signature.SignedDate + 'Get the country name of the subject + Dim subjectCountry As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Country, PdfCertificateField.Subject) + 'Get the organization name of the subject + Dim subjectOrganization As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Organization, PdfCertificateField.Subject) + 'Get the organization unit name of the subject + Dim subjectOrganizationUnit As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.OrganizationUnit, PdfCertificateField.Subject) + 'Get the Email name of the subject. + Dim emailSubject As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Email, PdfCertificateField.Subject) + 'Get the DomainComponent of the subject + Dim DCSubject As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.DomainComponent, PdfCertificateField.Subject) + 'Get the Given Name of the subject + Dim GivenNameSubject As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.GivenName, PdfCertificateField.Subject) + 'Get the Serial Number of subject + Dim SerialNumber As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.SerialNumber, PdfCertificateField.Subject) + 'Get the State name of subject + Dim State As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.State, PdfCertificateField.Subject) + 'Get the Street name of subject + Dim Street As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Street, PdfCertificateField.Subject) + 'Get the SurName name of subject + Dim SurName As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.SurName, PdfCertificateField.Subject) + 'Get the Title of subject + Dim Title As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Title, PdfCertificateField.Subject) + 'Get the UserID of subject + Dim UserID As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.UserID, PdfCertificateField.Subject) + 'Get the country name of the issuer + Dim issuerCountry As String = signatureField.Signature.Certificate.GetValue(PdfCertificateDistinguishedName.Country, PdfCertificateField.Issuer) + ldoc.Close(True) + + + Class + + + + Represent the country name + + + + + Represent the Organization name + + + + + Represent the Organization unit name + + + + + Represent the State name + + + + + Represent the Locality name + + + + + Represent the Locality name + + + + + Represent the SerialNumber + + + + + Represent the Street name + + + + + Represent the Title name + + + + + Represent the Given name + + + + + Represent the Email address + + + + + Represent the User ID + + + + + Represent the Domain Component + + + + + 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. + + + + + Indicates whether the signature contains time stamp alone. + + + + + The event raised on the time of signing certificate to the PDF document. + + + + //Load the existing PDF documnt. + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Get the page. + PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; + //Create a new PDF signature instance. + PdfSignature signature = new PdfSignature(document, page, null, "Sig1"); + //Set the signature bounds. + signature.Bounds = new RectangleF(0, 0, 200, 100); + //Call the compute hash event. + signature.ComputeHash += Signature_ComputeHash; + //Save the document. + document.Save("output.pdf"); + //Close the document. + document.Close(true); + + //ComputeHash event handler. + private void Signature_ComputeHash(object sender, PdfSignatureEventArgs ars) + { + //Get the document bytes. + byte[] documentBytes = ars.Data; + //Generate hash. + byte[] hash = SHA256.Create().ComputeHash(ars.Data); + //Include the signed data to PDF. + ars.SignedData = GetSignature(hash); + } + + + 'Load the existing PDF documnt. + Dim document As New PdfLoadedDocument("Input.pdf") + 'Get the page. + Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) + 'Create a new PDF signature instance. + Dim signature As New PdfSignature(document, page, Nothing, "Sig1") + 'Set the signature bounds. + signature.Bounds = New RectangleF(0, 0, 200, 100) + 'Call the compute hash event. + AddHandler signature.ComputeHash , AddressOf Signature_ComputeHash + 'Save the document. + document.Save("output.pdf") + 'Close the document. + document.Close(True) + + //ComputeHash event handler. + Private Sub Signature_ComputeHash(ByVal sender As Object, ByVal ars As PdfSignatureEventArgs) + 'Get the document bytes. + Dim documentBytes As Byte() = ars.Data + 'Generate hash. + Dim hash As Byte() = SHA256.Create().ComputeHash(ars.Data) + 'Include the signed data to PDF. + ars.SignedData = GetSignature(hash) + End Sub + + + + + + Gets or sets the signature settings + + A object defines signature`s settings. + + + //Creates a new PDF document. + PdfDocument document = new PdfDocument(); + //Adds a new page. + PdfPageBase page = document.Pages.Add(); + PdfGraphics graphics = page.Graphics; + //Creates a certificate instance from PFX file with private key. + PdfCertificate pdfCert = new PdfCertificate(@"PDF.pfx", "syncfusion"); + //Creates a digital signature. + PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); + //Sets signature settings to customize digestion algorithm and cryptographic standrad specified + PdfSignatureSettings properties = signature.Settings; + properties.CryptographicStandard = CryptographicStandard.CADES; + properties.DigestAlgorithm = DigestAlgorithm.SHA256; + //Sets an image for signature field. + PdfBitmap signatureImage = new PdfBitmap(@"signature.jpg"); + //Sets signature information + signature.Bounds = new RectangleF(new PointF(0, 0), signatureImage.PhysicalDimension); + signature.ContactInfo = "johndoe@owned.us"; + signature.LocationInfo = "Honolulu, Hawaii"; + signature.Reason = "I am author of this document."; + //Draws the signature image. + graphics.DrawImage(signatureImage, 0, 0); + //Saves and closes the document. + document.Save("Output.pdf"); + document.Close(true); + + + 'Creates a new PDF document. + Dim document As New PdfDocument() + 'Adds a new page. + Dim page As PdfPageBase = document.Pages.Add() + Dim graphics As PdfGraphics = page.Graphics + 'Creates a certificate instance from PFX file with private key. + Dim pdfCert As New PdfCertificate("PDF.pfx", "syncfusion") + 'Creates a digital signature. + Dim signature As New PdfSignature(document, page, pdfCert, "Signature") + 'Sets signature settings to customize digestion algorithm and cryptographic standrad specified + Dim properties As PdfSignatureSettings = signature.Settings; + properties.CryptographicStandard = CryptographicStandard.CADES; + properties.DigestAlgorithm = DigestAlgorithm.SHA256; + 'Sets an image for signature field. + Dim signatureImage As New PdfBitmap("signature.jpg") + 'Sets signature info. + signature.Bounds = New RectangleF(New PointF(0, 0), signatureImage.PhysicalDimension) + signature.ContactInfo = "johndoe@owned.us" + signature.LocationInfo = "Honolulu, Hawaii" + signature.Reason = "I am author of this document." + 'Draws the signature image. + graphics.DrawImage(signatureImage, 0, 0) + 'Saves and closes the document. + document.Save("Output.pdf") + document.Close(True) + + + + + + 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 + + + + Get or Set LTV to signed document. + + + + + 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. + + + + + Gets or sets the signature validation appearance + + + + // Creates a new document + PdfDocument document = new PdfDocument(); + //Its handle the rotation on signature annoatation + document.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle90; + PdfPageBase page = document.Pages.Add(); + PdfCertificate pdfCert = new PdfCertificate(@"PDF.pfx", "syncfusion"); + PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); + signature.Bounds = new Rectangle(10, 20, 400, 200); + //set the signature validation appearance is true to update Adobe signature validation during runtime + signature.EnableValidationAppearance = true; + document.Save("Output.pdf"); + document.Close(); + /// + + ' 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." + 'set the signature validation appearance is true to update Adobe signature validation during runtime + signature.EnableValidationAppearance = true; + document.Save("output.pdf") + 'Close the document. + document.Close(True) + + + + + + Get the signed Date + + + + + Gets or sets the signed name + + + + // Creates a new document + PdfDocument document = new PdfDocument(); + // Add a new page + PdfPageBase page = document.Pages.Add(); + // Create a PDF certificate + PdfCertificate pdfCert = new PdfCertificate(@"PDF.pfx", "syncfusion"); + // Add a new signature to the PDF page + PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); + signature.Bounds = new Rectangle(10, 20, 400, 200); + // Set the signed name + signature.SignedName = "Syncfusion Signature"; + // Save and close the document + document.Save("Output.pdf"); + 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 PdfPageBase = document.Pages.Add() + 'Create a PDF certificate + Dim pdfCert As New PdfCertificate(@"PDF.pfx", "syncfusion") + 'Add a new signature to the PDF page + Dim signature As New PdfSignature(document, page, pdfCert, "Signature") + signature.Bounds = new Rectangle(10, 20, 400, 200) + 'Set the signed name + signature.SignedName = "Syncfusion Signature" + 'Save and close the document + document.Save("Output.pdf") + 'Close the document. + document.Close(True) + + + + + + Returns external OCSP bytes + + + + + Returns external CRL bytes + + + + + Returns external signer + + + + + Returns external public certificates + + + + + Sets the estimated size of the signature. The estimated size is the size that will be reserved in the PDF document before digitally signing it. This size corresponds only to the Contents field of the signature field. The range between 0 to 536,870,911 + + + + // Creates a new document + PdfDocument document = new PdfDocument(); + // Add a new page + PdfPageBase page = document.Pages.Add(); + // Create a PDF certificate + PdfCertificate pdfCert = new PdfCertificate(@"PDF.pfx", "syncfusion"); + // Add a new signature to the PDF page + PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); + signature.Bounds = new Rectangle(10, 20, 400, 200); + // Set the estimated signature size + signature.EstimatedSignatureSize = 20000; + // Save and close the document + document.Save("Output.pdf"); + 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 PdfPageBase = document.Pages.Add() + 'Create a PDF certificate + Dim pdfCert As New PdfCertificate(@"PDF.pfx", "syncfusion") + 'Add a new signature to the PDF page + Dim signature As New PdfSignature(document, page, pdfCert, "Signature") + signature.Bounds = new Rectangle(10, 20, 400, 200) + 'Set the estimated signature size + signature.EstimatedSignatureSize = 20000 + 'Save and close the document + document.Save("Output.pdf") + 'Close the document. + document.Close(True) + + + + + + Gets or sets a value indicating whether to lock the signature or not. + + This property is not applicable for existing signed signature fields. + lock signature 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.IsLocked = 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.IsLocked = 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 signed signature content bytes. + + + + + 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. + Specifies the signing date for the digital 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 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. + Name of the signature. + Specifies the signing date for the digital 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, "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, "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 Loaded page and the signature name. + + This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. + The current pdf loaded page where signature will be added. + Name of the signature. + Specifies the signing date for the digital signature.. + + + Load an existing document + PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); + Gets the signature field + PdfLoadedSignatureField signatureField = doc.Form.Fields[0] as PdfLoadedSignatureField; + PdfSignature signature = new PdfSignature(page1, "Timestamp2"); + signatureField.Signature = signature; + doc.Save("LoadedForm.pdf"); + doc.Close(true); + + + + + + 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. + Specifies the signing date for the digital 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 + Specifies the signing date for the digital signature.. + + + // 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 + + + + To create Layer structure validate signature Apperance + + + + + Set matrix for appearance + + The template value for setMatrix. + + + + To calcualte the Adobe signature appearance scale , width and height + + Template width for find scale. + Template height for find scale. + + + + + To check annotation last elements have signature field + + The page value. + The signature name. + + + + Enable LTV timestamp without certificate + + + + + Create long term validation of the signature. + + A list of X.509 certificates to process. + A flag indicating whether the public certificates are included on the LTV. The default value is false. + + + //Load the PDF document. + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the existing page. + PdfLoadedPage page = loadedDocument.Pages[0] as PdfLoadedPage; + //Create a new PdfSignature instance. + PdfSignature signature = new PdfSignature(loadedDocument, page, null, "Sig1"); + //Create LTV with X509 public certificates. + signature.CreateLtv(certificates); + //Save and close the PDF document. + loadedDocument.Save("output.pdf"); + loadedDocument.Close(true); + + + + + Create long term validation of the signature. + + A list of X.509 certificates to process. + The revocation type. + A flag indicating whether the public certificates are included on the LTV. The default value is false. + + + //Load the PDF document. + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the existing page. + PdfLoadedPage page = loadedDocument.Pages[0] as PdfLoadedPage; + //Create a new PdfSignature instance. + PdfSignature signature = new PdfSignature(loadedDocument, page, null, "Sig1"); + //Create LTV with X509 public certificates. + signature.CreateLtv(certificates, RevocationType.OcspAndCrl); + //Save and close the PDF document. + loadedDocument.Save("output.pdf"); + loadedDocument.Close(true); + + + + + + Get LTV from x509Certificate with OCSP and CRL Response. + + The x509Certificate List value. + The ocsp response data. + The clear response data. + + + + + Get LTV from x509Certificate with OCSP and CRL Response and revocation type. + + The x509Certificate List value. + The ocsp response data. + The clear response data. + The revocation type value. + + + + + Add External Signer for signature + + The external signer value. + The ocsp value. + Clear bytes value. + + + + Adds a signature content, where the allocation was already reserved with an empty signature in a PDF document. This method has to be only used for deferred signing. + + Signature field must be last signature + The stream containing the PDF document to load. + The password (user or owner) of the encrypted document. + The stream where to save the PDF document. + Name of the signature. + The interface providing to sign externally. + The x509 public certificates. + + + //Create external signer + IPdfExternalSigner externalSignature = new ExternalSigner("SHA1"); + List<X509Certificate2> certificates = new List<X509Certificate2>(); + // Add public certificates + certificates.Add(new X509Certificate2(new X509Certificate2("certificate.pfx", "syncfusion"))); + // Create output file + FileStream outputFile = new FileStream("output.pdf", FileMode.Create, FileAccess.Write); + // Read input file to deferred sign + FileStream inputFile = new FileStream("input.pdf", FileMode.Open, FileAccess.Read); + // Deferred signing + PdfSignature.ReplaceEmptySignature(inputFile, "password", outputFile, "Signature", externalSignature, certificates); + + + //Create external signer + Dim externalSignature As IPdfExternalSigner = New ExternalSigner("SHA1") + Dim certificates As List(Of X509Certificate2) = New List(Of X509Certificate2) + // Add public certificates + certificates.Add(New X509Certificate2(New X509Certificate2("certificate.pfx", "syncfusion"))) + // Create output file + Dim outputFile As FileStream = New FileStream("output.pdf", FileMode.Create, FileAccess.Write) + // Read input file to deferred sign + Dim inputFile As FileStream = New FileStream("input.pdf", FileMode.Open, FileAccess.Read) + // Deferred signing + PdfSignature.ReplaceEmptySignature(inputFile, "password", outputFile, "Signature", externalSignature, certificates) + + + + + + Adds a signature content, where the allocation was already reserved with an empty signature in a PDF document. This method has to be only used for deferred signing. + + If an encoded signature flag is disabled, then the external signer signed bytes should be PKCS7 encoded. + The stream containing the PDF document to load. + The password (user or owner) of the encrypted document. + The stream where to save the PDF document. + Name of the signature. + The interface providing to sign externally. + The x509 public certificates. + Flag to encode signed data. + + + //Create external signer + IPdfExternalSigner externalSignature = new ExternalSigner("SHA1"); + List<X509Certificate2> certificates = new List<X509Certificate2>(); + // Add public certificates + certificates.Add(new X509Certificate2(new X509Certificate2("certificate.pfx", "syncfusion"))); + // Create output file + FileStream outputFile = new FileStream("output.pdf", FileMode.Create, FileAccess.Write); + // Read input file to deferred sign + FileStream inputFile = new FileStream("input.pdf", FileMode.Open, FileAccess.Read); + // Deferred signing + PdfSignature.ReplaceEmptySignature(inputFile, "password", outputFile, "Signature", externalSignature, certificates, false); + + + //Create external signer + Dim externalSignature As IPdfExternalSigner = New ExternalSigner("SHA1") + Dim certificates As List(Of X509Certificate2) = New List(Of X509Certificate2) + // Add public certificates + certificates.Add(New X509Certificate2(New X509Certificate2("certificate.pfx", "syncfusion"))) + // Create output file + Dim outputFile As FileStream = New FileStream("output.pdf", FileMode.Create, FileAccess.Write) + // Read input file to deferred sign + Dim inputFile As FileStream = New FileStream("input.pdf", FileMode.Open, FileAccess.Read) + // Deferred signing + PdfSignature.ReplaceEmptySignature(inputFile, "password", outputFile, "Signature", externalSignature, certificates, False) + + + + + + Copy source data to destination + + The source stream value. + The position start value. + The length value. + The destination value. + + + + Move to the file location + + The current position value. + The data value. + The offset position value. + The length value. + The source stream value. + + + + + Get OCSP resposne data + + The ocsp value. + The certificates value. + + + + + Get DSS details by creating crl collection + + The certificate value. + The ocsp collection + The clear value. + + + + + Get DSS details and update dss information in the dictionary + + The clear collection value. + The ocsp collection value. + + + + + Create LTV for external signer + + + + + 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. + + + + Delegate for handling PdfSignatureEventArgs + + The sender of the event. + The argument of the event + + + + Represents the arguments of PdfSignature event. + + + + //Load the existing PDF documnt. + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Get the page. + PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; + //Create a new PDF signature instance. + PdfSignature signature = new PdfSignature(document, page, null, "Sig1"); + //Set the signature bounds. + signature.Bounds = new RectangleF(0, 0, 200, 100); + //Call the compute hash event. + signature.ComputeHash += Signature_ComputeHash; + //Save the document. + document.Save("output.pdf"); + //Close the document. + document.Close(true); + + //ComputeHash event handler. + private void Signature_ComputeHash(object sender, PdfSignatureEventArgs ars) + { + //Get the document bytes. + byte[] documentBytes = ars.Data; + //Generate hash. + byte[] hash = SHA256.Create().ComputeHash(ars.Data); + //Include the signed data to PDF. + ars.SignedData = GetSignature(hash); + } + + + 'Load the existing PDF documnt. + Dim document As New PdfLoadedDocument("Input.pdf") + 'Get the page. + Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) + 'Create a new PDF signature instance. + Dim signature As New PdfSignature(document, page, Nothing, "Sig1") + 'Set the signature bounds. + signature.Bounds = New RectangleF(0, 0, 200, 100) + 'Call the compute hash event. + AddHandler signature.ComputeHash , AddressOf Signature_ComputeHash + 'Save the document. + document.Save("output.pdf") + 'Close the document. + document.Close(True) + + //ComputeHash event handler. + Private Sub Signature_ComputeHash(ByVal sender As Object, ByVal ars As PdfSignatureEventArgs) + 'Get the document bytes. + Dim documentBytes As Byte() = ars.Data + 'Generate hash. + Dim hash As Byte() = SHA256.Create().ComputeHash(ars.Data) + 'Include the signed data to PDF. + ars.SignedData = GetSignature(hash) + End Sub + + + + + + Current PDF document range data for computing hash. + + + + //Load the existing PDF documnt. + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Get the page. + PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; + //Create a new PDF signature instance. + PdfSignature signature = new PdfSignature(document, page, null, "Sig1"); + //Set the signature bounds. + signature.Bounds = new RectangleF(0, 0, 200, 100); + //Call the compute hash event. + signature.ComputeHash += Signature_ComputeHash; + //Save the document. + document.Save("output.pdf"); + //Close the document. + document.Close(true); + + //ComputeHash event handler. + private void Signature_ComputeHash(object sender, PdfSignatureEventArgs ars) + { + //Get the document bytes. + byte[] documentBytes = ars.Data; + //Generate hash. + byte[] hash = SHA256.Create().ComputeHash(ars.Data); + //Include the signed data to PDF. + ars.SignedData = GetSignature(hash); + } + + + 'Load the existing PDF documnt. + Dim document As New PdfLoadedDocument("Input.pdf") + 'Get the page. + Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) + 'Create a new PDF signature instance. + Dim signature As New PdfSignature(document, page, Nothing, "Sig1") + 'Set the signature bounds. + signature.Bounds = New RectangleF(0, 0, 200, 100) + 'Call the compute hash event. + AddHandler signature.ComputeHash , AddressOf Signature_ComputeHash + 'Save the document. + document.Save("output.pdf") + 'Close the document. + document.Close(True) + + //ComputeHash event handler. + Private Sub Signature_ComputeHash(ByVal sender As Object, ByVal ars As PdfSignatureEventArgs) + 'Get the document bytes. + Dim documentBytes As Byte() = ars.Data + 'Generate hash. + Dim hash As Byte() = SHA256.Create().ComputeHash(ars.Data) + 'Include the signed data to PDF. + ars.SignedData = GetSignature(hash) + End Sub + + + + + + Signed document data. + + + + //Load the existing PDF documnt. + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Get the page. + PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; + //Create a new PDF signature instance. + PdfSignature signature = new PdfSignature(document, page, null, "Sig1"); + //Set the signature bounds. + signature.Bounds = new RectangleF(0, 0, 200, 100); + //Call the compute hash event. + signature.ComputeHash += Signature_ComputeHash; + //Save the document. + document.Save("output.pdf"); + //Close the document. + document.Close(true); + + //ComputeHash event handler. + private void Signature_ComputeHash(object sender, PdfSignatureEventArgs ars) + { + //Get the document bytes. + byte[] documentBytes = ars.Data; + //Generate hash. + byte[] hash = SHA256.Create().ComputeHash(ars.Data); + //Include the signed data to PDF. + ars.SignedData = GetSignature(hash); + } + + + 'Load the existing PDF documnt. + Dim document As New PdfLoadedDocument("Input.pdf") + 'Get the page. + Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) + 'Create a new PDF signature instance. + Dim signature As New PdfSignature(document, page, Nothing, "Sig1") + 'Set the signature bounds. + signature.Bounds = New RectangleF(0, 0, 200, 100) + 'Call the compute hash event. + AddHandler signature.ComputeHash , AddressOf Signature_ComputeHash + 'Save the document. + document.Save("output.pdf") + 'Close the document. + document.Close(True) + + //ComputeHash event handler. + Private Sub Signature_ComputeHash(ByVal sender As Object, ByVal ars As PdfSignatureEventArgs) + 'Get the document bytes. + Dim documentBytes As Byte() = ars.Data + 'Generate hash. + Dim hash As Byte() = SHA256.Create().ComputeHash(ars.Data) + 'Include the signed data to PDF. + ars.SignedData = GetSignature(hash) + End Sub + + + + + + Specifies the type of revocation to be considered during the LTV enable process and their corresponding actions. + + + + //Load the PDF document. + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); + //Get the existing page. + PdfLoadedPage page = loadedDocument.Pages[0] as PdfLoadedPage; + //Create a new PdfSignature instance. + PdfSignature signature = new PdfSignature(loadedDocument, page, null, "Sig1"); + //Create LTV with X509 public certificates. + signature.CreateLtv(certificates, RevocationType.OcspAndCrl); + //Save and close the PDF document. + loadedDocument.Save("output.pdf"); + loadedDocument.Close(true); + + + + + + Embeds the OCSP data to the PDF document. + + + + + Embeds the CRL data to the PDF document. + + + + + Embeds both OCSP and CRL data to the PDF document. + + + + + Embeds OCSP or CRL data to the PDF document. + + + + + 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 + + + + + Gets or sets a value indicating whether this is archive. + + true if archive; otherwise, false. + + + + 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 signed name to signature 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 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 digestion algorithm. + + + + //Creates a new PDF document. + PdfDocument document = new PdfDocument(); + //Adds a new page. + PdfPageBase page = document.Pages.Add(); + PdfGraphics graphics = page.Graphics; + //Creates a certificate instance from PFX file with private key. + PdfCertificate pdfCert = new PdfCertificate(@"PDF.pfx", "syncfusion"); + //Creates a digital signature. + PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); + //Sets signature settings to customize digestion algorithm and cryptographic standrad specified + PdfSignatureSettings properties = signature.Settings; + properties.DigestAlgorithm = DigestAlgorithm.SHA256; + //Sets an image for signature field. + PdfBitmap signatureImage = new PdfBitmap(@"signature.jpg"); + //Sets signature information + signature.Bounds = new RectangleF(new PointF(0, 0), signatureImage.PhysicalDimension); + signature.ContactInfo = "johndoe@owned.us"; + signature.LocationInfo = "Honolulu, Hawaii"; + signature.Reason = "I am author of this document."; + //Draws the signature image. + graphics.DrawImage(signatureImage, 0, 0); + //Saves and closes the document. + document.Save("Output.pdf"); + document.Close(true); + + + 'Creates a new PDF document. + Dim document As New PdfDocument() + 'Adds a new page. + Dim page As PdfPageBase = document.Pages.Add() + Dim graphics As PdfGraphics = page.Graphics + 'Creates a certificate instance from PFX file with private key. + Dim pdfCert As New PdfCertificate("PDF.pfx", "syncfusion") + 'Creates a digital signature. + Dim signature As New PdfSignature(document, page, pdfCert, "Signature") + 'Sets signature settings to customize digestion algorithm and cryptographic standrad specified + Dim properties As PdfSignatureSettings = signature.Settings; + properties.DigestAlgorithm = DigestAlgorithm.SHA256; + 'Sets an image for signature field. + Dim signatureImage As New PdfBitmap("signature.jpg") + 'Sets signature info. + signature.Bounds = New RectangleF(New PointF(0, 0), signatureImage.PhysicalDimension) + signature.ContactInfo = "johndoe@owned.us" + signature.LocationInfo = "Honolulu, Hawaii" + signature.Reason = "I am author of this document." + 'Draws the signature image. + graphics.DrawImage(signatureImage, 0, 0) + 'Saves and closes the document. + document.Save("Output.pdf") + document.Close(True) + + + + + + SHA1 message digest algorithm + + + + + SHA256 message digest algorithm + + + + + SHA384 message digest algorithm + + + + + SHA512 message digest algorithm + + + + + RIPEMD160 message digest algorithm + + + + + Specifies the cryptographic standard. + + + + //Creates a new PDF document. + PdfDocument document = new PdfDocument(); + //Adds a new page. + PdfPageBase page = document.Pages.Add(); + PdfGraphics graphics = page.Graphics; + //Creates a certificate instance from PFX file with private key. + PdfCertificate pdfCert = new PdfCertificate(@"PDF.pfx", "syncfusion"); + //Creates a digital signature. + PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); + //Sets signature settings to customize digestion algorithm and cryptographic standrad specified + PdfSignatureSettings properties = signature.Settings; + properties.CryptographicStandard = CryptographicStandard.CADES; + //Sets an image for signature field. + PdfBitmap signatureImage = new PdfBitmap(@"signature.jpg"); + //Sets signature information + signature.Bounds = new RectangleF(new PointF(0, 0), signatureImage.PhysicalDimension); + signature.ContactInfo = "johndoe@owned.us"; + signature.LocationInfo = "Honolulu, Hawaii"; + signature.Reason = "I am author of this document."; + //Draws the signature image. + graphics.DrawImage(signatureImage, 0, 0); + //Saves and closes the document. + document.Save("Output.pdf"); + document.Close(true); + + + 'Creates a new PDF document. + Dim document As New PdfDocument() + 'Adds a new page. + Dim page As PdfPageBase = document.Pages.Add() + Dim graphics As PdfGraphics = page.Graphics + 'Creates a certificate instance from PFX file with private key. + Dim pdfCert As New PdfCertificate("PDF.pfx", "syncfusion") + 'Creates a digital signature. + Dim signature As New PdfSignature(document, page, pdfCert, "Signature") + 'Sets signature settings to customize digestion algorithm and cryptographic standrad specified + Dim properties As PdfSignatureSettings = signature.Settings; + properties.CryptographicStandard = CryptographicStandard.CADES; + 'Sets an image for signature field. + Dim signatureImage As New PdfBitmap("signature.jpg") + 'Sets signature info. + signature.Bounds = New RectangleF(New PointF(0, 0), signatureImage.PhysicalDimension) + signature.ContactInfo = "johndoe@owned.us" + signature.LocationInfo = "Honolulu, Hawaii" + signature.Reason = "I am author of this document." + 'Draws the signature image. + graphics.DrawImage(signatureImage, 0, 0) + 'Saves and closes the document. + document.Save("Output.pdf") + document.Close(True) + + + + + + Cryptographic Message Syntax + + + + + CMS Advanced Electronic Signatures + + + + + Represents signature settings used for signing a PDF document. + + A object defines signature`s settings. + + + //Creates a new PDF document. + PdfDocument document = new PdfDocument(); + //Adds a new page. + PdfPageBase page = document.Pages.Add(); + PdfGraphics graphics = page.Graphics; + //Creates a certificate instance from PFX file with private key. + PdfCertificate pdfCert = new PdfCertificate(@"PDF.pfx", "syncfusion"); + //Creates a digital signature. + PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); + //Sets signature settings to customize digestion algorithm and cryptographic standrad specified + PdfSignatureSettings properties = signature.Settings; + properties.CryptographicStandard = CryptographicStandard.CADES; + properties.DigestAlgorithm = DigestAlgorithm.SHA256; + //Sets an image for signature field. + PdfBitmap signatureImage = new PdfBitmap(@"signature.jpg"); + //Sets signature information + signature.Bounds = new RectangleF(new PointF(0, 0), signatureImage.PhysicalDimension); + signature.ContactInfo = "johndoe@owned.us"; + signature.LocationInfo = "Honolulu, Hawaii"; + signature.Reason = "I am author of this document."; + //Draws the signature image. + graphics.DrawImage(signatureImage, 0, 0); + //Saves and closes the document. + document.Save("Output.pdf"); + document.Close(true); + + + 'Creates a new PDF document. + Dim document As New PdfDocument() + 'Adds a new page. + Dim page As PdfPageBase = document.Pages.Add() + Dim graphics As PdfGraphics = page.Graphics + 'Creates a certificate instance from PFX file with private key. + Dim pdfCert As New PdfCertificate("PDF.pfx", "syncfusion") + 'Creates a digital signature. + Dim signature As New PdfSignature(document, page, pdfCert, "Signature") + 'Sets signature settings to customize digestion algorithm and cryptographic standrad specified + Dim properties As PdfSignatureSettings = signature.Settings; + properties.CryptographicStandard = CryptographicStandard.CADES; + properties.DigestAlgorithm = DigestAlgorithm.SHA256; + 'Sets an image for signature field. + Dim signatureImage As New PdfBitmap("signature.jpg") + 'Sets signature info. + signature.Bounds = New RectangleF(New PointF(0, 0), signatureImage.PhysicalDimension) + signature.ContactInfo = "johndoe@owned.us" + signature.LocationInfo = "Honolulu, Hawaii" + signature.Reason = "I am author of this document." + 'Draws the signature image. + graphics.DrawImage(signatureImage, 0, 0) + 'Saves and closes the document. + document.Save("Output.pdf") + document.Close(True) + + + + + + Gets or sets the digestion algorithm. + + A object that defines the signature's settings. + + + // Creates a new PDF document. + PdfDocument document = new PdfDocument(); + // Adds a new page. + PdfPageBase page = document.Pages.Add(); + // Creates a certificate instance from a PFX file with a private key. + PdfCertificate pdfCert = new PdfCertificate(@"PDF.pfx", "syncfusion"); + // Creates a digital signature. + PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); + // Sets signature settings to customize the digestion algorithm and cryptographic standard specified. + PdfSignatureSettings properties = signature.Settings; + properties.DigestAlgorithm = DigestAlgorithm.SHA256; + // Sets an image for the signature field. + PdfBitmap signatureImage = new PdfBitmap(@"signature.jpg"); + // Sets signature information. + signature.Bounds = new RectangleF(new PointF(0, 0), signatureImage.PhysicalDimension); + signature.ContactInfo = "johndoe@owned.us"; + signature.LocationInfo = "Honolulu, Hawaii"; + signature.Reason = "I am the author of this document."; + // Draws the signature image. + graphics.DrawImage(signatureImage, 0, 0); + // Saves and closes the document. + document.Save("Output.pdf"); + document.Close(true); + + + ' Creates a new PDF document. + Dim document As New PdfDocument() + ' Adds a new page. + Dim page As PdfPageBase = document.Pages.Add() + Dim graphics As PdfGraphics = page.Graphics + ' Creates a certificate instance from a PFX file with a private key. + Dim pdfCert As New PdfCertificate("PDF.pfx", "syncfusion") + ' Creates a digital signature. + Dim signature As New PdfSignature(document, page, pdfCert, "Signature") + ' Sets signature settings to customize the digestion algorithm and cryptographic standard specified. + Dim properties As PdfSignatureSettings = signature.Settings; + properties.DigestAlgorithm = DigestAlgorithm.SHA256; + ' Sets an image for the signature field. + Dim signatureImage As New PdfBitmap("signature.jpg") + ' Sets signature information. + signature.Bounds = New RectangleF(New PointF(0, 0), signatureImage.PhysicalDimension) + signature.ContactInfo = "johndoe@owned.us" + signature.LocationInfo = "Honolulu, Hawaii" + signature.Reason = "I am the author of this document." + ' Draws the signature image. + graphics.DrawImage(signatureImage, 0, 0) + ' Saves and closes the document. + document.Save("Output.pdf") + document.Close(True) + + + + + + Gets or sets cryptographic standard. + + A object defines signature`s settings. + + + // Creates a new PDF document. + PdfDocument document = new PdfDocument(); + // Adds a new page. + PdfPageBase page = document.Pages.Add(); + // Creates a certificate instance from PFX file with a private key. + PdfCertificate pdfCert = new PdfCertificate(@"PDF.pfx", "syncfusion"); + // Creates a digital signature. + PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); + // Sets signature settings to customize digestion algorithm and cryptographic standard specified. + PdfSignatureSettings properties = signature.Settings; + properties.CryptographicStandard = CryptographicStandard.CADES; + // Sets an image for the signature field. + PdfBitmap signatureImage = new PdfBitmap(@"signature.jpg"); + // Sets signature information. + signature.Bounds = new RectangleF(new PointF(0, 0), signatureImage.PhysicalDimension); + signature.ContactInfo = "johndoe@owned.us"; + signature.LocationInfo = "Honolulu, Hawaii"; + signature.Reason = "I am the author of this document."; + // Draws the signature image. + graphics.DrawImage(signatureImage, 0, 0); + // Saves and closes the document. + document.Save("Output.pdf"); + document.Close(true); + + + ' Creates a new PDF document. + Dim document As New PdfDocument() + ' Adds a new page. + Dim page As PdfPageBase = document.Pages.Add() + Dim graphics As PdfGraphics = page.Graphics + ' Creates a certificate instance from PFX file with a private key. + Dim pdfCert As New PdfCertificate("PDF.pfx", "syncfusion") + ' Creates a digital signature. + Dim signature As New PdfSignature(document, page, pdfCert, "Signature") + ' Sets signature settings to customize digestion algorithm and cryptographic standard specified. + Dim properties As PdfSignatureSettings = signature.Settings; + properties.CryptographicStandard = CryptographicStandard.CADES; + ' Sets an image for the signature field. + Dim signatureImage As New PdfBitmap("signature.jpg") + ' Sets signature information. + signature.Bounds = New RectangleF(New PointF(0, 0), signatureImage.PhysicalDimension) + signature.ContactInfo = "johndoe@owned.us" + signature.LocationInfo = "Honolulu, Hawaii" + signature.Reason = "I am the author of this document." + ' Draws the signature image. + graphics.DrawImage(signatureImage, 0, 0) + ' Saves and closes the document. + document.Save("Output.pdf") + document.Close(True) + + + + + + Specifies the certificate's revocation status. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the revocation result + RevocationResult revocationResult = result.RevocationResult; + // Gets the OCSP revocation status + RevocationStatus revocationStatus = revocationResult.OcspRevocationStatus; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the revocation result + Dim revocationResult As RevocationResult = result.RevocationResult + ' Gets the OCSP revocation status + Dim revocationStatus As RevocationStatus = revocationResult.OcspRevocationStatus + ' Close the document + document.Close(true) + + + + + + Specifies Default / No status. + + + + + Specifies good status. + + + + + Specifies unknown status. + + + + + Specifies revoked status. + + + + + Specifies the certificate's verification status. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the signature validation status + SignatureStatus status = result.SignatureStatus; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the signature validation status + Dim status As SignatureStatus = result.SignatureStatus + ' Close the document + document.Close(true) + + + + + + Specifies unknown status. + + + + + Specifies valid status. + + + + + Specifies invalid status. + + + + + Specifies the signatures's validation result. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Close the document + document.Close(true) + + + + + + Gets the name of the signature field. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the name of the signature field + string name = result.SignatureName; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the name of the signature field + Dim name As string = result.SignatureName + ' Close the document + document.Close(true) + + + + + + Gets the certificate's verification status. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the signature validation status + SignatureStatus status = result.SignatureStatus; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the signature validation status + Dim status As SignatureStatus = result.SignatureStatus + ' Close the document + document.Close(true) + + + + + + Gets the resultant data of certificate revocation validation. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the revocation result + RevocationResult revocationResult = result.RevocationResult; + // Gets the value indicating whether the CRL is revoked or not + bool hasRevokedCrl = revocationResult.IsRevokedCRL; + // Gets the OCSP revocation status + RevocationStatus revocationStatus = revocationResult.OcspRevocationStatus; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the revocation result + Dim revocationResult As RevocationResult = result.RevocationResult + ' Gets the value indicating whether the CRL is revoked or not + Dim hasRevokedCrl As Boolean = revocationResult.IsRevokedCRL + ' Gets the OCSP revocation status + Dim revocationStatus As RevocationStatus = revocationResult.OcspRevocationStatus + ' Close the document + document.Close(true) + + + + + + Gets a value to check whether the document is modified or not + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Checks whether the document is modified or not + bool isDocumentModified = result.IsDocumentModified; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Checks whether the document is modified or not + Dim isDocumentModified As Boolean = result.IsDocumentModified + ' Close the document + document.Close(true) + + + + + + Gets a value to check whether the signature is certificated or not + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Checks whether the signature is certificated or not + bool isCertificated = result.IsCertificated; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Checks whether the signature is certificated or not + Dim isCertificated As Boolean = result.IsCertificated + ' Close the document + document.Close(true) + + + + + + Gets a value to check whether the signature valid at signed time + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Checks whether the signature is valid at the time of signing + bool isValidAtSignedTime = result.IsValidAtSignedTime; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Checks whether the signature is valid at the time of signing + Dim isValidAtSignedTime As Boolean = result.IsValidAtSignedTime + ' Close the document + document.Close(true) + + + + + + Gets a value to check whether the signature valid at current time + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Checks whether the signature is valid at current time + bool isValidAtCurrentTime = result.IsValidAtCurrentTime; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Checks whether the signature is valid at current time + Dim isValidAtCurrentTime As Boolean = result.IsValidAtCurrentTime + ' Close the document + document.Close(true) + + + + + + Gets a value to check whether the signature valid at timestamp time + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Checks whether the signature is valid at timestamp time + bool isValidAtTimeStampTime = result.IsValidAtTimeStampTime; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Checks whether the signature is valid at timestamp time + Dim isValidAtTimeStampTime As Boolean = result.IsValidAtTimeStampTime + ' Close the document + document.Close(true) + + + + + + Gets a value to check whether the signature is valid or not + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Checks whether the signature is valid or not + bool isSignatureValid = result.IsSignatureValid; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Checks whether the signature is valid or not + Dim isSignatureValid As Boolean = result.IsSignatureValid + ' Close the document + document.Close(true) + + + + + + Gets the cryptographic standard used in the signature + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the cryptographic standard used in the signature + CryptographicStandard cryptographicStandard = result.CryptographicStandard; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the cryptographic standard used in the signature + Dim cryptographicStandard As CryptographicStandard = result.CryptographicStandard + ' Close the document + document.Close(true) + + + + + + Gets the signature algorithm used + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the signature algorithm used + string signatureAlgorithm = result.SignatureAlgorithm; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the signature algorithm used + Dim signatureAlgorithm As string = result.SignatureAlgorithm + ' Close the document + document.Close(true) + + + + + + Gets the digestion algorithm used in the signature + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the digestion algorithm used in the signature + DigestAlgorithm digestAlgorithm = result.DigestAlgorithm; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the digestion algorithm used in the signature + Dim digestAlgorithm As DigestAlgorithm = result.DigestAlgorithm + ' Close the document + document.Close(true) + + + + + + Gets the list of certificates in the signature + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the list of certificates in the signature + X509Certificate2Collection certificates = result.Certificates; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the list of certificates in the signature + Dim certificates As X509Certificate2Collection = result.Certificates + ' Close the document + document.Close(true) + + + + + + Gets the timestamp information from the signature + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the timestamp information from the signature + TimeStampInformation timeStampInformation = result.TimeStampInformation; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the timestamp information from the signature + Dim timeStampInformation As TimeStampInformation = result.TimeStampInformation + ' Close the document + document.Close(true) + + + + + + Gets the list of signature validation exception + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the list of signature validation exception + List<PdfSignatureValidationException> signatureValidationErrors = result.SignatureValidationErrors; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the list of signature validation exception + Dim signatureValidationErrors As List(Of PdfSignatureValidationException) = result.SignatureValidationErrors + ' Close the document + document.Close(true) + + + + + + Gets the signature LTV verification details. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the LTV verification details + LtvVerificationInfo ltvVerificationInfo = result.LtvVerificationInfo; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the LTV verification details + Dim ltvVerificationInfo As LtvVerificationInfo = result.LtvVerificationInfo + ' Close the document + document.Close(true) + + + + + + Gets an array of PdfSignerCertificate objects that represent the certificates belonging to the signers associated with the PDF signature. + + + + //Loads an existing document. + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Gets the signature field. + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + //Validates signature and gets the validation result. + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + //Gets signer certificates + PdfSignerCertificate[] certifcate = result.SignerCertificates; + foreach (PdfSignerCertificate cert in certifcate) + { + //Get the actual signer certificate. + X509Certificate2 actualCertificate = cert.Certificate; + //Get the OCSP certificate. + PdfRevocationCertificate ocspCertificate = cert.OcspCertificate; + if (ocspCertificate != null) + { + //Gets a value indicating whether the revocation certificate is embedded within the PDF document + bool isOcspEmbedded = ocspCertificate.IsEmbedded; + //Gets the certificate associated with the revocation certificate + X509Certificate2 ocsPCert = ocspCertificate.Certificates[0]; + //Gets the date and time when the revocation certificate becomes valid + DateTime currentUpdate = ocspCertificate.ValidFrom; + //Gets the date and time when the revocation certificate expires + DateTime nextUpdate = ocspCertificate.ValidTo; + } + //Get the CRL certificate. + PdfRevocationCertificate crlCertificate = cert.CrlCertificate; + if (crlCertificate != null) + { + //Gets a value indicating whether the revocation certificate is embedded within the PDF document + bool isCrlEmbedded = crlCertificate.IsEmbedded; + //Gets the certificate associated with the revocation certificate + X509Certificate2 crlCert = crlCertificate.Certificates[0]; + //Gets the date and time when the revocation certificate becomes valid + DateTime currentUpdate = crlCertificate.ValidFrom; + //Gets the date and time when the revocation certificate expires + DateTime nextUpdate = crlCertificate.ValidTo; + } + } + //Close the document. + document.Close(true); + + + Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + Dim signatureField As PdfLoadedSignatureField = CType(document.Form.Fields(0),PdfLoadedSignatureField) + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature + Dim certifcate() As PdfSignerCertificate = result.SignerCertificates + For Each cert As PdfSignerCertificate In certifcate + 'Get the actual signer certificate. + Dim actualCertificate As X509Certificate2 = cert.Certificate + 'Get the OCSP certificate. + Dim ocspCertificate As PdfRevocationCertificate = cert.OcspCertificate + If (Not (ocspCertificate) Is Nothing) Then + 'Gets a value indicating whether the revocation certificate is embedded within the PDF document + Dim isOcspEmbedded As Boolean = ocspCertificate.IsEmbedded + 'Gets the certificate associated with the revocation certificate + Dim ocsPCert As X509Certificate2 = ocspCertificate.Certificates(0) + 'Gets the date and time when the revocation certificate becomes valid + Dim currentUpdate As DateTime = ocspCertificate.ValidFrom + 'Gets the date and time when the revocation certificate expires + Dim nextUpdate As DateTime = ocspCertificate.ValidTo + End If + 'Get the CRL certificate. + Dim crlCertificate As PdfRevocationCertificate = cert.CrlCertificate + If (Not (crlCertificate) Is Nothing) Then + 'Gets a value indicating whether the revocation certificate is embedded within the PDF document + Dim isCrlEmbedded As Boolean = crlCertificate.IsEmbedded + 'Gets the certificate associated with the revocation certificate + Dim crlCert As X509Certificate2 = crlCertificate.Certificates(0) + 'Gets the date and time when the revocation certificate becomes valid + Dim currentUpdate As DateTime = crlCertificate.ValidFrom + 'Gets the date and time when the revocation certificate expires + Dim nextUpdate As DateTime = crlCertificate.ValidTo + End If + Next + 'Close the document. + document.Close(true) + + + + + + Gets or Sets PdfCmsSigner + + + + + Represents a resultant data of certificate revocation validation. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the revocation result + RevocationResult revocationResult = result.RevocationResult; + // Gets the value indicating whether the CRL is revoked or not + bool hasRevokedCrl = revocationResult.IsRevokedCRL; + // Gets the OCSP revocation status + RevocationStatus revocationStatus = revocationResult.OcspRevocationStatus; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the revocation result + Dim revocationResult As RevocationResult = result.RevocationResult + ' Gets the value indicating whether the CRL is revoked or not + Dim hasRevokedCrl As Boolean = revocationResult.IsRevokedCRL + ' Gets the OCSP revocation status + Dim revocationStatus As RevocationStatus = revocationResult.OcspRevocationStatus + ' Close the document + document.Close(true) + + + + + + Represents a resultant data of certificate revocation validation. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the value indicating whether the CRL is revoked or not + bool hasRevokedCrl = revocationResult.IsRevokedCRL; + // Gets the OCSP revocation status + RevocationStatus revocationStatus = revocationResult.OcspRevocationStatus; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the value indicating whether the CRL is revoked or not + Dim hasRevokedCrl As Boolean = revocationResult.IsRevokedCRL + ' Gets the OCSP revocation status + Dim revocationStatus As RevocationStatus = revocationResult.OcspRevocationStatus + ' Close the document + document.Close(true) + + + + + + Represents a resultant data of certificate revocation validation. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the revocation result + RevocationResult revocationResult = result.RevocationResult; + // Gets the OCSP revocation status + RevocationStatus revocationStatus = revocationResult.OcspRevocationStatus; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the revocation result + Dim revocationResult As RevocationResult = result.RevocationResult + ' Gets the OCSP revocation status + Dim revocationStatus As RevocationStatus = revocationResult.OcspRevocationStatus + ' Close the document + document.Close(true) + + + + + + Represents the LTV verification information. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the LTV verification Information. + LtvVerificationInfo ltvVerificationInfo = result.LtvVerificationInfo; + // Checks whether the signature document LTV is enabled. + bool isLtvEnabled = ltvVerificationInfo.IsLtvEnabled; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the LTV verification Information + Dim ltvVerificationInfo As LtvVerificationInfo = result.LtvVerificationInfo + /// ' Checks whether the signature document LTV is enabled. + Dim isLtvEnabled As Boolean = ltvVerificationInfo.IsLtvEnabled + ' Close the document + document.Close(true) + + + + + + Gets whether the signature is LTV enabled. + + + The LTV verification depends on the RevocationResult which is embedded in the document DSS entry. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the LTV verification Information. + LtvVerificationInfo ltvVerificationInfo = result.LtvVerificationInfo; + // Checks whether the signature document LTV is enabled. + bool isLtvEnabled = ltvVerificationInfo.IsLtvEnabled; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the LTV verification Information + Dim ltvVerificationInfo As LtvVerificationInfo = result.LtvVerificationInfo + /// ' Checks whether the signature document LTV is enabled. + Dim isLtvEnabled As Boolean = ltvVerificationInfo.IsLtvEnabled + ' Close the document + document.Close(true) + + + + + + Gets a value to check whether the CRL is embedded in the signature document. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the LTV verification Information. + LtvVerificationInfo ltvVerificationInfo = result.LtvVerificationInfo; + // Checks whether the signature document has CRL embedded. + bool isCrlEmbedded = ltvVerificationInfo.IsCrlEmbedded; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the LTV verification Information + Dim ltvVerificationInfo As LtvVerificationInfo = result.LtvVerificationInfo + /// ' Checks whether the signature document has CRL embedded + Dim isCrlEmbedded As Boolean = ltvVerificationInfo.IsCrlEmbedded + ' Close the document + document.Close(true) + + + + + + Gets a value to check whether the OCSP is embedded in the signature document. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the LTV verification Information. + LtvVerificationInfo ltvVerificationInfo = result.LtvVerificationInfo; + // Checks whether the signature document has OCSP embedded. + bool isOcspEmbedded = ltvVerificationInfo.IsOcspEmbedded; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the LTV verification Information + Dim ltvVerificationInfo As LtvVerificationInfo = result.LtvVerificationInfo + /// ' Checks whether the signature document has OCSP embedded + Dim isOcspEmbedded As Boolean = ltvVerificationInfo.IsOcspEmbedded + ' Close the document + document.Close(true) + + + + + + Specifies the Pdf signature validation exception. + + + + + Gets or Set Signature validation exception type + + + + + Specifies the Signature validation exception type + + + + + Validate both CRL and OCSP revocation. + + + + + Validate the CRL. + + + + + Validate the OCSP. + + + + + Interface for external signing to a PDF document + + + + + Get HashAlgorithm + + + + + Returns Signed Message Digest + + The sign message. + + + + + Specifies the timestamp information from the signature + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the timestamp information from the signature + TimeStampInformation timeStampInformation = result.TimeStampInformation; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the timestamp information from the signature + Dim timeStampInformation As TimeStampInformation = result.TimeStampInformation + ' Close the document + document.Close(true) + + + + + + Gets the timestamp policy ID + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the timestamp information from the signature + TimeStampInformation timeStampInformation = result.TimeStampInformation; + // Gets the timestamp policy ID + string timeStampPolicyId = timeStampInformation.TimeStampPolicyId; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the timestamp information from the signature + Dim timeStampInformation As TimeStampInformation = result.TimeStampInformation + ' Gets the timestamp policy ID + Dim timeStampPolicyId As string = timeStampInformation.TimeStampPolicyId + ' Close the document + document.Close(true) + + + + + + Gets the timestamp time + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the timestamp information from the signature + TimeStampInformation timeStampInformation = result.TimeStampInformation; + // Gets the timestamp time + DateTime timeStampTime = timeStampInformation.Time; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the timestamp information from the signature + Dim timeStampInformation As TimeStampInformation = result.TimeStampInformation + ' Gets the timestamp time + Dim timeStampTime As DateTime = timeStampInformation.Time + ' Close the document + document.Close(true) + + + + + + Checks whether the timestamp is valid or not + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the timestamp information from the signature + TimeStampInformation timeStampInformation = result.TimeStampInformation; + // Checks whether the timestamp is valid or not + bool isValid = timeStampInformation.IsValid; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the timestamp information from the signature + Dim timeStampInformation As TimeStampInformation = result.TimeStampInformation + ' Checks whether the timestamp is valid or not + Dim isValid As Boolean = timeStampInformation.IsValid + ' Close the document + document.Close(true) + + + + + + Checks whether the signature signed with timestamp alone + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the timestamp information from the signature + TimeStampInformation timeStampInformation = result.TimeStampInformation; + // Checks whether the signature signed with timestamp alone + bool documentTimeStamp = timeStampInformation.IsDocumentTimeStamp; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the timestamp information from the signature + Dim timeStampInformation As TimeStampInformation = result.TimeStampInformation + ' Checks whether the signature signed with timestamp alone + Dim documentTimeStamp As Boolean = timeStampInformation.IsDocumentTimeStamp + ' Close the document + document.Close(true) + + + + + + Gets the timestamp certificate. + + + + // Loads an existing document + PdfLoadedDocument document = new PdfLoadedDocument(fileName); + // Gets the signature field + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + // Validate signature and get validation result + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + // Gets the timestamp information from the signature + TimeStampInformation timeStampInformation = result.TimeStampInformation; + // Checks whether the signature signed with timestamp alone + bool documentTimeStamp = timeStampInformation.IsDocumentTimeStamp; + //Gets the timestamp certificate. + X509Certificate2 certificate2 = result.TimeStampInformation.Certificate; + // Close the document + document.Close(true); + + + ' Loads an existing document + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName) + ' Gets the signature field + Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField + ' Validate signature and get validation result + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + ' Gets the timestamp information from the signature + Dim timeStampInformation As TimeStampInformation = result.TimeStampInformation + ' Checks whether the signature signed with timestamp alone + Dim documentTimeStamp As Boolean = timeStampInformation.IsDocumentTimeStamp + 'Gets the timestamp certificate. + Dim certificate2 AS X509Certificate2 = result.TimeStampInformation.Certificate + ' Close the document + document.Close(true) + + + + + + Gets an array of PdfSignerCertificate objects that represent the certificates belonging to the signers associated with the signature timestamp. + + + + //Loads an existing document. + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Gets the signature field. + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + //Validates signature and gets the validation result. + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + //Gets signer certificates + PdfSignerCertificate[] certifcate = result.TimeStampInformation.SignerCertificates; + foreach (PdfSignerCertificate cert in certifcate) + { + //Get the actual signer certificate. + X509Certificate2 actualCertificate = cert.Certificate; + //Get the OCSP certificate. + PdfRevocationCertificate ocspCertificate = cert.OcspCertificate; + if (ocspCertificate != null) + { + //Gets a value indicating whether the revocation certificate is embedded within the PDF document + bool isOcspEmbedded = ocspCertificate.IsEmbedded; + //Gets the certificate associated with the revocation certificate + X509Certificate2 ocsPCert = ocspCertificate.Certificates[0]; + //Gets the date and time when the revocation certificate becomes valid + DateTime currentUpdate = ocspCertificate.ValidFrom; + //Gets the date and time when the revocation certificate expires + DateTime nextUpdate = ocspCertificate.ValidTo; + } + //Get the CRL certificate. + PdfRevocationCertificate crlCertificate = cert.CrlCertificate; + if (crlCertificate != null) + { + //Gets a value indicating whether the revocation certificate is embedded within the PDF document + bool isCrlEmbedded = crlCertificate.IsEmbedded; + //Gets the certificate associated with the revocation certificate + X509Certificate2 crlCert = crlCertificate.Certificates[0]; + //Gets the date and time when the revocation certificate becomes valid + DateTime currentUpdate = crlCertificate.ValidFrom; + //Gets the date and time when the revocation certificate expires + DateTime nextUpdate = crlCertificate.ValidTo; + } + } + //Close the document. + document.Close(true); + + + Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + Dim signatureField As PdfLoadedSignatureField = CType(document.Form.Fields(0),PdfLoadedSignatureField) + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature + Dim certifcate() As PdfSignerCertificate = result.TimeStampInformation.SignerCertificates + For Each cert As PdfSignerCertificate In certifcate + 'Get the actual signer certificate. + Dim actualCertificate As X509Certificate2 = cert.Certificate + 'Get the OCSP certificate. + Dim ocspCertificate As PdfRevocationCertificate = cert.OcspCertificate + If (Not (ocspCertificate) Is Nothing) Then + 'Gets a value indicating whether the revocation certificate is embedded within the PDF document + Dim isOcspEmbedded As Boolean = ocspCertificate.IsEmbedded + 'Gets the certificate associated with the revocation certificate + Dim ocsPCert As X509Certificate2 = ocspCertificate.Certificates(0) + 'Gets the date and time when the revocation certificate becomes valid + Dim currentUpdate As DateTime = ocspCertificate.ValidFrom + 'Gets the date and time when the revocation certificate expires + Dim nextUpdate As DateTime = ocspCertificate.ValidTo + End If + 'Get the CRL certificate. + Dim crlCertificate As PdfRevocationCertificate = cert.CrlCertificate + If (Not (crlCertificate) Is Nothing) Then + 'Gets a value indicating whether the revocation certificate is embedded within the PDF document + Dim isCrlEmbedded As Boolean = crlCertificate.IsEmbedded + 'Gets the certificate associated with the revocation certificate + Dim crlCert As X509Certificate2 = crlCertificate.Certificates(0) + 'Gets the date and time when the revocation certificate becomes valid + Dim currentUpdate As DateTime = crlCertificate.ValidFrom + 'Gets the date and time when the revocation certificate expires + Dim nextUpdate As DateTime = crlCertificate.ValidTo + End If + Next + 'Close the document. + document.Close(true) + + + + + + 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 + + + + + Returns the final encoded AsnSequence + + + + + 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 + + + + 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) + + + + + + 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) + + + + + + Gets a value indicating whether the Timestamp URL is valid. + + + + //Create a timestamp server. + TimeStampServer tsServer = new TimeStampServer(new Uri("http://timestampurl.com/")); + //Check whether the Timestamp URL is valid or not. + bool isValid = tsServer.IsValid; + + + 'Create a timestamp server. + Dim tsServer As TimeStampServer = New TimeStampServer(New Uri("http://timestampurl.com/")) + 'Check whether the Timestamp URL is valid or not. + Dim isValid As Boolean = tsServer.IsValid + + + + + 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) + + + + + + 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. + + + + + 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 a value indicating whether this document is encrypt only attachment or not. + + + + + 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. + + + + + 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 + + + + + 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. + + + + + Internal variable to indicates the security setting modified. + + + + + 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. + + + + + Gets or sets a value indicating whether this document is encrypt only attachment or not. + + + + + Gets or sets the type of encryption options used. + + + + PdfDocument document = new PdfDocument(); + PdfPage page = document.Pages.Add(); + PdfGraphics graphics = page.Graphics; + PdfStandardFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 20f, PdfFontStyle.Bold); + PdfBrush brush = PdfBrushes.Black; + PdfSecurity security = document.Security; + security.KeySize = PdfEncryptionKeySize.Key128Bit; + security.Algorithm = PdfEncryptionAlgorithm.AES; + security.EncryptionOptions = PdfEncryptionOptions.EncryptAllContents + security.UserPassword = "password"; + graphics.DrawString("Encrypted with AES 128bit", font, brush, new PointF(0, 40)); + PdfAttachment attachment = new PdfAttachment(@"D:\Hello world.docx"); + attachment.ModificationDate = DateTime.Now; + attachment.Description = "Hello world.docx"; + attachment.MimeType = "application/txt"; + document.Attachments.Add(attachment); + document.Save(@"D:\NormalAttach.pdf"); + document.Close(true); + + + + + + 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 + + + + 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) + + + + + + The default key set is used. The user key set is usually the default. + + + + + Private keys are stored in the current user store rather than the local computer + store. This occurs even if the certificate specifies that the keys should + go in the local computer store. + + + + + Private keys are stored in the local computer store rather than the current + user store. + + + + + Imported keys are marked as exportable. + + + + + Notify the user through a dialog box or other method that the key is accessed. + The Cryptographic Service Provider (CSP) in use defines the precise behavior. + + + + + The key associated with a PFX file is persisted when importing a certificate. + + + + + Specifies the encryption option. + + + + PdfDocument document = new PdfDocument(); + PdfPage page = document.Pages.Add(); + PdfGraphics graphics = page.Graphics; + PdfStandardFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 20f, PdfFontStyle.Bold); + PdfBrush brush = PdfBrushes.Black; + PdfSecurity security = document.Security; + security.KeySize = PdfEncryptionKeySize.Key128Bit; + security.Algorithm = PdfEncryptionAlgorithm.AES; + security.EncryptionOptions = PdfEncryptionOptions.EncryptAllContents + security.UserPassword = "password"; + graphics.DrawString("Encrypted with AES 128bit", font, brush, new PointF(0, 40)); + PdfAttachment attachment = new PdfAttachment(@"D:\Hello world.docx"); + attachment.ModificationDate = DateTime.Now; + attachment.Description = "Hello world.docx"; + attachment.MimeType = "application/txt"; + document.Attachments.Add(attachment); + document.Save(@"D:\NormalAttach.pdf"); + document.Close(true); + + + + + + To encrypt all the document contents. + + + + + To encrypt all the document contents except metadata. + + + + + To encrypt atttachment files only. + + + + + Algorithm object identifier + + + + + DSA signer + + + + + Public key parameter and Private key parameter + + + + + + + Interface of the objects that support Decryptable of their internals. + + + + + 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. + + + + Decrypts the specified encryptor. + + The encryptor. + The curr obj number. + + + + The PdfRevocationCertificate class represents a revocation certificate used in PDF signing operations. It contains information related to the revocation status of a signer's certificate. + + + + + Gets a value indicating whether the revocation certificate is embedded within the PDF document. + + + + //Loads an existing document. + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Gets the signature field. + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + //Validates signature and gets the validation result. + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + //Gets signer certificates + PdfSignerCertificate[] certifcate = result.SignerCertificates; + foreach (PdfSignerCertificate cert in certifcate) + { + //Get the actual signer certificate. + X509Certificate2 actualCertificate = cert.Certificate; + //Get the OCSP certificate. + PdfRevocationCertificate ocspCertificate = cert.OcspCertificate; + if (ocspCertificate != null) + { + //Gets a value indicating whether the revocation certificate is embedded within the PDF document + bool isOcspEmbedded = ocspCertificate.IsEmbedded; + //Gets the certificate associated with the revocation certificate + X509Certificate2 ocsPCert = ocspCertificate.Certificates[0]; + //Gets the date and time when the revocation certificate becomes valid + DateTime currentUpdate = ocspCertificate.ValidFrom; + //Gets the date and time when the revocation certificate expires + DateTime nextUpdate = ocspCertificate.ValidTo; + } + //Get the CRL certificate. + PdfRevocationCertificate crlCertificate = cert.CrlCertificate; + if (crlCertificate != null) + { + //Gets a value indicating whether the revocation certificate is embedded within the PDF document + bool isCrlEmbedded = crlCertificate.IsEmbedded; + //Gets the certificate associated with the revocation certificate + X509Certificate2 crlCert = crlCertificate.Certificates[0]; + //Gets the date and time when the revocation certificate becomes valid + DateTime currentUpdate = crlCertificate.ValidFrom; + //Gets the date and time when the revocation certificate expires + DateTime nextUpdate = crlCertificate.ValidTo; + } + } + //Close the document. + document.Close(true); + + + Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + Dim signatureField As PdfLoadedSignatureField = CType(document.Form.Fields(0),PdfLoadedSignatureField) + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature + Dim certifcate() As PdfSignerCertificate = result.SignerCertificates + For Each cert As PdfSignerCertificate In certifcate + 'Get the actual signer certificate. + Dim actualCertificate As X509Certificate2 = cert.Certificate + 'Get the OCSP certificate. + Dim ocspCertificate As PdfRevocationCertificate = cert.OcspCertificate + If (Not (ocspCertificate) Is Nothing) Then + 'Gets a value indicating whether the revocation certificate is embedded within the PDF document + Dim isOcspEmbedded As Boolean = ocspCertificate.IsEmbedded + 'Gets the certificate associated with the revocation certificate + Dim ocsPCert As X509Certificate2 = ocspCertificate.Certificates(0) + 'Gets the date and time when the revocation certificate becomes valid + Dim currentUpdate As DateTime = ocspCertificate.ValidFrom + 'Gets the date and time when the revocation certificate expires + Dim nextUpdate As DateTime = ocspCertificate.ValidTo + End If + 'Get the CRL certificate. + Dim crlCertificate As PdfRevocationCertificate = cert.CrlCertificate + If (Not (crlCertificate) Is Nothing) Then + 'Gets a value indicating whether the revocation certificate is embedded within the PDF document + Dim isCrlEmbedded As Boolean = crlCertificate.IsEmbedded + 'Gets the certificate associated with the revocation certificate + Dim crlCert As X509Certificate2 = crlCertificate.Certificates(0) + 'Gets the date and time when the revocation certificate becomes valid + Dim currentUpdate As DateTime = crlCertificate.ValidFrom + 'Gets the date and time when the revocation certificate expires + Dim nextUpdate As DateTime = crlCertificate.ValidTo + End If + Next + 'Close the document. + document.Close(true) + + + + + + Gets the date and time when the revocation certificate becomes valid. + + + + //Loads an existing document. + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Gets the signature field. + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + //Validates signature and gets the validation result. + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + //Gets signer certificates + PdfSignerCertificate[] certifcate = result.SignerCertificates; + foreach (PdfSignerCertificate cert in certifcate) + { + //Get the actual signer certificate. + X509Certificate2 actualCertificate = cert.Certificate; + //Get the OCSP certificate. + PdfRevocationCertificate ocspCertificate = cert.OcspCertificate; + if (ocspCertificate != null) + { + //Gets a value indicating whether the revocation certificate is embedded within the PDF document + bool isOcspEmbedded = ocspCertificate.IsEmbedded; + //Gets the certificate associated with the revocation certificate + X509Certificate2 ocsPCert = ocspCertificate.Certificates[0]; + //Gets the date and time when the revocation certificate becomes valid + DateTime currentUpdate = ocspCertificate.ValidFrom; + //Gets the date and time when the revocation certificate expires + DateTime nextUpdate = ocspCertificate.ValidTo; + } + //Get the CRL certificate. + PdfRevocationCertificate crlCertificate = cert.CrlCertificate; + if (crlCertificate != null) + { + //Gets a value indicating whether the revocation certificate is embedded within the PDF document + bool isCrlEmbedded = crlCertificate.IsEmbedded; + //Gets the certificate associated with the revocation certificate + X509Certificate2 crlCert = crlCertificate.Certificates[0]; + //Gets the date and time when the revocation certificate becomes valid + DateTime currentUpdate = crlCertificate.ValidFrom; + //Gets the date and time when the revocation certificate expires + DateTime nextUpdate = crlCertificate.ValidTo; + } + } + //Close the document. + document.Close(true); + + + Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + Dim signatureField As PdfLoadedSignatureField = CType(document.Form.Fields(0),PdfLoadedSignatureField) + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature + Dim certifcate() As PdfSignerCertificate = result.SignerCertificates + For Each cert As PdfSignerCertificate In certifcate + 'Get the actual signer certificate. + Dim actualCertificate As X509Certificate2 = cert.Certificate + 'Get the OCSP certificate. + Dim ocspCertificate As PdfRevocationCertificate = cert.OcspCertificate + If (Not (ocspCertificate) Is Nothing) Then + 'Gets a value indicating whether the revocation certificate is embedded within the PDF document + Dim isOcspEmbedded As Boolean = ocspCertificate.IsEmbedded + 'Gets the certificate associated with the revocation certificate + Dim ocsPCert As X509Certificate2 = ocspCertificate.Certificates(0) + 'Gets the date and time when the revocation certificate becomes valid + Dim currentUpdate As DateTime = ocspCertificate.ValidFrom + 'Gets the date and time when the revocation certificate expires + Dim nextUpdate As DateTime = ocspCertificate.ValidTo + End If + 'Get the CRL certificate. + Dim crlCertificate As PdfRevocationCertificate = cert.CrlCertificate + If (Not (crlCertificate) Is Nothing) Then + 'Gets a value indicating whether the revocation certificate is embedded within the PDF document + Dim isCrlEmbedded As Boolean = crlCertificate.IsEmbedded + 'Gets the certificate associated with the revocation certificate + Dim crlCert As X509Certificate2 = crlCertificate.Certificates(0) + 'Gets the date and time when the revocation certificate becomes valid + Dim currentUpdate As DateTime = crlCertificate.ValidFrom + 'Gets the date and time when the revocation certificate expires + Dim nextUpdate As DateTime = crlCertificate.ValidTo + End If + Next + 'Close the document. + document.Close(true) + + + + + + Gets the date and time when the revocation certificate expires. + + + + //Loads an existing document. + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Gets the signature field. + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + //Validates signature and gets the validation result. + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + //Gets signer certificates + PdfSignerCertificate[] certifcate = result.SignerCertificates; + foreach (PdfSignerCertificate cert in certifcate) + { + //Get the actual signer certificate. + X509Certificate2 actualCertificate = cert.Certificate; + //Get the OCSP certificate. + PdfRevocationCertificate ocspCertificate = cert.OcspCertificate; + if (ocspCertificate != null) + { + //Gets a value indicating whether the revocation certificate is embedded within the PDF document + bool isOcspEmbedded = ocspCertificate.IsEmbedded; + //Gets the certificate associated with the revocation certificate + X509Certificate2 ocsPCert = ocspCertificate.Certificates[0]; + //Gets the date and time when the revocation certificate becomes valid + DateTime currentUpdate = ocspCertificate.ValidFrom; + //Gets the date and time when the revocation certificate expires + DateTime nextUpdate = ocspCertificate.ValidTo; + } + //Get the CRL certificate. + PdfRevocationCertificate crlCertificate = cert.CrlCertificate; + if (crlCertificate != null) + { + //Gets a value indicating whether the revocation certificate is embedded within the PDF document + bool isCrlEmbedded = crlCertificate.IsEmbedded; + //Gets the certificate associated with the revocation certificate + X509Certificate2 crlCert = crlCertificate.Certificates[0]; + //Gets the date and time when the revocation certificate becomes valid + DateTime currentUpdate = crlCertificate.ValidFrom; + //Gets the date and time when the revocation certificate expires + DateTime nextUpdate = crlCertificate.ValidTo; + } + } + //Close the document. + document.Close(true); + + + Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + Dim signatureField As PdfLoadedSignatureField = CType(document.Form.Fields(0),PdfLoadedSignatureField) + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature + Dim certifcate() As PdfSignerCertificate = result.SignerCertificates + For Each cert As PdfSignerCertificate In certifcate + 'Get the actual signer certificate. + Dim actualCertificate As X509Certificate2 = cert.Certificate + 'Get the OCSP certificate. + Dim ocspCertificate As PdfRevocationCertificate = cert.OcspCertificate + If (Not (ocspCertificate) Is Nothing) Then + 'Gets a value indicating whether the revocation certificate is embedded within the PDF document + Dim isOcspEmbedded As Boolean = ocspCertificate.IsEmbedded + 'Gets the certificate associated with the revocation certificate + Dim ocsPCert As X509Certificate2 = ocspCertificate.Certificates(0) + 'Gets the date and time when the revocation certificate becomes valid + Dim currentUpdate As DateTime = ocspCertificate.ValidFrom + 'Gets the date and time when the revocation certificate expires + Dim nextUpdate As DateTime = ocspCertificate.ValidTo + End If + 'Get the CRL certificate. + Dim crlCertificate As PdfRevocationCertificate = cert.CrlCertificate + If (Not (crlCertificate) Is Nothing) Then + 'Gets a value indicating whether the revocation certificate is embedded within the PDF document + Dim isCrlEmbedded As Boolean = crlCertificate.IsEmbedded + 'Gets the certificate associated with the revocation certificate + Dim crlCert As X509Certificate2 = crlCertificate.Certificates(0) + 'Gets the date and time when the revocation certificate becomes valid + Dim currentUpdate As DateTime = crlCertificate.ValidFrom + 'Gets the date and time when the revocation certificate expires + Dim nextUpdate As DateTime = crlCertificate.ValidTo + End If + Next + 'Close the document. + document.Close(true) + + + + + + Gets the certificate associated with the revocation certificate. + + + + //Loads an existing document. + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Gets the signature field. + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + //Validates signature and gets the validation result. + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + //Gets signer certificates + PdfSignerCertificate[] certifcate = result.SignerCertificates; + foreach (PdfSignerCertificate cert in certifcate) + { + //Get the actual signer certificate. + X509Certificate2 actualCertificate = cert.Certificate; + //Get the OCSP certificate. + PdfRevocationCertificate ocspCertificate = cert.OcspCertificate; + if (ocspCertificate != null) + { + //Gets a value indicating whether the revocation certificate is embedded within the PDF document + bool isOcspEmbedded = ocspCertificate.IsEmbedded; + //Gets the certificate associated with the revocation certificate + X509Certificate2 ocsPCert = ocspCertificate.Certificates[0]; + //Gets the date and time when the revocation certificate becomes valid + DateTime currentUpdate = ocspCertificate.ValidFrom; + //Gets the date and time when the revocation certificate expires + DateTime nextUpdate = ocspCertificate.ValidTo; + } + //Get the CRL certificate. + PdfRevocationCertificate crlCertificate = cert.CrlCertificate; + if (crlCertificate != null) + { + //Gets a value indicating whether the revocation certificate is embedded within the PDF document + bool isCrlEmbedded = crlCertificate.IsEmbedded; + //Gets the certificate associated with the revocation certificate + X509Certificate2 crlCert = crlCertificate.Certificates[0]; + //Gets the date and time when the revocation certificate becomes valid + DateTime currentUpdate = crlCertificate.ValidFrom; + //Gets the date and time when the revocation certificate expires + DateTime nextUpdate = crlCertificate.ValidTo; + } + } + //Close the document. + document.Close(true); + + + Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + Dim signatureField As PdfLoadedSignatureField = CType(document.Form.Fields(0),PdfLoadedSignatureField) + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature + Dim certifcate() As PdfSignerCertificate = result.SignerCertificates + For Each cert As PdfSignerCertificate In certifcate + 'Get the actual signer certificate. + Dim actualCertificate As X509Certificate2 = cert.Certificate + 'Get the OCSP certificate. + Dim ocspCertificate As PdfRevocationCertificate = cert.OcspCertificate + If (Not (ocspCertificate) Is Nothing) Then + 'Gets a value indicating whether the revocation certificate is embedded within the PDF document + Dim isOcspEmbedded As Boolean = ocspCertificate.IsEmbedded + 'Gets the certificate associated with the revocation certificate + Dim ocsPCert As X509Certificate2 = ocspCertificate.Certificates(0) + 'Gets the date and time when the revocation certificate becomes valid + Dim currentUpdate As DateTime = ocspCertificate.ValidFrom + 'Gets the date and time when the revocation certificate expires + Dim nextUpdate As DateTime = ocspCertificate.ValidTo + End If + 'Get the CRL certificate. + Dim crlCertificate As PdfRevocationCertificate = cert.CrlCertificate + If (Not (crlCertificate) Is Nothing) Then + 'Gets a value indicating whether the revocation certificate is embedded within the PDF document + Dim isCrlEmbedded As Boolean = crlCertificate.IsEmbedded + 'Gets the certificate associated with the revocation certificate + Dim crlCert As X509Certificate2 = crlCertificate.Certificates(0) + 'Gets the date and time when the revocation certificate becomes valid + Dim currentUpdate As DateTime = crlCertificate.ValidFrom + 'Gets the date and time when the revocation certificate expires + Dim nextUpdate As DateTime = crlCertificate.ValidTo + End If + Next + 'Close the document. + document.Close(true) + + + + + + Gets a value indicating whether the CRL certificate is revoked or not. + + + + //Loads an existing signed PDF document. + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); + //Gets the signature field. + PdfLoadedSignatureField signatureField = loadedDocument.Form.Fields[0] as PdfLoadedSignatureField; + //Validate signature and gets the validation result. + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + //Gets signer certificates. + PdfSignerCertificate[] signerCertificates = result.SignerCertificates; + foreach (PdfSignerCertificate signerCertificate in signerCertificates) + { + if (signerCertificate.CrlCertificate != null) + { + //Gets the value indicating whether the CRL certificated is revoked or not. + bool isRevoked = signerCertificate.CrlCertificate.IsRevokedCRL; + } + } + //Close the document. + loadedDocument.Close(true); + + + 'Gets the value indicating whether the CRL certificated is revoked or not. + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + 'Gets the signature field. + Dim signatureField As PdfLoadedSignatureField = TryCast(loadedDocument.Form.Fields(0), PdfLoadedSignatureField) + 'Validate signature and gets the validation result. + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + 'Gets signer certificates. + Dim signerCertificates As PdfSignerCertificate() = result.SignerCertificates + For Each signerCertificate As PdfSignerCertificate In signerCertificates + If signerCertificate.CrlCertificate IsNot Nothing Then + 'Gets the value indicating whether the CRL certificated is revoked or not. + Dim isRevoked As Boolean = signerCertificate.CrlCertificate.IsRevokedCRL + End If + Next + 'Close the document. + loadedDocument.Close(True) + + + + + + Retrieve the list of revoked certificates from every Certificate Revocation List (CRL). + + + + //Loads an existing signed PDF document. + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); + //Gets the signature field. + PdfLoadedSignatureField signatureField = loadedDocument.Form.Fields[0] as PdfLoadedSignatureField; + Validate signature and gets the validation result. + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + //Gets signer certificates. + PdfSignerCertificate[] signerCertificates = result.SignerCertificates; + foreach (PdfSignerCertificate signerCertificate in signerCertificates) + { + if (signerCertificate.CrlCertificate != null) + { + //Gets the list of revoked certficates. + RevokedCertificate[] revokedCertificates = signerCertificate.CrlCertificate.RevokedCertificates; + if (revokedCertificates != null) + { + //Gets a serial number of the revoked certificate. + string serialNumber = revokedCertificates[0].SerialNumber; + //Gets a revoked date of the specific revoked certificate. + DateTime revokedDate = revokedCertificates[0].ValidTo; + } + } + } + //Close the document. + loadedDocument.Close(true); + + + 'Loads an existing signed PDF document. + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + 'Gets the signature field. + Dim signatureField As PdfLoadedSignatureField = TryCast(loadedDocument.Form.Fields(0), PdfLoadedSignatureField) + 'Validate signature and gets the validation result. + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + 'Gets signer certificates. + Dim signerCertificates As PdfSignerCertificate() = result.SignerCertificates + For Each signerCertificate As PdfSignerCertificate In signerCertificates + If signerCertificate.CrlCertificate IsNot Nothing Then + 'Gets the list of revoked certficates. + Dim revokedCertificates As RevokedCertificate() = signerCertificate.CrlCertificate.RevokedCertificates + If revokedCertificates IsNot Nothing Then + 'Gets a serial number of the revoked certificate. + Dim serialNumber As String = revokedCertificates(0).SerialNumber + 'Gets a revoked date of the specific revoked certificate. + Dim revokedDate As DateTime = revokedCertificates(0).ValidTo + End If + End If + Next + 'Close the document. + loadedDocument.Close(True) + + + + + + The RevokedCertificate class represents the revoked certificates used in PDF signing operations. + + + + + Gets a serial number of the revoked certificate. + + + + //Loads an existing signed PDF document. + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); + //Gets the signature field. + PdfLoadedSignatureField signatureField = loadedDocument.Form.Fields[0] as PdfLoadedSignatureField; + Validate signature and gets the validation result. + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + //Gets signer certificates. + PdfSignerCertificate[] signerCertificates = result.SignerCertificates; + foreach (PdfSignerCertificate signerCertificate in signerCertificates) + { + if (signerCertificate.CrlCertificate != null) + { + //Gets the list of revoked certficates. + RevokedCertificates[] revokedCertificates = signerCertificate.CrlCertificate.RevokedCertificates; + if (revokedCertificates != null) + { + //Gets a serial number of the revoked certificate. + string serialNumber = revokedCertificates[0].SerialNumber; + //Gets a revoked date of the specific revoked certificate. + DateTime revokedDate = revokedCertificates[0].ValidTo; + } + } + } + //Close the document. + loadedDocument.Close(true); + + + 'Loads an existing signed PDF document. + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + 'Gets the signature field. + Dim signatureField As PdfLoadedSignatureField = TryCast(loadedDocument.Form.Fields(0), PdfLoadedSignatureField) + 'Validate signature and gets the validation result. + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + 'Gets signer certificates. + Dim signerCertificates As PdfSignerCertificate() = result.SignerCertificates + For Each signerCertificate As PdfSignerCertificate In signerCertificates + If signerCertificate.CrlCertificate IsNot Nothing Then + 'Gets the list of revoked certficates. + Dim revokedCertificates As RevokedCertificates() = signerCertificate.CrlCertificate.RevokedCertificates + If revokedCertificates IsNot Nothing Then + 'Gets a serial number of the revoked certificate. + Dim serialNumber As String = revokedCertificates(0).SerialNumber + 'Gets a revoked date of the specific revoked certificate. + Dim revokedDate As DateTime = revokedCertificates(0).ValidTo + End If + End If + Next + 'Close the document. + loadedDocument.Close(True) + + + + + + Retrieves the validity of the revoked CRL. + + + + //Loads an existing signed PDF document. + PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); + //Gets the signature field. + PdfLoadedSignatureField signatureField = loadedDocument.Form.Fields[0] as PdfLoadedSignatureField; + Validate signature and gets the validation result. + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + //Gets signer certificates. + PdfSignerCertificate[] signerCertificates = result.SignerCertificates; + foreach (PdfSignerCertificate signerCertificate in signerCertificates) + { + if (signerCertificate.CrlCertificate != null) + { + //Gets the list of revoked certficates. + RevokedCertificates[] revokedCertificates = signerCertificate.CrlCertificate.RevokedCertificates; + if (revokedCertificates != null) + { + //Gets a serial number of the revoked certificate. + string serialNumber = revokedCertificates[0].SerialNumber; + //Gets a revoked date of the specific revoked certificate. + DateTime revokedDate = revokedCertificates[0].ValidTo; + } + } + } + //Close the document. + loadedDocument.Close(true); + + + 'Loads an existing signed PDF document. + Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + 'Gets the signature field. + Dim signatureField As PdfLoadedSignatureField = TryCast(loadedDocument.Form.Fields(0), PdfLoadedSignatureField) + 'Validate signature and gets the validation result. + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature() + 'Gets signer certificates. + Dim signerCertificates As PdfSignerCertificate() = result.SignerCertificates + For Each signerCertificate As PdfSignerCertificate In signerCertificates + If signerCertificate.CrlCertificate IsNot Nothing Then + 'Gets the list of revoked certficates. + Dim revokedCertificates As RevokedCertificates() = signerCertificate.CrlCertificate.RevokedCertificates + If revokedCertificates IsNot Nothing Then + 'Gets a serial number of the revoked certificate. + Dim serialNumber As String = revokedCertificates(0).SerialNumber + 'Gets a revoked date of the specific revoked certificate. + Dim revokedDate As DateTime = revokedCertificates(0).ValidTo + End If + End If + Next + 'Close the document. + loadedDocument.Close(True) + + + + + + The PdfSignerCertificate class represents a signer's certificate used in PDF signing operations. It encapsulates information related to the signer's original certificate, as well as the associated OCSP (Online Certificate Status Protocol) and CRL (Certificate Revocation List) certificates. + + + + + Gets the OCSP (Online Certificate Status Protocol) certificate associated with the signer's certificate. + + + + //Loads an existing document. + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Gets the signature field. + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + //Validates signature and gets the validation result. + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + //Gets signer certificates + PdfSignerCertificate[] certifcate = result.SignerCertificates; + foreach (PdfSignerCertificate cert in certifcate) + { + //Get the actual signer certificate. + X509Certificate2 actualCertificate = cert.Certificate; + //Get the OCSP certificate. + PdfRevocationCertificate ocspCertificate = cert.OcspCertificate; + if (ocspCertificate != null) + { + //Gets a value indicating whether the revocation certificate is embedded within the PDF document + bool isOcspEmbedded = ocspCertificate.IsEmbedded; + //Gets the certificate associated with the revocation certificate + X509Certificate2 ocsPCert = ocspCertificate.Certificates[0]; + //Gets the date and time when the revocation certificate becomes valid + DateTime currentUpdate = ocspCertificate.ValidFrom; + //Gets the date and time when the revocation certificate expires + DateTime nextUpdate = ocspCertificate.ValidTo; + } + //Get the CRL certificate. + PdfRevocationCertificate crlCertificate = cert.CrlCertificate; + if (crlCertificate != null) + { + //Gets a value indicating whether the revocation certificate is embedded within the PDF document + bool isCrlEmbedded = crlCertificate.IsEmbedded; + //Gets the certificate associated with the revocation certificate + X509Certificate2 crlCert = crlCertificate.Certificates[0]; + //Gets the date and time when the revocation certificate becomes valid + DateTime currentUpdate = crlCertificate.ValidFrom; + //Gets the date and time when the revocation certificate expires + DateTime nextUpdate = crlCertificate.ValidTo; + } + } + //Close the document. + document.Close(true); + + + Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + Dim signatureField As PdfLoadedSignatureField = CType(document.Form.Fields(0),PdfLoadedSignatureField) + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature + Dim certifcate() As PdfSignerCertificate = result.SignerCertificates + For Each cert As PdfSignerCertificate In certifcate + 'Get the actual signer certificate. + Dim actualCertificate As X509Certificate2 = cert.Certificate + 'Get the OCSP certificate. + Dim ocspCertificate As PdfRevocationCertificate = cert.OcspCertificate + If (Not (ocspCertificate) Is Nothing) Then + 'Gets a value indicating whether the revocation certificate is embedded within the PDF document + Dim isOcspEmbedded As Boolean = ocspCertificate.IsEmbedded + 'Gets the certificate associated with the revocation certificate + Dim ocsPCert As X509Certificate2 = ocspCertificate.Certificates(0) + 'Gets the date and time when the revocation certificate becomes valid + Dim currentUpdate As DateTime = ocspCertificate.ValidFrom + 'Gets the date and time when the revocation certificate expires + Dim nextUpdate As DateTime = ocspCertificate.ValidTo + End If + 'Get the CRL certificate. + Dim crlCertificate As PdfRevocationCertificate = cert.CrlCertificate + If (Not (crlCertificate) Is Nothing) Then + 'Gets a value indicating whether the revocation certificate is embedded within the PDF document + Dim isCrlEmbedded As Boolean = crlCertificate.IsEmbedded + 'Gets the certificate associated with the revocation certificate + Dim crlCert As X509Certificate2 = crlCertificate.Certificates(0) + 'Gets the date and time when the revocation certificate becomes valid + Dim currentUpdate As DateTime = crlCertificate.ValidFrom + 'Gets the date and time when the revocation certificate expires + Dim nextUpdate As DateTime = crlCertificate.ValidTo + End If + Next + 'Close the document. + document.Close(true) + + + + + + Gets the CRL (Certificate Revocation List) certificate associated with the signer's certificate. + + + + //Loads an existing document. + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Gets the signature field. + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + //Validates signature and gets the validation result. + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + //Gets signer certificates + PdfSignerCertificate[] certifcate = result.SignerCertificates; + foreach (PdfSignerCertificate cert in certifcate) + { + //Get the actual signer certificate. + X509Certificate2 actualCertificate = cert.Certificate; + //Get the OCSP certificate. + PdfRevocationCertificate ocspCertificate = cert.OcspCertificate; + if (ocspCertificate != null) + { + //Gets a value indicating whether the revocation certificate is embedded within the PDF document + bool isOcspEmbedded = ocspCertificate.IsEmbedded; + //Gets the certificate associated with the revocation certificate + X509Certificate2 ocsPCert = ocspCertificate.Certificates[0]; + //Gets the date and time when the revocation certificate becomes valid + DateTime currentUpdate = ocspCertificate.ValidFrom; + //Gets the date and time when the revocation certificate expires + DateTime nextUpdate = ocspCertificate.ValidTo; + } + //Get the CRL certificate. + PdfRevocationCertificate crlCertificate = cert.CrlCertificate; + if (crlCertificate != null) + { + //Gets a value indicating whether the revocation certificate is embedded within the PDF document + bool isCrlEmbedded = crlCertificate.IsEmbedded; + //Gets the certificate associated with the revocation certificate + X509Certificate2 crlCert = crlCertificate.Certificates[0]; + //Gets the date and time when the revocation certificate becomes valid + DateTime currentUpdate = crlCertificate.ValidFrom; + //Gets the date and time when the revocation certificate expires + DateTime nextUpdate = crlCertificate.ValidTo; + } + } + //Close the document. + document.Close(true); + + + Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + Dim signatureField As PdfLoadedSignatureField = CType(document.Form.Fields(0),PdfLoadedSignatureField) + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature + Dim certifcate() As PdfSignerCertificate = result.SignerCertificates + For Each cert As PdfSignerCertificate In certifcate + 'Get the actual signer certificate. + Dim actualCertificate As X509Certificate2 = cert.Certificate + 'Get the OCSP certificate. + Dim ocspCertificate As PdfRevocationCertificate = cert.OcspCertificate + If (Not (ocspCertificate) Is Nothing) Then + 'Gets a value indicating whether the revocation certificate is embedded within the PDF document + Dim isOcspEmbedded As Boolean = ocspCertificate.IsEmbedded + 'Gets the certificate associated with the revocation certificate + Dim ocsPCert As X509Certificate2 = ocspCertificate.Certificates(0) + 'Gets the date and time when the revocation certificate becomes valid + Dim currentUpdate As DateTime = ocspCertificate.ValidFrom + 'Gets the date and time when the revocation certificate expires + Dim nextUpdate As DateTime = ocspCertificate.ValidTo + End If + 'Get the CRL certificate. + Dim crlCertificate As PdfRevocationCertificate = cert.CrlCertificate + If (Not (crlCertificate) Is Nothing) Then + 'Gets a value indicating whether the revocation certificate is embedded within the PDF document + Dim isCrlEmbedded As Boolean = crlCertificate.IsEmbedded + 'Gets the certificate associated with the revocation certificate + Dim crlCert As X509Certificate2 = crlCertificate.Certificates(0) + 'Gets the date and time when the revocation certificate becomes valid + Dim currentUpdate As DateTime = crlCertificate.ValidFrom + 'Gets the date and time when the revocation certificate expires + Dim nextUpdate As DateTime = crlCertificate.ValidTo + End If + Next + 'Close the document. + document.Close(true) + + + + + + Gets the certificate associated with the signer. + + + + //Loads an existing document. + PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); + //Gets the signature field. + PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField; + //Validates signature and gets the validation result. + PdfSignatureValidationResult result = signatureField.ValidateSignature(); + //Gets signer certificates + PdfSignerCertificate[] certifcate = result.SignerCertificates; + foreach (PdfSignerCertificate cert in certifcate) + { + //Get the actual signer certificate. + X509Certificate2 actualCertificate = cert.Certificate; + //Get the OCSP certificate. + PdfRevocationCertificate ocspCertificate = cert.OcspCertificate; + if (ocspCertificate != null) + { + //Gets a value indicating whether the revocation certificate is embedded within the PDF document + bool isOcspEmbedded = ocspCertificate.IsEmbedded; + //Gets the certificate associated with the revocation certificate + X509Certificate2 ocsPCert = ocspCertificate.Certificates[0]; + //Gets the date and time when the revocation certificate becomes valid + DateTime currentUpdate = ocspCertificate.ValidFrom; + //Gets the date and time when the revocation certificate expires + DateTime nextUpdate = ocspCertificate.ValidTo; + } + //Get the CRL certificate. + PdfRevocationCertificate crlCertificate = cert.CrlCertificate; + if (crlCertificate != null) + { + //Gets a value indicating whether the revocation certificate is embedded within the PDF document + bool isCrlEmbedded = crlCertificate.IsEmbedded; + //Gets the certificate associated with the revocation certificate + X509Certificate2 crlCert = crlCertificate.Certificates[0]; + //Gets the date and time when the revocation certificate becomes valid + DateTime currentUpdate = crlCertificate.ValidFrom; + //Gets the date and time when the revocation certificate expires + DateTime nextUpdate = crlCertificate.ValidTo; + } + } + //Close the document. + document.Close(true); + + + Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") + Dim signatureField As PdfLoadedSignatureField = CType(document.Form.Fields(0),PdfLoadedSignatureField) + Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature + Dim certifcate() As PdfSignerCertificate = result.SignerCertificates + For Each cert As PdfSignerCertificate In certifcate + 'Get the actual signer certificate. + Dim actualCertificate As X509Certificate2 = cert.Certificate + 'Get the OCSP certificate. + Dim ocspCertificate As PdfRevocationCertificate = cert.OcspCertificate + If (Not (ocspCertificate) Is Nothing) Then + 'Gets a value indicating whether the revocation certificate is embedded within the PDF document + Dim isOcspEmbedded As Boolean = ocspCertificate.IsEmbedded + 'Gets the certificate associated with the revocation certificate + Dim ocsPCert As X509Certificate2 = ocspCertificate.Certificates(0) + 'Gets the date and time when the revocation certificate becomes valid + Dim currentUpdate As DateTime = ocspCertificate.ValidFrom + 'Gets the date and time when the revocation certificate expires + Dim nextUpdate As DateTime = ocspCertificate.ValidTo + End If + 'Get the CRL certificate. + Dim crlCertificate As PdfRevocationCertificate = cert.CrlCertificate + If (Not (crlCertificate) Is Nothing) Then + 'Gets a value indicating whether the revocation certificate is embedded within the PDF document + Dim isCrlEmbedded As Boolean = crlCertificate.IsEmbedded + 'Gets the certificate associated with the revocation certificate + Dim crlCert As X509Certificate2 = crlCertificate.Certificates(0) + 'Gets the date and time when the revocation certificate becomes valid + Dim currentUpdate As DateTime = crlCertificate.ValidFrom + 'Gets the date and time when the revocation certificate expires + Dim nextUpdate As DateTime = crlCertificate.ValidTo + End If + Next + 'Close the document. + document.Close(true) + + + + + + This class represents the secure store for a PDF document, providing access to document security details. + + + + + Retrieves an array of X509Certificate2 objects that represent the certificates stored within the document's secure store (DSS). + + + + //Load the existing PDF document. + PdfLoadedDocument ldoc = new PdfLoadedDocument(fileStream); + //Get the document secure store. + PdfDocumentSecureStore dss = ldoc.DocumentSecureStore; + //Get the certificates from document secure store. + X509Certificate2[] certificates = dss.Certificates; + //Close the document + document.Close(true); + + + + + + Initializes a new instance of the class. + + The catalog. + + + + list of parent cell index + + + + + cell index of PdfGrid which moves to next page + + + + + Gets the grid. + + The grid. + + + + 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 + + Pdf grid value. + + + + + 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. + + The pdf row. + The row height. + + + + + 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. + + The pdf string format. + + + + + Determines the column draw ranges. + + + + + Rearranges the pages + + + + + Gets the next page. + + + + + + Gets the format. + + The format. + + + + + Gets the layout result. + + + + + + Check row cell text is fit to cell or not + + The current height. + Pdf grid. + pdf grid row. + + + + + 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. + + + + Initializes a new instance of the class. + + + + + 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 + + + + + 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 or sets a value indicating whether to repeat header. + + true if [repeat header]; otherwise, 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. + for (int i = 0; i != 100; i++) + dataTable.Rows.Add(new object[] { "Cell[0][" + i.ToString() + "]", + "Cell[1][" + i.ToString() + "]" }); + //Assign data source. + pdfGrid.DataSource = dataTable; + //To repeat the header across pages + pdfGrid.RepeatHeader = true; + //Draw grid to the 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. + For i As Integer = 0 To 99 + dataTable.Rows.Add(New Object() {"Cell[0][" + i.ToString() + "]", "Cell[1][" + i.ToString() + "]"}) + Next i + 'Assign data source. + pdfGrid.DataSource = dataTable + 'To repeat the header across pages + pdfGrid.RepeatHeader = True + 'Draw grid to the page of PDF document. + pdfGrid.Draw(page, New PointF(10, 10)) + 'Save the document. + doc.Save("Output.pdf") + 'close the document + doc.Close(True) + + + Default value: false + + + + 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. + + + + + Gets a value indicating whether the grid column width is conisdered to be page width. + + + + + Indicating initial width of the page. + + + + + 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 + + + + + + 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. + + enum of PdfGridBuiltinStyle. + + + //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 + + Pdf font. + + + + + Create Regular style font + + Pdf font. + + + + + Create Italic style font + + Pdf font. + + + + + Change font style + + Pdf font. + + + + + Sets the data source. + + + + + Populates the grid. + + + + + Populates the header row. + + + + + Calculates the column widths. + + + + + Calculates the width of the columns. + + The bounds. + + + + 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 + + + + 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) + + + + + + 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. + + + + + Check ColumnSpan cell is the last cell in the row + + Last cell span count. + + + + + 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. + + + + + + Returns the column width + + + + + + Find inner column width + + Pdf grid cell value. + + + + + 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. + + + + 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) + + + + + + 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) + + + + + + Column collection enumerator. + + + + + Initializes a new instance of the struct. + + The column collection. + + + + Gets the current. + + The current. + + + + 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. + + + + + 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); + //Set the width for column1. + column1.Width = 100; + PdfGridColumn column2 = new PdfGridColumn(pdfGrid); + //Set the width for column2. + column2.Width = 200; + PdfGridColumn column3 = new PdfGridColumn(pdfGrid); + //Set the width for column3. + 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) + 'Set the width for column1. + column1.Width = 100 + Dim column2 As New PdfGridColumn(pdfGrid) + 'Set the width for column2. + column2.Width = 200 + Dim column3 As New PdfGridColumn(pdfGrid) + 'Set the width for column3. + 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; + //Assign the column width. + pdfGrid.Columns[0].Width = 50; + pdfGrid.Columns[1].Width = 100; + //Create Cell Style + PdfGridCellStyle style = new PdfGridCellStyle(); + style.TextBrush = PdfBrushes.Cyan; + //Draw grid to the 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 + 'Assign the column width. + pdfGrid.Columns[0].Width = 50; + pdfGrid.Columns[1].Width = 100; + 'Create Cell Style + Dim style As New PdfGridCellStyle() + style.TextBrush = PdfBrushes.Cyan + 'Draw grid to the 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) + + + + + + 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) + + + + + + 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) + + + + + + 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. + + + + 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) + + + + + + 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) + + + + + + Column collection enumerator. + + + + + Initializes a new instance of the struct. + + The column collection. + + + + Gets the current. + + The current. + + + + 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. + + + + + 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. + + + + + check whether the row is Grid header + + + + + 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 IsHeaderRow + + + + + 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) + + + + + + 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) + + + + + + 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) + + + + + + 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) + + + + + + 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) + + + + + + Column collection enumerator. + + + + + Initializes a new instance of the struct. + + The row collection. + + + + Gets the current. + + The current. + + + + 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. + + + + + 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) + + + + + + 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) + + + + + + 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) + + + + + + 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) + + + + + + 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) + + + + + + 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) + + + + + + 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) + + + + + + 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) + + + + + + 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) + + + + + + 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 + + + + Gets the start row index.[Read-Only] + + The start row. + + + + Initializes a new instance of the class. + + The bounds. + The page. + 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 + + + + Gets or sets a value that indicates whether the cell is drawn or not in the PDF document. + + + + + Gets or sets cell style of a grid. + + + + + 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. + + + + 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 + + + + 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 + + + + + + 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. + + + + 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 + + + + + + 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 + + + + + + Gets the type of Grid row. + + + + //Create a new PDF document. + PdfDocument pdfDocument = new PdfDocument(); + PdfPage pdfPage = pdfDocument.Pages.Add(); + //Create a new PdfGrid. + PdfGrid pdfGrid = new PdfGrid(); + pdfGrid.RepeatHeader = true; + //Set properties to paginate the grid. + pdfGrid.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable4Accent1); + //Add columns. + pdfGrid.Columns.Add(1); + //Add header. + pdfGrid.Headers.Add(1); + PdfGridRow pdfGridHeader = pdfGrid.Headers[0]; + pdfGridHeader.Cells[0].Value = "Company"; + PdfGridRow pdfGridRow; + pdfGridRow = pdfGrid.Rows.Add(); + pdfGridRow.Cells[0].Value = "Syncfusion"; + pdfGrid.BeginCellLayout += PdfGrid_BeginCellLayout; + PdfGridLayoutFormat layoutFormat = new PdfGridLayoutFormat(); + layoutFormat.Break = PdfLayoutBreakType.FitPage; + layoutFormat.Layout = PdfLayoutType.Paginate; + PdfLayoutResult result = pdfGrid.Draw(pdfPage, new PointF(30, 30), layoutFormat); + //Save and close the PDF document + pdfDocument.Save("Output.pdf"); + document.Close(true); + void PdfGrid_BeginCellLayout(object sender, PdfGridBeginCellLayoutEventArgs args) + { + if (args.IsHeaderRow) + { + args.Graphics.DrawString(args.Value, new PdfStandardFont(PdfFontFamily.Helvetica, 12), PdfBrushes.Black, new PointF(10, 10)); + } + } + + + Dim pdfDocument As PdfDocument = New PdfDocument + Dim pdfPage As PdfPage = pdfDocument.Pages.Add + Dim pdfGrid As PdfGrid = New PdfGrid + pdfGrid.RepeatHeader = true + 'Set properties to paginate the grid. + pdfGrid.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable4Accent1) + 'Add columns. + pdfGrid.Columns.Add(1) + 'Add header. + pdfGrid.Headers.Add(1) + Dim pdfGridHeader As PdfGridRow = pdfGrid.Headers(0) + pdfGridHeader.Cells(0).Value = "Company" + Dim pdfGridRow As PdfGridRow + pdfGridRow = pdfGrid.Rows.Add + pdfGridRow.Cells(0).Value = "Syncfusion" + pdfGrid.BeginCellLayout = (pdfGrid.BeginCellLayout + PdfGrid_BeginCellLayout) + Dim layoutFormat As PdfGridLayoutFormat = New PdfGridLayoutFormat + layoutFormat.Break = PdfLayoutBreakType.FitPage + layoutFormat.Layout = PdfLayoutType.Paginate + Dim result As PdfLayoutResult = pdfGrid.Draw(pdfPage, New PointF(30, 30), layoutFormat) + 'Save and close the PDF document + pdfDocument.Save("Output.pdf") + document.Close(true) + Private Sub PdfGrid_BeginCellLayout(ByVal sender As Object, ByVal args As PdfGridBeginCellLayoutEventArgs) + If args.IsHeaderRow Then + args.Graphics.DrawString(args.Value, New PdfStandardFont(PdfFontFamily.Helvetica, 12), PdfBrushes.Black, New PointF(10, 10)) + 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. + + + + 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) + + + + + + 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) + + + + + + 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) + + + + + + The class used represents the edges of the grid cells + + + + + 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. + + + + 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. + + + + 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) + + + + + + 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) + + + + + + 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) + + + + + + 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. + + + + + 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. + + + + + 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. + + + + 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 + + + + + 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. + + + + + 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. + + + + 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. + + + + + 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 + + + + + + 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. + + + + 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. + + + + + 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) + + + + + + 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) + + + + + + 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 + + + + 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 + + + + 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() + + + + + + 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. + + + + + Gets or sets element. + + + + + 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. + + + + Represents information about list. + + + + + Index of list. + + + + + Represents list. + + + + + The number of item at specified index. + + + + + Lists brush. + + + + + Lists pen. + + + + + Lists font. + + + + + Lists format. + + + + + 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. + + + + 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. + + + + 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. + + + + + 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 + + + + + + Initializes a new instance of the class. + + The bounds of the list. + The page in which list layouts. + The list that starts layout. + + + + Represents begin page layout event arguments. + + Class + + + + List that ended layout. + + + + + Gets the list that ended layout. + + The list that ended layout. + + + + Initializes a new instance of the class. + + The layout result. + 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. + + + + + 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 + + + + 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) + + + + + + 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; + string text = "PDF\nXlsIO\nDocIO\nPPT"; + //Create Ordered list + PdfOrderedList list = new PdfOrderedList(text); + //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 text As String = "PDF" + vbLf + "XlsIO" + vbLf + "DocIO" + vbLf + "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 + 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; + string text = "PDF\nXlsIO\nDocIO\nPPT"; + //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(text, 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 PDF list item instance. + Dim text As String = "PDF" + vbLf + "XlsIO" + vbLf + "DocIO" + vbLf + "PPT" + '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(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. + + + + 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. + + + + + 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 + + + + 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. + + + + 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. + + + + + Gets the item. + + The item that layout. + + + + Gets the page. + + 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. + + + + 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. + + + + + Gets the item that layout. + + The item that layout. + + + + Gets the page in which item ended layout. + + 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. + + + + 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. + + + + + Gets shape element. Read only. + + + + + 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 + + Pdf font. + + + + + Create Regular style font + + Pdf font. + + + + + Create Italic style font + + Pdf 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. + + + + 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. + + + + + 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) + + + + + + Initializes a new instance of the class. + + The current page. + The current bounds. + Index of the row. + The cell results. + + + + Represents the arguments of BeginPageLayoutEvent. + + Class + + + + Gets the start row. Read-Only. + + The index of the start row. + + + + 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. + + + + Represents the arguments of LightTableEndPageLayout Event. + + Class + + + + Gets the start row. Read-Only. + + The index of the start row. + + + + Gets the end row. Read-Only. + + The index of the last row. + + + + 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. + + + + 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 + + + + + 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 value to distribute the available table width by weighted proportions of table columns. + + Boolean + + // Create a PDF document + PdfDocument document = new PdfDocument(); + //Create a new page + PdfPage page = document.Pages.Add(); + //Create table + PdfLightTable table = new PdfLightTable(); + //Set the DataSourceType as Direct + table.DataSourceType = PdfLightTableDataSourceType.TableDirect; + //Get the columns collection + PdfColumnCollection tableColumns = table.Columns; + //Creating Columns + PdfColumn name = new PdfColumn("Name"); + name.Width = 10; + //Set second column + PdfColumn sirname = new PdfColumn("Sir name"); + sirname.Width = 40; + //Set third column + PdfColumn rollNumber = new PdfColumn("Roll Number"); + rollNumber.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); + rollNumber.Width = 20; + //Set table width + float tableWidth = 300; + //Enable the ColumnProportionalSizing based on table width + table.ColumnProportionalSizing = true; + //Add the column + tableColumns.Add(name); + tableColumns.Add(sirname); + tableColumns.Add(rollNumber); + //Adding Rows + table.Rows.Add(new object[] { "Jan", "Hussaarts", "Developer" }); + //Draw the table + table.Draw(page, 0, 0, tableWidth); + //Save the document + document.Save("Output.pdf"); + //Close the document + document.Close(true); + + + Dim document As PdfDocument = New PdfDocument + Dim page As PdfPage = document.Pages.Add + Dim table As PdfLightTable = New PdfLightTable + 'Set the DataSourceType as Direct + table.DataSourceType = PdfLightTableDataSourceType.TableDirect + Dim tableColumns As PdfColumnCollection = table.Columns + Dim name As PdfColumn = New PdfColumn("Name") + name.Width = 10 + Dim sirname As PdfColumn = New PdfColumn("Sir name") + sirname.Width = 40 + Dim rollNumber As PdfColumn = New PdfColumn("Roll Number") + rollNumber.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) + rollNumber.Width = 20 + Dim tableWidth As Single = 300 + 'Enable the ColumnProportionalSizing based on table width + table.ColumnProportionalSizing = true + 'Add the column + tableColumns.Add(name) + tableColumns.Add(sirname) + tableColumns.Add(rollNumber) + 'Adding Rows + table.Rows.Add(New Object() {"Jan", "Hussaarts", "Developer"}) + 'Draw the table + table.Draw(page, 0, 0, tableWidth) + 'Save the document + document.Save("Output.pdf") + 'Close the document + document.Close(true) + + + + + 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 + + + + + + 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. + + + + 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 + + + + 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 + + + + 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) + + + + + + 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 + + + + 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 + + + + + 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) + + + + + + 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 + + + + 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) + + + + + + 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. + + + + 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) + + + + + + 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) + + + + + + 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) + + + + + + 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) + + + + + + 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) + + + + + + Initializes a new instance of the class. + + The width. + + + + 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 + + + + 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) + + + + + + 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) + + + + + + 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 + + + + 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 + + + + 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) + + + + + + + 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 + + + + 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 + + + + + + Initializes a new instance of the class. + + Index of the row. + The cell style. + + + + 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 + + + + 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 + + + + + + Initializes a new instance of the class. + + Index of the row. + if set to true the row was drawn completely. + The row bounds. + + + + 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 + + + + + + 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 + + + + + + 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. + + + + 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 + + + + 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 + + + + + + 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. + + + + 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 + + + + 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 + + + + + + Initializes a new instance of the class. + + The column count. + Index of the row. + + + + 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 + + + + 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 + + + + + + Initializes a new instance of the class. + + + + + 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 + + + + 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 + + + + + + Initializes a new instance of the class. + + + + + 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. + + + + + Represents DataSource for tables + + + + + Data table + + + + + Rows count + + + + + Columns count + + + + + Data column + + + + + An array + + + + + Use sorting data + + + + + Cached rows + + + + + True if use data sorting, otherwise false + + + + + Gets rows counts + + + + + Gets column count + + + + + Gets visible columns names + + + + + Gets visible columns captions + + + + + 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 + + + + 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. + + + + + Artifacts in the PDF document can be graphic objects or other markings that are not a part of the authored content and will include things such as headers, footers, page numbers, watermarks, cut marks, color bars, background images, lines separating content, or decorative images. + + + + //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 + + + + //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 + + + + 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 + + + + + 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) + + + + + + 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 abbreviation associated with 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 associated with 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 associated with 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 of 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 language for the structure element + structElement.Language = "en-Us"; + //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 language for the structure element. + structElement.Language = "en-Us"; + '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 order of 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 structure element of the current 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) + //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 type of the tag associated with 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 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 associated with 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 the attribute dictionary of the structure element. + + + + + Gets or sets the scope of the structure element. + + + + //Creates a new PDF document + PdfDocument pdfDocument = new PdfDocument(); + pdfDocument.DocumentInformation.Title = "Table"; + //Adds new page + PdfPage pdfPage = pdfDocument.Pages.Add(); + //Initialize the new structure element with tag type table + PdfStructureElement element = new PdfStructureElement(PdfTagType.Table); + //Create a new PdfGrid + PdfGrid pdfGrid = new PdfGrid(); + //Adding tag to PDF grid + pdfGrid.PdfTag = element; + //Add three columns + pdfGrid.Columns.Add(3); + //Add header + pdfGrid.Headers.Add(1); + PdfGridRow pdfGridHeader = pdfGrid.Headers[0]; + pdfGridHeader.Style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Bold); + pdfGridHeader.Style.TextBrush = PdfBrushes.Brown; + //Adding tag for each row with tag type TR + pdfGridHeader.PdfTag = new PdfStructureElement(PdfTagType.TableRow); + pdfGridHeader.Cells[0].Value = "Employee ID"; + //Adding tag for header cell with tag type TH + pdfGridHeader.Cells[0].PdfTag = new PdfStructureElement(PdfTagType.TableHeader) { Scope = ScopeType.Both }; + pdfGridHeader.Cells[1].Value = "Employee Name"; + //Adding tag for header cell with tag type TH + pdfGridHeader.Cells[1].PdfTag = new PdfStructureElement(PdfTagType.TableHeader) { Scope = ScopeType.Row}; + pdfGridHeader.Cells[2].Value = "Salary"; + //Adding tag for header cell with tag type TH + pdfGridHeader.Cells[2].PdfTag = new PdfStructureElement(PdfTagType.TableHeader) { Scope = ScopeType.Column }; + //Add rows. + PdfGridRow pdfGridRow = pdfGrid.Rows.Add(); + pdfGridRow.PdfTag = new PdfStructureElement(PdfTagType.TableRow); + pdfGridRow.Cells[0].Value = "E01"; + pdfGridRow.Cells[1].Value = "Clay"; + pdfGridRow.Cells[2].Value = "$10,000"; + //Adding tag for each cell with tag type TD + pdfGridRow.Cells[0].PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); + pdfGridRow.Cells[1].PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); + pdfGridRow.Cells[2].PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); + //Draw the PdfGrid + pdfGrid.Draw(pdfPage, PointF.Empty); + //save the document and dispose it + pdfDocument.Save("Output.pdf"); + //close the document + pdfDocument.Close(true); + + + 'Creates a new PDF document + Dim pdfDocument As PdfDocument = New PdfDocument() + pdfDocument.DocumentInformation.Title = "Table" + 'Adds new page + Dim pdfPage As PdfPage = pdfDocument.Pages.Add() + 'Initialize the new structure element with tag type table + Dim element As PdfStructureElement = New PdfStructureElement(PdfTagType.Table) + 'Create a new PdfGrid + Dim pdfGrid As PdfGrid = New PdfGrid() + 'Adding tag to PDF grid + pdfGrid.PdfTag = element + 'Add three columns + pdfGrid.Columns.Add(3) + 'Add header. + pdfGrid.Headers.Add(1) + Dim pdfGridHeader As PdfGridRow = pdfGrid.Headers(0) + pdfGridHeader.Style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Bold) + pdfGridHeader.Style.TextBrush = PdfBrushes.Brown + 'Adding tag for each row with tag type TR + pdfGridHeader.PdfTag = New PdfStructureElement(PdfTagType.TableRow) + pdfGridHeader.Cells(0).Value = "Employee ID" + 'Adding tag for header cell with tag type TH + pdfGridHeader.Cells(0).PdfTag = New PdfStructureElement(PdfTagType.TableHeader) With {.Scope = ScopeType.Row} + pdfGridHeader.Cells(1).Value = "Employee Name" + 'Adding tag for header cell with tag type TH + pdfGridHeader.Cells(0).PdfTag = New PdfStructureElement(PdfTagType.TableHeader) With {.Scope = ScopeType.Column} + pdfGridHeader.Cells(2).Value = "Salary" + 'Adding tag for header cell with tag type TH + pdfGridHeader.Cells(0).PdfTag = New PdfStructureElement(PdfTagType.TableHeader) With {.Scope = ScopeType.Both} + 'Add rows. + Dim pdfGridRow As PdfGridRow = pdfGrid.Rows.Add() + pdfGridRow.PdfTag = New PdfStructureElement(PdfTagType.TableRow) + pdfGridRow.Cells(0).Value = "E01" + pdfGridRow.Cells(1).Value = "Clay" + pdfGridRow.Cells(2).Value = "$10,000" + 'Adding tag for each cell with tag type TD + pdfGridRow.Cells(0).PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) + pdfGridRow.Cells(1).PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) + pdfGridRow.Cells(2).PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) + 'Draw the PdfGrid + pdfGrid.Draw(pdfPage, PointF.Empty) + 'save the document and dispose it + pdfDocument.Save("Output.pdf") + pdfDocument.Close(True) + + + + + + Gets an array of child structure elements of the current structure element. + + + + FileStream fileStream = File.OpenRead("TaggedPDF.pdf"); + //Load existing PDF document. + PdfLoadedDocument document = new PdfLoadedDocument(fileStream); + //Get the structure element root from document. + PdfStructureElement rootElement = document.StructureElement; + //Get the first page from the document. + PdfLoadedPage loadedPage = document.Pages[0] as PdfLoadedPage; + //Get the structure elements associated with the page. + PdfStructureElement[] pageElements = loadedPage.StrutureElements; + //Get the first element from the page. + PdfStructureElement element = pageElements[0]; + //Get the element properties. + string abbrevation = element.Abbrevation; + string ActualText = element.ActualText; + string AlternateText = element.AlternateText; + string Language = element.Language; + int Order = element.Order; + PdfTagType TagType = element.TagType; + string Title = element.Title; + ScopeType scope = element.Scope; + //Gets the parent and child for first element. + PdfStructureElement parent = element.Parent; + //Gets the child elements for the element. + PdfStructureElement[] child = element.ChildElements; + //Gets the page bounds for the element. + RectangleF bounds = element.Bounds; + //Save the document. + MemoryStream stream = new MemoryStream(); + document.Save(stream); + document.Close(true); + + + Dim fileStream As FileStream = File.OpenRead("TaggedPDF.pdf") + //Load existing PDF document. + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileStream) + //Get the structure element root from document. + Dim rootElement As PdfStructureElement = document.StructureElement + //Get the first page from the document. + Dim loadedPage As PdfLoadedPage = CType(document.Pages(0),PdfLoadedPage) + //Get the structure elements associated with the page. + Dim pageElements() As PdfStructureElement = loadedPage.StrutureElements + //Get the first element from the page. + Dim element As PdfStructureElement = pageElements(0) + //Get the element properties. + Dim abbrevation As String = element.Abbrevation + Dim ActualText As String = element.ActualText + Dim AlternateText As String = element.AlternateText + Dim Language As String = element.Language + Dim Order As Integer = element.Order + Dim TagType As PdfTagType = element.TagType + Dim Title As String = element.Title + Dim scope As ScopeType = element.Scope + //Gets the parent and child for first element. + Dim parent As PdfStructureElement = element.Parent + //Gets the child elements for the element. + Dim child() As PdfStructureElement = element.ChildElements + //Gets the page bounds for the element. + Dim bounds As RectangleF = element.Bounds + //Save the document. + Dim stream As MemoryStream = New MemoryStream + document.Save(stream) + document.Close(true) + + + + + + Retrieves the page instance where the structure element is present. + + + + FileStream fileStream = File.OpenRead("TaggedPDF.pdf"); + //Load existing PDF document. + PdfLoadedDocument document = new PdfLoadedDocument(fileStream); + //Get the structure element root from document. + PdfStructureElement rootElement = document.StructureElement; + //Get the first page from the document. + PdfLoadedPage loadedPage = document.Pages[0] as PdfLoadedPage; + //Get the structure elements associated with the page. + PdfStructureElement[] pageElements = loadedPage.StrutureElements; + //Get the first element from the page. + PdfStructureElement element = pageElements[0]; + //Get the element properties. + string abbrevation = element.Abbrevation; + string ActualText = element.ActualText; + string AlternateText = element.AlternateText; + string Language = element.Language; + int Order = element.Order; + PdfTagType TagType = element.TagType; + string Title = element.Title; + ScopeType scope = element.Scope; + //Gets the parent and child for first element. + PdfStructureElement parent = element.Parent; + //Gets the child elements for the element. + PdfStructureElement[] child = element.ChildElements; + //Gets the page bounds for the element. + RectangleF bounds = element.Bounds; + //Save the document. + MemoryStream stream = new MemoryStream(); + document.Save(stream); + document.Close(true); + + + Dim fileStream As FileStream = File.OpenRead("TaggedPDF.pdf") + //Load existing PDF document. + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileStream) + //Get the structure element root from document. + Dim rootElement As PdfStructureElement = document.StructureElement + //Get the first page from the document. + Dim loadedPage As PdfLoadedPage = CType(document.Pages(0),PdfLoadedPage) + //Get the structure elements associated with the page. + Dim pageElements() As PdfStructureElement = loadedPage.StrutureElements + //Get the first element from the page. + Dim element As PdfStructureElement = pageElements(0) + //Get the element properties. + Dim abbrevation As String = element.Abbrevation + Dim ActualText As String = element.ActualText + Dim AlternateText As String = element.AlternateText + Dim Language As String = element.Language + Dim Order As Integer = element.Order + Dim TagType As PdfTagType = element.TagType + Dim Title As String = element.Title + Dim scope As ScopeType = element.Scope + //Gets the parent and child for first element. + Dim parent As PdfStructureElement = element.Parent + //Gets the child elements for the element. + Dim child() As PdfStructureElement = element.ChildElements + //Gets the page bounds for the element. + Dim bounds As RectangleF = element.Bounds + //Save the document. + Dim stream As MemoryStream = New MemoryStream + document.Save(stream) + document.Close(true) + + + + + + Gets the rectangular bounds of the structure element on the page. + + + + FileStream fileStream = File.OpenRead("TaggedPDF.pdf"); + //Load existing PDF document. + PdfLoadedDocument document = new PdfLoadedDocument(fileStream); + //Get the structure element root from document. + PdfStructureElement rootElement = document.StructureElement; + //Get the first page from the document. + PdfLoadedPage loadedPage = document.Pages[0] as PdfLoadedPage; + //Get the structure elements associated with the page. + PdfStructureElement[] pageElements = loadedPage.StrutureElements; + //Get the first element from the page. + PdfStructureElement element = pageElements[0]; + //Get the element properties. + string abbrevation = element.Abbrevation; + string ActualText = element.ActualText; + string AlternateText = element.AlternateText; + string Language = element.Language; + int Order = element.Order; + PdfTagType TagType = element.TagType; + string Title = element.Title; + ScopeType scope = element.Scope; + //Gets the parent and child for first element. + PdfStructureElement parent = element.Parent; + //Gets the child elements for the element. + PdfStructureElement[] child = element.ChildElements; + //Gets the page bounds for the element. + RectangleF bounds = element.Bounds; + //Save the document. + MemoryStream stream = new MemoryStream(); + document.Save(stream); + document.Close(true); + + + Dim fileStream As FileStream = File.OpenRead("TaggedPDF.pdf") + //Load existing PDF document. + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileStream) + //Get the structure element root from document. + Dim rootElement As PdfStructureElement = document.StructureElement + //Get the first page from the document. + Dim loadedPage As PdfLoadedPage = CType(document.Pages(0),PdfLoadedPage) + //Get the structure elements associated with the page. + Dim pageElements() As PdfStructureElement = loadedPage.StrutureElements + //Get the first element from the page. + Dim element As PdfStructureElement = pageElements(0) + //Get the element properties. + Dim abbrevation As String = element.Abbrevation + Dim ActualText As String = element.ActualText + Dim AlternateText As String = element.AlternateText + Dim Language As String = element.Language + Dim Order As Integer = element.Order + Dim TagType As PdfTagType = element.TagType + Dim Title As String = element.Title + Dim scope As ScopeType = element.Scope + //Gets the parent and child for first element. + Dim parent As PdfStructureElement = element.Parent + //Gets the child elements for the element. + Dim child() As PdfStructureElement = element.ChildElements + //Gets the page bounds for the element. + Dim bounds As RectangleF = element.Bounds + //Save the document. + Dim stream As MemoryStream = New MemoryStream + document.Save(stream) + document.Close(true) + + + + + + Gets the text content associated with the structure element. + + + + FileStream fileStream = File.OpenRead("TaggedPDF.pdf"); + //Load existing PDF document. + PdfLoadedDocument document = new PdfLoadedDocument(fileStream); + //Get the structure element root from document. + PdfStructureElement rootElement = document.StructureElement; + //Get the first page from the document. + PdfLoadedPage loadedPage = document.Pages[0] as PdfLoadedPage; + //Get the structure elements associated with the page. + PdfStructureElement[] pageElements = loadedPage.StrutureElements; + //Get the first element from the page. + PdfStructureElement element = pageElements[0]; + //Get the element properties. + string abbrevation = element.Abbrevation; + string ActualText = element.ActualText; + string AlternateText = element.AlternateText; + string Language = element.Language; + int Order = element.Order; + PdfTagType TagType = element.TagType; + string Title = element.Title; + ScopeType scope = element.Scope; + //Gets the parent and child for first element. + PdfStructureElement parent = element.Parent; + //Gets the child elements for the element. + PdfStructureElement[] child = element.ChildElements; + //Gets the page bounds for the element. + RectangleF bounds = element.Bounds; + //Save the document. + MemoryStream stream = new MemoryStream(); + document.Save(stream); + document.Close(true); + + + Dim fileStream As FileStream = File.OpenRead("TaggedPDF.pdf") + //Load existing PDF document. + Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileStream) + //Get the structure element root from document. + Dim rootElement As PdfStructureElement = document.StructureElement + //Get the first page from the document. + Dim loadedPage As PdfLoadedPage = CType(document.Pages(0),PdfLoadedPage) + //Get the structure elements associated with the page. + Dim pageElements() As PdfStructureElement = loadedPage.StrutureElements + //Get the first element from the page. + Dim element As PdfStructureElement = pageElements(0) + //Get the element properties. + Dim abbrevation As String = element.Abbrevation + Dim ActualText As String = element.ActualText + Dim AlternateText As String = element.AlternateText + Dim Language As String = element.Language + Dim Order As Integer = element.Order + Dim TagType As PdfTagType = element.TagType + Dim Title As String = element.Title + Dim scope As ScopeType = element.Scope + //Gets the parent and child for first element. + Dim parent As PdfStructureElement = element.Parent + //Gets the child elements for the element. + Dim child() As PdfStructureElement = element.ChildElements + //Gets the page bounds for the element. + Dim bounds As RectangleF = element.Bounds + //Save the document. + Dim stream As MemoryStream = New MemoryStream + document.Save(stream) + document.Close(true) + + + + + + Gets the structure element dictionary. + + + + + Get the Tag Type + + The tag type value. + + + + + Get Scope Type + + The scope type value. + + + + + Get the Tagged Contents + + + + + Gets the child page. + + + + + + Gets the page from the element. + + The page element value. + + + + + Initialize the page to the element. + + The page dictionary value. + + + + Update the attributes to the element. + + The dictionary value. + + + + Helper class to Clone WCAG structure into splitted page + + + + + Indicates to hold the tagged objects + + + + + Represents the structure element count + + + + + Represents the catalog dictionary + + + + + Represents the document cross table + + + + + Indicates to hold the document page collection + + + + + Represents the current page dictionary + + + + + Represents the current page + + + + + Initialize WCAGCloner + + The catalog value. + + + + Gets the destination PDF catalog + + + + + Gets the PdfDocumentBase + + + + + Gets the page correspondance + + + + + Gets the tagged PDF objects + + + + + Gets the cross table + + + + + Gets the current page + + + + + Gets the current page dictionary + + + + + Import Structure Elements + + + + + Update parent key to all node elements + + + + + Copy and remove unwanted Array Objects + + The original value. + + + + + Build Parent tree + + The number root value. + + + + + Copy PDF dictionary + + The original value. + + + + + Import WCAG elements + + + + + Check child page is null + + the structure element value. + + + + + Check and return child page + + The strucuture element value. + The index value. + + + + + Parse Child Elements + + + + + Skip all related nodes to the current page + + The parent value. + the element dictionary value. + + + + Get node dictionary + + + + + Add elemets to content and object collection + + + + + Add content type elements + + + + + Add interactive type elements + + + + + Structure Dictionary Copier + + The copy dictionary value. + The dictionary value. + The parent value. + + + + Check wheather all inner node does have page or not + + The child value. + + + + + Structure Object Finder + + The dictionary value. + The key value. + The primitive value. + + + + Clone array elements + + + + + Add array elements + + + + + Release the resources + + + + + Represents the subtype of the artifact + + + + + Represents the subtype of the artifact as header + + + + + Represents the subtype of the artifact as footer + + + + + Represents the subtype of the artifact as watermark + + + + + Represents the subtype of the artifact as none + + + + + 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 + + + + Represents the tag type + + + + + Represents the tag type as Annotation + + + + + Represents the tag type as Article + + + + + Represents the tag type as BibliographyEntry + + + + + Represents the tag type as BlockQuotation + + + + + Represents the tag type as Caption + + + + + Represents the tag type as Code + + + + + Represents the tag type as Division + + + + + Represents the tag type as Document + + + + + Represents the tag type as Figure + + + + + Represents the tag type as Form + + + + + Represents the tag type as Formula + + + + + Represents the tag type as Heading + + + + + Represents the tag type as HeadingLevel1 + + + + + Represents the tag type as HeadingLevel2 + + + + + Represents the tag type as HeadingLevel3 + + + + + Represents the tag type as HeadingLevel4 + + + + + Represents the tag type as HeadingLevel5 + + + + + Represents the tag type as HeadingLevel6 + + + + + Represents the tag type as Index + + + + + Represents the tag type as Label + + + + + Represents the tag type as Link + + + + + Represents the tag type as List + + + + + Represents the tag type as ListBody + + + + + Represents the tag type as ListItem + + + + + Represents the tag type as Note + + + + + Represents the tag type as Paragraph + + + + + Represents the tag type as Part + + + + + Represents the tag type as Private + + + + + Represents the tag type as Quotation + + + + + Represents the tag type as Reference + + + + + Represents the tag type as Ruby + + + + + Represents the tag type as Section + + + + + Represents the tag type as Span + + + + + Represents the tag type as Table + + + + + Represents the tag type as TableBodyRowGroup + + + + + Represents the tag type as TableDataCell + + + + + Represents the tag type as TableFooterRowGroup + + + + + Represents the tag type as TableHeader + + + + + Represents the tag type as TableHeaderRowGroup + + + + + Represents the tag type as TableOfContent + + + + + Represents the tag type as TableOfContentItem + + + + + Represents the tag type as TableRow + + + + + Represents the tag type as Warichu + + + + + Represents the tag type as None + + + + + Represents the tag type + + + + //Creates a new PDF document + PdfDocument pdfDocument = new PdfDocument(); + pdfDocument.DocumentInformation.Title = "Table"; + //Adds new page + PdfPage pdfPage = pdfDocument.Pages.Add(); + //Initialize the new structure element with tag type table + PdfStructureElement element = new PdfStructureElement(PdfTagType.Table); + //Create a new PdfGrid + PdfGrid pdfGrid = new PdfGrid(); + //Adding tag to PDF grid + pdfGrid.PdfTag = element; + //Add three columns + pdfGrid.Columns.Add(3); + //Add header + pdfGrid.Headers.Add(1); + PdfGridRow pdfGridHeader = pdfGrid.Headers[0]; + pdfGridHeader.Style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Bold); + pdfGridHeader.Style.TextBrush = PdfBrushes.Brown; + //Adding tag for each row with tag type TR + pdfGridHeader.PdfTag = new PdfStructureElement(PdfTagType.TableRow); + pdfGridHeader.Cells[0].Value = "Employee ID"; + //Adding tag for header cell with tag type TH + pdfGridHeader.Cells[0].PdfTag = new PdfStructureElement(PdfTagType.TableHeader) { Scope = ScopeType.Both }; + pdfGridHeader.Cells[1].Value = "Employee Name"; + //Adding tag for header cell with tag type TH + pdfGridHeader.Cells[1].PdfTag = new PdfStructureElement(PdfTagType.TableHeader) { Scope = ScopeType.Row}; + pdfGridHeader.Cells[2].Value = "Salary"; + //Adding tag for header cell with tag type TH + pdfGridHeader.Cells[2].PdfTag = new PdfStructureElement(PdfTagType.TableHeader) { Scope = ScopeType.Column }; + //Add rows. + PdfGridRow pdfGridRow = pdfGrid.Rows.Add(); + pdfGridRow.PdfTag = new PdfStructureElement(PdfTagType.TableRow); + pdfGridRow.Cells[0].Value = "E01"; + pdfGridRow.Cells[1].Value = "Clay"; + pdfGridRow.Cells[2].Value = "$10,000"; + //Adding tag for each cell with tag type TD + pdfGridRow.Cells[0].PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); + pdfGridRow.Cells[1].PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); + pdfGridRow.Cells[2].PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); + //Draw the PdfGrid + pdfGrid.Draw(pdfPage, PointF.Empty); + //save the document and dispose it + pdfDocument.Save("Output.pdf"); + //close the document + pdfDocument.Close(true); + + + 'Creates a new PDF document + Dim pdfDocument As PdfDocument = New PdfDocument() + pdfDocument.DocumentInformation.Title = "Table" + 'Adds new page + Dim pdfPage As PdfPage = pdfDocument.Pages.Add() + 'Initialize the new structure element with tag type table + Dim element As PdfStructureElement = New PdfStructureElement(PdfTagType.Table) + 'Create a new PdfGrid + Dim pdfGrid As PdfGrid = New PdfGrid() + 'Adding tag to PDF grid + pdfGrid.PdfTag = element + 'Add three columns + pdfGrid.Columns.Add(3) + 'Add header. + pdfGrid.Headers.Add(1) + Dim pdfGridHeader As PdfGridRow = pdfGrid.Headers(0) + pdfGridHeader.Style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Bold) + pdfGridHeader.Style.TextBrush = PdfBrushes.Brown + 'Adding tag for each row with tag type TR + pdfGridHeader.PdfTag = New PdfStructureElement(PdfTagType.TableRow) + pdfGridHeader.Cells(0).Value = "Employee ID" + 'Adding tag for header cell with tag type TH + pdfGridHeader.Cells(0).PdfTag = New PdfStructureElement(PdfTagType.TableHeader) With {.Scope = ScopeType.Row} + pdfGridHeader.Cells(1).Value = "Employee Name" + 'Adding tag for header cell with tag type TH + pdfGridHeader.Cells(0).PdfTag = New PdfStructureElement(PdfTagType.TableHeader) With {.Scope = ScopeType.Column} + pdfGridHeader.Cells(2).Value = "Salary" + 'Adding tag for header cell with tag type TH + pdfGridHeader.Cells(0).PdfTag = New PdfStructureElement(PdfTagType.TableHeader) With {.Scope = ScopeType.Both} + 'Add rows. + Dim pdfGridRow As PdfGridRow = pdfGrid.Rows.Add() + pdfGridRow.PdfTag = New PdfStructureElement(PdfTagType.TableRow) + pdfGridRow.Cells(0).Value = "E01" + pdfGridRow.Cells(1).Value = "Clay" + pdfGridRow.Cells(2).Value = "$10,000" + 'Adding tag for each cell with tag type TD + pdfGridRow.Cells(0).PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) + pdfGridRow.Cells(1).PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) + pdfGridRow.Cells(2).PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) + 'Draw the PdfGrid + pdfGrid.Draw(pdfPage, PointF.Empty) + 'save the document and dispose it + pdfDocument.Save("Output.pdf") + pdfDocument.Close(True) + + + + + + Represents the Scope type as Row + + + + + Represents the Scope type as Column + + + + + Represents the Scope type as Both + + + + + Represents the Scope type as None + + + + + Represents Basic Job Ticket Schema. + + + + + Prefix of the schema. + + + + + Nasme of the schema. + + + + + Name of the property. + + + + + 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. + + + + + Creates schema object. + + Parent XmpMetadata. + + + + 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. + + + + + 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. + + + + + Creates schema object. + + Parent XmpMetadata. + + + + Represents custom Schema. + + + + + Sets the xmp property. + + + + + Gets CustomSchema dictionary + + + + + Gets the boolen result key value at present or not + + Contains key value. + + + + + Gets type of the schema. + + + + + Gets schema prefix. + + + + + Gets name (URI) of the schema. + + + + + 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 + + + + + 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. + + + + + 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. + + + + + Creates schema object. + + Parent XmpMetadata. + + + + Initializes object. + + + + + 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. + + + + + 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). + + + + + Creates schema object. + + Parent XmpMetadata. + + + + 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. + + + + + 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. + + + + + Creates schema object. + + Parent XmpMetadata. + + + + 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. + + + + + 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. + + + + + Creates schema object. + + Parent XmpMetadata. + + + + Represents Xmp Schema. + + + + + Name of the schema tag. + + + + + Xpath to the Description element. + + + + + Parent XmpMetadata. + + + + + Hashtable of the properties. + + + + + Gets type of the schema. + + + + + Gets schema prefix. + + + + + Gets name (URI) of the schema. + + + + + Gets parent XmpMetadata. + + + + + 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. + + + + Remove simple propertity through key value. + + + + + 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. + + + + coloring 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. + + + + + 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. + + + + + 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. + + + + + Dimensions structure. + + + + + Prefix of the schema. + + + + + Nasme of the schema. + + + + + Name of the property. + + + + + Name of the property. + + + + + Name of the property. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + Declares Job structure. + + + + + Prefix of the structure. + + + + + Name of the structure. + + + + + Name of the property. + + + + + Name of the property. + + + + + Name of the property. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + Gets inner xml data. + + + + + Gets prefix of the structure. + + + + + Gets name pf the structure. + + + + + 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. + + + + 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. + + + + + 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. + + + + 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. + + + + + The Syncfusion.Pdf.Xmp namespace contains classes to create, process metadata for documents. + + + + + Represents Xmp array. + + + + + 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. + + + + Gets array of the array values. + + + + + Gets type of the array. + + + + + 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. + + + + Base class for the arrays. + + + + + 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. + + + + Gets count of the items in the collection. + + + + + Gets type of the collection. + + + + + Gets items container element. + + + + + 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. + + + + 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. + + + + 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]. + + + + + 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. + + + + 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. + + + + Gets or sets the default text. + + The default text. + + + + Gets or sets the with the specified lang. + + value + + + + Gets type of the lang array. + + + + + 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. + + + + Represents XMP metadata of the document. + + + + + Xpath for the RDF element. + + + + + Namespace unique resource identifier for the xmlns attribute. + + + + + Namespace uri for the xml namespace. + + + + + Prefix of the PDF namespace. + + + + + Uri of the Custom Schema namespace + + + + + Extensible Markup Language Namespace prefix. + + + + + Xml prefix. + + + + + Uri of the Resource Description Framework 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 Resource Description Framework PDF/A 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. + + + + + Gets XMP data in XML format. + + + + + Gets XMP stream. + + + + + Gets namespace manager of the Xmp metadata. + + + + + 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 xmpmeta element of the packet. + + + + + Gets RDF element of the packet. + + + + + 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 attribute. + + Name of the attribute. + Value of the attribute. + Created XmlAttribute. + + + + Creates element. + + Prefix of the element. + Local name of the element. + Namespace URI. + Created element. + + + + 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. + + + + Gets the element. + + + + + + Raises before stream saves. + + Sender of the event. + Event data. + + + + Raises after stream saves. + + Sender of the event. + Event data. + + + + Represents simple Xmp type. + + + + + Gets or sets value of the instance. + + + + + 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. + + + + + Base class for the Xmp types. + + + + + Parent Xmpmetadata. + + + + + Gets 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. + + + + + 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. + + + + 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. + + + + + 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. + + + + Interface of the objects that support Changable of their internals. + + + + + Gets a value indicating whether this is changed. + + true if changed; otherwise, false. + + + + Freezes the changes. + + The freezer. + + + + Defines the basic interace of the various Wrapper.. + + + + + Gets the element. + + + + + 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[]. + + + + + + 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 full name of this assembly without version information: "Syncfusion.Pdf.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 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); + } + } + + + + + + + + Represents the graphics object + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Gets or sets the embeded font family. + + + + + Gets the updated font size from text matrix. + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + + + + Gets or sets the value that indicating the extracting of text data. + + + + + 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 ? + + + + + + + Holds the mcid value. + + + + + Gets or sets the rotate text angle. + + + + + Gets or sets the value that indicating the extracting of text data. + + + + + 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 + + + + + + + + + + + + + + + + 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 + + + + Gets the FixedDocumentSequence + + + + + Gets the Fixed documents + + + + + Gets the fixed pages + + + + + Gets the font names + + + + + 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 + + + + + Enumerator representing the available XPS elements. + + + + + Represents the path data reader. + + + + + Gets a value indicating whether this is EOF. + + true if EOF; otherwise, false. + + + + Gets text length. + + + + + Gets or sets the position. + + The position. + + + + 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 + + + + Represents the path data reader. + + + + + Gets a value indicating whether this is EOF. + + true if EOF; otherwise, false. + + + + Gets text length. + + + + + Gets or sets the position. + + The position. + + + + 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 + + + + 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 + + + + Gets the FixedDocumentSequence + + + + + Gets the Fixed documents + + + + + Gets the fixed pages + + + + + Gets the font names + + + + + 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 + + + + + Enumerator representing the available XPS elements. + + + + + Represents XPS element type as Canvas + + + + + Represents XPS element type as MatrixTransform + + + + + Represents XPS element type as SolidColorBrush + + + + + Represents XPS element type as ImageBrush + + + + + Represents XPS element type as Transform + + + + + Represents XPS element type as VisualBrush + + + + + Represents XPS element type as Visual + + + + + Represents XPS element type as Resources + + + + + Represents XPS element type as ResourceDictionary + + + + + Represents XPS element type as Glyphs + + + + + Represents XPS element type as Geometry + + + + + Represents XPS element type as PathGeometry + + + + + Represents XPS element type as PathFigure + + + + + Represents XPS element type as ArcSegment + + + + + Represents XPS element type as PolyBezierSegment + + + + + Represents XPS element type as PolyLineSegment + + + + + Represents XPS element type as PolyQuadraticBezierSegment + + + + + Represents XPS element type as Brush + + + + + Represents XPS element type as LinearGradientBrush + + + + + Represents XPS element type as GradientStop + + + + + Represents XPS element type as RadialGradientBrush + + + + + Represents XPS element type as Path + + + + + Represents XPS element type as FixedPage + + + + + Represents XPS element type as FixedDocument + + + + + Represents XPS element type as PageContent + + + + + Represents XPS element type as LinkTarget + + + + + Represents XPS element type as FixedDocumentSequence + + + + + Represents XPS element type as DocumentReference + + + + + Represents XPS element type as LinkTargets + + + + + Represents XPS element type as GradientStops + + + + + Represents the XPS Parser + + + + + Represents the currently parsed Fixed Page + + + + + Represents the XPS renderer object + + + + + Represents the XPS enumerator delegate + + + + + Represents the PdfUnitconvertor + + + + + Represents the XPS enumerator + + + + + Gets the XPS renderer + + + + + 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 + + + + 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. + + + + + Represents visualbrush viewport value. + + + + + Intializes a new instance of the XPSRenderer class. + + The current PDF Page + The XPS document reader + + + + Gets the graphics of the current PdfPage + + + + + 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. + + + + Represents the XPS Parser + + + + + Represents the currently parsed Fixed Page + + + + + Represents the XPS renderer object + + + + + Represents the XPS enumerator delegate + + + + + Represents the PdfUnitconvertor + + + + + Represents the XPS enumerator + + + + + Gets the XPS renderer + + + + + 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 + + + + 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. + + + + + Arabic characters will not be displayed properly if given the actual size, so the size is decreased by this decrement factor. + + + + + Represents visualbrush viewport value. + + + + + Represents visualbrush graphic state. + + + + + Intializes a new instance of the XPSRenderer class. + + The current PDF Page + The XPS document reader + + + + Gets the graphics of the current PdfPage + + + + + 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. + + + + Draw XPS string using text element + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Initialise the new instance of the Outline Entry. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Initialise the new instance of the TableCell. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Initialise the new instance of the Solid Color Brush. + + + + + + + + + + + + + + + + + Initialise the new instance of the Image Brush. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Initialise the new instance of the Visual brush. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Initialise the new instance of the Canvas. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Initialise the new instance of the Glyphs. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Initialise the new instance of the Path geometry. + + + + + + + + + + + + + + + + + + + + + + + + + + Initialise the new instance of the Path figure. + + + + + + + + + + + + + + + + + + + + Initialise the new instance of the Arc segment. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Initialise the new instance of the Poly bezier segment. + + + + + + + + + + + + + + Initialise the new instance of the Poly line segment. + + + + + + + + + + + + + + Initialise the new instance of the Poly quadratic bezier segment. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Initialise the new instance of the Linear gradient brush. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Initialise the new instance of the Radial gradient brush. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Initialise the new instance of the Path. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + 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. + + 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 + + + + 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) + + + + + + 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 + + + + diff --git a/ZZ_Signature_C/bin/Debug/Syncfusion.PdfToImageConverter.Base.dll b/ZZ_Signature_C/bin/Debug/Syncfusion.PdfToImageConverter.Base.dll new file mode 100644 index 00000000..33f31eaa Binary files /dev/null and b/ZZ_Signature_C/bin/Debug/Syncfusion.PdfToImageConverter.Base.dll differ diff --git a/ZZ_Signature_C/bin/Debug/Syncfusion.PdfToImageConverter.Base.xml b/ZZ_Signature_C/bin/Debug/Syncfusion.PdfToImageConverter.Base.xml new file mode 100644 index 00000000..e609dcf3 --- /dev/null +++ b/ZZ_Signature_C/bin/Debug/Syncfusion.PdfToImageConverter.Base.xml @@ -0,0 +1,489 @@ + + + + Syncfusion.PdfToImageConverter.Base + + + + + Class that imports the pdfium dlls. + + + + + + No flags. + + + + + Render for printing. + + + + + Set if annotations are to be rendered. + + + + + Set if using text rendering optimized for LCD display. + + + + + Don't use the native text output available on some platforms. + + + + + Grayscale output. + + + + + Limit image cache size. + + + + + Always use halftone for image stretching. + + + + + Render with a transparent background. + + + + + Correct height/width for DPI. + + + + + Class to use the pdfium methods for internal purpose. + + + + + Class to convert the pdf to images. + + + + + Initializes the members of the class. + + + + + Intializes the members of the class. + + Stream of the file + + + + Intializes the members of the class. + + Stream of the file + Pasword for the file + + + + Scales the page while rendering in the PDF Viewer control for improving the quality of the image. + Positive float values can be set. Recommended Value is 1 or 1.5f. + If the value is greater than the recommended value, there might be any distortion in the performance of the PDF Viewer. + + + + + Gets or sets the reference path of the Pdfium library. + + + + + Gets the page count of the document. + + + + + Gets or sets the id of the document + + + + + Gets or sets the pdf document value + + + + + Disposes the pdf document. + + + + + Disposes the pdf document. + + disposes completely + + + + Loads the PDF document from the specified stream. + + Pdf file as stream + + + + Loads the PDF document from the specified stream. + + Pdf file stream + Password of the stream + + + + Converts the specified page of the PDF document as stream. + + page index of the document + Whether the background of the page needs to be transparent + Whether need to keep the annotation of the page + Returns the stream of the specified page + + + + Converts the specified page of the PDF document as stream. + + Page index of the document + The horizontal DPI of the resultant . + The vertical DPI of the resultant . + Whether the background of the page needs to be transparent + Whether need to keep the annotation of the page + Returns the stream of the specified page + + + + Converts the specified page of the PDF document as stream. + + Page index of the document + The custom size of the converted image + The horizontal DPI of the resultant . + The vertical DPI of the resultant . + Whether need to maintain the pdf page size + Whether need to make the background of the page as transparent + Whether need to keep the annotation of the page + Returns the stream of the specified page + + + + Converts the specified range of PDF document's pages as stream array. + + The starting page index + The ending page index + The horizontal DPI of the resultant . + The vertical DPI of the resultant . + Whether need to make the background of the page as transparent + Whether need to keep the annotation of the page + Returns the array of stream for the range of pages + + + + Converts the specified range of PDF document's pages as stream array. + + The starting page index + The ending page index + The custom size of the converted image + The horizontal DPI of the resultant . + The vertical DPI of the resultant . + Whether need to maintain the pdf page size + Whether need to make the background of the page as transparent + Whether need to keep the annotation of the page + Returns the array of stream for the range of pages + + + + Converts the specified page of the PDF document as stream. + + The page index of the document + The custom size of the converted image + Whether need to maintain the pdf page size + Whether need to make the background of the page as transparent + Whether need to keep the annotation of the page + Returns the specified page as stream with custom size + + + + Converts the specified range of PDF document's pages as stream array. + + The starting page index + The ending page index + Whether need to make the background of the page as transparent + Whether need to keep the annotation of the page + Returns the array of stream for the range of pages + + + + Converts the specified range of PDF document's pages as stream array. + + The starting page index + The ending page index + The custom size for the converted image + Whether need to maintain the pdf page size + Whether need to make the background of the page as transparent + Whether need to keep the annotation of the page + Returns the array of stream for the range of pages + + + + Exports the specified page as + + The page index to be converted into + The custom size of the converted + Whether need to maintain the pdf page size + Whether need to keep the annotation of the page + Whether the background of the page needs to be transparent + Returns the specified page as with custom size + + + + Exports the specified pages as + + The starting page index + The ending page index + The custom size of the converted + Whether need to maintain the pdf page size + Whether the background of the page needs to be transparent + Whether need to keep the annotation of the page + Returns the specified pages as with custom size + + + + Exports the specified page as a bitmap image. + + Bitmap image + page index + Whether the background of the page needs to be transparent + Whether need to keep the annotations on the page + Returns the converted bitmap image + + + + Converts points to pixel + + Point value + Returns the pixel value + + + + Exports the specified page as a bitmap image. + + Bitmap image + page index + Whether the background of the page needs to be transparent + Whether need to keep the annotations on the page + Returns the converted bitmap image + + + + Creates the pdfium document for the provided string. + + Stream of the Pdf + Password of the pdf stream + + + + + Checks the base directory and provides it. + + Returns the base directory. + + + + Extracts text along with its format. + /// + The page index in which the text has be extracted + Provides the text data collection + maintains the layout if it is true + Returns the extracted text for the provided page + + + + Extracts the text from the specified page index. + + Page index + Text collection + Text format + Whether rotated or not + Angle of rotation + Returns the extracted text from the provided page index + + + + extracts text along with its format. + /// + The page index in which the text has be extracted + Provides the text data collection with page details + Returns the extracted text for the provided page + + + + Gets the bounds of the text by using the results of pdfium for text search. + + Page object + Length of the string + Start index + Height of the Page + + + + + Gets the bounds of the text. + + Page object + page index + + + + + + + Gets the text details for the provided page index. + + Page index + Text collection of the page + Returns the text + + + + Converts the bitmap to stream. + + Bitmap image to be converted + Returns the converted stream + + + + Converts the bitmap to stream. + + Array of bitmap images to be converted + Returns the converted stream + + + + Extracts the Pdfium library to the application. + + + + + Find the bounds of the specified text in the provided page index + + The text to be searched. + The specified page index. + Holds the bounds of the matched texts. + Returns true if found any matchRectCollection. + + + + Find the bounds of the specified text in the provided document + + The text to be searched + Holds the page number and rectangle positions of the text matches + + + + Find the bounds of the collections of text in the provided page index + + The collection of text to be searched. + The specified page index. + Holds the information of the matched texts + Returns true if found any match + + + + Find the bounds of the collections of text in the provided document + + List of items to be searched. + The dictionary of page number and list of search results. + Returns true if found any match + + + + Checks whether the password is unicoded or not. + + Password of the stream + Returns true if the password is unicoded, else false + + + + Represents a text informations + + + + + Initializes the members of the class. + + Text on the document + Bounds of the text + + + + Gets the bounds of the text + + + + + Gets the text + + + + + Represents a Page text informations + + + + + Initializes the members of the class. + + Size of the page + Text informations of the page + Text data of the page + + + + Gets the list of text data for the page + + + + + Gets the text data for the page + + + + + Gets the page size for the page + + + + + Represents the search text information + + + + + Get or set text to be searched. + + + + + Get or set the color of the searched text. + + + + + Get or set provided page Number for search text. + + + + + Get or set Rectangle bounds of the searched text. + + + + diff --git a/ZZ_Signature_C/bin/Debug/Syncfusion.PdfViewer.Windows.dll b/ZZ_Signature_C/bin/Debug/Syncfusion.PdfViewer.Windows.dll new file mode 100644 index 00000000..f7c21e0b Binary files /dev/null and b/ZZ_Signature_C/bin/Debug/Syncfusion.PdfViewer.Windows.dll differ diff --git a/ZZ_Signature_C/bin/Debug/Syncfusion.PdfViewer.Windows.xml b/ZZ_Signature_C/bin/Debug/Syncfusion.PdfViewer.Windows.xml new file mode 100644 index 00000000..10e3f895 --- /dev/null +++ b/ZZ_Signature_C/bin/Debug/Syncfusion.PdfViewer.Windows.xml @@ -0,0 +1,20892 @@ + + + + Syncfusion.PdfViewer.Windows + + + + + + + + WinAnsiEncoding Charcode table + + + + + 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. + + Same font. + + 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 + + decoded text + rendered string + 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 + + + + Organizes the hex string enclosed within the hexa brackets + + Mapping string in the map table of the document + list of HEX entries in the string + + + + 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 + + + + Releasing, or resetting unmanaged resources. + + + + + Gets or sets the value indicating whether the encoded text is hexa decimal string + + + + + Gets the Font Matrix + + + + + Gets the Font BBox + + + + + 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 + + + + + Gets or sets the rendered text. + + + + + Gets or sets the index and width for encode text (only utilized when different encode text decoded as same character). + + + + + 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. + + + + + 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. + + + + + Gets or sets the value that indicating the extracting of text data. + + + + + Gets or sets the value that indicating the extracting of text data. + + + + + Gets or sets the value that indicating the extracting of text data. + + + + + + + + + + + + + + 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. + + + + + + + + + + + + + + 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 + + + + + Gets or sets the value that indicating the extracting of text data. + + + + + Holds the mcid value. + + + + + 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 + + + + Gets or sets the rotate text angle. + + + + + Gets or sets the value that indicating the extracting of text data. + + + + + + + + + + + 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 + + + + Perform Interpolate function + + result + + + + Clip the Data + + result + + + + 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 + + + + Encode the input data of Type0 + + EncodedData + + + + Decode the input data of Type0 + + DecodedData + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Gets or sets the embeded font family. + + + + + Gets the updated font size from text matrix. + + + + + + + + Base viewer interface for all PdfViewers. + + + + + Zooms the document to the specified value. + + Value in Percentage + + + + Displays the first page. + + + + + Displays the last page. + + + + + Displays the previous page. + + + + + Displays the next page. + + + + + Displays the page specified by the index. + + Index of the page + + + + Returns the number of pages. + + + + + Returns the current displayed page index. + + + + + Returns if first page can be displayed. + + + + + Returns if previous page can be displayed. + + + + + Returns if next page can be displayed. + + + + + Returns if last page can be displayed. + + + + + Specifies ZoomMode. + + + + + Displays with detault. + + + + + Fits the entire page in the viewer. + + + + + Fits the width of the page in the viewer. + + + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. + + + + Required designer variable. + + + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + + + + + Gets or sets the font of the text displayed by the control. + + + + 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. + + + + + + + + + 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. + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Empty attributes array for optimization. + + + Hide default constructor. Allow to see it only inheritors. + + + + 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. + + + + 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. + + + + + 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. + + + + + 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 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. + + + + + + + + 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 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 with information about current class and method name and + string representations of any method arguments. + + An array of method arguments. + + + + Writes a trace log of the current stack. + + The number of method on the stack to trace. + + + + Writes a trace log for the given exception together with information where the exception was caught. + + An Exception. + + + + 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. + + + + + 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. + + + + + 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 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + + + 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. + + + + + 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. + + + + 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. + + + + + + + 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. + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + Override. Force recalculation of Scroller elements. + Layout arguments. + + + + 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. + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + 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 . + + + + 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 . + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + Registered color tables. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + 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 + + + + + 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. + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + 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. + + + + + 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. + + + + + 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. + + + + + A implementing the interface. + + + + + Implement this interface in a derived class to start supporting themes. + + + + + Indicates whether themes are enabled. + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + Gets / sets ScrollButton highlighted state. + + + + + Gets / sets for correctly GradientBrush creation, so that background + is same as Parent's background. + + + + + 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. + + + + + 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. + + + + 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. + + + + + 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. + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + 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. + + + + + + + + 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. + + + + 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. + + + + + 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. + + + + + Interface for SkinManager + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + internal 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. + + + + + 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) + + + + + 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 internal 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. + + + + + + + + + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + + + 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 + + + + + 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. + + + + + Defines split behavior for a . + + + + + No dynamic splitter. + + + + + Split rows vertically. + + + + + Split columns horizontally. + + + + + Allow both splitting the view vertically and horizontally. + + + + + 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 + + + + + Represents a class that provides support to get the current DPI value and calculate the values based on the current DPI values. + + + + + The which is used to calculate the DPI value. + + + + + Gets the image file from given assembly based on the DPI scaling factor. + If the DPI scaling is greater than 175 then returns the high DPI image, otherwise returns the default image. + + The used to read the image file. + The string contains the folder path. + The string value represents the name of the image file. + The imageName must contains the extension like AddNewRowIcon.png or AddNewRowIcon.bmp + Returns the image file from specified folder path. + + + + Gets an equivalent value based on the current DPI value. + + The float value. + Returns the value based on DPI value. + + + + Gets the current DPI value of the device. + + Returns the current DPI value of the device. + + + + Gets the used to calculate the DPI value of the device. + + + + + Represents the arguments associated with a `DocumentLoading` event. + + + + + Gets the value of currently loading page. + + + + + Gets the page count. + + + + + Gets or sets a value indicating whether the event should be canceled. + + + + + Event arguments for the event + + + + + Gets the error message + + + + + Gets the Exception details. + + + + + Provides data for the event + + + + + Provides data for the and events + + + + + Gets the index of the page in which mouse action is performed + + + + + Gets the position of the mouse pointer relative to the page + + + + + Provides data for the event + + + + + Provides the settings for message box + + + + + Enable or disable the message box notifications. The default value is true + + + + + Gets or sets Visual Styles of the PDF viewer. + + + + + Default appearance. + + + + + Office2016 Colorful + + + + + Office2016 White + + + + + Office2016 Black + + + + + Office2016 DarkGray + + + + + Defines the constants that specify color schemes for the Office 2016 theme. + + + + Office2016 white. + + + Office2016 black. + + + Office2016 dark gray. + + + Office2016 colorful color. + + + + 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 border color for date time picker control. + + + + + Gets or sets highlighted border color for date time picker control. + + + + + Gets or sets selected border color for date time picker control>. + + + + + Gets or sets a dropdown arrow color for date time picker control. + + + + + Gets or sets a dropdown gradient light color for date time picker control. + + + + + Gets or sets a dropdown gradient dark color for date time picker control. + + + + + Gets or sets a dropdown highlighted gradient light color for date time picker control. + + + + + Gets or sets a dropdown highlighted gradient dark color for date time picker control. + + + + + Gets or sets a dropdown selected gradient light color for date time picker control. + + + + + Gets or sets a dropdown selected gradient dark color for date time picker control. + + + + + Gets or sets a checkbox color for date time picker control. + + + + + Gets or sets a checkbox selected color for date time picker control. + + + + + Gets or sets a checkbox pushed border color for date time picker control. + + + + + Gets or sets a checkbox border color for date time picker control. + + + + + Gets or sets a checkbox inner rectangle border color for date time picker control. + + + + + Gets or sets a checkbox inner rectangle selected border color for date time picker control. + + + + + Gets or sets a checkbox inner rectangle pushed border color for date time picker control. + + + + + Gets or sets a checkbox inner rectangle filling color for date time picker control. + + + + + Gets or sets a checkbox inner rectangle filling selected color for date time picker control. + + + + + Gets or sets a checkbox inner rectangle filling pushed color for date time picker control. + + + + + Gets or sets highlighted fore color for date time picker control. + + + + + Gets or sets border color for numeric up down control. + + + + + Gets or sets highlighted border color for numeric updown control. + + + + + Gets or sets selected border color for numeric updown control. + + + + + Gets or sets dropdown arrow gradient light color for numeric updown control. + + + + + Gets or sets dropdown arrow gradient dark color for numeric updown control. + + + + + Gets or sets gradient start color for month calendar control. + + + + + Gets or sets gradient end color for month calendar control. + + + + + Gets or sets fore color for month calendar control. + + + + + Gets or sets border color for group bar control. + + + + + Gets or sets gradient dark color for group bar item control. + + + + + Gets or sets gradient light color for group bar item control. + + + + + Gets or sets group bar control's header gradient color dark. + + + + + Gets or sets group bar control's header gradient color light. + + + + + Gets or sets gradient highlight light color for group bar control. + + + + + Gets or sets gradient highlight dark color for group bar control. + + + + + Gets or sets gradient selected dark color for group bar control. + + + + + Gets or sets gradient selected light color for group bar control. + + + + + Gets or sets gradient selected dark color for the upper part of group bar item control. + + + + + Gets or sets gradient selected light color for the upper part of group bar item control. + + + + + Gets or sets gradient highlighted and selected dark color for group bar control. + + + + + Gets or sets gradient highlighted and selected light color for group bar control. + + + + + Gets or sets text color for group bar item control. + + + + + Gets or sets group bar control's header text color. + + + + + Gets or sets gradient dark color for splitter of group bar control. + + + + + Gets or sets gradient light color for splitter of group bar control. + + + + + Gets or sets the client area background color of group bar control. + + + + + Gets or sets the color for the internal border of XP task panel. + + + + + Gets or sets the color for the border of XP task panel. + + + + + Gets or sets the back color for XP task page. + + + + + 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. + + + + + Gets or sets the back color for ComboBox control. + + + + + Gets or sets the back color for the selected ComboBox control. + + + + + Gets or sets the border color for ComboBox control. + + + + + Gets or sets the border color for the selected ComboBox control. + + + + + Gets or sets the border color for the pushed ComboBox control. + + + + + Gets or sets the color for upper line of the dropdown button of ComboBox control. + + + + + Gets or sets the color for the arrow of ComboBox control. + + + + + Gets or sets the color for lower line of the arrow of ComboBox control. + + + + + Used in drawing of the hot background of dropdown button of ComboBox control. + + + + + Used in drawing of the hot background of dropdown button of ComboBox control. + + + + + Used in drawing of the hot background of dropdown button of ComboBox control. + + + + + Used in drawing of the hot background of dropdown button of ComboBox control. + + + + + Used in drawing of the normal background of dropdown button of ComboBox control. + + + + + Used in drawing of the normal background of dropdown button of ComboBox control. + + + + + Used in drawing of the normal background of dropdown button of ComboBox control. + + + + + Used in drawing of the normal background of dropdown button of ComboBox control. + + + + + Used in drawing of the pushed background of dropdown button of ComboBox control. + + + + + Used in drawing of the pushed background of dropdown button of ComboBox control. + + + + + Used in drawing of the pushed background of dropdown button of ComboBox control. + + + + + Used in drawing of the pushed background of dropdown button of ComboBox control. + + + + + Used in drawing of CheckBox control. + + + + + Used in drawing of CheckBox control. + + + + + Used in drawing of CheckBox control. + + + + + Used in drawing of the normal border of CheckBox control. + + + + + Used in drawing of the selected border of CheckBox control. + + + + + Used in drawing of the pushed border of CheckBox control. + + + + + Used in drawing of the normal internal border of CheckBox control. + + + + + Used in drawing of the selected internal border of CheckBox control. + + + + + Used in drawing of the pushed internal border of CheckBox control. + + + + + Used in drawing of the normal internal rectangle border of CheckBox control. + + + + + Used in drawing of the selected internal rectangle border of CheckBox control. + + + + + Used in drawing of the pushed internal rectangle border of CheckBox control. + + + + + Used in drawing of the normal internal rectangle of CheckBox control. + + + + + Used in drawing of the selected internal rectangle of CheckBox control. + + + + + Used in drawing of the pushed internal rectangle of CheckBox control. + + + + + Used in drawing of the normal tick of CheckBox control. + + + + + Used in drawing of the selected tick of CheckBox control. + + + + + Used in drawing of the pushed tick of CheckBox control. + + + + + Used in drawing of the disabled tick of CheckBox control. + + + + + Used in drawing of the indeterminate rectangle of CheckBox control. + + + + + Used in drawing of the disabled back color CheckBox control. + + + + + Used in drawing of the disabled border CheckBox control. + + + + + Used in drawing of the disabled internal border CheckBox control. + + + + + Used in drawing of Radio button control. + + + + + Used in drawing of the border of Radio button control. + + + + + Used in drawing of the internal border of Radio button control. + + + + + Used in drawing of Radio button control. + + + + + Used in drawing of the border of Radio button control. + + + + + Used in drawing of the internal border of Radio button control. + + + + + Used in drawing of Radio button control. + + + + + Used in drawing of the border of Radio button control. + + + + + Used in drawing of the internal border of Radio button control. + + + + + Used in drawing of the border of check mark of Radio button control. + + + + + Used in drawing of check mark of Radio button control. + + + + + Used in drawing of check mark of Radio button control. + + + + + Used in drawing of check mark of Radio button control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of XP taskbar. + + + + + Used in drawing of XP taskbar. + + + + + Used in drawing of XP taskbar. + + + + + Used in drawing of XP taskbar. + + + + + Used in drawing of XP taskbar. + + + + + Used in drawing of XP taskbar. + + + + + Used in drawing of XP taskbar. + + + + + Used in drawing of XP taskbar. + + + + + Used in drawing of Color UI control. + + + + + Used in drawing of Color UI control. + + + + + Used in drawing of Color UI control. + + + + + Used in drawing of Color UI control. + + + + + Used in drawing of Color UI control. + + + + + Used in drawing of Color UI control. + + + + + Used in drawing of Color UI control. + + + + + Used in drawing of Rating control. + + + + + Used in drawing of Rating control. + + + + + Used in drawing of Rating control. + + + + + Used in drawing of Rating control. + + + + + Used in drawing of Rating control. + + + + + Used in drawing of Rating control. + + + + + Used in drawing of Rating control. + + + + + Used in drawing of Rating control. + + + + + 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 border color for Date time picker control. + + + + + Gets or sets highlighted border color for Date time picker control. + + + + + Gets or sets selected border color for Date time picker control. + + + + + Gets or sets a dropdown arrow color for Date time picker control. + + + + + Gets or sets a dropdown gradient light color for Date time picker control. + + + + + Gets or sets a dropdown gradient dark color for Date time picker control. + + + + + Gets or sets a dropdown highlighted gradient light color for Date time picker control. + + + + + Gets or sets a dropdown highlighted gradient dark color for Date time picker control. + + + + + Gets or sets a dropdown selected gradient light color for Date time picker control. + + + + + Gets or sets a dropdown selected gradient dark color for Date time picker control. + + + + + Gets or sets a checkbox color for Date time picker control. + + + + + Gets or sets a checkbox selected color for Date time picker control. + + + + + Gets or sets a checkbox pushed border color for Date time picker control. + + + + + Gets or sets a checkbox border color for Date time picker control. + + + + + Gets or sets a checkbox inner rectangle border color for Date time picker control. + + + + + Gets or sets a checkbox inner rectangle selected border color for Date time picker control. + + + + + Gets or sets a checkbox inner rectangle pushed border color for Date time picker control. + + + + + Gets or sets a checkbox inner rectangle filling color for Date time picker control. + + + + + Gets or sets a checkbox inner rectangle filling selected color for Date time picker control. + + + + + Gets or sets a checkbox inner rectangle filling pushed color for Date time picker control. + + + + + Gets or sets highlighted fore color for Date time picker control. + + + + + Gets or sets border color for numeric updown control. + + + + + Gets or sets highlighted border color for numeric updown control. + + + + + Gets or sets selected border color for numeric updown control. + + + + + Gets or sets dropdown arrow gradient light color for numeric updown control. + + + + + Gets or sets dropdown arrow gradient dark color for numeric updown control. + + + + + Gets or sets gradient start color for month calendar control. + + + + + Gets or sets gradient end color for month calendar control. + + + + + Gets or sets gradient end color for month calendar control. + + + + + Gets or sets fore color for month calendar control. + + + + + Gets or sets border color for group bar control. + + + + + Gets or sets gradient dark color for group bar item control. + + + + + Gets or sets gradient light color for group bar item control. + + + + + Gets or sets group bar control's header gradient color dark. + + + + + Gets or sets group bar control's header gradient color light. + + + + + Gets or sets gradient highlight light color for group bar control. + + + + + Gets or sets gradient highlight dark color for group bar control. + + + + + Gets or sets gradient selected dark color for group bar control. + + + + + Gets or sets gradient selected light color for group bar control. + + + + + Gets or sets gradient selected dark color for the upper part of group bar item control. + + + + + Gets or sets gradient selected light color for the upper part of group bar item control. + + + + + Gets or sets gradient highlighted and selected dark color for group bar control. + + + + + Gets or sets gradient highlighted and selected light color for group bar control. + + + + + Gets or sets text color for group bar item control. + + + + + Gets or sets Back color for group bar item control. + + + + + Gets or sets group bar control's header text color. + + + + + Gets or sets gradient dark color for splitter of group bar control. + + + + + Gets or sets gradient light color for splitter of group bar control. + + + + + Gets or sets the client area background color of group bar control. + + + + + Gets or sets the color for the internal border of XP task panel. + + + + + Gets or sets the color for the border of XP task panel. + + + + + Gets or sets the back color for XP task page. + + + + + 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. + + + + + Gets or sets the back color for ComboBox control. + + + + + Gets or sets the back color for the selected ComboBox control. + + + + + Gets or sets the border color for ComboBox control. + + + + + Gets or sets the border color for the selected ComboBox control. + + + + + Gets or sets the border color for the pushed ComboBox control. + + + + + Gets or sets the color for upper line of the dropdown button of ComboBox control. + + + + + Gets or sets the color for the arrow of ComboBox control. + + + + + Gets or sets the color for lower line of the arrow of ComboBox control. + + + + + Used in drawing of the hot background of dropdown button of ComboBox control. + + + + + Used in drawing of the hot background of dropdown button of ComboBox control. + + + + + Used in drawing of the hot background of dropdown button of ComboBox control. + + + + + Used in drawing of the hot background of dropdown button of ComboBox control. + + + + + Used in drawing of the normal background of dropdown button of ComboBox control. + + + + + Used in drawing of the normal background of dropdown button of ComboBox control. + + + + + Used in drawing of the normal background of dropdown button of ComboBox control. + + + + + Used in drawing of the normal background of dropdown button of ComboBox control. + + + + + Used in drawing of the pushed background of dropdown button of ComboBox control. + + + + + Used in drawing of the pushed background of dropdown button of ComboBox control. + + + + + Used in drawing of the pushed background of dropdown button of ComboBox control. + + + + + Used in drawing of the pushed background of dropdown button of ComboBox control. + + + + + Used in drawing of CheckBox control. + + + + + Used in drawing of CheckBox control. + + + + + Used in drawing of CheckBox control. + + + + + Used in drawing of the normal border of CheckBox control. + + + + + Used in drawing of the selected border of CheckBox control. + + + + + Used in drawing of the pushed border of CheckBox control. + + + + + Used in drawing of the normal internal border of CheckBox control. + + + + + Used in drawing of the selected internal border of CheckBox control. + + + + + Used in drawing of the pushed internal border of CheckBox control. + + + + + Used in drawing of the normal internal rectangle border of CheckBox control. + + + + + Used in drawing of the selected internal rectangle border of CheckBox control. + + + + + Used in drawing of the pushed internal rectangle border of CheckBox control. + + + + + Used in drawing of the normal internal rectangle of CheckBox control. + + + + + Used in drawing of the selected internal rectangle of CheckBox control. + + + + + Used in drawing of the pushed internal rectangle of CheckBox control. + + + + + Used in drawing of the normal tick of CheckBox control. + + + + + Used in drawing of the selected tick of CheckBox control. + + + + + Used in drawing of the pushed tick of CheckBox control. + + + + + Used in drawing of the disabled tick of CheckBox control. + + + + + Used in drawing of the indeterminate rectangle of CheckBox control. + + + + + Used in drawing of the disabled back color CheckBox control. + + + + + Used in drawing of the disabled border CheckBox control. + + + + + Used in drawing of the disabled internal border CheckBox control. + + + + + Used in drawing of Radio button control. + + + + + Used in drawing of the border of Radio button control. + + + + + Used in drawing of the internal border of Radio button control. + + + + + Used in drawing of Radio button control. + + + + + Used in drawing of the border of Radio button control. + + + + + Used in drawing of the internal border of Radio button control. + + + + + Used in drawing of Radio button control. + + + + + Used in drawing of the border of Radio button control. + + + + + Used in drawing of the internal border of Radio button control. + + + + + Used in drawing of the border of check mark of Radio button control. + + + + + Used in drawing of check mark of Radio button control. + + + + + Used in drawing of check mark of Radio button control. + + + + + Used in drawing of check mark of Radio button control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of Tab bar splitter control. + + + + + Used in drawing of XP taskbar. + + + + + Used in drawing of XP taskbar. + + + + + Used in drawing of XP taskbar. + + + + + Used in drawing of XP taskbar. + + + + + Used in drawing of XP taskbar. + + + + + Used in drawing of XP taskbar. + + + + + Used in drawing of XP taskbar. + + + + + Used in drawing of XP taskbar. + + + + + Used in drawing of Color UI control. + + + + + Used in drawing of Color UI control. + + + + + Used in drawing of Color UI control. + + + + + Used in drawing of Color UI control. + + + + + Used in drawing of Color UI control. + + + + + Used in drawing of Color UI control. + + + + + Used in drawing of Color UI control. + + + + + Used in drawing of Rating control. + + + + + Used in drawing of Rating control. + + + + + Used in drawing of Rating control. + + + + + Used in drawing of Rating control. + + + + + Used in drawing of Rating control. + + + + + Used in drawing of Rating control. + + + + + Used in drawing of Rating control. + + + + + Used in drawing of Rating control. + + + + + 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. + + + + + Colors for managed colorscheme of the metro visual style. + + + + + Default colorscheme for 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Gets or sets the back color for ComboBox control. + + + + + Gets or sets the back color for the selected ComboBox control. + + + + + Gets or sets the border color for ComboBox control. + + + + + Gets or sets the border color for the selected ComboBox control. + + + + + Gets or sets the border color for the pushed ComboBox control. + + + + + Gets or sets the color for upper line of the dropdown button of ComboBox control. + + + + + Gets or sets the color for the arrow of ComboBox control. + + + + + Gets or sets the color for lower line of the arrow of ComboBox control. + + + + + Used in drawing of the hot background of dropdown button of ComboBox control. + + + + + Used in drawing of the hot background of dropdown button of ComboBox control. + + + + + Used in drawing of the hot background of dropdown button of ComboBox control. + + + + + Used in drawing of the hot background of dropdown button of ComboBox control. + + + + + Used in drawing of the normal background of dropdown button of ComboBox control. + + + + + Used in drawing of the normal background of dropdown button of ComboBox control. + + + + + Used in drawing of the normal background of dropdown button of ComboBox control. + + + + + Used in drawing of the normal background of dropdown button of ComboBox control. + + + + + Used in drawing of the pushed background of dropdown button of ComboBox control. + + + + + Used in drawing of the pushed background of dropdown button of ComboBox control. + + + + + Used in drawing of the pushed background of dropdown button of ComboBox control. + + + + + Used in drawing of the pushed background of dropdown button of ComboBox control. + + + + + Used in drawing of the background of dropdown list item of ComboBox control. + + + + + Used in drawing of the background of dropdown list item Top of ComboBox control. + + + + + Used in drawing of the background of dropdown list item of ComboBox control. + + + + + Used in drawing of the background of dropdown list item of ComboBox control. + + + + + Used in drawing of the background of dropdown list item of ComboBox control. + + + + + Used in drawing of the background of dropdown list item of ComboBox control. + + + + + Used in drawing of the background of dropdown list item of ComboBox control. + + + + + Used in drawing of CheckBox control. + + + + + Used in drawing of CheckBox control. + + + + + Used in drawing of CheckBox control. + + + + + Used in drawing of the normal border of CheckBox control. + + + + + Used in drawing of the selected border of CheckBox control. + + + + + Used in drawing of the pushed border of CheckBox control. + + + + + Used in drawing of the normal internal border of CheckBox control. + + + + + Used in drawing of the selected internal border of CheckBox control. + + + + + Used in drawing of the pushed internal border of CheckBox control. + + + + + Used in drawing of the normal internal rectangle border of CheckBox control. + + + + + Used in drawing of the selected internal rectangle border of CheckBox control. + + + + + Used in drawing of the pushed internal rectangle border of CheckBox control. + + + + + Used in drawing of the normal internal rectangle of CheckBox control. + + + + + Used in drawing of the selected internal rectangle of CheckBox control. + + + + + Used in drawing of the pushed internal rectangle of CheckBox control. + + + + + Used in drawing of the normal tick of CheckBox control. + + + + + Used in drawing of the selected tick of CheckBox control. + + + + + Used in drawing of the pushed tick of CheckBox control. + + + + + Used in drawing of the disabled tick of CheckBox control. + + + + + Used in drawing of the indeterminate rectangle of CheckBox control. + + + + + Used in drawing of the disabled back color CheckBox control. + + + + + Used in drawing of the disabled border CheckBox control. + + + + + Used in drawing of the disabled internal border CheckBox control. + + + + + Used in drawing of Radio button control. + + + + + Used in drawing of the border of Radio button control. + + + + + Used in drawing of the internal border of Radio button control. + + + + + Used in drawing of Radio button control. + + + + + Used in drawing of the border of Radio button control. + + + + + Used in drawing of the internal border of Radio button control. + + + + + Used in drawing of Radio button control. + + + + + Used in drawing of the border of Radio button control. + + + + + Used in drawing of the internal border of Radio button control. + + + + + Used in drawing of the border of check mark of Radio button control. + + + + + Used in drawing of check mark of Radio button control. + + + + + Used in drawing of check mark of Radio button control. + + + + + Used in drawing of check mark of Radio button control. + + + + + 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. + + + + + 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. + + + + + 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. + + + 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. + + + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + 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. + + + + 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. + + + + + + + + + + + + + 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. + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Specifies that this object subscribes to event. + + + + + 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. + + + + + + + + + + + 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 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. + + + + + 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. + + + + + Renderer for VisualStyle based theme + + + + + 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 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. + + + + 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. + + + + + + + Occurs when a property in the Button Style info has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Occurs when a property in the Button Style info has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Occurs when a property in the Button Style info has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Occurs when a property in the Button Style info has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Occurs when a property in the Button Style info has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Occurs when a property in the Button Style info has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Occurs when a property in the Button Style info has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents BookmarkCloseButtonStyleInfo class. + + + + + Represents the constructor of BookmarkCloseButtonStyleInfo . + + + + + Represents the constructor of BookmarkCloseButtonStyleInfo. + + Represents the identity. + + + + Constructor of BookmarkCloseButtonStyleInfo. + + Represents the identity. + Represents the store. + + + + Represents the default style of BookmarkCloseButtonStyle. + + + + + Gets or sets the BackColor. + + + + + Gets or sets the HoverBackColor. + + + + + Gets or sets the PressedBackColor. + + + + + Gets or sets the DisabledBackColor. + + + + + Gets or sets the ForeColor. + + + + + Gets or sets the HoverForeColor. + + + + + Gets or sets the PressedForeColor. + + + + + Gets or sets the DisabledForeColor. + + + + + Occurs when a property in the Button Style info has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Occurs when a property in the Button Style info has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Occurs when a property in the Button Style info has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + PdfDocumentView helps to view and print PDF files. + + + PdfDocumentView helps to view and print PDF files. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Gets the active theme name of the control. + + Returns the active theme name. + + + + Occurs when a page is clicked in + + + + + Occurs when the mouse pointer moves over the page in + + + + + Initializes PdfDocumentView class. + + + + + To wire up all the Mouse events + + Control to which the events should be wired + + + + Represents the method that will handle the mouse move event.  + + The sender the contains a PdfViewer. + The that contains the event data. + + + + Represents the method that will handle the mouse up event.  + + The sender the contains a PdfViewer. + The that contains the event data. + + + + Represents the method that will handle the mouse down event.  + + The sender the contains a PdfViewer. + The that contains the event data. + + + + Calculates the selected text bounds + + + + + + + + Opens the weblink in browser + + + + + Shows tooltip while the mouse is over an URL + + + + + Loads a Pdf document in the Pdf viewer + + The path for the Pdf document to display in the pdf viewer + + + + Loads a Pdf document in the Pdf viewer + + The path for the Pdf document to display in the pdf viewer + The password for opening the document. + + + + Loads a Pdf document in the Pdf viewer from the specified stream. + + A stream that contains the data for the Pdf document + The password for opening the document. + + + + Loads a Pdf document in the Pdf viewer from the specified stream. + + A stream that contains the data for the Pdf document + + + + Loads a pdf document in the Pdf viewer from the specified PdfLoadedDocuemnt. + + The PdfLoadedDocument to be viewed in the PdfViewer + + + + Prints the document on the specified printer. + + The name of the destination printer to print the PDF document. + + + + + + + + + + Unloads the Pdf document + + + + + Unloads the PDF document. + + Setting this parameter to true will dispose the loaded document completely. By default this parameter is set to true + + + + Resets the ScrollBar + + + + + Clean up any resources being used. + + + + + 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 + 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 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 keep the aspect ratio of the page + Returns the specified page as image with custom size and resolution> + + + + 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 keep the aspect raio of the page + 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 keep the aspect ratio of the page + Returns the specified pages as images with custom size and resolution + + + + Exports the specified page as System.Drawing.Imaging.Metafile + + The index of the PDF page. + Metafile + + + + Exports the specified pages as System.Drawing.Imaging.Metafile + + The start index of the PDF page + The end index of the PDF page + Array of Metafile + + + + + + + + + + + + + + + + + + Search the next occurrence of the text. + + The text to be searched + + + + Search the previous occurrence of the text. + + The text to be searched + + + + Searches the text + + The text to be searched + + + + Searches and highlights all occurrences of the given text in the PDF document. + + + + + + Navigates to the specified page. + + The page index + + + + Returns the rectangle postions of the text matches + + The text which is to be searched + + + + + + size of GESTURECONFIG structure + + + + + size of GESTUREINFO structure + + + + + Handler of gestures + + Message object + + + + + + + + + + + Custom Mousewheel event for auto scrolling during text selection + + + + + + + + + + + + + + + + + Invoked when the attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for event. + + The that contains the event data. + + + + Invoked when the attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for event. + + The that contains the event data. + + + + Draws the page using PrintPageEventArgs + + Metafile to be printed + Provides data for the PrintPage event + + + + Magnifies the page of the document to the provided zoom percentage. + + Zoom percentage + + + + Magnifies the page of the document to the provided zoom mode. + + zoom mode + + + + Navigates to the first page of the document. + + + + + Navigates to the last page of the document + + + + + Navigates to the previous page of the document. + + + + + Navigates to the next page of the document. + + + + + Navigates to the specified location. + + + + + Navigates to the location of the bookmark. + + The object that contains the details of the bookmark to which the viewer has to navigate. + + + 0) + pdfDocumentView1.GoToBookmark(bookmark[0]);]]> + + + + + + Navigates to the specified page. + + The page index + + + + 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 + + + + Extracts text along with its format from the PDF Page. + + Provides the text data collection + Returns the extracted text. + + + + Extracts text from the page of PDF document with lines and words collection. + + The page index. + Holds the lines with bounds in the page. + The Extracted Text. + + + + 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. + + + + + Occurs when theme name of the control has changed. + + + + + Gets or sets the theme name of the control. + + + The default value is null. + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets or sets the Base Theme name of the theme + + + + + Gets or sets a value indicating whether a theme settings + can be applied to the control. + + The default value is true. + + This property must be initialized before applying the VisualTheme /> + + + + + Gets the name of the control. + + + + + Gets or sets the VisualTheme of the control. + + + + + Gets or sets the value used to customize the appearance of the . + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Occurs when the error occurred in PdfViewerControl + + + + + Occurs when state of the navigation button is changed. + + + + + Occurs when current page is changed. + + + + + Occurs when the PDF document is loading. + + + + + Occurs when scroll is changed. + + + + + Occurs when a key is pressed + + + + + Occurs when the Pdf document is loaded + + + + + Occurs when the Hyperlink is clicked in a page of + + + + + Occurs when the mouse is moved over the hyperlink. + + + + + Occurs when zoom value is changed. + + + + + + + + Event triggered once the text selection was completed + + + + + Occurs when the PDF document is unloaded + + + + + Occurs to provide information on how much of printing content were submitted to printing subsystem + + + + + Occurs when the print is called and before the first page of the document prints. + + + + + Occurs when the last page of the document has printed. This event also occurs if the printing process is canceled or an exception occurs during the printing process. + + + + + Occurs when the text search is initiated. + + + + + Occurs when a match for the searched text found. + + + + + Occurs when a text search operation is completed. + + + + + Specifies the renderingMode for PdfViewer. + + + + + Gets or sets a value indicating whether text selection is enabled. Default value is true. + + + + + Gets or sets a value indicating whether text search is enabled. Default value is true. + + + + + Gets and sets the minimum zoom percentage. The value should be in between 10 and 400. The default value is 50. + + + + + Returns the loaded document of the PdfDocumentView + + + + + Specifes the Pdfium path in PDF Viewer control + + + + + Disposes the document completely + + + + + Visual style of the PdfViewerControl. + + + + + Returns true, if the PDF document is loaded in PDF viewer control. Default value is false. + + + + + Gets and Sets the background image for + + + + + Get or set thickness of the page border. Default value is 1. + + + + + Gets the information of the PDF document loaded + + + + + Represents printer settings for the document to be printed. + + + + + Gets and sets the message box settings. + + + + + Defines the textsearch settings when searching the text in the document + + + + + Gets the print document + + + + + Enables or disables the context menu. + + + + + Defines the page gap between the pages. The minimum value of ‘SpaceBetweenPages’ is 0. + + + Default value is 8. The unit of ‘SpaceBetweenPages’ is pixel. + + + + + Gets or sets the displacement value for scrolling. + + + + + Gets and sets the boolean value to show and hide the vertical scrollbar in + + + + + Gets and sets the Cursor Mode + + + + + Gets and sets the boolean value to show and hide horizontal scrollbar in + + + + + Gets or sets the horizontal scroll offset of the control. + + + + + Gets or sets the vertical scroll offset of the control. + + + + + Gets the page count. + + + + + Gets the current zoom percentage. + + + + + Gets the current page index which is currently in view. + + + + + Gets/Sets the Zoom mode. + + + + + Gets a boolean value indicating whether the control can navigate to the first page. + + + + + Gets a boolean value indicating whether the control can navigate to the previous page. + + + + + Gets a boolean value indicating whether the control can navigate to the next page. + + + + + Gets a boolean value indicating whether the control can navigate to the last page. + + + + + Delegate for KeyPressed event. + + + + + Delegate for NavigationButtonStateChanged event. + + + + + Delegate for the CurrentPageChanged event. + + + + + Delegate for DocumentLoaded event. + + + + + Delegate for ZoomChanged event. + + + + + Delegate for ZoomModeChanged event. + + + + + Delegate for TextselectionCompleted event + + + + + + + + + + + + + + + + + + + PdfViewerControl helps to view and print PDF files. The DocumentToolbar helps to navigate + easily anywhere inside the document and also provides direct access to open, save and print + documents. + + + PdfViewerControl helps to view and print PDF files. The DocumentToolbar helps to navigate + easily anywhere inside the document and also provides direct access to open, save and print + documents. + + + PdfViewerControl helps to view and print PDF files. The DocumentToolbar helps to navigate + easily anywhere inside the document and also provides direct access to open, save and print + documents. + + + + + It contains the value of the property. + + + + + Notifies when a theme name is changed. + + Represents the theme name. + + + + + + + Initializes PdfViewerControl. + + + + + To wire up all the Mouse events + + Control to which the events should be wired + + + + Represents the toolbar button click + + + + + Represents the method that will handle the mouse click event.  + + The sender the contains a PdfViewer. + The that contains the event data. + + + + Represents the method that will handle the mouse move event.  + + The sender the contains a PdfViewer. + The that contains the event data. + + + + Represents the method that will handle the mouse down event.  + + The sender the contains a PdfViewer. + The that contains the event data. + + + + Represents the method that will handle the mouse up event.  + + The sender the contains a PdfViewer. + The that contains the event data. + + + + Magnifies the page of the document to the provided zoom percentage. + + Zoom percentage + + + + Occurs when a page is clicked in + + + + + Occurs when the mouse pointer moves over the page in + + + + + Loads a Pdf document in the Pdf viewer + + The path for the Pdf document to display in the pdf viewer + + + + Loads a Pdf document in the Pdf viewer + + The path for the Pdf document to display in the pdf viewer + The password for opening the document. + + + + Loads a Pdf document in the Pdf viewer from the specified stream. + + A stream that contains the data for the Pdf document + The password for opening the document. + + + + Loads a pdf document in the Pdf viewer from the specified PdfLoadedDocuemnt. + + The PdfLoadedDocument to be viewed in the PdfViewer + + + + + + + Loads a Pdf document in the Pdf viewer from the specified stream. + + A stream that contains the data for the Pdf document + + + + + + + Unloads the Pdf document + + + + + Clean up any resources being used. + + + + + Exports the specified page as Image + + The page index to be converted into image + Returns the specified page as Image + + + + 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 + + + + Searches the text + + The text to be searched + + + + Search the next occurrence of the text. + + The text to be searched + + + + Search the previous occurrence of the text. + + The text to be searched + + + + 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 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 + Returns the specified pages as Images + + + + 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 + + + + Exports the specified page as System.Drawing.Imaging.Metafile + + The index of the PDF page. + Metafile + + + + Exports the specified pages as System.Drawing.Imaging.Metafile + + The start index of the PDF page + The end index of the PDF page + Array of Metafile + + + + 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 + + + + Navigates to the specified page. + + The page index + + + + Navigates to the location of the bookmark. + + The object that contains the details of the bookmark to which the viewer has to navigate. + + + 0) + pdfViewerControl1.GoToBookmark(bookmark[0]);]]> + + + + + + Display text search bar for search text in viewer. + + + + + Prints the document loaded in the viewer. + + If set to true, displays the PrintDialog box. Prints in silent mode when set to false. + + + + Prints the document loaded in the viewer. + + If set to true, displays the PrintDialog box. Prints in silent mode when set to false. + If set to true, text elements are printed as selectable text. Otherwise it is printed as non selectable text + + + + Prints the document on the specified printer. + + The name of the destination printer to print the PDF document. + + + + + + + + + + + + Invoked when the attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for event. + + The that contains the event data. + + + + Invoked when the attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for event. + + The that contains the event data. + + + + Extracts text along with its format from the PDF Page. + + Provides the text data collection + Returns the extracted text. + + + + Extracts text from the page of PDF document with lines and words collection. + + The page index. + Holds the lines with bounds in the page. + The Extracted Text. + + + + 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 value used to customize the appearance of the . + + + + + Specifies the rendering mode for PdfViewer. + + + + + Gets or sets a value indicating whether text selection is enabled. Default value is true. + + + + + Gets or sets a value indicating whether text search is enabled. Default value is true. + + + + + Gets the print document + + + + + Gets and sets the minimum zoom percentage. The value should be in between 10 and 400. The default value is 50. + + + + + Gets the LoadedDocument of + + + + + Gets the information of the PDF document loaded + + + + + Specifes the Pdfium path in PDF Viewer control + + + + + Visual style of the PdfViewerControl. + + + + + Gets the page count + + + + + Get or set the thickness of the page border. Default value is 1. + + + + + Enables or disables the bookmark feature. + + + + + Returns true, if the PDF document is loaded in PDF viewer control. Default value is false. + + + + + Represents printer settings for the document to be printed. + + + + + Gets and sets the message box settings. + + + + + Defines the textsearch settings when searching the text in the document + + + + + Represents document toolbar settings for PdfViewer. + + + + + Gets and sets the visibility of the toolbar + + + + + Gets and sets the boolean value to show and hide the vertical scrollbar in + + + + + Gets and sets the boolean value to show and hide the horizontal scrollbar in + + + + + Gets and sets the Cursor Mode + + + + + Enables or disables the context menu. + + + + + Defines the page gap between the pages. The minimum value of ‘SpaceBetweenPages’ is 0. + + + Default value is 8. The unit of ‘SpaceBetweenPages’ is pixel. + + + + + Gets or sets the horizontal scroll offset of the control. + + + + + Gets or sets the vertical scroll offset of the control. + + + + + Returns the index of the current page displayed in the Viewer + + + + + Enables the display of Notification bar on setting true. + + + + + Gets and sets the Zoom Mode + + + + + Gets or sets the displacement value for scrolling. + + + + + Gets the current zoom percentage. + + + + + Occurs when the error occurred in PdfViewerControl + + + + + Occurs when the PDF document is loading. + + + + + Occurs when button clicked. + + + + + Occurs when scroll is changed. + + + + + Occurs when a key is pressed + + + + + Occurs when the pdf document is loaded + + + + + Occurs when the Hyperlink is clicked in a page of + + + + + Occurs when the mouse is moved over the hyperlink. + + + + + Occurs prior to the rendering of every image in the document + + + + + Occurs when current page is changed. + + + + + Event triggered once the text selection was completed + + + + + Occurs when the PDF document is unloaded + + + + + Occurs before initiating the save operation of the PDF document. + + + + + Occurs after the completion of the save operation. + + + + + Occurs to provide information on how much of printing content were submitted to printing subsystem + + + + + Occurs when the print is called and before the first page of the document prints. + + + + + Occurs when the last page of the document has printed. This event also occurs if the printing process is canceled or an exception occurs during the printing process. + + + + + Occurs when the text search is initiated. + + + + + Occurs when a match for the searched text found. + + + + + Occurs when a text search operation is completed. + + + + + Delegate used for button clicked event. + + + + + Delegate used for KeyPressed event. + + + + + Delegate used for DocumentLoaded event. + + + + + Delegate used for ImagePreRender event. + + + + + Delegate used for TextSelectionCompleted event. + + + + + + + Represents bookmark button style info. + + + + + Constructor of bookmark button style info. + + + + + Constructor of bookmark button style info. + + Represents the identity. + + + + Constructor of bookmark button style info. + + Represents the identity. + Repesents the store. + + + + Gets the default style. + + + + + Gets or sets the fore color. + + + + + Gets or sets the hover fore color. + + + + + Gets or sets the pressed fore color. + + + + + Gets or sets the disabled fore color. + + + + + Gets or sets the back color. + + + + + Gets or sets the hover back color. + + + + + Gets or sets the pressed back color. + + + + + Gets or sets the disabled back color. + + + + + Represents the bookmark button style info store. + + + + + Constructor of BookmarkButtonStyleInfoStore class. + + + + + Represents the BookmarkButtonStyleInfoIdentity. + + + + + Constructor of the BookmarkButtonStyleInfoIdentity. + + + + + Returns the base styles. + + Represents the style info. + + + + + Occurs when a property in the Button Style info has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Occurs when a property in the Button Style info has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Occurs when a property in the Button Style info has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Occurs when a property in the Button Style info has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Occurs when a property in the Button Style info has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Occurs when a property in the Button Style info has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Occurs when a property in the Button Style info has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Occurs when a property in the Button Style info has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Occurs when a property in the Button Style info has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents the class to define the style for control. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + + + + Gets the default style value of the DefaultStyle + + Returns the default style value. + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the PdfDocumentViewControl for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Provides storage for the object. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Represents a class that provides style identity information for nested objects + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Represents the class to define the style for control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + + + + Gets the default style value of the DefaultStyle. + + Returns the default style value. + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the PdfViewerControl for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Provides storage for the object. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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 the , if is null. + + + + + + Gets the static data value of the class. + + + + + Represents a class that provides style identity information for nested objects + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. + + + + Required designer variable. + + + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + + + + + 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. + + Represents the annotation rectangle + + + + + + + + + Include the URL annotation rectangles with the specific page properties + + 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 + + + + Represents the annotation with associated within a page. + + + + + Provides data for the event. + + + + + Changes the URL. + + + + + Gets the URI (Unifrom Resource Identifer) of the hyperlink. + + + + + Gets or sets the value to handle the event. + + + If true, the event will be handled and disables the default processing of hyperlink navigation. Its default value is false. + + + + + Provides data for the event. + + + + + Changes the URL. + + + + + Gets the URI (Unifrom Resource Identifer) of the hyperlink. + + + + + Represents the URLS within a page. + + + + + Represents the URLS within a page. + + + + + Represents the Rectangle position of the matching text. + + + + + Represents printer settings for the document to be printed. + + + + + Scale percentage of the content. This value is applicable only if PageSizings is CustomScale. Default value is 100. + + + + + Gets or sets the value indicating to hide the status window while printing the document. Default value is true. + + + + + Gets or sets the number of copies of the document to print. The default value is 1. + + + + + Specifies information about page orientation + + + + + Specifies information about page size + + + + + To print the document content from the given location + + + + + Defines the constants that specify the page orientations for printing. Default value is Auto + + + + + Prints the document in auto orientation. + + + + + Prints the document in portrait rotation. + + + + + Prints the document in landscape rotation. + + + + + Defines the constants that specify the page sizings for printing. Default value is ActualSize + + + + + Prints the document in actual size. + + + + + Prints the document after fitting the content. + + + + + Prints the document with custom scaling. + + + + + Represents a text information + + + + + Gets the bounds of the text + + + + + Gets the text + + + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. + + + + Required designer variable. + + + + + 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. + + + + + 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. + + + + + Toolbar for the PdfViewerControl. + + + + + + + Creates an instance DocumentToolbar. + + + + + Initializes DocumentToolbar for the document loaded in PdfDocumentView. + + + + + Sets the visibility of the toolbar item + + Represents the toolbar item in the document toolbar + Represents visiblity of toolbar item + + + + Sets enable property of the toolbar items + + Represents the toolbar item in the document toolbar + Represents enable property of the toolbar item + + + + This applies FontHelper font to the toolbar controls + + + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. + + + + Required designer variable. + + + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + + + + + + + + label that acts as a separator for current page index and total page count + + + + + Gets or sets the PdfDocumentView associated with this instance of DocumentToolbar. + + + + + NotificationBar for the PdfViewerControl. + + + + + + + Boundary of the notification bar to draw the border + + + + + Graphics of the notification bar + + + + + Instance of the PdfViewerExceptions class to collect the exceptions thrown + + + + + Corresponding viewer to add the notification bar control + + + + + To specify the visibility of the notification bar + + + + + Initializes NotificationBar + + + + + Displays error in NotificationBar. + + The Message + The Exception + + + + Displays error in NotificationBar. + + The Exception + + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. + + + + Required designer variable. + + + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + + + + + Get and set the visibility of the notification bar + + + + + Gets or sets the font of the text displayed by the control. + + + + + Gets or sets the font of the text displayed in the link. + + + + + Represent the cursor modes + + + + + This tool is used for selecting texts. + + + + + This tool is used for dragging and scrolling the pages in any direction (pan). + + + + + Class to show the tooltip + + + + + 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. + + + + + Defines the constants that specify the rendering modes for PDF viewer. Default value is Pdfium. + + + + + Speficies the PDFium rendering engine. It is the recommended PDF rendering engine and it provides accurate and robust PDF rendering. . + + + + + Specifies the Syncfusion PDF rendering engine. + + + + + Provides classes to create PDF viewer control and various operations in Windows Forms application + + + + + Gets the information about the currently loaded PDF document + + + + + Gets the file path of the loaded PDF document + + + + + Gets the file name of the loaded PDF document + + + + + Represents document toolbar settings for PdfViewer. + + + + + Initializes the ToolbarItem + + + + + + Represents open button in document toolbar + + + + + Represents save button in document toolbar + + + + + Represents print button in document toolbar + + + + + Represents goto first page button in document toolbar + + + + + Represents goto previous page button in document toolbar + + + + + Represents goto next page button in document toolbar + + + + + Represents goto last page button in document toolbar + + + + + Represents zoom in button in document toolbar + + + + + Represents zoom out button in document toolbar + + + + + Represents fitwidth button in document toolbar + + + + + Represents fitpage button in document toolbar + + + + + Represents current zoom level button in document toolbar + + + + + Represents current page index button in document toolbar + + + + + Represents total page count button in document toolbar + + + + + Represents pan button in document toolbar + + + + + Represents selection button in document toolbar + + + + + Represents document toolbar items + + + + + Initializes a new instance of the of the specified . + + The control with which the toolbar item belongs to. + + + + Gets and sets the visibility of items in the document toolbar + + + + + Gets or sets the enable property of items in the document toolbar. + + + + + Represents the arguments associated with a scroll changed event. + + + + + Represents the old vertical scroll value + + + + + Represents the new vertical scroll value + + + + + Represents the maximum vertical scroll value + + + + + Provides the data for a button clicked events. + + + + + The name of the button which is clicked. + + + + + Cancel the default action of the button. + + + + + Custom event argument class used to notify when a key is pressed. + + + + + Returns the message. + + + + + Returns the key data. + + + + + Represents the arguments associated with a TextSelectionCompleted event. + + + + + Represents the current page number, selected text and text bounds. + + + + + Represents the selected text. + + + + + Defines the textsearch settings when searching the text in the document + + + + + Sets the color to highlight all the occurrence of the searched text. + + + + + Sets the color to highlight current occurrence of searched text. + + + + + Sets the value to enable or disable highlight all the occurrence of the searched text. + + + + + Provides data for `Beginsave` event. + + + + + Gets and sets a value indicating whether the save operation should be canceled. + + + + + Provides data for `EndSave` event. + + + + + Gets a value indicating whether the save process is canceled. + + + + + Provides data for `DocumentUnloaded` events. + + + + + Provides data for `Beginprint` events. + + + + + Provides data for 'PrintProgress' event. + + + + + Gets the count of total number of pages to be printed. + + + + + Get the current printing page index. + + + + + Provides data for `EndPrint` events. + + + + + Provides data for `TextSearchInitiated` events. + + + + + Gets the text being searched. + + A string that holds the text that is being searched in the PDF document. Default value is + + + + Provides data for `TextMatchFound` events. + + + + + Gets the text being searched. + + A string that holds the text that is being searched in the PDF document. Default value is + + + + Gets the match founded page number. + + A integer value that holds the match founded page number. + + + + Provides data for `TextSearchCompleted` events. + + + + + Gets a message that describes the results of text search completion. + + + + + Gets the text being searched. + + A string that holds the text that is being searched in the PDF document. Default value is + + + + Gets a value indicating whether there are no more occurrences of the text being searched. + + A boolean value which when set to true, represents that no more match of the searched text is found in the document and vice versa. + + + + Gets a value indicating whether there is no match to the text found. + + A boolean value which when set to true, represents no match of the searched text is found in the document and vice versa. + + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. + + + + Required designer variable. + + + + + 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. + + + + + 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.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.Byte[]. + + + + + Looks up a localized resource of type System.Drawing.Icon similar to (Icon). + + + + + Looks up a localized resource of type System.Byte[]. + + + + + Class for the PasswordToolBox + + + + + + Initializes PasswordToolBox 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. + + + + + + + + Instance of + + + + + + + + + + + Represents a localization resource manager class which manages localization resources to provide convenient access to culture-specific resources at run time. + + + + + + Sets lookup assembly and namespace for localization resource manager. + This can be used to set lookup assembly and namespace to locate localization resx files + when assembly name and default namespace of application differs. + + The assembly where the resx file located. + The default namespace of the assembly where resx file located. + + + + Gets the localized string for the current culture. + + The string that need to be localized. + Returns the localized string. + + + + 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/ZZ_Signature_C/bin/Debug/Syncfusion.SfChart.WPF.dll b/ZZ_Signature_C/bin/Debug/Syncfusion.SfChart.WPF.dll new file mode 100644 index 00000000..40453e21 Binary files /dev/null and b/ZZ_Signature_C/bin/Debug/Syncfusion.SfChart.WPF.dll differ diff --git a/ZZ_Signature_C/bin/Debug/Syncfusion.SfChart.WPF.xml b/ZZ_Signature_C/bin/Debug/Syncfusion.SfChart.WPF.xml new file mode 100644 index 00000000..49e26d61 --- /dev/null +++ b/ZZ_Signature_C/bin/Debug/Syncfusion.SfChart.WPF.xml @@ -0,0 +1,42072 @@ + + + + Syncfusion.SfChart.WPF + + + + + Represents the 3DChart control which is used to visualize the data graphically in three dimension. + + + The Chart is often used to make it easier to + understand large amount of data and the relationship between different parts + of the data. Chart can usually be read more quickly than the raw data that they + come from. Certain are more useful for + presenting a given data set than others. For example, data that presents + percentages in different groups (such as "satisfied, not satisfied, unsure") are + often displayed in a chart, but are more easily + understood when presented in a horizontal chart. + + + + + + + + is a base class for chart. Which represents a chart control with basic presentation characteristics. + + + + + Interface implementation for ICloneable + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The Dependency property for + + + + + Return row value from the given ChartAxis. + + The UIElement. + Row value of given object. + + + + Method implementation for set row value to ChartAxis. + + The UIElement. + Row value of the object. + + + + Get the column value from the given ChartAxis. + + The UIElement. + Column value of given object. + + + + Gets the value of the Syncfusion.UI.Xaml.Charts.ColumnSpan attached property from a given UIElement. + + The element from which to read the property value. + The value of the Syncfusion.UI.Xaml.Charts.ColumnSpan attached property. + + + + Gets the value of the Syncfusion.UI.Xaml.Charts.RowSpan attached property from a given UIElement. + + The element from which to read the property value. + The value of the Syncfusion.UI.Xaml.Charts.RowSpan attached property. + + + + Set column to ChartAxis. + + The UIElement. + Column value of the object. + + + + Sets the value of the Syncfusion.UI.Xaml.Charts.ColumnSpan attached property to a given UIElement. + + The element on which to set the Syncfusion.UI.Xaml.Charts.ColumnSpan attached property. + The property value to set. + + + + Sets the value of the Syncfusion.UI.Xaml.Charts.RowSpan attached property to a given UIElement. + + The element on which to set the Syncfusion.UI.Xaml.Charts.RowSpan attached property. + The property value to set. + + + + Suspends all the series from updating the data till ResumeSeriesNotification is called. It is specifically used when you need to append the collection of data. + + + + + Processes the data that is added to the data source after the SuspendSeriesNotification is called. + + + + + Clone the entire chart control. + + + + + Returns the stacked value of the series. + + ChartSeries + RequiresNegativeStack + StackedYValues collection. + + + + Export the into image with the given filename to the mentioned location. + + + + chart.Save("sfchart.jpg", //..KnownFolders.PicturesLibrary); + + + + + + Export the into image using the stream with provided bitmap encoder value. + + + + var stream = await file.OpenAsync(Windows.Storage.FileAccessMode.ReadWrite); + { + chart.Save(stream, BitmapEncoder.BmpEncoderId); + } + + + + + + Method used to print the chart. + + + + + Method used to print the chart. + + Used to specify horizontal alignment. + Used to specify vertical alignment. + Used to specify page margin. + Used to specify whether print landscape mode or not. + Used to specify shrinktofit or not. + + + + Method used to generate a serialize file in default location. + + Used to specify file name. + + + + Method used to generate a serialize the stream in default location. + + Used to specify stream value. + + + + Method used to serialize the chart. + + + + + Method used to deserialize the serialized file. + + Used to specify stream value. + The deserialized object from the stream. + + + + Method used to deserialize the serialized file. + + + + + Method used to deserialize the serialized file. + + Used to specify file name. + The deserialized object. + + + + Method used to highlight selected index series. + + Used to indicate current selected index. + Used to indicate previous selected index. + + + + Converts the chart value to screen point. + + The Chart axis. + The value. + The double value to point. + + + + Converts screen point to chart value. + + The axis value. + The point. + The double point to value. + + + + Method to notify row definition and column definition collection changed. + + NotifyCollectionChanged event arguments. + + + + Clone the entire chart. + + + + + Update the chart area. + + + + + Converts Value to Log point. + + The Logarithmic axis. + The value. + The double value to point. + + + + Updates the entire chart series and axis. + + + + + Gets actual row value from the given ChartAxis. + + The UIElement. + Actual row value. + + + + Gets actual column value from the given ChartAxis. + + The UIElement. + Actual column value. + + + + Gets the actual value of the Syncfusion.UI.Xaml.Charts.ColumnSpan attached property from a given UIElement. + + The element from which to read the property value. + The value of the Syncfusion.UI.Xaml.Charts.ColumnSpan attached property. + + + + Gets the actual value of the Syncfusion.UI.Xaml.Charts.RowSpan attached property from a given UIElement. + + The element from which to read the property value. + The value of the Syncfusion.UI.Xaml.Charts.RowSpan attached property. + + + + Method used to get brush for series selection. + + The chart series. + The brush value for series selection. + + + + Method used to get EnableSeriesSelection property value. + + The bool value to enable/disable the series selection. + + + + Method used to get EnableSegmentSelection property value. + + The bool value to enable/disable the segment selection. + + + + Method used to set selection behavior. + + + + + Method used to set the TooltipBehavior. + + + + + Method to raise SelectionChanged event when SeriesSelectedIndex is set at chart load time. + + + + + Event invokes when the plot area size changed. + + Which indicates . + + + + Called when selection changed in SfChart. + + ChartSelectionChangedEventArgs. + + + + Called when selection changed in SfChart. + + ChartSelectionChangedEventArgs. + + + + It's a preview event before SelectionChanged. + + ChartSelectionChangingEventArgs + + + + Called when root panel size changed. + + The size. + + + + The DependencyProperty for property. + + + + + Updates the legend arrange rect. + + The legend. + + + + Updates the legend arrange rect. + + + + + Event correspond to series and segment selection. It invokes once selection changed from a series or segment. + + + + + + + + Event correspond to series and segment selection. It invokes before selection changing from a series or segment. + + + + + + + + Event correspond to plot area bound. It invokes when the plot area size changes. + + + + + + + + Event correspond to property value changed. It invokes when the properties changed. + + + + + Gets or sets thickness to the axis. + + + + + Gets a bounds of chart area excluding axis and chart header. + + + + + Gets the collection of visible series in the chart. + + + This property is intended to be used for custom + ChartArea + + templates. + + + + + Gets or sets palette for chart. By default, it is . + + + + + + + + Gets or sets the index to select the series. + + + + + Gets or sets the collection of ChartColumnDefinition objects defined in the chart. + + + + + Gets or sets the collection of ChartRowDefinition objects defined in chart. + + + + + Gets the collection of horizontal and vertical axis. + + + + + Gets or sets the value that indicates whether the series can be placed side by side. + + + + + Gets or sets title for the chart. + + + + + Gets or sets the horizontal alignment for the header. + + + + + + + + Gets or sets the vertical alignment for the header. + + + + + + + + Gets or sets the color schemes for all series in the chart. + + + + + + + + Gets or sets the chart resource dictionary file path which is used to customize the control default styles for custom themes. + + + + + + Gets or sets the intermediate PrimaryAxis object used for internal calculation. + + + + + Gets or sets the intermediate DepthAxis object used for internal calculation. + + + + + Gets or sets the intermediate SecondaryAxis object used for internal calculation. + + + + + Gets the calclulated minimum delta value. + + + + + Gets or sets the type of the chart area. + + + + + + + + Gets or sets the chart axis layout panel. + + + The chart axis layout panel. + + + + + Gets or sets the current Tooltip object, which is displaying in the chart. + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns list of . + + + + + Gets or sets a legend that helps to identify the series in the chart. + + + The legend. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Backing store for ZMinPointsDelta/> + + + + + Plans of the left side wall. + + + + + Plans of the bottom side wall. + + + + + Plans of the top side wall. + + + + + Plans of the right side wall. + + + + + Represents the current series. + + + + + Used to temporarily store the series for display tooltip hovering on adornment or adornment label. + + + + + Holds the previous chart position. + + + + + Checks the rotation activation + + + + + Holds the previous auto depth. + + + + + Holds the sum by index. + + + + + Checks whether the 3D schedule is updated. + + + + + Represents the segment on which the mouse is moved. + + + + + Represents the controls presenter. + + + + + Initializes a new instance of the class. + + + + + Method used to highlight selected index series. + + The New Index + The Old Index + + + + Converts point to value. + + The axis value. + The point. + + The double point to value + + + + + Converts Value to point. + + The Chart Axis. + The Value. + + The double value to point + + + + + Updates the chart when reset the series. + + The Series + + + + Set default axes for + + + + + Checks for the manhattan axis. + + Returns a value indicating whether Manhattan Axis Required. + + + + Set PrimaryAxis for + + The Type + + + + Set DepthAxis for + + The Type + + + + Clone the entire chart + + The Cloned Chart. + + + + Gets the percent by index. + + The Series + The Index + The Value + Is Recalculation Required + The Percent + + + + Renders the series. + + + + + Updates the right wall. + + + + + Updates the left wall. + + + + + Updates the top wall. + + + + + Updates the bottom wall. + + + + + Updates the back wall. + + + + + Checks whether the chart is rotated. + + Indicates a value whether the chart is Rotated + + + + Updates the entire chart series and axis + + + + + Update the chart area + + Triggers Force Update + + + + Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior. + + + The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects; or based on other considerations, such as a fixed container size. + + The Available Size + + + + Updates the chart on mouse move. + + The Event Arguments + + + + Updates the chart on mouse left button down. + + The Event Arguments + + + + Updates the chart on mouse left button up. + + The Event Arguments + + + + Updates the chart on mouse leave. + + The Event Arguments + + + + When overridden in a derived class, is invoked whenever application code or + internal processes (such as a rebuilding layout pass) call . + In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks. + + + + + To prevent the call of update area each time the angle is changed. + + The Actual Rotation Angle + The Previous Rotation Angle + Is rotation angle at the same quadrant. + + + + To prevent the call of update area each time the tilt is changed. + + The Actual Rotation Angle + The Previous Rotation Angle + Is tilt angle at the same quadrant. + + + + Checks the series transposition. + + The Series + + + + This method is used to return the value when the AdornmentTemplate is selected. + + The Source + The Series + Returns the value indicating whether the series event triggered. + + + + Updates the chart when depth axis is changed. + + The Dependency Object + The Event Arguments + + + + PropertyChangeCallback for EnableSeriesSelection property. + + The DependencyObject + The DependencyPropertyChangedEventArgs + + + + PropertyChangeCallback for EnableSegmentSelection. + + The DependencyObject + The DependencyPropertyChangedEventArgs + + + + Updates the chart style when style is set. + + The Dependency Object + The Event Arguments + + + + Updates the top wall color when top wall brush changed. + + The Dependency Object + The Event Arguments + + + + Updates the bottom wall color when top wall brush changed. + + The Dependency Object + The Event Arguments + + + + Update the right wall color when top wall brush changed. + + The Dependency Object + The Event Arguments + + + + Updates the left wall color when left wall brush changed. + + The Dependency Object + The Event Arguments + + + + Updates the back wall color when back wall brush is applied. + + The Dependency Object + The Event Arguments + + + + Updates the chart when PerspectiveAngle is changed. + + The Dependency Object + The Event Arguments + + + + Updates the chart when the primary axis is changed. + + The Dependency Object + The Event Arguments + + + + Updates the chart when the secondary axis is changed. + + The Dependency Object + The Event Arguments + + + + Updates the chart when the series property collection changed. + + The Dependency Object + The Event Arguments + + + + Updates the chart when the depth property is changed. + + The Dependency Property + The Event Arguments + + + + Updates the chart when the rotation property changed. + + The Dependency Object + The Event Arguments + + + + Updates the chart when tilt property changed. + + The Dependency Object + The Event Arguments + + + + Update Back Wall Brush + + + + + Update Left Wall Brush + + + + + Update Right Wall Brush + + + + + Update Bottom Wall Brush + + + + + Update Top Wall Brush + + + + + Unregisters the series. + + The Series + + + + Updates the visible series. + + The Series Collection + + + + Updates the chart when the series collection changed. + + The Event Arguments + + + + Updates the chart when the perspective angle is changed. + + + + + Updates the chart when the series collection is changed. + + The Dependency Object + The Event Arguments + + + + Updates the chart on chart size changed. + + The Sender + The Event Arguments + + + + Rotates the chart. + + The Position + + + + Updates the front wall. + + + + + Update3D the wall. + + + + + Update the 3D view. + + + + + Automatics the depth adjust. + + Need auto depth adjust + + + + Updates the interactions when chart is moved. + + The Source + The Position + + + + Updates the interactions when the chart mouse button is down. + + The Source + The Position + The pointer + + + + Updates the interactions when the chart mouse button is up. + + The Source + The Position + The Pointer + + + + Explodes the chart on mouse click. + + The Element + The Position + + + + Schedule the 3d update. + + + + + Raises the + E:AxisChanged + + event. + + The Instance containing the event data. + + + + Layouts the axis. + + Size of the available. + + + + Renders the segment at the given schedules. + + + + + Gets or sets the horizontal axis(Z) for the SfChart3D. + + + + + Gets or sets the size of the axis wall. + + + + + Gets or sets a value indicating whether the rotation is enabled for SfChart3D. + + + true if rotation is enabled; otherwise, false. + + + + + Gets or sets a value indicating whether the series selection is enabled or not. + + + + + Gets or sets a value indicating whether if the segment (or) data point selection is enabled or not. + + + + + Gets or sets the type of selection. By Default Single Selection is enabled. + + + SelectionStyle3D.Single for selecting single point/series; + SelectionStylr3D.Multiple for selecting multiple point/series. + + + + + Gets or sets the mouse cursor for the series, which indicates that this series is selectable + + + Default value is null + + + + + Gets or sets the brush for the Top wall. + + + The value. + + + + + Gets or sets the brush for the Bottom wall. + + + The value. + + + + + Gets or sets brush for the Right wall. + + + The value. + + + + + Gets or sets the brush for Left wall. + + + The value. + + + + + Gets or sets the brush for the Back wall. + + + The value. + + + + + Gets or sets the angle for the perspective view. By default its 90 degree. + + + + + Gets or sets the horizontal axis(X) for the SfChart3D. + + + + + Gets or sets the vertical axis(Y) for the SfChart3D. + + + + + Gets or sets the series added to the SfChart3D. + + + The following is an example for initializing the Series + + <syncfusion:SfChart> + <syncfusion:AreaSeries3d/> + <syncfusion:AreaSeries3d/> + </syncfusion:SfChart> + + + SfChart sfChart = new SfChart(); + AreaSeries3D areaSereis1 = new AreaSeries3D(); + AreaSeries3D areaSereis2 = new AreaSeries3D(); + sfChart.Series.Add(areaSereis1); + sfChart.Series.Add(areaSereis2); + + + + + + Gets or sets the Tilt angle for the 3D charts. + + + The default angle is 0d. + + + + + Gets or sets the depth of field for 3D view. + + + The default value is 100d. + + + + + Gets or sets the rotation angle for the 3D charts. + + + The default angle is 0d. + + + + + Gets or sets a value indicating whether series rendering dispatched. + + + + + Gets or sets the for render the chart. + + + + + Gets the spacing for the column typed series. + + + + + Gets or sets a value indicating whether auto depth need to be set. + + + + + Gets or sets the root panel of the chart. + + + + + Gets or sets a value indicating whether the rotation schedule update is required. + + + + + Gets or sets the rotation angle. + + + + + Gets or sets the tilt angle. + + + + + Gets or sets the actual depth of the chart. + + + + + Class implementation for CategoryAxis + + + + + Class implementation for ChartAxisBase3D + + + + + Enables plotting of data points in a chart control. + + + The Chart requires a minimum of two axes namely primary axis and secondary axis to plot data points. + Values / data in the chart are plotted against these two axes. + Chart WINRT also supports adding multiple axes to the chart and the series can be drawn with + reference to any x-axis,y-axis added to + + + + <syncfusion:SfChart> + <syncfusion:SfChart.PrimaryAxis> + <syncfusion:ChartAxis/> + </syncfusion:SfChart.PrimaryAxis> + <syncfusion:SfChart.SecondaryAxis > + <syncfusion:ChartAxis/> + </syncfusion:SfChart.SecondaryAxis> + </syncfusion:SfChart > + + + ChartAxis xAxis = new ChartAxis(); + chartArea.PrimaryAxis = xAxis; + ChartAxis yAxis = new ChartAxis(); + chartArea.SecondaryAxis = yAxis; + + + + + + CRoundDecimals const variable declarations + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for the property. + + + + + Initializes c_intervalDivs + + + + + MaxPixelsCount variable declarations + + + + + Contains actual Range WithoutPadding + + + + + Contains Actual VisibleRange + + + + + Called when instance created for ChartAxis + + + + + Converts co-ordinate of point related to chart control to axis units. + + The absolute point value. + The value of point on axis. + + + + + Converts Coefficient of Value related to chart control to Polar/Radar type axis unit. + + Polar/Radar type axis Coefficient Value + The value of point on Polar/Radar type axis + + + + Converts co-ordinate of point related to chart control to axis units. It returns actual value instead of visible value. + + The absolute point value. + The value of point on axis. + + + + Converts value of passed point co-ordinate to control related co-ordinate. + + The value of point on axis. + The value of point on axis. + + + + + Converts co-ordinate of point related to chart control to Polar/Radar type axis unit. + + The absolute point value. + The value of point on axis. + + + + + Converts value of passed point co-ordinate to control related co-ordinate. + + The value of point on axis. + The value indicates whether is e/> + Co-ordinate of point related to chart control. + + + + + Return Object value from the given position value + + + + + + + Gets the actual rect co-ordinates of an ChartAxis. + + returns rect + + + + Gets the rect co-ordinates of an axis excluding its value of LabelOffset and AxisLineOffset. + + returns rect + + + + Clone the axis + + + + + + Occurs when label is created. + + + + + + Calculates actual range and actual interval + + + + + + Recalculates visible range and visible labels. + + + + + Converts Value to point. + + The value. + The double value to point + + + + Converts point to value. + + The point. + The double point to value + + + + Event invokes when axis bounds changed. + + Which indicates + + + + Event invokes when axis is changed. + + Which indicates + + + + Method implementation for Add SamllTicksPoint + + + + + + Method implementation for Add smallTicks to axis + + + + + + + Calculates actual interval + + + + + + + + Calculates nice interval + + + + + + + + Calculates the visible range. + + + + + Returns the maximum desired intervals count. + + + + + + + Event correspond to property value changed. It invokes when the properties changed. + + + + + Method implementation for Generate Labels in ChartAxis + + + + + Calculates actual range + + + + + + Apply padding based on interval + + + + + + + + Occurs when axis registered series collection changed. + + + + + Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior. + + + The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects; or based on other considerations, such as a fixed container size. + + + + + + Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the WPF infrastructure. + + The type-specific System.Windows.Automation.Peers.AutomationPeer implementation. + + + + Called when the label is created. + + + + + + Sets the Custom Labels to Visible Labels Collection + + + + + Occurs when visible labels collection is changed. + + + + + + + isInversed variable declarations + + + + + Occurs when axis plot area size changed. + + + + + Occurs when [actual range changed]. + + + + + Occurs when the labels is created. + + + + + Gets or sets IsLogarithmic property + + + + + Gets or sets the plot offset value + + + + + Gets or sets the maximum no of label to be displayed per 100 pixels. + + + This property used to avoid more no of labels on auto range calculation. + + + + + Gets the visible range of the axis. + + + + + Gets or sets the position for Axis header, when enabling the ShowAxisNextToOrigin property. + + + + + Gets the bounds of the chart axis size. + + + + + Gets or sets the property path to be bind with axis label position. + + While using custom label source, the position(index) for labels will get from this property. + + + + + Gets or sets the property path to be bind with axis label content(text). + + While using custom label source, the label text will get from this property. + + + + + Gets or sets the label formatting for the axis labels. + + + + + Gets or sets the offset value for applying the padding to the plot area. + + + + + Gets or sets the value that used to offset the rendering of the axis at start position. + + + applies padding at start of plot area where the axis and its elements are rendered in chart with padding at start. + is not applicable for polar and radar chart series. + If the values set to both and , + then takes highest precedence. + + + The default value is 0. + + + + + + + Gets or sets the value that used to offset the rendering of the axis at end position. + + + applies padding at end of plot area where the axis and its elements are rendered in chart with padding at end. + is not applicable for polar and radar chart series. + If the values set to both and , + then takes highest precedence. + + + The default value is 0. + + + + + + + Gets or sets the offset value for applying padding to the axis line. + + + + + Gets or sets the position for the axis labels. Either inside or outside of the plot area. + + + + + + + + Gets or sets the custom labels collection to be displayed in axis . + + + + + Gets or sets the custom template for the axis label postfix. + + + + + + + + Gets or sets the custom template for the axis label postfix. + + + + + + + + Gets or sets a value which decides the mechanism to avoid the axis labels overlapping. + The overlapping labels can be hided, rotated or placed on next row. + + + + + + + + Gets or sets the value that determines the distance between the axis label and axis title. + + + + + Gets or sets the rotation angle of the axis labels. + + + The default value is 0 and the label will be rotated with center as origin. + + + + + Gets or sets the options for customizing for the axis line. + + + + + Gets or sets a value indicating whether to enable the axis to position opposite to its actual position. That is, to the other side of plot area. + + + + + Gets or sets the interval for the axis auto range calculation, if is not set explicitly. + + + + + Gets or sets visibility of label. + + + + + Gets or sets the custom template for the scroll bar thumb. + + + + + + + + Gets or sets the header for the chart axis. + + + + + Gets or sets the style for the chart axis header. + + + + + + + Gets or sets the custom template for the chart header. + + + + + + + + Gets or sets the size for the axis tick lines. + + + The default value is 8. + + + + + Gets the collection of axis labels in the visible region. + + + + + Gets or sets the value that indicates whether the axis visible range is inversed. + When reversed, the axis will render points from right to left if horizontal, top to bottom when vertical and clockwise if radial. + + + + + Gets or sets the origin value where its associated axis should place. + + + + + Gets or sets a value indicating whether to show the origin line or not. + + + + + Gets or sets a value indicating whether axis can be positioned across the plot area. + + + + + Gets or sets the style for origin line when enable the ShowOrigin property. + + + + + Gets or sets a value indicating whether the tick line position, either inside or outside. + + + + + Gets or sets mode which decides the mechanism for extreme(edge) labels. + It can be position center, hide, etc. + + + + + + + + Gets or sets the edge labels visibility mode for hiding the edge labels on zooming. + + + + + Gets or sets the style for the major grid lines. + + + + + Gets or sets the style for the minor grid lines. + + + + + Gets or sets the style for the major tick line style. + + + + + Gets or sets the style for the minor tick line style. + + + + + Gets or sets a value indicating whether to show track ball label for this axis. + + + + + Gets or sets the custom template for the trackball tooltip label. + + + + + + + + Gets or sets the custom template for the Crosshair labels. + + + + + + + <syncfusion:SfChart.PrimaryAxis> + <syncfusion:ChartAxis CrosshairLabelTemplate="{StaticResource crossHairTemplateX}"/> + </syncfusion:SfChart.PrimaryAxis> + <syncfusion:SfChart.SecondaryAxis> + <syncfusion:ChartAxis CrosshairLabelTemplate="{StaticResource crossHairTemplateY}"/> + </syncfusion:SfChart.SecondaryAxis> + + + primaryAxis.ShowTrackballInfo = true; + primaryAxis.CrosshairLabelTemplate = dataTemplateX; + secondaryAxis.ShowTrackballInfo= true; + secondaryAxis.CrosshairLabelTemplate = dataTemplateY; + + + + + + Gets or sets a value indicating whether the axis gird lines can be display or not. + + + + + GGets or sets the value that indicates whether to calculate the axis intervals on zooming. + + While zooming, the range and interval will change with respect to zoom position or zoom factor + + + + + Gets or sets the options for customizing the axis labels. + + + + + Gets or sets the custom template for the axis labels. + + + + + + + + Gets the axis custom labels collection. + + + + + Gets or sets the plot offset start value + + + + + Gets or sets the plot offset end value + + + + + Gets or sets a collection of the ChartAxisRangeStyle to customize the axis gridlines. + + + + + Gets or sets the Alignment for the axis labels. Either Start, Center or End of the Axis area. + + + + + + + + Gets or sets the stripLine range corresponding to x axis, this property is used to include range of StripLine to axis. + + + + + Gets or sets the stripLine range corresponding to y axis, this property is used to include range of StripLine to axis. + + + + + Initializes a new instance of the class. + + + + + Converts co-ordinate of point related to chart control to axis units. + + The absolute point value. + The value of point on axis. + + + + + Creates the line recycler. + + + + + Computes the desired size. + + The Size + + + + Raises the event. + + The instance containing the event data. + + + + Updates the axis panels. + + + + + Gets or sets a value indicating whether the axis is z axis. + + + + + Gets or sets a value indicating whether the axis is manhattan axis. + + + + + Gets or sets the actual position of the whole axis. + Please Note: It is not enabled in horizontal label scenarios. + + + + + Gets or sets the axis depth. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Method implementation for Get LabelContent for given position + + The Position + The Label Content + + + + Calculates actual interval + + The Range + The Available Size + Actual Interval + + + + Called when interval property changed + + The Event Arguments + + + + Apply padding based on interval + + The Range + The Interval + The Range Padding + + + + Method implementation for Generate Visible labels for CategoryAxis + + + + + Clones the axis. + + The Object + Cloned Axis + + + + Updates the axis when the interval property is changed. + + The Dependency Object + The Event Arguments + + + + Gets or sets a value that determines the interval between labels. Its null-able. + If this property is not set, interval will be calculated automatically. + + + + + Gets or sets a property used to define the axis label placement with respect to tick lines. + + + LabelPlacement.BetweenTicks, to place label between the ticks; + LabelPlacement.OnTicks, to place label with tick as center. This is default value. + + + + + Gets or sets a value indicating whether to group the Category axis label values and create the segment based on it. + + + True, to created the segment based on the index value. This is default value.; + False, to created the segment based on the axis label values. + + + + + Gets or sets a property used to aggregate the grouped values. + + + + + Class implementation for DateTimeAxis3D + + + + + Class implementation for RangeAxisBase + + + + + Interface implementation for IRangeAxis + + + + + Gets Range property + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Method implementation for Add SmallTicksPoint + + The Position + + + + Method implementation for Add smallTicks to axis. + + The Position + The Interval + + + + Method implementation for Generate Labels in ChartAxis + + + + + Clones the given axis. + + The Object + Returns the cloned axis. + + + + Updates the axis when the property changed. + + The Dependency Object + The Event Arguments + + + + Gets or sets small tick’s interval + + + + + Gets or sets small tick line size + + + + + Gets or sets small tick lines position + + + + + Gets the interface range. + + + + + Gets the range. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Return object value from the given double value + + The Position + Return object value from the given double value. + + + + Calculates actual interval. + + The Range + The Available Size + The Actual Interval. + + + + Calculates the nice interval. + + The Actual Range + The Available Size + Returns the calculated nice interval. + + + + Called when Interval property changed. + + The Event Arguments + + + + Calculates the actual range for the axis. + + Returns the calculated actual range. + + + + Apply padding based on interval + + The Range + The Interval + Returns the padded range. + + + + Clones the axis. + + The Object + Returns the cloned axis. + + + + Called when Maximum property changed + + The Event Arguments + + + + Called when minimum property Changed + + The Event Arguments + + + + Method implementation to Create VisibleLabels for DateTime axis. + + + + + Updates the axis when the intervals changed. + + The Dependency Object + The Event Arguments + + + + Updates the axis when the maximum value changed. + + The Dependency Object + The Event Arguments + + + + Updates the axis when the minimum value changed. + + The Dependency Object + The Event Arguments + + + + Updates the axis when the range padding changed. + + The Dependency Object + The Event Arguments + + + + Updates the axis when the interval type changed. + + The Dependency Object + The Event Arguments + + + + Updates the axis when the minimum or maximum value is changed. + + + + + Gets or sets the minimum value for the axis range. This is null-able property. + + + If we didn't set the minimum value, it will be calculate from the underlying collection. + + + + + Gets or sets the maximum value for the axis range. This is null-able property. + + + If we didn't set the maximum value, it will be calculate from the underlying collection. + + + + + Gets or sets a value that determines the interval between labels. + If this property is not set, interval will be calculated automatically. + + + + + Gets or sets a value indicating shift to the DateTimeAxis range inside or outside. + + + Additional, to extend the range, + Round, to round-off the range, + None, do nothing, + Auto, auto range based on type of series. + + + + + Gets or sets the type of interval to be displayed in axis. + + + This property hold the values ranges from Year, Months to Milliseconds. + + + + + Gets or sets the actual interval type for the axis. + /// + + + + Class implementation for LogarithmicAxis3D + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Converts co-ordinate of point related to chart control to axis units. + + The absolute point value. + The value of point on axis. + + + + + Return the object Value from the given double value. + + The Position + Returns the label content. + + + + Calculates nice interval. + + The Actual Range + The Available Range + Returns the calculated nice interval. + + + + Method implementation for Add SmallTicks for axis + + The Position + The Logarithmic Base + + + + Calculates actual interval + + The Range + The Available Size + Returns the calculated actual range. + + + + Method implementation for Generate Labels in ChartAxis + + + + + Called when maximum changed + + The Event Arguments + + + + Called when minimum property changed + + The Event Arguments + + + + Called when Interval changed + + The Event Argument + + + + Calculates actual range. + + Returns the calculated range. + + + + Apply padding based on interval + + The Range + The Interval + Returns the padded range. + + + + Clones the logarithmic axis. + + The Object + Returns the cloned axis. + + + + Get the range if date values contain 0 or double.NaN + + The Values + The Range End + Returns the range. + + + + Updates the axis when the logarithmic base changed. + + The Dependency Object + The Event Arguments + + + + Updates the axis on minimum value changed. + + The Dependency Object + The Event Arguments + + + + Updates the axis when the maximum value changed. + + The Dependency Object + The Event Arguments + + + + Updates the axis when the intervals changed. + + The Dependency Object + The Event Arguments + + + + Updates the axis when minimum and maximum value changed. + + + + + Calculates the base actual range. + + Returns the base actual range. + + + + Gets or sets a value that determines the interval between labels. Its null-able. + If this property is not set, interval will be calculated automatically. + + + + + Gets or sets the minimum value for the axis range. This is null-able property. + + + If we didn't set the minimum value, it will be calculate from the underlying collection. + + + + + Gets or sets the maximum value for the axis range. This is null-able property. + + + If we didn't set the maximum value, it will be calculate from the underlying collection. + + + + + Gets or sets the base for the LogarithmicAxis3D. + + + 2 for binary logarithm, + 10 for common logarithm. + + + + + Class implementation for RangeAxisBase3D + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Calculates actual interval. + + The Range + The Available Size + Returns the actual interval. + + + + Method implementation for Generate Labels in ChartAxis + + + + + Called when Maximum property changed + + The Event Argument + + + + Called when Minimum property changed + + The Event Arguments + + + + Called when interval changed + + The Event Arguments + + + + Calculates actual range + + Returns the calculated actual range. + + + + Apply padding based on interval + + The Range + The Interval + Returns the padded range. + + + + Clones the . + + The Object + Returns the cloned axis. + + + + Updates the when anyone of it's property changed. + + The Dependency Object + The Event Arguments + + + + Updates the axis when the minimum value changed. + + The Dependency Object + The Event Arguments + + + + Called Maximum property changed + + The Dependency Object + The Event Arguments + + + + Updates the axis when the intervals changed. + + The Dependency Object + The Event Arguments + + + + Updates the axis when minimum or maximum value changed. + + + + + Gets or sets a value that determines the interval between labels. Its null-able. + If this property is not set, interval will be calculated automatically. + + + + + Gets or sets the minimum value for the axis range. This is null-able property. + + + If we didn't set the minimum value, it will be calculate from the underlying collection. + + + + + Gets or sets the maximum value for the axis range. This is null-able property. + + + If we didn't set the maximum value, it will be calculate from the underlying collection. + + + Gets or sets Maximum property + + + + + Gets or sets property used to shift the numeric range inside or outside. + + + Additional, to extend the range, + Round, to round-off the range, + None, do nothing, + Auto, auto range based on type of series. + + + + + Gets or sets a value indicating whether to start range from zero when range calculated automatically. + + + True will reset the range starting from zero. + + + + + Gets a NumericalPadding that describes the padding of a NumericalAxis3D. + + + The NumericalPadding that is used to set the padding of the NumericalAxis3D. + The default is . + + + + + Class implementation for TimeSpanAxis + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Return Object from the given double value. + + The Position + The label content. + + + + Calculates the actual interval. + + The Range + The Available Size + The calculated actual interval. + + + + Method implementation for Generate Labels in ChartAxis + + + + + Called when Maximum property changed + + The Event Arguments + + + + Method implementation for Minimum property changed + + The Event Arguments + + + + Called when Interval property changed + + The Event Arguments + + + + Calculates actual range. + + Returns the actual range. + + + + Apply padding based on interval. + + The Range + The Interval + Returns the padded range. + + + + Clones the . + + The Object + Returns the cloned . + + + + Updates the on minimum property changed. + + The Dependency Object + The Event Arguments. + + + + Updates the on maximum property changed. + + The Dependency Object + The Event Arguments + + + + Updates the on interval value changed. + + The Dependency Property + The Event Arguments + + + + Updates the when the minimum or maximum value changed. + + + + + Gets or sets a value that determines the interval between labels. Its null-able. + If this property is not set, interval will be calculated automatically. + + + + + Gets or sets the minimum value for the timespan axis range. This is null-able property. + + + If we didn't set the minimum value, it will be calculate from the underlying collection. + + + + + Gets or sets the maximum value for the axis range. This is null-able property. + + + If we didn't set the maximum value, it will be calculate from the underlying collection. + + + + + Class implementation for AreaSeries3D + + + + + Class implementation for + + + + + Class implementation for CartesianSeries + + + + + Class implementation for ChartSeries3D + + + + + Represents a base class for all the series types in chart. + + + Data points for ChartSeries would be populated from property. Specify the binding paths for X-Values and Y-Values. The number of Y-Values may vary depending on the type of series. For e.g LineSeries requires only one y-value, whereas CandleSeries requires four y-values to plot a point. + + + + + + Gets the value for width of a segment and value ranges from 0 to 1. This is attached property + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Identifies the ItemsSource dependency property. + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + segments variable declarations + + + + + Timer to handle the show duration of the tooltip. + + + + + Timer to handle the initial delay of showing the tooltip. + + + + + ChartTransformer variable declarations + + + + + YPaths variable declarations + + + + + Called when instance created for ChartSeries + + + + + Gets the Spacing for the SideBySide segments. + + ChartSeries object + returns a double value. + + + + Sets the Spacing for the SideBySide segments. + + ChartSeries object + The value to set for calcaulting the segment width + + + + Finds the nearest point in ChartSeries relative to the mouse point/touch position. + + The co-ordinate point representing the current mouse point /touch position. + x-value of the nearest point. + y-value of the nearest point + + + + + Method called when creating emptypoint segments for series. + + YValues + YValues list + XValues list + + + + An abstract method which will called over each time in its child class to update an segment. + + The index of the segment + The collection changed action which raises the notification + + + + Gets the available size of Chart. + + returns size + + + + Suspends the series from updating the series data till ResumeNotification is called. + This is specifically used when we need to append collection of datas. + + + + + Processes the data that is added to data source after SuspendNotification. + + + + + Invalidates the Series. + + + + + Returns the value of side by side position for a series. + + ChartSeries. + The DoubleRange side by side Info + + + + An abstract method which will be called over to create segments. + + + + + Returns the instance of this series. + + + + + Method implementation to set the updated data to the current object + + Current object + XComplexPaths + updated value + + + + Updates the selection when selected index collection changed. + + + + + Timer Tick Handler for initial delay in opening the Tooltip + + + + + + + Calculate and draw tooltip based on Position of Tooltip. + + + + + Calculate the position of the tooltip based on ChartSegment. + + Instance of ChartTooltip + + + + + Calculate the position and orientation of Tooltip nose. + + DesiredSize of ChartTooltip + Location of Tooltip whether based on Mouse or DataPoint + Orientation of Tooltip nose + Orientation of Tooltip nose + returns the tooltip aligned point. + + + + Set the polygon points. + + + + + + Remove tooltip from adorning canvas + + + + + Add and Update the Tooltip + + + + + + This method used to get the chart data at an index. + + + + + + + Called when selection changed in load time + + + + + Set SelectionChanged event args + + + + + Finds the nearest point in technical indicator relative to the mouse point/touch position. + + Represents the indicator to which nearest point has to be calculated. + The co-ordinate point representing the current mouse point /touch position. + x-value of the nearest point. + Series y-values of the nearest point + Indicator y-values of the nearest point + + + + Validate the datapoints for segment implementation. + + + + + Validate the datapoints for segment implementation. + + + + + Method is used to raise SelectionChanging event + + Used to indicate current selected index + Used to indicate previous selected index + + + + This method used to get the SfChart data at a mouse position. + + + + + + WPF-25124 Animation not working properly when resize the window. + + This method is used to reset the Adornment label animation. + + + + + Add and Update the series Tooltip + + + + + + Method used to set SelectionChangingEventArgs values + + + + + + + Removes the Segments + + + + + calculates the side-by-side position for all applicable series. + + + + + Method for getting the property values by the property name with its index + + Current object + XComplexPaths + Property value + + + + Method for get the property values by the property name + + Current object + XComplexPaths + Property value + + + + Get the Default Template for Tooltip + + + + + + Method to hook the PropertyChange event for individual data point + + + + + + + Method used to calculate the rect on mouse point to get hittest data point. + + + + + + + + + Method used to select the adornment in given data point + + + + + + Called when the chart mouse up. + + source + position + + + + Called when the chart mouse down. + + source + position + + + + Method used to set SegmentSelectionBrush to selectedindex chartsegment. + + new index + old index + + + + Return IChartTranform value based upon the given size. + + Size of the panel. + Used to specify whether to create the charttransform for not. + returns IChartTransformer + + + + method declaration for generatepoints in Chartseries + + + + + Return collection of double values + + + + + + Set ToolTip duration. + + + + + Returns the tooltip is available or not in this series. + + canvas + + + + + Set animation for tooltip. + + ChartTooltip + + + + Method implementation for generate points to given index. + + index + object + replace the data or not + + + + Invoked when XBindingPath or YBindingPath properties changed. + + The that contains the event data + + + + + + Method implementation for Set points to given index for data table. + + index + object + replace the data point or not + + + + Invoked when ItemsSource property changed. + + Old itemssource collection. + New itemssource collection. + + + + + + Method implementation for clear unused segments. + + + + + + Returns the instance of this series. + + object + + + + Called when pointer or mouse pressed. + + EventArgs + + + + Called when pointer or mouse down. + + EventArgs + + + + Called when mouse or pointer move to show the tooltip for series. + + Event Arguments + + + + Called when pointer leave from segment. + + MouseEventArgs + + + + When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks. + + + + + Set the Horizontal and Vertical Alignment for Tooltip. + + Current Position + Tooltip instance + + + + + Method implementation for UpdateArea. + + + + + Return the previous series. + + ChartSeriesBase + + + + + Method used to generate data points for ChartSeries. + + Y paths + YValues list + + + + Called when ItemsSource property changed. + + + + + + set fade animation for initial show delay + + + + + + Timer Tick Handler for closing the Tooltip + + + + + + + Sorts the Chart Points + + + + + + Sort the ActualXValues and ActualYValues + + XValues + YValues + + + + + Sort the ActualXValues and ActualYValues + + + + + + + + + Sort the ActualXValues and ActualYValues + + XValues + Y0Values + Y1Values + Y2Values + Y3Values + + + + + Method to unhook the collection change event for the given collection + + + + + + Method to unhook the PropertyChange event for individual data point + + + + + + + Event correspond to property value changed. It invokes when the properties changed. + + + + + Gets or sets a value that determines how to calculate value for empty point. + + + + + Gets or sets EmptyPointStyle for an empty point. It determines how to differentiate empty point from other data points. + + + + + Gets or sets DataTemplate to be used when EmptyPointStyle is set to Symbol/ SymbolAndInterior. + By default, an ellipse will be displayed as symbol. + + + + + + + + Gets or sets a value indicating whether to show empty points. + + + + + Gets or sets interior color for empty point. + + + The value. + + + + + Gets the number of points given as input. + + + + + Gets or sets a value indicating whether to sort the datas. + + + + + Gets or sets the Sorting Direction. + + + + + Gets or sets SortingAxis. + + + + + Gets or sets the custom template for Tooltip. + + + This accepts a . + + + + + + <syncfusion:ColumnSeries ShowTooltip="True" ItemsSource="{Binding Demands} syncfusion:ChartTooltip.VerticalAlignment="Top" XBindingPath="Demand" YBindingPath="Year2010"> + <syncfusion:ColumnSeries.TooltipTemplate> + <DataTemplate> + <Border Background = "DarkGreen" CornerRadius="5" BorderThickness="2" BorderBrush="Black" Width="50" Height="30"> + <TextBlock Text = "{Binding Item.Year2010}" Foreground="White" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/> + </Border> + </DataTemplate> + </syncfusion:ColumnSeries.TooltipTemplate> + </syncfusion:ColumnSeries> + + + + + + Gets or sets a value indicating whether to show or hide the tooltip for series. + + + + + Gets or sets a value that indicates whether to listen property change or not. This is a bindable property. + + + + + Gets the adornments collection. + + The adornments. + + + + Gets the adornments for the visible segments. + + The adornments. + + + + Gets or sets a value indicating whether is series visible. + + + + + Gets or sets ChartPalette for series. + + + + + Gets or sets a collection of data points used to generate Chart. + + The ItemsSource value. + + + + Gets or sets DataTemplate used to display label, when ChartTrackballBehavior is used. + + + + + + + <syncfusion:ColumnSeries ItemsSource="{Binding Demands} XBindingPath="Demand" YBindingPath="Year2010"> + <syncfusion:ColumnSeries.TrackBallLabelTemplate> + <DataTemplate> + <Border Background = "DarkGreen" CornerRadius="5" BorderThickness="2" BorderBrush="Black" Width="50" Height="30"> + <TextBlock Text = "{Binding Item.Year2010}" Foreground="White" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/> + </Border> + </DataTemplate> + </syncfusion:ColumnSeries.TrackBallLabelTemplate> + </syncfusion:ColumnSeries> + + + + + + Gets or sets the brush to paint the interior of the series. + + + The value. + + + + + Gets or sets the label that will be displayed in the associated legend item. + + + + + Gets or sets ChartLegendIcon to be displayed in associated legend item. + + + + + + + + Gets or sets DataTemplate for legend icon. + + + + + + + + Gets or sets a value that determines whether to create a legend item for this series. + By default, legend item will be visible for this series. + + + + + + + + Gets or sets the brush to select the series. + + + The value. + + + + + Gets or sets the color models for all series in the chart. + + + + + + + + Gets or sets the property path of x-data in ItemsSource to render the chart series. This is a bindable property. + + + + + Gets or sets the property binding path for segment color. + + + + + Gets or sets a value indicating whether to animate the chart series on loading and whenever ItemsSource change. + + + + + Gets or sets the duration of the animation. + + + + + + + <syncfusion:ColumnSeries ItemsSource="{Binding Demands} AnimationDuration="00:00:03" XBindingPath="Demand" YBindingPath="Year2010"> + </syncfusion:ColumnSeries> + + + + + + Gets or sets the x values in an unsorted order or in the order the data has been added to series. + + + + + Gets or sets the y values in an unsorted order or in the order the data has been added to series. + + + + + Gets or sets the sorted values, if the IsSortData is true. + + + + + Gets or sets a value indicating whether multipleYValues is needed,will be set internally. + + + + + Gets or sets internal DataTemplate used to display label, when ChartTrackballBehavior is used. + + + + + + + + Gets or sets the nearest segment index corresponding to the mouse point when interactive behaviors used. + Note: This get's updated only when FindNearestChartPoint() method is called for series. + + + + + Gets a value indicating whether this series is placed side by side. + + + It returns true, if the series is placed side by side [cluster mode]. + + + Returns the bool value. + + + + Gets the value which confirms whether this series in linearity. + + + Returns true if its linear, otherwise it returns false. + + + Returns the bool value. + + + + Gets the value which confirms whether it is area typed series. + + + Returns true if its linear, otherwise it returns false. + + + + + Gets whether this series is a bitmap series or not. + + + Returns the bool value. + + + + This indicates whether its a colorpath series or not. + + + + + Gets or sets a value indicating whether to treat x values as categories. + + + + + Gets or sets a series color values. + + + + + Gets or sets the sorted values, if the IsSortData is true. + + + + + Gets or sets the selected segments indexes. + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns list of . + + + + + Returns the corresponding series selected segment. + + + + + Gets actual series X-axis. + + + Gets actual XAxis for series with respect to chart type and value. + + + + + Gets actual series Y-axis. + + + + + Gets a value indicating whether this series is a stacked series. + + true if the series is one of stacked series; otherwise, false. The default value is true. + + + + References to method that reflects the value from the object + + Current object + Path name + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Method used to get selection brush for series selection. + + The Series + The series selection brush. + + + + Returns the value of side by side position for a series. + + The ChartSeries. + The DoubleRange side by side Info + + + + Updates the chart when the selected segment index collection changed. + + The Sender + The Event Argument + + + + Updates the when the segment is reset. + + The Index + + + + Method is used to raises the selection changing event. + + The New Index + The Old Index + Returns a property to indicate the argument cancel. + + + + Updates the series when mouse moved. + + The Element + The Position + + + + Updates the on mouse down selection. + + The Current Selected Index + + + + Updates the on series bound changed. + + The size. + + + + Calculates the segments. + + + + + Method used to set SegmentSelectionBrush to + and trigger chart selection event. + + The New Index + The Old Index + + + + Called when [series mouse down]. + + The source. + The position. + + + + Called when [series mouse up]. + + The source. + The position. + + + + Called when [series mouse move]. + + The source. + The position. + + + + Called when [series mouse leave]. + + The source. + The position. + + + + When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) + call . + In simplest terms, this means the method is called just before a UI element displays in an application. + For more information, see Remarks. + + + + + Method implementation for Create Adornments + + The series. + The x value. + The y value. + The x position. + The y position. + The start depth. + Returns the created adornment. + + + + Adds the adornment to the adornments collection. + + The X Value + The Y Value + The Index + The Depth + + + + Method implementation for Add ColumnAdornments in Chart. + + The Value + + + + Method implementation for Add Adornments at XY + + The X Value + The Y Value + The Point Index + The Start Depth + + + + Called when DataSource property changed + + The Old Value + The New Value + + + + Method implementation for Clear Unused Adornments + + The start index. + + + + Clones the series. + + The object. + A DependencyObject. + + + + Updates the segment selection color for the series. + + The Dependency Property + The Event Arguments + + + + Updates the series adornments when the changed. + + The Dependency Property + The Event Arguments + + + + Updates the series when selected index changed. + + The Dependency Object + The Event Arguments + + + + Gets or sets the interior (brush) for the selected segment(s). + + + The value. + + + + series.SegmentSelectionBrush = new SolidColorBrush(Colors.Red); + + + + + + Gets or sets data labels for the series. This allows us to customize the appearance of a data point + by displaying labels, shapes and connector lines. + + + The value. + + + + <syncfusion:ColumnSeries3D.AdornmentsInfo> + <syncfusion:ChartAdornmentInfo3D ShowMarker="True" Symbol="Ellipse"> + </syncfusion:ColumnSeries3D.AdornmentsInfo> + + + ChartAdornmentInfo3D chartAdornmentInfo3D = new ChartAdornmentInfo3D(); + chartAdornmentInfo3D.ShowMarker = true; + chartAdornmentInfo3D.Symbol = ChartSymbol.Ellipse; + ColumnSeries3D columnSeries3D = new ColumnSeries3D(); + columnSeries3D.AdornmentsInfo = chartAdornmentInfo3D; + + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + Gets or sets the property which defines the way of selection. + + + SelectionMode.MouseClick will select the segment(s) using mouse or pointer click. + SelectionMode.MouseMove will select the segment while hovering. + + + Note : With as Multiple, MouseMove will not support. + + + + + Gets or sets the previous selected index. + + + + + Gets or sets the for the series animation. + + + + + Gets or sets the chart area . + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns . + + + + + Gets the selected segment in this series, when we enable the single selection. + + + It returns ChartSegment. + + + + + Interface implementation for support axis for 3D chart + + + + + Interface implementation for ISupportAxes + + + + + Gets XRange property + + + + + Gets YRange property + + + + + Gets ActualXAxis property. + + It takes the ChartAxis value. + + + + Gets ActualYAxis property. + + It takes the ChartAxis value. + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Updates the range of the series. + + + + + Called when instance created for YAxis Changed + + The Old Axis + The New Axis + + + + Called when instance created for XAxis changed + + The Old Axis + The New Axis + + + + Called when VisibleRange property changed + + Event Arguments + + + + Clones the series. + + The object. + Returns the cloned series. + + + + Updates the series when property changed. + + The Dependency Object + The Event Arguments + + + + Updates the series when x axis changed. + + The Dependency Object + The Event Arguments + + + + Updates the series when the y axis changed. + + The Dependency Object + The Event Arguments + + + + Updates the series when visible range changed. + + The Sender + The Event Arguments + + + + Gets the x-axis range. + + + + + Gets the y-axis range. + + + + + Gets or sets a value indicating whether to change the orientation of the series. + + + True exchanges the horizontal axis to vertical and vice versa. + False is the default behavior. + + + + + Gets the actual x-axis instance. + + + + + Gets the actual y-axis instance. + + + + + Gets or sets the additional x-axis(horizontal) for the series. + + + + + Gets or sets the additional y-axis(vertical) for the series. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Method used to get the chart data at an given point + + The Axis + The Point + The point to value. + + + + Updates the series on label property changed. + + + + + Calculates the segment depth. + + The Depth + Returns the calculated segment depth. + + + + Validate the data points for segment implementation. + + + + + Re-validate the data points for segment implementation. + + Empty Point Index + + + + Method for Generate Points for XYDataSeries. + + + + + Called when DataSource property changed + + The Old Value + The New Value + + + + Raises the + E:BindingPathChanged + + event. + + The Event Arguments. + + + + Clones the series. + + The Object + Returns the cloned series. + + + + Updates the series on y binding path changed. + + The Dependency Object + The Event Arguments + + + + Gets or sets the binding path for y axis. + + + + + Gets or sets YValues + + + + + Initializes a new instance of the class. + + + + + Creates the segments of AreaSeries3D. + + + + + Creates the empty segments. + + The y values + The y value list + The x value list + + + + Updates the series when selected segment index collection changed. + + The Sender + The Event Arguments + + + + Checks the animation active state. + + Returns a property which indicates whether animation is active. + + + + Animates the . + + + + + This method used to gets the chart data point at a position. + + The Mouse Position + Returns the data point. + + + + Updates the series when mouse moved. + + The Source + The Position + + + + Method used to set SegmentSelectionBrush to selected index chart segment and trigger chart selection event + + The New Index + The Old Index + + + + Clones the series. + + The object. + Returns the cloned series + + + + Updates the tooltip for the series. + + The Source + The Position + + + + Gets or sets the of this series. + + + + + Gets or sets a value indicating whether the is animated. + + + + + The property confirms the linearity of this series. + + + Returns true if its linear, otherwise it returns false. + + + + + This property used to confirm whether it is area typed series. + + + Returns true if its linear, otherwise it returns false. + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns . + + + + + Gets the selected segment in this series, when we enable the single selection. + + + It returns ChartSegment. + + + + + displays its data points using a set of horizontal bars. + + + + + ColumnSeries displays its data points using a set of vertical bars. + + + + + Class implementation for + + + + + Initializes a new instance of the class. + + + + + Generates the data table points. + + The Y Paths + The Y Lists + + + + Generates the property points + + The Y Paths + The Y Lists + + + + Generates the complex property points + + The Y Paths + The Y Lists + The Reflected Property Value + + + + Gets the adornment z position on rotation. + + The Start Angle + The End Angle + Returns the z position to place the adornments. + + + + Gets the adornment z position on rotation. + + The Z Value + The Z Axis Side By Side Information + Returns the z position to place the adornments. + + + + Gets the adornment x position on rotation. + + The X Value + Side By Side Information + Returns the x position to place the adornments. + + + + Gets the z values. + + Returns the z values. + + + + Updates the series on data source changed. + + The Old Value + The New Value + + + + Method implementation for Set points to given index for data table + + The Index + The Object + The Replace Checker + + + + Method implementation for Set points to given index + + The Index + The Object + Is Replace Required + + + + Updates the series on binding path changed. + + The Event Arguments + + + + Updates the series on z binding path changed. + + The Object + The Event Arguments + + + + Gets the z-axis range. + + + + + Gets or sets the binding path for z axis. + + + + + Gets or sets the z complex paths. + + + + + Gets or sets the z axis side by side information. + + + + + Gets or sets the z axis value type. + + + + + Gets a value indicating whether to treat z values as categories. + + + + + Gets the actual z axis. + + + + + Gets or sets the sorted values, if the IsSortData is true. + + + + + Gets or sets the x values in an unsorted order or in the order the data has been added to series. + + + + + Defines members and methods necessary to customize segment in a . + + + + + + Method used to calculate the segment spacing. + + Segment spacing value. + Segment right value. + Segment left value. + Returns the calculated segment space. + + + + Gets or sets SegmentSpacing property + + + + + The DependencyProperty for property. + + + + + Creates the segments of ColumnSeries. + + + + + Calculates the segment spacing. + + The Spacing + The Right + The Left + Returns the calculated segment space. + + + + Updates the series when transpose changed. + + The Value + + + + Gets the animation is active. + + Returns the animation state whether it is active or not. + + + + Animates the series. + + + + + Calculates the segment spacing. + + The Spacing. + The Right Position. + The Left Position. + Returns the calculated segment space. + + + + Clones the series. + + The object. + Returns the cloned series. + + + + Updates the segments when segment spacing value changed. + + The Dependency Object + The Event Arguments + + + + Gets or sets the spacing between the segments across the series in cluster mode. + + + The value ranges from 0 to 1. + + + + + Gets a value indicating whether this series is placed side by side. + + + It returns true, if the series is placed side by side [cluster mode]. + + + + + Initializes a new instance of the class. + + + + + Updates the series when transpose changed. + + The Value + + + + Clones the series. + + The object. + Returns the cloned series. + + + + Class implementation for CircularSeriesBase3D + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Validate the data points for segment implementation. + + + + + Gets the circular series count. + + Gets the visible series count. + + + + Gets the pie series index. + + Returns series index. + + + + Validate the data points for segment implementation. + + The Empty Points + + + + Gets the actual center of the series. + + The Center Point + The Radius + Returns the actual center point. + + + + Degrees to radian converter. + + The degree. + Returns the radian. + + + + Method implementation for Generate points for Indicator + + + + + Called when DataSource property get changed + + The Old Value + The New Value + + + + Raises the + E:BindingPathChanged + + event. + + The instance containing the event data. + + + + Clones the series. + + The Object + Returns the cloned series. + + + + Updates the series when the circle coefficient changes. + + The Sender + The Dependency Object + + + + Updates the series when the y path changes. + + The Dependency Object + The Event Arguments + + + + Updates the series when it's properties changes. + + The Dependency Object + The Event Arguments + + + + Updates the series when the start or end angle changes. + + The Dependency Object + The Event Arguments + + + + Gets the minimum and maximum value. + + The First Point + The Second Point + The Degree + Returns the minimum and maximum value. + + + + Gets or sets the type of line to be use for connecting data labels and segments. + + + ConnectorMode.Line will draw straight line. + ConnectorMode.Bezier will draw bezier curve. + + + + + Gets or sets a value indicating whether to enable the smart label placement to avoid data label overlapping. + + + true to avoid overlapping; + + + + + Gets or sets the coefficient defines the ratio of the series size with respect to chart area. + + + This will be useful for reducing the white spaces around the series. + + + Gets or sets the double value ranges from 0 to 1. + + + + + Gets or sets the data labels position of the circular series. + + + CircularSeriesLabelPosition.Inside, adornment labels will be placed inside over the series. + CircularSeriesLabelPosition.Outside, adornment labels will be placed just outside over the series. + CircularSeriesLabelPosition.OutsideExtend, adornment labels will be placed outside over the series at a certain distance. + + + + + Gets or sets the binding path for y axis. + + + + + Gets or sets the radial distance for the exploded segment from center. + + + + + Gets or sets the index of data point (or segment) to be explode. + + + + + Gets or sets a value indicating whether to explode all the pie slices (segments). + + + True will explode all the segments. + + + + + Gets or sets the start angle for drawing the circular series. + + + The double value ranges from 0 to 360 degree. + + + + + Gets or sets the end angle for drawing the circular series. + + + The double value ranges from 0 to 360 degree. + + + + + Gets or sets the internal circle co-efficient. + + + + + Gets or sets the center of the circular series. + + + + + Gets or sets the YValues. + + + + + Class implementation for DoughnutSeries3D + + + + + Class implementation for PieSeries3D + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + An abstract method which will be called over to create segments. + + + + + Updates the series on bounds changed. + + The Size + + + + Updates the empty points. + + The X Values + Is Side By Side Series + + + + Gets the animation active state. + + Returns a value indicating whether the animation is active. + + + + Animates this instance. + + + + + Creates the value based upon the given size. + + The Size + The Create Indication + Returns the created chart transformer. + + + + Called when [series mouse move]. + + The source. + The position. + + + + Called when [series mouse up]. + + The source. + The position. + + + + Called when [series mouse down]. + + The source. + The position. + + + + Method implementation for Create Adornments + + The series. + The x value. + The y value. + The angle. + The radius. + The start depth. + Returns the created adornment + + + + Clones the series. + + The object. + Returns the cloned series. + + + + Creates the points. + + + + + Updates the series when data source changed. + + The Old Value + The New Value + + + + Adds the pie adornments. + + The X Value + The Y Value + The Start Angle + The End Angle + The Index + The Radius + The Start Depth + + + + Gets or sets a value indicating whether to enable the segment explode on mouse click. + + + true to enable the explode on mouse click. + + + + + Gets or sets the inner radius of the series. + + + + + Gets or sets the radius of the series. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Gets the doughnut hole size. + + The Object + Returns the doughnut hole size. + + + + Sets the doughnut hole size. + + The Object + The Value + + + + Clones the series. + + The object. + Returns the cloned series. + + + + Creates the point. + + + + + Updates the series when doughnut coefficient changed. + + The Dependency Object + The Event Arguments + + + + Updates the doughnut series when doughnut hole size changed. + + The Sender + The Event Arguments + + + + Gets or sets the inner circular radius of the DoughnutSeries3D. + + + The double value ranges from 0 to 1. + + + + + Gets or sets the internal doughnut co-efficient. + + + + + Class implementation for LineSeries3D + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Creates the segments of LineSeries3D. + + + + + Creates the empty segments. + + The y values + The y value list + The x value list + + + + Gets the animation state. + + Returns a value indicating whether the animation is active. + + + + Animates the series. + + + + + This method used to gets the chart data point at a position. + + The Mouse Position + Returns the data point. + + + + Updates the chart when the selected segment index collection changed. + + The Sender + The Event Argument + + + + Method used to set segment selection brush to selected index chart segment and trigger chart selection event + + The New Index + The Old Index + + + + Updates the mouse move interactions. + + The Source + The Position + + + + Clones the series. + + The object. + Returns the cloned series. + + + + Updates the series when stroke thickness changed. + + The Dependency Object + The Event Arguments + + + + Updates the tooltip for the series. + + The Hit Object + The Mouse Position + + + + Gets or sets the stroke thickness for the LineSeries3D. + + + + + Gets or sets the . + + + + + Gets or sets a value indicating whether the is animated. + + + + + The property confirms the linearity of this series. + + + Returns true if its linear, otherwise it returns false. + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns . + + + + + Gets the selected segment in this series, when we enable the single selection. + + + It returns ChartSegment. + + + + + Class implementation for the . + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Creates the segments of ScatterSeries3D. + + + + + Checks the animation active state. + + Returns a value indicating animation state. + + + + Animates the . + + + + + Clones the series. + + The object. + Returns the cloned series. + + + + Updates the series when size changed. + + The Dependency Object + The Event Arguments + + + + Gets or sets the property. + + + + + Gets or sets the width of the scatter points. + + + + + Gets or sets the height of the scatter points. + + + + + Class implementation for StackingBar100Series3D. + + + + + Class implementation for StackingColumn100Series3D. + + + + + StackingColumnSeries3D is typically preferred in cases of multiple series of type . + Each series is then stacked vertically one above the other. + If there exists only single series, it will resemble like a simple chart. + + + + + Class implementation for StackingSeriesBase3D + + + + + The DependencyProperty for property. + + + + + Finds the nearest point in ChartSeries relative to the mouse point/touch position. + + The co-ordinate point representing the current mouse point /touch position. + x-value of the nearest point. + y-value of the nearest point. + The Stacked Y Value. + + + + Returns the stacked value of the series. + + The ChartSeries + StackedYValues class instance. + + + + Return double value from the given index. + + The Index + Returns the stacked y values. + + + + Clones the series. + + The object. + Returns the cloned chart. + + + + Updates the series when grouping label changed. + + The Dependency Object + The Event Arguments + + + + Calculates stacking values. + + + + + Gets or sets the label to categorize the stacking series as a single unit. + + + We can group one or more series into a single group by specifying this property. + The series coming under same group will stack with other series in group. + + + + + Gets or sets a value indicating whether the stack value is calculated. + + + + + Gets or sets the starting y values collection. + + + + + Gets or sets the ending y values collection. + + + + + The DependencyProperty for property. + + + + + creates the segments of StackingColumnSeries3D. + + + + + Calculates the segment spacing. + + The Spacing. + The Right Position. + The Left Position. + Returns the calculated segment space. + + + + Checks the animation active state. + + Returns a property which indicates whether animation is active. + + + + Animates the series. + + + + + Calculates the segment spacing. + + The Spacing. + The Right Position. + The Left Position. + Returns the calculated segment space. + + + + Clones the series. + + The object. + Returns the cloned series. + + + + Updates the segments when segment spacing value changed. + + The Dependency Object + The Event Arguments + + + + Updates animation when story board completed. + + The Sender + The Event Arguments + + + + Gets or sets the spacing between the segments across the series in cluster mode. + + + The value ranges from 0 to 1. + + + + + Gets a value indicating whether this series is placed side by side. + + + It returns true, if the series is placed side by side [cluster mode]. + + + + + Gets a value indicating whether this series is placed side by side. + + + It returns true, if the series is placed side by side [cluster mode]. + + + + + Creates the segments of StackingColumn100Series3D. + + + + + Clones the series. + + The object. + Returns the cloned series. + + + + Initializes a new instance of the class. + + + + + Updates the series when transpose changed. + + The Value + + + + Clones the series. + + The object. + Returns the cloned series. + + + + Class implementation for StackingBarSeries3D. + + + + + Initializes a new instance of the class. + + + + + Updates the series when transpose changed. + + The Value + + + + Clones the series. + + The object. + Returns the cloned series. + + + + Specifies the point location by the plane. + + + + + Point is in the front of plane. + + + + + Point is at the back of plane. + + + + + Point is on the plane. + + + + + Specifies the polygon location by the plane. + + + + + Polygon is on the plane. + + + + + Polygon is from right of the plane. + + + + + Polygon is from left of the plane. + + + + + Location of polygon is unknown. + + + + + This class contains methods to compute the Binary Space Partitioning (BSP) tree. + + + + + Adds the specified poly. + + The poly. + Returns the last index. + + + + Removes the specified polygon. + + The polygon. + + + + Clear the polygons. + + + + + Calculate the available polygons. + + Returns the polygon count. + + + + Builds this instance. + + Returns the built . + + + + Builds the specified collection of polygons. + + The collection of polygons. + Returns the built . + + + + Gets the node count. + + The el. + Returns the node count. + + + + Cuts the out back polygon. + + The poly points. + The Vertical Index Classification. + The points. + + + + Cuts the out front polygon. + + The poly points. + The Vertical Index Classification. + The points. + + + + Get the next item. + + The Index + The Count + Returns the next index. + + + + Classify the polygon. + + The First Polygon. + The Second Polygon. + Returns the classified result. + + + + Classifies the point. + + The 3D Point + The 3D Polygon + Returns the classified point result. + + + + Split the polygon. + + The Polygon + The Part + The Back Polygon + The Front Polygon + + + + Gets the + PiePrototype.Polygon + + at the specified index. + + + The . + + The index. + Returns the polygon 3D. + + + + Class implementation for . + + + + + Initializes a new instance of the class. + + The Vector3D point. + The index. + The ClassifyPointResult. + + + + Gets or sets the vector. + + The vector. + + + + Gets or sets the index. + + The index. + + + + Gets or sets the classify result. + + The classify result. + + + + Gets or sets a value indicating whether [cutting back point]. + + true if [cutting back point]; otherwise, false. + + + + + Gets or sets a value indicating whether [cutting front point]. + + true if [cutting front point]; otherwise, false. + + + + + Gets or sets the index of the cutting back pair. + + The index of the cutting back pair. + + + + + Gets or sets the index of the cutting front pair. + + The index of the cutting front pair. + + + + + Gets or sets a value indicating whether [already cut back]. + + true if [already cut back]; otherwise, false. + + + + + Gets or sets a value indicating whether [already cut front]. + + true if [already cut front]; otherwise, false. + + + + + Class Implementation for + + + + + Gets or sets the back node. + + The back node. + + + + Gets or sets the front node. + + The front node. + + + + Gets or sets the plane. + + The plane. + + + + Represents Graphics3D. + + + + + Gets the visual count. + + Returns the count. + + + + Initializes a new instance of the class. + + + Adds the polygon to the drawing. + + The . + Returns the last index. + + + + Removes the specified polygon. + + The polygon. + + + + clear the polygon from visual tree. + + + + + Gets the visual. + + Returns the visual. + + + + Computes the BSP tree. + + + + + Computes the BSP tree. + + The Perspective Angle + The Chart Depth + The Rotation Angle + The Tilt Angle + The Size + + + + Draws the paths to the panel/>. + + The Panel + + + + Draws the polygons to the Graphics. + + The Panel + The Rotation Angle + The Tilt Angle + The Size + The Perspective Angle + The Depth + + + + Draws the BSP node in 3D. + + The Tree. + The Eye Position. + The Panel. + + + + Gets or sets the transform. + + The transform. + + + + Represents the matrix 4x4. + + + + + Initializes a new instance of the struct. + + The M11 element of matrix. + The M12 element of matrix. + The M13 element of matrix. + The M14 element of matrix. + The M21 element of matrix. + The M22 element of matrix. + The M23 element of matrix. + The M24 element of matrix. + The M31 element of matrix. + The M32 element of matrix. + The M33 element of matrix. + The M34 element of matrix. + The M41 element of matrix. + The M42 element of matrix. + The M43 element of matrix. + The M44 element of matrix. + + + + Initializes a new instance of the struct. + + The size. + + + + Add the matrixes. + + The First Matrix + The Second Matrix + Returns the result of the operator. + + + + Method used to returns x, y, z values. + + The First Matrix + The Three Dimensional Vector + Returns the result of the operator. + + + + Method used to returns x, y, z values. + + The First Matrix + The Three Dimensional Vector + Returns the result of the operator. + + + + Gets the multiplied matrix values. + + The Double Value + The Matrix + Returns the result of the operator. + + + + Gets the multiplied matrix values. + + The First Matrix + The Second Matrix + Returns the result of the operator. + + + + Gets the equality check value. + + The First Matrix + The Second Matrix + Returns the result of the operator. + + + + Gets the matrix equality value. + + The First Matrix + The Second Matrix + Returns the result of the operator. + + + + Gets the determinant. + + The matrix. + Returns the determinant of the matrix. + + + + Gets the identity matrix. + + Returns the identity matrix. + + + + Transforms the specified vector. + + The X coordinate. + The Y coordinate. + The Z coordinate. + Returns the transformed matrix. + + + + Turns by the specified angle. + + The angle. + Returns the resultant turn matrix. + + + + Tilts by the specified angle. + + The angle. + Returns the resultant turn matrix. + + + + Transposes the specified matrix. + + The matrix. + Returns the transposed matrix. + + + + Shears the specified values. + + The x y shear. + The x z shear. + The y x shear. + The y z shear. + The z x shear. + The z y shear. + Returns the sheared values. + + + + Indicates whether this instance and a specified object are equal. + + Another object to compare to. + + true if object 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. + + + + + Intervals the matrix. + + The Matrix. + Returns the interval. + + + + Gets the minor. + + The matrix. + The index of column. + The index of row. + Returns the minor of the matrix. + + + + Tilts by the specified angle in arbitrary axis direction. + + The Angle + The Vector3D + Returns the resultant turn matrix. + + + + Calculates determinant row given matrix.. + + The matrix to calculate determinant. + Determinant of the given matrix. + + + + Gets the minor. + + The matrix. + The index of column. + The index of row. + Returns the matrix. + + + + Gets the identity matrix. + + The identity matrix. + + + + Gets a value indicating whether this matrix is affine. + + true if this matrix is affine; otherwise, false. + + + + Gets or sets the with the specified column and row. + + The I Value + The J Value + Returns the value at the specified location. + + + + Represents the coordinates of a 3D point. + + + + + The empty . All coordinates is zero. + + + + + Initializes a new instance of the struct. + + The v x Point + The v y Point + The v z Point + + + + Initializes a new instance of the struct. + + The Points + The v z value + + + + Implements the operator -. + + The v1. + The v2. + The result of the operator. + + + + Implements the operator +. + + The v1. + The v2. + The result of the operator. + + + + Implements the cross product operation. + + The v1. + The v2. + The result of the operator. + + + + Implements the dot product operation. + + The v1. + The v2. + The result of the operator. + + + + Implements the operator *. + + The v1. + The val. + The result of the operator. + + + + Gets the length. + + Returns the square root of the current matrix. + + + + Normalizes this vector. + + + + + Overrides method. + + The text. + + + + Indicates whether this instance and a specified object are equal. + + Another object to compare to. + + true if object 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. + + + + + Gets the X coordinate. + + The X. + + + + Gets the Y coordinate. + + The Y. + + + + Gets the Z coordinate. + + The Z. + + + + Gets a value indicating whether this instance is valid. + + True if this instance is valid; otherwise, false. + + + + Represents a polygon, which is a connected series of lines that form a closed shape. + + + + + + An abstract base class for 3D type of chart segments. + + + + + An abstract base class for all type of chart segments. + + + You can create a custom chart segment by inheriting from . You can also customize the appearance of a chart segment, + by specifying values for , and properties. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Size of the panel + + returns UIElement + + + + + Gets the UIElement used for rendering this segment. + + returns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Reresents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Size of the panel. + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Used to specify the segment x values. + Used to specify the segment y values. + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the 3DChart but it can be overridden by + any derived class. + + + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + + + Sets the values for Technical indicator segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Used to specify the segment x-values + Used to specify the segment y-values + Used to specify the segment stroke brush + Used to specify the segment range + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Used to specify the segment values. + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + + + + Sets the values for this segment. This method is not intended to be called explicitly outside the Chart but it can be overridden by any derived class. + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + /// + /// + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Used to specify the segment x1 values + Used to specify the segment y1 values + Used to specify the segment x2 values + Used to specify the segment y2 values + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + + + + + Sets the values for this segment. This method is not intended to be called explicitly outside the Chart but it can be overridden by any derived class. + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + + + + + + + Sets the values for this segment. This method is not intended to be called explicitly outside the Chart but it can be overridden by any derived class. + + + + + Method used to update the segment's interior color based on WaterfallSegmentType. + + + + + + Method used to check the current segment is selected index segment or not + + + + + + Method used to check corresponding segment is selectable or not. + + + + + + + This method is used to change High and Low values, + When the High value lesser than Open value or Low value greater than Close value. + + + + + Called when Property changed + + + + + + Method Implementation for set binding to ChartSegments properties. + + element to be bind. + + + + Occurs when a property value changes. + + + + + Gets or sets the x-value range for the segment. + + + + + Gets or sets the y-value range for the segment. + + + + + Gets or sets the data object that this segment belongs to. + + + + + Gets or sets the brush to paint the interior of the segment. + + + By default,the interior value for a chart segment will be calculated and set automatically based on the set. + + + The value. + + + + + Gets or sets the stroke thickness value of the segment. + + + By default, this property inherits its value from series StrokeThickness property. + + + + + Gets or sets the stroke dash array for the segment shape. + + + . + + + + + Gets or sets the stroke value of the segment. + + + By default, this property inherits its value from series Stroke property. + + + The value. + + + + + Gets the value of underlying series of a chart segment. + + + + + Gets or sets the point collection. + + + + + Gets or sets IsEmptySegmentinterior property + + + + + Gets or sets the z-value range for the segment. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class with default settings. + + + + + Initializes a new instance of the class. + + The X Values + The Y Values + The Start Depth + The End Depth + The AreaSeries 3D + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + The X Values + The Y Values + The Start Depth + The End Depth + + + + Used for creating UIElement for rendering this segment. + This method is not intended to be called explicitly outside the Chart + but it can be overridden by any derived class. + + The Size + Returns the created visual. + + + + Gets the UIElement used for rendering this segment. + + Returns the rendered visual + + + + Updates the segments based on its data point value. + This method is not intended to be called explicitly outside the Chart + but it can be overridden by any derived class. + + The Chart Points Positioning Transformer + + + + Method Implementation for set Binding to ChartSegments properties. + + The Size + + + + Updates the segment when Y value changed. + + The Dependency Object + The Event Arguments. + + + + Renders the segment at the given schedules. + + + + + Updates the segment when Y value changed. + + + + + Updates the segment schedule on view changed. + + + + + Updates the segment on view changed. + + + + + Gets or sets the x value of this segment (data point). + + + + + Gets or sets the y value of this segment (data point). + + + + + Gets or sets the y value. + + + + + Represents chart column segment. + + Class instance is created automatically by WinRT Chart building system. + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + The X1 Value + The Y1 Value + The X2 Value + The Y2 Value + The Start Depth + The End Depth + The Series /// + + + + Initializes a new instance of the class. + + The X1 Value + The Y1 Value + The X2 Value + The Y2 Value + The Start Depth + The End Depth + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + The Column Segment Values + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Size of the panel + + returns UI Element + + + + + Gets the UIElement used for rendering this segment. + + returns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + The Size + + + + Method implementation for Set Bindings to properties in ColumnSegment. + + The Element To Be Bind + + + + Updates the segment on top or bottom Value Changed. + + The Dependency Object + The Event Arguments. + + + + Updates the segment on top or bottom Value Changed. + + + + + Gets the XData property + + + + + Gets the YData property + + + + + Gets the ZData property + + + + + Gets or sets Width property + + + + + Gets or sets Height property + + + + + Gets or sets property + + + + + Gets or sets property + + + + + Gets or sets the top. + + + The top. + + + + + Gets or sets the bottom. + + + The bottom. + + + + + Gets or sets the bottom. + + + + + Gets or sets the polygon 3D Plans. + + + + + Gets or sets the internal top. + + + + + Gets or sets the left of the segment. + + + + + Gets or sets the right of the segment. + + + + + Class implementation for DoughnutSegment3D + + + + + Class implementation for PieSegment3D + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The series. + The center. + The start. + The end. + The height. + The r. + The i. + The y. + The inside radius. + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Size of the panel + + returns UI Element + + + + + Gets the UIElement used for rendering this segment. + + returns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + The Size + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + The PieSegment Values + + + + Creates the sector. + + Returns the sector. + + + + Updates the segment when Y value changed. + + The Dependency Object + The Event Arguments. + + + + Renders the segment at the given schedules. + + + + + Updates the segment when value changed. + + + + + Updates the segment schedule on view changed. + + + + + Updates the segment on view changed. + + + + + Gets or sets the y value of this segment (data point). + + + + + Gets or sets the x value of this segment (data point). + + + + + Gets or sets the index. + + + + + Gets or sets the points. + + + + + Gets or sets the center. + + + + + Gets or sets the start value. + + + + + Gets or sets the end value. + + + + + Gets or sets the actual start value. + + + The actual start value. + + + + + Gets or sets the actual end value. + + + The actual end value. + + + + + Initializes a new instance of the class. + + The series. + The center. + The start. + The end. + The height. + The r. + The i. + The y. + The inside radius. + + + + Class implementation for LineSegment3D. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class with default settings. + + + + + Initializes a new instance of the class with default settings. + + The X Values + The Y Values + The Start Depth + The End Depth + The LineSeries3D + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + The Size + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + The X Values + The Y Values + The Start Depth + The End Depth + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Size of the panel + + returns UI Element + + + + + Gets the UIElement used for rendering this segment. + + returns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Gets the line points. + + The X1 Value + The Y1 Value + The X2 Value + The Y2 Value + The Left Thickness + The Right Thickness + The Points + + + + Updates the segment on y value changed. + + The Dependency Object + The Event Arguments + + + + Renders the segment at the given schedules. + + + + + Updates the segment on y value changed. + + + + + Updates the segment schedule on view changed. + + + + + Updates the segment on view changed. + + + + + Renders the front polygon. + + The Points Array + The Start Depth + The End Depth + The Color + + + + Updates the second points. + + The Start X Value + The Start Y Value + The End X Value + The End Y Value + The Left Thickness + The Right Thickness + + + + Finds the intersecting point. + + The X11 Point + The Y11 Point + The X12 Point + The Y12 Point + The X21 Point + The Y21 Point + The X22 Point + The Y22 Point + Returns the intersection point. + + + + Gets or sets the x value of this segment (data point). + + + + + Gets or sets the y data of this segment (data point). + + + + + Gets or sets the y value for the segment. + + + + + Represents chart polygon to create any shapes in 3D. + + + + + The epsilon. + + + + + Points of polygon. + + + + + The constant of plane. + + + + + The normal of plane. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The v1. + The v2. + The v3. + + + + Initializes a new instance of the class. + + The points. + + + + Initializes a new instance of the class. + + The points. + The Index. + + + + Initializes a new instance of the class. + + The normal. + The d. + + + + Initializes a new instance of the class. + + The Points + The Tag + The Index + The Stroke + The StrokeThickness + The Fill Color + The Name + + + + Initializes a new instance of the class. + + The Points. + The Tag + The Index + The Stroke + The Stroke Thickness + The Fill + + + + Initializes a new instance of the class. + + The points. + The plane. + + + + Tests this instance to the existing. + + Indicates whether Normal of Plane is valid or Not. + + + + Gets the point on the plane. + + The x. + The y. + Returns Vector3D instance. + + + + Gets the point of intersect ray with plane. + + The position. + The ray. + Returns Vector3D instance. + + + + Transforms by the specified . + + The 3D Matrix + + + + Creates the UI element. + + The Position + The Element + The X Length + The Y Length + Is Front Position + The Left Shift Type + The Top Shift Type + Returns the created . + + + + Creates the with the specified values. + + The Points + The Path Element + The Front + Returns the Created . + + + + Creates the with the specified values. + + The First Vector + The Second Vector + The Tag + The Index + The Graphics 3D + The Stroke + The Fill Color + The Stroke Thickness + The Inverse + The Name + Returns the created . + + + + Creates the with the specified values. + + The First Vector + The Second Vector + The Tag + The Index + The Graphics 3D + The Stroke + The Fill Color + The Stroke Thickness + The Inverse + Returns the created . + + + + Updates the box. + + The plan. + The first vector. + The second vector. + The stroke. + The visibility. + + + + Creates the line. + + The line. + The x1. + The y1. + The x2. + The y2. + The z1. + The z2. + The front indication. + Returns the created. + + + + Draws to the specified . + + The Panel + + + + Redraws the segments. + + + + + Updates the polygon. + + The Updated Points + The Interior + The Visibility + + + + Calculates the normal. + + + + + Gets the normal. + + The transform. + Returns Vector3D instance. + + + + Calculates the normal. + + The First Vector. + The Second Vector. + The Third Vector. + + + + Applies the z light. + + The Color + Returns the Z light. + + + + Applies the X light. + + The Color + Returns the X light. + + + + + Gets or sets the element. + + + The element. + + + + + Gets the normal. + + The normal. + + + + Gets the A component. + + The A component. + + + + Gets the B component. + + The B component. + + + + Gets the C component. + + The C component. + + + + Gets the D component. + + The D component. + + + + Gets the points of polygon. + + The points. + + + + Gets or sets the index. + + + + + Gets or sets the tag. + + + + + Gets or sets the stroke. + + + + + Gets or sets the name. + + + + + Gets or sets the fill color. + + + + + Gets or sets the graphics 3D. + + + + + Used to plot any UIElement in 3D view. + + + + + Initializes a new instance of the class. + + The element. + The points. + + + + Draws to the specified . + + The Panel + + + + Updates the shift. + + The X Point + The Y Point + Updates The With + Updates The Height + + + + Gets or sets the left shift indication. + + + + + Gets or sets the top shift indication. + + + + + Used to draw line in 3D view. + + + + + Initializes a new instance of the class. + + The Path Element. + The Vectors. + + + + Draws to the specified . + + The Panel + + + + Used to draw line in 3D view. + + + + + Initializes a new instance of the class. + + The element. + The points. + + + + Draws to the specified . + + The Panel + + + + Class implementation for ScatterSegment3D. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + The X1 Value + The Y1 Value + The Start Depth + The End Depth + The Scatter Series + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + The Column Segment Values + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Size of the panel + + returns UIElement + + + + + Gets the UIElement used for rendering this segment. + + returns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + The Size + + + + Method Implementation for set Binding to ChartSegments properties. + + The Shape Element + + + + Updates the segment when , , , values changed. + + The Dependency Object + The Event Arguments + + + + Updates the segment when , , , values changed. + + + + + Gets or sets scatter segment’s width. + + + + + Gets or sets scatter segment’s height. + + + + + Gets XData property + + + + + Gets YData property + + + + + Gets ZData property + + + + + Gets or sets the plans + + + + + Gets or sets the x value. + + + + + Gets or sets the Y value. + + + + + Represents chart stacking column segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + Initializes a new instance of the class. + + The x1. + The y1. + The x2. + The y2. + The start depth. + The end depth. + The series. + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Class implementation for PolygonRecycler. + + + + + Method used to remove the polygon in Queue. + + The Points + The Tag + The Index + The stroke + The stroke Thickness + The Fill + Returns the polygon. + + + + Reset the pointer. + + + + + Provides a lightweight control for displaying overlay element in . + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Returns the clone annotation + + Returns the cloned annotation. + + + + Gets the rendered annotation. + + A UI Element + + + + Updates the annotation. + + + + + Updates the annotation on text alignment changed. + + The dependency object. + The dependency property changed event arguments. + + + + Converts the data to the required format. + + The data passed for conversion. + The relevant axis for the conversion. + Returns the converted data. + + + + Converts to required value from the passing data. + + The data to be converted. + The relevant axis for the conversion. + Returns the converted data. + + + + Updates the annotation on visibility property changed. + + + + + Updates the chart when annotation property changed. + + The dependency property changed event arguments. + + + + Creates the annotation. + + Returns the annotation + + + + Sets the axis from the name. + + + + + Invoked when an unhandled Selected event reaches an element in its route that is derived from this class. Implement + this method to add class handling for this event. + + The that contains the event data. + + + + Invoked when an unhandled UnSelected event reaches an element in its route that is derived from this class. Implement + this method to add class handling for this event. + + The that contains the event data. + + + + Checks for the update requirement. + + The x value. + The y value. + Returns the value indicating whether the range update required. + + + + Gets the element position. + + The desired size to get alignment position. + The original position. + Returns the element position. + + + + Gets the element position. + + The annotation . + The original position. + Returns the element position. + + + + Checks whether the given two intersects. + + The first + The second + Returns a value indicating whether the two are intersecting. + + + + This method is used to modify the value for clipping out of axis + + The value to be checked in clipping range. + The axis to get the visible range. + Returns the clipped values. + + + + Sets the required x and y values. + + + + + Sets the annotation bindings to the required elements. + + + + + Rotates the element to the specified angle. + + The angle specified for rotation. + The . + Returns the transformed element. + + + + Gets the rotated points. + + The specified angle. + The . + The original point. + Returns the matrix transformed. + + + + Rotates the element to the specified angle. + + The angle specified for rotation. + The . + The size. + Returns the transformed element. + + + + Calculates the ensure point. + + The first point + The second point + Returns the ensure point. + + + + Clones the annotation. + + The annotation cloned is updated. + Returns the cloned annotation. + + + + Updates the annotation when axis name changed. + + The sender object. + The dependency property changed event arguments. + + + + Updates the chart and annotation on property changed. + + The sender object. + The dependency property changed event arguments. + + + + Updates the annotation on visibility changed. + + The dependency object. + The dependency property changed event arguments. + + + + Updates the editing when property changed. + + The dependency object. + The dependency property changed event arguments. + + + + Updates the annotation when property changed. + + The dependency object. + The dependency property changed event arguments. + + + + Updates the annotation positioning when property changed. + + The dependency object. + The dependency property changed event arguments. + + + + Element Transformation takes place. + + The + The matrix passed for the transform. + Returns the transformed element. + + + + Updates the editing when property changed. + + The annotation to be edited. + + + + Updates the text element when mouse left button is down. + + The sender object + The mouse button event arguments. + + + + Sets the text element binding. + + The text element to be bind. + + + + Replace the to while editing text + + The text element. + + + + Occurs when the right mouse button is pressed while the mouse pointer is over this element. + + + + + Occurs when the right mouse button is released while the mouse pointer is over this element. + + + + + Occurs when the mouse button is released while the mouse pointer is over this element. + + + + + Occurs when the mouse button is pressed while the mouse pointer is over this element. + + + + + Occurs when mouse pointer is over this element. + + + + + Occurs when the left mouse button is pressed while the mouse pointer is over this element. + + + + + Occurs when the left mouse button is pressed while the mouse pointer is over this element. + + + + + Occurs when the mouse pointer leaves the bounds of this element. + + + + + Occurs when becomes selected. + + + + + Occurs when becomes unselected. + + + + + Gets or sets the description text for Annotation. + + + + + Gets or sets a value indicating whether the text in TextAnnotation can be edited or not. + + + true enable the editing option in TextAnnotation. + + + + + Gets or sets the custom template for . + + + This accepts a DataTemplate. + + + + + <syncfusion:SfChart.Annotations> + <syncfusion:Annotation ContentTemplate="{StaticResource contentTemplate}"> + </syncfusion:SfChart.Annotations> + + + annotation.ContentTemplate = dataTemplate; + + + + + + Gets or sets a value indicating whether annotation should clip while crossing with boundary. + + + + + Gets or sets a value indicating whether ToolTip can be displayed in Annotation. + + + The true enables the ToolTip for the annotation. + + + + + Gets or sets the content to be displayed in annotation tooltip. + + + This accepts all arbitrary .net objects. + + + + + Gets or sets the elapse time for the ToolTip. + + + It accepts the double value. + + + + + Gets or sets the custom template for the ToolTip. + + + This accepts the DataTemplate. + + + + + <syncfusion:SfChart.Annotations> + <syncfusion:Annotation ShowToolTip="true" ToolTipTemplate="{StaticResource toolTipTemplate}"> + </syncfusion:SfChart.Annotations> + + + annotation.ShowToolTip = true; + annotation.ToolTipTemplate = dataTemplate; + + + + + + Gets or sets the position of the ToolTip. + + + ToolTipLabelPlacement.Left will place the ToolTip left. + ToolTipLabelPlacement.Right will place the ToolTip right. + ToolTipLabelPlacement.Top will place the ToolTip top. + ToolTipLabelPlacement.Bottom will place the ToolTip bottom. + + + + + Gets or sets the property which identifies whether the annotation positioned w.r.t pixel or axis coordinate. + + + CoordinateUnit.Pixel - position the annotation based on screen coordinates. + CoordinateUnit.Axis - position the annotation based on axis values. + + + + + Gets or sets the axis(horizontal) in which this annotation associated. + + + This property works only with as CoordinateUnit.Axis. + + + + + Gets or sets the axis(vertical) in which this annotation associated. + + + This property works only with as CoordinateUnit.Axis. + + + + + Gets or sets the annotation X1 position. + + + + + Gets or sets the annotation Y1 position. + + + + + Gets or sets the font size of the annotation description. + + + It accepts the double value. + + + + + Gets or sets the font family for the annotation description. + + + This accepts all the . + + + + + Gets or sets the font stretch for the annotation description. + + + This property of type . + + + + + Gets or sets the font style for the annotation description. + + + This property of type . + + + + + Gets or sets the font weight for the annotation description. + + + This property of type property. + + + + + Gets or sets the foreground for the annotation description. + + + The value. + + + + + Gets or sets the chart for the annotation. + + + + + Gets or sets the horizontal alignment internally. + + + + + Gets or sets the vertical alignment internally. + + + + + Gets or sets the annotation visibility internally. + + + + + Gets or sets the rotated of the annotation. + + + + + Gets or sets a value indicating whether the annotation is selected. + + + + + Gets or sets a value indicating whether the annotation is resizing. + + + + + Gets or sets a value indicating whether the visibility is changed for the annotation. + + + + + Gets or sets the of the annotation. + + + + + Gets or sets the of the annotation. + + + + + Gets or sets the x 1 value. + + + + + Gets or sets the y 1 value. + + + + + Gets or sets a value indicating whether the UI is cleared. + + + + + Gets or sets the annotation grid. + + + + + Gets or sets the text element canvas. + + + + + Gets or sets the text element. + + + + + Gets or sets the rotated of the annotations. + + + + + Class implementation for Annotation DragDelta/ResizeDelta event arguments + + + + + Gets or sets the new . + + + + + Gets or sets the old + + + + + Gets or sets a value indicating whether to cancel the event. + + + + + Class implementation for Annotation DragCompleted/ResizeCompleted event arguments + + + + + Gets or sets the new + + + + + Class implementation for Annotation positioning points + + + + + Gets or sets the x1 position. + + + + + Gets or sets the x2 position. + + + + + Gets or sets the y1 position. + + + + + Gets or sets the y2 position. + + + + + Represents the collection of annotation. + + + + + + Represents a dependency object for calculation. + + + + + + Initializes a new instance of the class. + + + + + Method used to set annotation position + + The Position + The x 1 value. + The x 2 value. + The y 1 value. + The y 2 value. + + + + Method used to call DragStarted event handler + + + + + Method used to call DragDelta event handler + + + + + Method used to call DragCompleted event handler + + + + + Method used to call Selected/UnSelected event handler + + + + + Enables the tool tip in the visual. + + The current position. + The source object. + + + + Generate the position of the tooltip according the tooltip placement. + + The current position. + The required annotation. + Returns the tooltip position. + + + + Gets or sets the Selected Annotation + + + + + Represents the class. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Constructor + + + + + Updates the annotation. + + + + + Updates the axis annotation. + + The first point of annotation. + The second point of annotation. + + + + Updates the pixel annotation. + + The first point of annotation. + The second point of annotation. + + + + Checks and updates the resizer values. + + + + + Clears the annotation elements values. + + + + + Occurs when annotation drag is started. + + + + + Occurs when annotation dragging. + + + + + Occurs when annotation drag is completed. + + + + + Gets or sets the horizontal text alignment. + + + The value. + + + + + Gets or sets the dragging direction for the annotation. + + + AxisMode.Horizontal + AxisMode.Vertical + AxisMode.All + + + + + Gets or sets a value indicating whether dragging is enabled for the annotation. + + + If true, we can drag the annotation. + + + + + Gets or sets a value indicating whether resizing is enabled for the annotation. + + + If true, we can resize the annotation. + + + + + Gets or sets the vertical alignment of the text description in ShapeAnnotation. + + + The property. + + + + + Gets or sets the fill color of the ShapeAnnotation. + + + The value. + + + + + Gets or sets the Y2 value for the ShapeAnnotation. + + + + + Gets or sets the X2 value for the ShapeAnnotation. + + + + + Gets or sets the stroke thickness. + + + + + Gets or sets the stroke for the annotation. + + + The value. + + + + + Gets or sets the stroke dash array for the annotation stroke. + + + . + + + + + Gets or sets the stroke dash cap for the stroke. + + + . + + + + + Gets or sets the stroke dash offset for the annotation. + + + The double value. + + + + + Gets or sets the end line cap for the stroke. + + + . + + + + + Gets or sets the stroke line join for the stroke of the shape. + + + + + + + + Gets or sets a limit on the ratio of the miter length to half the of the shape. + + + + + Gets or sets the start line cap for the stroke. + + + . + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Gets or sets the rotation angle for Annotation. + + + + + Gets or sets the resizing direction for the annotation. + + + AxisMode.Horizontal + AxisMode.Vertical + AxisMode.All + + + + + Gets the rendered control. + + Returns the control. + + + + Creates the control. + + Returns the created control. + + + + Maps the value to pixels. + + + + + Binds the property between the and it's relevant annotation. + + + + + Updates the annotation + + + + + Provides a light weight UIElement which is overlay on chart. + + + + + + Updates the annotation. + + + + + Creates the for the annotation. + + Returns the created annotation element. + + + + Clones the annotation. + + The annotation to be cloned. + Returns the cloned annotation. + + + + Updates the annotation on size changed. + + The dependency object ellipse annotation. + The dependency property changed event arguments of the annotation. + + + + Updates the annotation. + + The ellipse annotation which has to be updated. + The ellipse annotation size changed event arguments. + + + + Checks whether to render the annotation with respect to size or co - ordinate units. + + Returns a value indicating whether to render the annotation with respect to size or co - ordinate units. + + + + Gets or sets the width of the annotation. + + + + + Gets or sets the height of the annotation. + + + + + Provides a light weight UIElement that displays a horizontal line on chart. + + + + + + Represents the class. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Updates the annotation. + + + + + Updates the drag completed interactions. + + The sender object. + The drag completed event arguments. + + + + Clones the annotation. + + The annotation. + Returns the cloned annotation. + + + + Draws the line. + + The first point. + The second point. + The shape to be used. + + + + Sets the text element position. + + The first point. + The second point. + The desired size. + The position point. + The text element. + + + + Gets the text position. + + The desired size. + The original position. + The text size. + Returns the text position after the alignment. + + + + Sets the binding between the annotation and . + + + + + Add the line into Canvas + + + + + Remove the line from Canvas + + + + + Gets or sets the grab extent for the dragging line annotation. + + + + + Gets or sets a value indicating whether to show the line or not. + + + if true, Line will be visible. + + + + + Gets or sets the line cap for the LineAnnotation. + + + + + + + + Gets or sets the horizontal change. + + + + + Gets or sets the vertical change. + + + + + The DependencyProperty for property. + + + + + The Dependencyproperty for property. + + + + + The DependencyProperty for property. + + + + + The Dependencyproperty for property. + + + + + Constructor + + + + + Occurs when annotation drag is started. + + + + + Occurs while dragging the annotation. + + + + + Occurs when annotation drag is completed. + + + + + Occurs when Syncfusion.UI.Xaml.Charts.Annotation becomes selected. + + + + + Occurs when Syncfusion.UI.Xaml.Charts.Annotation becomes unselected. + + + + + Gets or sets the custom template for the axis label. + + + + + + + + Gets or sets a value indicating whether to enable or disable the annotation label displaying in axis. + + + + + Gets or sets annotation axis label at start, end and center alignment. + + + + + + + + Gets or sets the position for the annotation axis label, either inside or outside of the plot area. + + + + + + + + Updates the annotation + + + + + Upates the hit rect. + + + + + Provides a light weight UIElement that displays image on chart. + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Constructor + + + + + Updates the annotation + + + + + Gets or sets the rotation angle for the Annotation. + + + + + Gets or sets the source for the image to be added as annotation. + + + This accepts as value. + + + + + Gets or sets the Y2 value. + + + + + Gets or sets the X2 value. + + + + + Gets or sets the horizontal text alignment. + + + . + + + + + Gets or sets the vertical text alignment. + + + . + + + + + The DependencyProperty for property. + + + + + Updates the annotation + + + + + Returns the annotation UI element + + + + + + Gets or sets the rotation angle for Annotation. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Updates the annotation + + + + + Upates the hit rect. + + + + + Gets or sets the horizontal text alignment. + + + The value. + + + + + Gets or sets the vertical text alignment. + + + The value. + + + + + displays tooltip for the data points nearer to mouse over position or at touch contact point inside a chart area when property is true. + + + # [XAML](#tab/tabid-1) + + <syncfusion:SfChart> + <syncfusion:SfChart.Behaviors> + <syncfusion:ChartTooltipBehavior/> + </syncfusion:SfChart.Behaviors> + </syncfusion:SfChart> + + # [C#](#tab/tabid-2) + + ChartTooltipBehavior tooltip = new ChartTooltipBehavior(); + chartArea.Behaviors.Add(tooltip); + + + + + The is commonly used for all series to customize the tooltip. + You can use the attached properties in a series if you need to customize the appearance of the tooltip based on a particular series. + Series attached properties is considered as high precedence. + + + + + ChartBehavior is an abstract base class for behaviors which can be added to + + + You can handle the events directly in Chart behavior, which will be helpful in designing the Chart application in MVVM pattern. + You can add a custom behavior to the by inheriting a class from the . + You can also add ui elements to the Chart by making use of the top layer canvas returned from property,which can be used to place the ui + elements at desired positions in . + + + + + + + This example, we are using . + + <syncfusion:SfChart> + <syncfusion:SfChart.Behaviors> + <syncfusion:ChartZoomPanBehavior/> + </syncfusion:SfChart.Behaviors> + </syncfusion:SfChart> + + + ChartZoomPanBehavior zoomPanBehavior = new ChartZoomPanBehavior(); + chartArea.Behaviors.Add(zoomPanBehavior); + + + + + + Used to specify corresponding . + + + + + Called when instance created for ChartBehavior. + + + + + Returns the clone behavior. + + + + + + Called when layout updated. + + + + + Method implementation for DetachElement. + + UIElement + + + + Method implementation for DetachElements. + + + + + Called when size changed. + + SizeChangedEventArgs + + + + Called when drag action enter into the chart area. + + DragEventArgs + + + + Called when drag action leave from the chart area. + + DragEventArgs + + + + Called when drag action over in the chart area. + + DragEventArgs + + + + Called when drop the cursor in the chart area. + + DragEventArgs + + + + Called when got focus in UIElement. + + RoutedEventArgs + + + + Called when lost the focus in the chart. + + RoutedEventArgs + + + + Called when mouse wheel on the chart. + + MouseWheelEventArgs + + + + Called when mouse entered into the chart. + + MouseEventArgs + + + + Called when mouse leave from the chart. + + MouseEventArgs + + + + Called when mouse moved in the chart. + + MouseEventArgs + + + + Called when touch down in the chart. + + Touch event arguments + + + + Called when touch move in the chart. + + Touch event arguments + + + + Called when touch up in chart. + + Touch event arguments + + + + Called when pointer key up in the chart. + + KeyEventArgs + + + + Called when pointer key down in the chart area. + + KeyEventArgs + + + + Called when mouse left button clicked. + + MouseButtonEventArgs + + + + Called when mouse left button released. + + MouseButtonEventArgs + + + + Called when manipulation started. + + ManipulationStartedEventArgs + + + + Called when manipulation completed. + + ManipulationCompletedEventArgs + + + + Called when manipulation delta is changed. + + ManipulationDeltaEventArgs + + + + Method implementation for OnDoubleTapped. + + MouseButtonEventArgs + + + + Align the element inside the content control. + + Used to specify for vertical + Used to specify for horizontal + The X location + The Y location + Used to specify corresponding content control + + + + Method implementation for attach elements. + + + + + Return collection of double values from the given ChartSeries. + + x-position + ChartSeriesBase + + + + + This method used to update the entire chart by recalculating and redrawing it. + + + + + Gets the top layer Canvas. + + + + + Gets the bottom layer Canvas. + + + + + Gets the owner Chart. + + + + + Identifies the dependency property. + + + The identifier for the dependency property. + + + + + Identifies the dependency property. + + + The identifier for the dependency property. + + + + + Identifies the dependency property. + + + The identifier for the dependency property. + + + + + Identifies the dependency property. + + + The identifier for the dependency property. + + + + + Identifies the dependency property. + + + The identifier for the dependency property. + + + + + Identifies the dependency property. + + + The identifier for the dependency property. + + + + + Identifies the dependency property. + + + The identifier for the dependency property. + + + + + Identifies the dependency property. + + + The identifier for the dependency property. + + + + + Identifies the dependency property. + + + The identifier for the dependency property. + + + + + Identifies the dependency property. + + + The identifier for the dependency property. + + + + + Identifies the dependency property. + + + The identifier for the dependency property. + + + + + Initializes a new instance of the . + + + + + Returns the instance of . + + object. + The cloned . + + + + Gets or sets the horizontal alignment of tooltip label with respect to the cursor position. + + + HorizontalAlignment. The default value is HorizontalAlignment.Center. + + + # [XAML](#tab/tabid-1) + + + + + ]]> + + # [C#](#tab/tabid-2) + + + + + + + + Gets or sets the vertical alignment of tooltip label with respect to the cursor position. + + + VerticalAlignment. The default value is VerticalAlignment.Top. + + + # [XAML](#tab/tabid-1) + + + + + ]]> + + # [C#](#tab/tabid-2) + + + + + + + + Gets or sets the value to position the tooltip at a distance from the cursor horizontally. + + + double. The default value is 0. + + + The property and the property values provide additional adjustment to position the tooltip. + + + # [XAML](#tab/tabid-1) + + + + + ]]> + + # [C#](#tab/tabid-2) + + + + + + + + Gets or sets the value to position the tooltip at a distance from the cursor vertically. + + + double. The default value is 0. + + + The property and the property values provide additional adjustment to position the tooltip. + + + # [XAML](#tab/tabid-1) + + + + + ]]> + + # [C#](#tab/tabid-2) + + + + + + + + Gets or sets the delay in milliseconds to show the tooltip once user interact with series. + + + integer. The default value is 0 milliseconds. + + + Used to specify the amount of time before the user has to wait when hover the mouse or touch on chart series in milliseconds before tooltip display. + Note: Initial delay only works for the positive values. + + + # [XAML](#tab/tabid-1) + + + + + ]]> + + # [C#](#tab/tabid-2) + + + + + + + + Gets or sets the amount of time that the tooltip remains visible in milliseconds. + + + integer. The default value is 1000 milliseconds. + + + This property defines the time that a tooltip remains visible while the user pauses the mouse pointer over the chart series area that defines the tooltip. + + + # [XAML](#tab/tabid-1) + + + + + ]]> + + # [C#](#tab/tabid-2) + + + + + + + + Gets or sets the value that indicates whether to enable the animation when showing tooltip. + + + bool. The default value is true. + + + # [XAML](#tab/tabid-1) + + + + + ]]> + + # [C#](#tab/tabid-2) + + + + + + + + Gets or sets a value that indicates whether to position the tooltip at data point position or at cursor position. + + + . The default value is . + + + When the is set as the tooltip will be displayed at the data point position while hover mouse inside any chart segment. + If the is set as then the tooltip will be displayed in conjunction with the mouse pointer itself while hover mouse inside any chart segment. + + + # [XAML](#tab/tabid-1) + + + + + ]]> + + # [C#](#tab/tabid-2) + + + + + + + + Gets or sets the style to customize the fill and stroke of tooltip. + + + The Style for tooltip. + + + # [XAML](#tab/tabid-1) + + + + + + + + ]]> + + # [C#](#tab/tabid-2) + + + + + + To define a Style for tooltip, specify the style of TargetType as Path. + + + + + Gets or sets the style to customize the tooltip label. + + + The Style for tooltip label. + + + # [XAML](#tab/tabid-1) + + + + + + + + ]]> + + # [C#](#tab/tabid-2) + + + + + + To define a Style for tooltip label, specify the style of TargetType as TextBlock. + + + + + Gets or sets the value that used to set margin for tooltip label. + + + Thickness. The default value of margin is 0. + + + # [XAML](#tab/tabid-1) + + + + + ]]> + + # [C#](#tab/tabid-2) + + + + + + + + Represents a control that display the label, ticks and lines for axis in 2D. + + + + + + Using a DependencyProperty as the backing store for AutoScrollingMode. This enables animation, styling, binding, etc... + + + + + Using a DependencyProperty as the backing store for AutoScrollingDelta. This enables animation, styling, binding, etc... + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The Dependency property of property + + + + + The DependencyProperty for property + + + + + The Dependency property + + + + + The DependencyProperty for property + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty of property + + + + + The Dependency Property for + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when instance created for ChartAxisBase2D + + + + + Update Auto Scrolling Delta value based on auto scrolling delta mode option. + + The scroll delta region to be captured. + + + + Calculates the visible range. + + + + + Called when the axis bounds changed. + + Which indicates . + + + + When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks. + + + + + This method is used enables or diasable zooming tool bar item based on zoom position and zoom factor + + + + + It invokes when axis label clicked. + + + + + Gets or sets the mode to determine whether the axis should be auto scrolled at start or end position by using enum type. + + + + + Gets or sets the value that determines the range of value to be visible during auto scrolling. This is a bindable property. + + This property takes the double value + + + + Gets or sets the value, between 0 to 1, that indicates the start position in the actual range of the axis. + + This scrolls or pan the chart to particular range. + + + + Gets or sets the value, between 0 to 1, that indicates the zoom level of the axis. + + Value must fall within 0 to 1. + + + + Gets or sets the start angle Polar or radar series. + + + + + Gets or sets the LabelBorderBrush + + + + + Gets or sets a value indicating whether to show the border around axis label + + + + + Gets or sets the multi level labels collection + + + + + Gets or sets the BorderType for Multi level labels + + + + + Gets or sets a value indicating whether to enable the axis to include the annotation range, while calculating the axis range. + + This feature is to avoid cropping or missing of annotation, which doesn't falls inside the axis range. + + + + + Gets or sets the striplines collection for the SfChart. + + + + + Gets or sets a value indicating whether to enable the legacy style for the scroll bar. + + + + + Gets or sets a value indicating whether to enable the scrollbar for the SfChart. + + + + + Gets or sets a value indicating whether to enable scrollbar to suspend value updates for every thumb value changes. + + + + + Gets or sets the LabelBorderWidth + + + + + Gets or sets a value indicating whether to enable or disable touch mode for the scroll bar. + + + + + Gets or sets the style for axis it will get notify to update the chart. + + + + + Gets or sets zoom factor. Value must fall within 0 to 1. It determines delta of visible range. + + + + + Class implementation for axis label clicked event arguments. + + + + + Gets the chart axis label for further customization. + + + + + Chart enables the user to break the scale of by adding scale breaks to it. + + + The scale break appearance can be customized. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Clone the axis breaks + + + + + + Gets or sets the scale break spacing. + + + + + Gets or sets the percent where breaks will be positioned at the specified percent of the area. + This will be considered when the enum BreakPosition is set to Percent mode. + + + + + The DependencyProperty of property + + + + + The DependencyProperty of property + + + + + The DependencyProperty of property + + + + + The DependencyProperty of property + + + + + The DependencyProperty of property + + + + + The DependencyProperty of property + + + + + The DependencyProperty of property + + + + + The DependencyProperty of property + + + + + Intializes a new instance for class + + + + + To clone the ChartMultiAxisLabel + + + + + + property changed event call back. + + Dependency Object + Event Args + + + + property changed event call back. + + Dependency Object + Event Args + + + + property changed event call back. + + Dependency Object + Event Args + + + + property changed event call back. + + Dependency Object + Event Args + + + + property changed event call back. + + Dependency Object + Event Args + + + + property changed event call back. + + Dependency Object + Event Args + + + + Occurs when a property value changes. + + + + + Gets or sets the start value for label + + + + + Gets or sets the end value for label + + + + + Gets or sets the label level + + + + + Gets or sets the label text + + + + + Gets or sets the fontsize for label + + + + + Gets or sets the brush for label's foreground + + + + + Gets or sets the font family for label + + + + + Gets or sets alignment for label placement + + + + + Represents a DateTime indexed axis. + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Method implementation for Get LabelContent for given position + + + + + + + Calculates actual interval + + + + + + + + Called when Interval property changed + + + + + + Method implementation for Create VisibleLabels for DateTime axis + + + + + Return object value from the given double value + + + + + Gets or sets a value that determines the interval between labels. + If this property is not set, interval will be calculated automatically. + + + + + Gets or sets the type of interval to be displayed in axis. + + + This property hold the values ranges from Year, Months to Milliseconds. + + + + + Apply padding based on interval + + + + + + + + + + Method implementation for Get LabelContent for given position + + + + + + + + Method implementation for Generate Visiblie labels for CategoryAxis + + + + + Calculates actual interval + + + + + + + + + + Generates the visible labels. + + The axis. + Type of the interval. + + + Method implementation for Create VisibleLabels for DateTime axis + + + + Generates the visible labels3D. + + The axis. + Type of the interval. + + + Method implementation for Create VisibleLabels for DateTime axis + + + + Method to depict the distinct data in dateTime axis transition. + + + + + + + + + Calculates the visible range. + + The axis. + Size of the available. + The interval. + + + + Apply padding based on interval + + + + + + + + + + + Calculates nice interval + + + + + + + + + Method implementation for Generate Labels in ChartAxis + + Used to specify the acutal axis. + Used to indicate axis maximum. + Used to indicate axis minimum. + Used to indicate actual interval. + Used to indicate + + + + Method implementation for Generate Labels in ChartAxis3D + + Used to specify the acutal axis. + Used to indicate axis maximum. + Used to indicate axis minimum. + Used to indicate actual interval. + Used to indicate + + + + Method implementation for Add SmallTicks for axis + + The axis. + The position. + The logarithmic base. + The small ticks per interval. + + + + Called when [minimum maximum changed]. + + The axis. + The minimum. + The maximum. + The logarithmic base. + + + + Calculates actual range + + The axis. + The range. + The logarithmic base. + + + + + Calculates the visible range. + + The axis. + Size of the available. + The interval. + + + + Method implementation for Generate Labels in ChartAxis + + The axis. + The small ticks per interval. + + + + + + + Method implementation for Generate Labels in ChartAxis3D + + The axis. + The small ticks per interval. + + + + + + + Called when [minimum maximum changed]. + + The axis. + The maximum. + The minimum. + + + + Apply padding based on interval + + The axis. + The range. + The interval. + The range padding. + + + + + Calculates the visible range. + + The axis. + Size of the available. + The interval. + + + + Method implementation for Add smallTicks to axis + + The axis. + The position. + The interval. + The small ticks per interval. + + + + Method implementation for Generate Labels in ChartAxis + + The axis. + The small ticks per interval. + + + + Generates the visible labels. + + Used to specify the acutal axis. + Used to indicate axis maximum. + Used to indicate axis minimum. + Used to indicate actual interval. + + + + Generates the visible labels. + + Used to specify the acutal axis. + Used to indicate axis maximum. + Used to indicate axis minimum. + Used to indicate actual interval. + + + + Calculates the visible range. + + The axis. + The interval. + Size of the available. + + + + BarSeries represents its datapoint using a set of horizontal rectangles. + + + + <syncfusion:BarSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:BarSeries> + + + BarSeries series1 = new BarSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + + + + + XySegmentDraggingBase is abstract class which is used to allow, drag a segment in a chart series. + + + + + + Class implementation for XyDataseries + + + + + Serves as a base class for all the Cartesian chart types used to visualize data points in Cartersian coordinate system. + + + + <syncfusion:BarSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:BarSeries> + + + BarSeries series1 = new BarSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + Represents a ChartSeries that displays data in a customizable chart. + + + + + Represents a base class for all series in chart. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + This method used to get the SfChart data index at an SfChart co-ordinates + + Used to specify X co-ordinates + Used to specify Y co-ordinates + Returns data index of type int + + + + Method used to gets the byte value of given color. + + + + + + + This method used to get the chart data index at an SfChart co-ordinates + + Used to indicate the current x and y co-ordinates + Returns data index of type int + + + + This method used to generate bitmap segment pixels. + + + + + Method used to return the hittest series while mouse action. + + + + + + Method is used to select/reset the bitmap segment. + + + + + + + + When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks. + + + + + Returns the instance of this series. + + object + + + + Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the WPF infrastructure. + + The type-specific System.Windows.Automation.Peers.AutomationPeer implementation. + + + + Creates an instance of series segment. + + + This sample shows how to call the method to customize the line series segments. + + public class LineSeriesExt : LineSeries + {​ + protected override ChartSegment CreateSegment() + {​ + return new LineSegmentExt(); + }​ + }​ + + public class LineSegmentExt : LineSegment + {​ + public override UIElement CreateVisual(Size size) + {​ + // Write your customization code here. + }​ + + public override void Update(IChartTransformer transformer) + {​ + // Write your customization code here. + }​ + } + + + + Returns the instance of corresponding series segment. + + + This customization is not supported for fast type series and technical indicators. + + + + + Gets or sets the value that specifies the stroke thickness of chart series. This is a bindable property. + + + The default value is 2. + + + + + Gets the instance. + + + + + Gets or sets a brush that specifies the stroke color for chart series to customize its appearance. This is a bindable property. + + + The value. + + Use ChartSeries Color property to change the line color of StackingLineSeries and StackingLine100Series. + + + + The DependencyProperty for property. + + + + + An abstract method which will be called over to create segments. + + + + + Method implementation for GeneratePoints for series. + + + + + Method implementation for create Adornments. + + series + xvalue + yvalue + xposition + yposition + + + + + Method implementation for add ColumnAdornments in Chart. + + values + + + + Method implementation for add Adornments at XY. + + xvalue + yvalue + index + + + + Method implementation for add AreaAdornments in Chart. + + values + + + + When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks. + + + + + + + + Method implementation for clear unused adornments. + + + + + + Gets or sets data labels for the series. This allows us to customize the appearance of a data point by displaying labels, shapes and connector lines. + + + The value. + + + + + Occurs when the adornment labels is created. This event is used for internal purpose only. + + + + + Interface implementation for support axis for 2D chart + + + + + Gets or sets YAxis property + + It takes the value. + + + + Gets or sets XAxis property + + It takes the value. + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when instance created for CartesianSeries + + + + + Create trend line for series + + + + + Update series bound + + + + + + Calculate Segments + + + + + Called when VisibleRange property changed. + + + + + Called when YAxis created or changed. + + + + + + + Called when XAxis created or changed. + + + + + + + Returns the instance of this series. + + object + + + + When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks. + + + + + Method to get the visible range data points. + + The data points. + The Rectangle. + + This method will work only after render the series in visual. + + + + + Method to get the data points from the given range. + + start x + end x + start y + end y + The data points + + This method will work only after render the series in visual. + + + + + Gets or sets the trendline collection for this series. + + + Trends consider only non empty sets of corresponding . + + + + + Gets or sets the x axis range corresponding to this series. + + + + + Gets or sets the y axis range corresponding to this series. + + + + + Gets or sets the additional x axis for this series. + + + This property is used to add multiple axis in . + + + + <syncfusion:ColumnSeries ItemsSource="{Binding Demands}" XBindingPath="Demand" YBindingPath="Year2010"> + <syncfusion:ColumnSeries.XAxis> + <syncfusion:NumericalAxis Header="Additional X Axis"/> + </syncfusion:ColumnSeries.XAxis> + </syncfusion:ColumnSeries> + + + + + + Gets or sets the additional y axis for this series. + + + This property is used to add multiple axis in . + + + + <syncfusion:ColumnSeries ItemsSource="{Binding Demands}" XBindingPath="Demand" YBindingPath="Year2010"> + <syncfusion:ColumnSeries.YAxis> + <syncfusion:NumericalAxis Header="Additional Y Axis"/> + </syncfusion:ColumnSeries.YAxis> + </syncfusion:ColumnSeries> + + + + + + Gets or sets a value indicating whether to exchange the orientation of the series. + + + True exchanges the horizontal axis to vertical and vice versa. + False is the default behavior. + + + + + Gets or sets a value indicating whether to show/hide the series information. + + + + + The DependencyProperty for property. . + + + + + Called when instance created for XyDataSeries + + + + + This method is used to gets the selected data point segment pixel positions + + + + + This method used to gets the selected data point segment pixel positions + + + + + Validate the datapoints for segment implementation. + + + + + Validate the datapoints for segment implementation. + + + + + This method used to get the chart data at an index. + + + + + + + This method used to get the chart data at an index. + + + + + Method for Generate Points for XYDataSeries + + + + + + + + + + + Returns the instance of series. + + object + + + + Gets or sets the property name that associates the secondary axis with a property in the itemssource. + + + The string that represents the property name for secondary axis. The default value is null. + + + # [MainWindow.xaml](#tab/tabid-1) + + + + + + + + + + + + + + ]]> + # [MainWindow.cs](#tab/tabid-2) + + *** + + + + + Gets or sets the y values collection. + + + + + The DependencyProperty for property. . + + + + + The DependencyProperty for property. . + + + + + The DependencyProperty for property. . + + + + + The DependencyProperty for property. . + + + + + The DependencyProperty for property. . + + + + + The DependencyProperty for property. . + + + + + The DependencyProperty for property. . + + + + + Updates the drag spliter. + + Used to specifies corresponding element rect + Used to specifies corresponding segment + Used to indicate drag position + + + + Activates the dragging. + + The mouse position. + The element. + + + + Resets the dragging elements. + + The reason. + if set to true [drag end event]. + + + + Resets the drag spliter. + + + + + Method implementation for ChartDragStart. + + point + object + + + + Method implementation for ChartDragDelta. + + point + object + + + + Method implementation for ChartDragEnd + + point + object + + + + Method implementation for ChartDragEnter. + + point + object + + + + Method implementation for ChartDragExit. + + point + object + + + + Called when mouse moved. + + Event args + + + + Called when mouse left button down. + + Event args + + + + Called when mouse left button up. + + Event args + + + + Called when mouse entered. + + Event args + + + + Called when mouse leave. + + Event args + + + + Raises the drag start. + + The instance containing the event data. + + + + Raises the drag end. + + The instance containing the event data. + + + + Raises the drag delta. + + The arguments. + + + + Raises the drag enter. + + The instance containing the event data. + + + + Raises the preview end. + + The instance containing the event data. + + + + Updates the under laying model. + + The path. + The index. + The updated data. + + + + Occurs when [segment enter]. + + + + + Occurs when [drag start]. + + + + + Occurs when [drag delta]. + + + + + Occurs when [drag end]. + + + + + Occurs when [preview drag end]. + + + + + Gets or sets dragging tooltip style. + + + + + Gets or sets a value indicating whether dragging tooltip is enabled or not. + + + + + Gets or sets the custom template for dragging tooltip/>. + + + This accepts a DataTemplate. + + + + + + + + Gets or sets a property used to round the decimal value. + + + + + Gets or sets snap point. + + + + + Gets or sets a value indicating whether segment dragging is enabled or not. + + + + + Gets or sets a value indicating whether to update the dragging values in source + + + + + Gets or sets a value indicating whether to cancel the dragging + + + + + Gets or sets a segment index. + + + + + Gets or sets a value for drag splitter. + + + + + Gets or sets a value for dragged xvalue. + + + + + Gets or sets a value for dragged yvalue. + + + + + Gets or sets the dragging tooltip. + + + + + Gets or sets the dragging info. + + + + + Gets or sets ellipse animation. + + + + + Defines members and methods necessary to customize the display of selected segment in a . + + + + + + Gets or sets SegmentSelectionBrush property + + + + + Gets or sets SelectionIndex property + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when instance created for BarSeries + + + + + Creates the segments of BarSeries. + + + + + Returns the instance of series. + + object + + + + Resets the dragging elements. + + The reason. + if set to true, DragEndEvent will raise. + + + + Called when dragging started. + + mouse position + original source + + + + Called when dragging series. + + mouse position + original source + + + + Called when dragging end. + + mouse position + original source + + + + Called when dragging entered. + + mouse position + original source + + + + + + + Method used to calculate the segment spacing. + + Spacing + Right + Left + + + + Add the into the Segments collection. + + The values. + The actualData. + The xValue. + The yValue. + + + + Gets or sets the interior (brush) for the selected segment(s). + + + The value. + + + + + Gets or sets the spacing between the segments across the series in cluster mode. + + + The value ranges from 0 to 1. + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected and its default value is -1. + + + + + Gets or sets the custom template for this series. + + + + + + This example, we are using . + + + + <syncfusion:ScatterSeries ItemsSource="{Binding Demands}" XBindingPath="Demand" ScatterHeight="40" + YBindingPath="Year2010" ScatterWidth="40"> + <syncfusion:ScatterSeries.CustomTemplate> + <DataTemplate> + <Canvas> + <Path Data="M20.125,32l0.5,12.375L10.3125,12.375L10.3125,0.5L29.9375,0.5L29.9375,12.375L39.75,12.375Z" + Stretch="Fill" Fill="{Binding Interior}" Height="{Binding ScatterHeight}" Width="{Binding ScatterWidth}" + Canvas.Left="{Binding RectX}" Canvas.Top="{Binding RectY}"/> + </Canvas> + </DataTemplate> + </syncfusion:ScatterSeries.CustomTemplate> + </syncfusion:ScatterSeries> + + + + + + Gets a value indicating whether this series is placed side by side. + + + It returns true, if the series is placed side by side [cluster mode]. + + + + + ChartCrossHairBehavior enables viewing of informations related to Chart coordinates, at mouse over position or at touch contact point inside a Chart. + + + ChartCrossHairBehavior displays a vertical line, horizontal line and a popup like control displaying information about the data point + at touch contact point or at mouse over position. You can also customize the look of cross hair and information displayed in a label. + + + This example, we are using . + + <syncfusion:SfChart> + <syncfusion:SfChart.Behaviors> + <syncfusion:ChartCrossHairBehavior/> + </syncfusion:SfChart.Behaviors> + </syncfusion:SfChart> + + + ChartCrossHairBehavior crossHair = new ChartCrossHairBehavior(); + chartArea.Behaviors.Add(crossHair); + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Used to specify the current location. + + + + + Called when instance created for . + + + + + Method implementation for DetachElements. + + + + + Called when size changed. + + SizeChangedEventArgs + + + + Called when mouse left button was pressed in chart. + + MouseButtonEventArgs + + + + Called when mouse moved in the chart. + + MouseEventArgs + + + + Called when mouse leave from the chart. + + MouseEventArgs + + + + Called when the layout updated from chart. + + + + + Called when mouse left button was released. + + MouseButtonEventArgs + + + + Align the element inside the content control. + + Used to specify for vertical + Used to specify for horizontal + The X location + The Y location + Used to specify corresponding content control + + + + Method implementation for set positions for given point. + + Point + + + + Method implementation for AttachElements. + + + + + Method implementation to generate trackball label for axis. + + ChartPointInfo + ChartAxis + + + + Method implementation for adding labels in Crosshair. + + ChartPointInfo + Used to specify for vertical + Used to specify for horizontal + DataTemplate + The X location + The Y location + + + + Method implementation for adding label in crosshair. + + ChartPointInfo + Used to specify for vertical + Used to specify for horizontal + DataTemplate + + + + Method implementation for add elements in UIElement. + + UIElement + + + + Gets or sets the alignment for the label appearing in vertical axis. + + + + + + + + Gets or sets the alignment for the label appearing in horizontal axis. + + + + + + + + Gets the collection of ChartPointInfo. + + + + + Gets or sets the style for horizontal line. + + + + + Gets or sets the style for vertical line. + + + + + Gets or sets a value indicating whether the crosshair is activated or not. + + + + + ChartSelectionBehavior enables the selection of segments in a Chart. + + + The selected segment can be displayed with a different color specified using SegmentSelectionBrush property available in corresponding series. + ChartSelectionBehavior is applicable only to certain series such as ,, + ,,,, + ,. + + + This example, we are using . + + <syncfusion:SfChart> + <syncfusion:SfChart.Behaviors> + <syncfusion:ChartSelectionBehavior/> + </syncfusion:SfChart.Behaviors> + </syncfusion:SfChart> + + + ChartSelectionBehavior selectionBehavior = new ChartSelectionBehavior(); + chartArea.Behaviors.Add(selectionBehavior); + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Method used to get selection brush for series selection. + + ChartSeriesBase + Returns brush for selected segment. + + + + Called when mouse left button was released. + + MouseButtonEventArgs + + + + Called when mouse left button is clicked. + + MouseButtonEventArgs + + + + Called when mouse moved in the chart. + + MouseEventArgs + + + + Called when mouse leaved in the chart. + + MouseEventArgs + + + + Invoked whenever the SelectionChanging event have raised. + + type of + + + + Invoked whenever the SelectionChanged event have raised. + + type of + + + + Called for deselecting the selected segment or series in MouseMove selection. + + + + + Method used to change the cursor for series and segments and adornments. + + + + + Method used to get the bool value for series or segment has dragging base. + + + + + Method used to set SelectedIndex while mouse move in segment/adornment. + + + + + + + Method used to set SelectedIndex while mouse down in segment/adornment. + + + + + + + Method used to select bitmap series in mouse move. + + + + + + + Method used to get the fast series in the mouse point. + + + + + + + Method used to select bitmap series in mouse down. + + + + + + + Gets or sets the selection mode value, which indicates that this series is how to selectable. + + + + + Gets or sets a value indicating whether the series selection is enabled or not. + + + + + Gets or sets a value indicating whether the segment (or) datapoint selection is enabled or not. + + + + + Gets or sets the SelectionStyle value that indicated the selection type in SfChart. + + + + + + + + Gets or sets the mouse cursor for the series, which indicates that the series selection cursor type. + + + Default value is null + + + + + Represents chart segment selection changed event arguments. + + + It contains information like selected segment and series. + + + + + Gets the series which has been selected through mouse interaction or selected index. + + + + + Gets the series which had been selected through mouse interaction or selected index. + + + + + Gets the series collection which has been selected through rectangle selection or mouse interaction. + + + + + Gets the segment which has been selected through mouse interaction or selected index. + + + + + Gets the segments collection which has been selected through rectangle selection or mouse interaction. + + + + + Gets the segments collection which has been selected through rectangle selection or mouse interaction previously. + + + + + Gets the segment which had been selected through mouse interaction or selected index. + + + + + Gets the current index of the segment which has been selected through mouse interaction or selected index. + + + + + Gets the previous index of the segment which had been selected through mouse interaction or SelectedIndex. + + + + + Gets a value indicating whether the segment or series is selected. + + + + + Gets a value indicating whether the selection is segment selection or series selection. + + + + + Gets the selected segment item value. + + + + + Gets the previous selected segment item value. + + + + + Represents chart segment selection changing event arguments. + + + It contains information like selected segment and series. + + + + + Gets the series which has been selected through mouse interaction or selected index. + + + + + Gets the segment which has been selected through mouse interaction or selected index. + + + + + Gets or sets the segments collection which has been selected through rectangle selection or mouse interaction. + + + + + Gets the current index of the segment which has been selected through mouse interaction or selected index. + + + + + Gets the previous index of the segment which had been selected through mouse interaction or selected index. + + + + + Gets or sets a value indicating whether to avoid selection. + + + + + Gets a value indicating whether the selection is segment selection or series selection. + + + + + Gets a value indicating whether the segment or series is selected. + + + + + ChartTrackBallBehavior enables tracking of data points nearer to mouse over position or at touch contact point in a Chart. + + + ChartTrackBallBehavior displays a vertical line,a tracker ball symbol and a popup like control displaying information about the data point, at mouse move positions/ at touch contact positions over a . + + + This example, we are using . + + <syncfusion:SfChart> + <syncfusion:SfChart.Behaviors> + <syncfusion:ChartTrackBallBehavior/> + </syncfusion:SfChart.Behaviors> + </syncfusion:SfChart> + + + ChartTrackBallBehavior trackball = new ChartTrackBallBehavior(); + chartArea.Behaviors.Add(trackball); + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + Background brush for grouped labels. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when instance created for . + + + + + Called when pointer position changed in the chart. + + + + + Method implementation for DetachElements. + + + + + Called when size changed. + + SizeChangedEventArgs + + + + Called when layout updated in chart. + + + + + Called when mouse moved in the chart. + + MouseEventArgs + + + + Called when mouse leaved from the chart. + + MouseEventArgs + + + + Called when mouse left button was released. + + MouseButtonEventArgs + + + + Align the element inside the content control. + + Used to specify for vertical + Used to specify for horizontal + The X location + The Y location + Used to specify corresponding content control + + + + Method implementation for AttachElements. + + + + + Called when pointer position changed. + + Point + + + + Method implementation to generate the labels for trackball. + + + + + Method used for adding grouped labels when using was . + + + + + Method implementation for adding label in trackball. + + ChartPointInfo + Used to specify for vertical + Used to specify for horizontal + DataTemplate + The X location + The Y location + + + + Method implementation for generate Trackballs. + + + + + Method implementation for adding trackBall to corresponding chart point. + + ChartPointInfo + + + + Return collection of double values from the given ChartSeries. + + x position + chart series + + + + + Method implementation for clear items in ChartTrackballbehavior. + + + + + Mathod implementation for adding labels in trackball. + + ChartPointInfo + Used to specify for vertical + Used to specify for horizontal + DataTemplate + + + + Method implementation for adding UIElement. + + UIElement + + + + To determine whether two labels are collided or not. + + + + + + + + To determine whether two labels are collided or not. + + + + + To get the rendered rect of the label. + + Label's content control. + + + + + To align the trackball labels smartly. + + + + + Method to check whether the point is in trackball or not. + + The x point + The y point + Point is in trackball or not + + + + Event correspond to trackball position changing. It invokes before position changing from current position to new mouse position. + + + + + + + + Event correspond to trackball position changed. It invokes after position changed to new mouse pointer position. + + + + + + + + Gets the collection of ChartPointInfo. + + + + + Gets or sets the alignment for the label appearing in axis. + + + + + + + + Gets or sets the trackball line style. + + + + + Gets or sets the trackball display mode for label. + + + + + + + + Gets or sets the trackball label background brush for grouped labels. + + + + + Gets or sets a value indicating whether to show/hide line. + + + + + Gets or sets vertical alignment for label. + + + + + Gets or sets horizontal alignment for label. + + + + + Gets or sets the style for ChartTrackBallControl. + + + + + Gets or sets a value indicating whether to change the color for the labels according to the series color. + + + + + Gets or sets a value indicating whether the trackball is activated or not. + + + + + Sets the fill color for the track ball control. + + + + + Modifies the source data before passing it to the target for display in the UI. + + + The value to be passed to the target dependency property. + + The source data being passed to the target. + The of data expected by the target dependency property. + An optional parameter to be used in the converter logic. + The culture of the conversion. + + + + Modifies the target data before passing it to the source object. This method is called only in bindings. + + + The value to be passed to the source object. + + The target data being passed to the source. + The of data expected by the source object. + An optional parameter to be used in the converter logic. + The culture of the conversion. + + + + Defines the control template for the trackball. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when instance created for ChartTrackBallControl + + + + + + Gets or sets Series property. + + + + + Gets or sets stroke property. + + + The value. + + + + + Gets or sets StrokeThickness property. + + + + + Defines the PositionChangingEventArgs + + + + + Gets or sets the current PointInfos. + + + + + Gets or sets a value indicating whether to show the trackball on new mouse pointer position. + + + + + Defines the PositionChangedEventArgs. + + + + + Gets or sets the previous PointInfos. + + + + + Gets or sets the current PointInfos. + + + + + ChartZoomPanBehavior enables zooming and panning operations over a Chart. + + + Zooming and panning operations can be initiated and can be restored backed to + the original position by performing zoom out operation or by enabling property. + Chart can also be zoomed, without adding ChartZoomPanBehavior, by + specifying following properties and for the ChartAxis. By specifying zooming mode + using property, zooming operation + can be performed along horizontal or along vertical or along both directions in + a Chart. + + + This example, we are using . + + <syncfusion:SfChart> + <syncfusion:SfChart.Behaviors> + <syncfusion:ChartZoomPanBehavior/> + </syncfusion:SfChart.Behaviors> + </syncfusion:SfChart> + + + ChartZoomPanBehavior zoomPanBehavior = new ChartZoomPanBehavior(); + chartArea.Behaviors.Add(zoomPanBehavior); + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when instance created for . + + + + + Return bool value from the given ChartAxis. + + CumulativeScale value + Origin value + chart axis + + + + + Zooms the specified cumulative scale. + + The cumulative scale. + The axis. + + + + Resets the zoom factor and zoom position for all the axis. + + + + + Zooming applied in the chart axis based start and end datetime range. + + ChartAxisBase2D instance + Start DateTime Range + End DateTime Range + + + + Zooming applied in the chart axis based start and end range. + + ChartAxisBase2D instance + Start Range + End Range + + + + Zooming applied in the chart axis upto zoom factor in the zoom position. + + ChartAxisBase2D instance + Zoom Position + Zoom Factor + + + + Used to zoom in the chart. + + + + + Used to zoom out the chart. + + + + + Used to zoom in the chart for given ZoomFactor value. + + ZoomFactor + + + + Used to zoom in the chart for given rectangle. + + + + + + Method implementation for detatch elements. + + + + + Called when layout updated. + + + + + Called when mouse left button is clicked. + + MouseButtonEventArgs + + + + Called when mouse moved in the chart. + + MouseEventArgs + + + + Called when mouse leaved from the chart. + + MouseEventArgs + + + + Called when mouse left button was released. + + MouseButtonEventArgs + + + + Called when ManipulationStarted. + + ManipulationStartedEventArgs + + + + Called when ManipulationDelta is changed. + + ManipulationDeltaEventArgs + + + + Added zooming tool bar when was true. + + + + + Remove zooming tool bar when was changed. + + + + + Method implementation for AttachElements. + + + + + Calculates ZoomFactor and ZoomPosition using the cumulative scale. + + Cumulative scale since the starting of the manipulation. + center of manipulation. + Current axis's ZoomFactor. + Current axis's ZoomPosition. + Calculated ZoomPosition. + Calculated ZoomFactor. + + + + Called when selection zooming occurs. + + + + + Called when panning takes place. + + + + + + + + Called when panning is completed. + + + + + + Event is raised when zooming is completed. + + + + + + + + Event is raised when zooming takes place. + + + + + + + + Event is raised when zoom is reset. + + + + + + Gets or sets a value which is used to select the tool bar items respectively. + + + + + Gets or sets a value indicating whether to show/hide the zooming tool bar. + + + + + Gets or sets the Height for the ZoomingToolBar items. + + + + + Gets or sets the width for the ZoomingToolBar items. + + + + + Gets or sets the Margin for the ZoomingToolBar items. + + + + + Gets or sets the horizontal position for the tool bar. + + + + + Gets or sets the vertical position for the tool bar. + + + + + Gets or sets the tool bar orientation. + + + + + Gets or sets the tool bar background. + + + + + Gets or sets a value indicating whether zoom relative to mouse pointer and this is applicable only for mouse wheel zooming. + + + + + Gets or sets a value that indicates whether the finger gesture is enabled. + + + This property takes the boolean value, and its default value is true. + + + If this property is true, zooming is performed based on pinch gesture of the user. If this property is false, zooming is performed based on the mouse wheel of the user. + + + + + Gets or sets the mode of zooming. + + + + + + + + Gets or sets the value that indicates whether directional zooming is enabled. + + + If this property is false, zooming is performed based on property. If this property is true, zooming is performed based on pinch direction of the user. + This property having effect only with value as XY. + + + + + Gets or sets a value indicating whether to enable/disable the panning. + + + + + Gets or sets stroke thickness for selection rectangle. + + + + + Gets or sets maximum zoom level of chart area. + + + + + Gets or sets stroke for selection rectangle. + + + The value. + + + + + Gets or sets the background for selection rectangle. + + + The value. + + + + + Gets or sets a value indicating whether to enable zooming chart using selection rectangle. + + + + + Gets or sets a value indicating whether to reset the zooming when press the mouse left button twice. + + + + + Gets or sets a value indicating whether mouse wheel zooming is enabled. + + + + + Class implementation for zooming event arguments. + + + + + Gets or sets the previous zoom position of the axis. + + + + + Gets or sets the current zoom position of the axis. + + + + + Gets or sets the old visible range. + + + + + Gets the previous zoom factor of the axis. + + + + + Gets the current zoom factor of the axis. + + + + + Gets or sets the the axis whose range is changed because of zooming. + + + + + Class implementation for ZoomChanging event arguments. + + + + + Gets or sets a value indicating whether to cancel the event. + + + + + Class implementation for ZoomChanged event arguments. + + + + + Gets the new visible range. + + + + + Class implementation for selection zooming event arguments. + + + + + Gets or sets the bounds of the rectangle. + + + + + Class implementation for SelectionZoomingStart event arguments. + + + + + Class implementation for SelectionZoomingDelta event arguments. + + + + + Gets or sets a value indicating whether to cancel the event. + + + + + Class implementation for SelectionZoomingEnd event arguments. + + + + + Class implementation for panning event arguments. + + + + + Gets or sets the new zoom position. + + + + + Gets or sets the the axis whose range is changed because of panning. + + + + + Class implementation for PanChanging event arguments. + + + + + Gets the previous zoom position. + + + + + Gets or sets a value indicating whether to cancel the event. + + + + + Class implementation for PanChanged event arguments. + + + + + Class implementation for ResetZooming event arguments. + + + + + Gets the previous visible range. + + + + + Gets the the axis whose range is changed because of reset the zoom. + + + + + Gets a value indicating whether to cancel the event. + + + + + Class implementation for CategoryAxis + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Method implementation for Get LabelContent for given position + + + + + + + Calculates actual interval + + + + + + + + Called when interval property changed + + + + + + Apply padding based on interval + + + + + + + + Method implementation for generating visible labels for CategoryAxis. + + + + + Gets or sets a value that determines the interval between labels. Its nullable. + If this property is not set, interval will be calculated automatically. + + + + + Gets or sets the axis label placement with respect to ticklines. + + + LabelPlacement.BetweenTicks, to place label between the ticks; + LabelPlacement.OnTicks, to place label with tick as center. This is default value. + + + + + Gets or sets a value indicating whether to group the Category axis label values and create the segment based on it. + + + True, to created the segment based on the index value. This is default value.; + False, to created the segment based on the axis label values. + + + + + Gets or sets the aggregate for the grouped values. + + + + + Class implementation for DateTimeAxis + + + + + Class implementation for RangeAxisBase + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Method implementation for Add SamllTicksPoint + + + + + + Method implementation for Add smallTicks to axis + + + + + + + Method implementation for Generate Labels in ChartAxis + + + + + Gets or sets a value indicating whether to enable the axis to include the annotation range while calculating the axis range. + + + + + Gets or sets the small tick lines interval. + + + + + Gets or sets minor tick line size. + + + The default value is 5. + + + + + Gets or sets small tick lines position, either inside or outside. + + + + + Returns axis actual range. + + + + + Using a DependencyProperty as the backing store for AutoScrollingDeltaType. This enables animation, styling, binding, etc... + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Calculate the non working hours between two dates + + + + + + + + + + Return object value from the given double value + + + + + + + Calculates nice interval. + + Axis interval based on available size + + + + Calculates actual interval + + + + + + + + Calculates the visible range. + + + + + Called when Maximum property changed + + + + + + Called when minimum property Changed + + + + + + Called when Interval property changed + + + + + + Method implementation for Create VisibleLabels for DateTime axis + + + + + Calculates actual range + + + + + + Apply padding based on interval + + + + + + + + calculate the count of day which is occur with in start and end date + + + + + + + + + Calculate the NonWorking days for the range + + + + + + Gets or sets the date time unit of the value specified in the AutoScrollingDelta property. + + + + + Gets or sets a value indicating whether to enable only the business hours for the DateTime axis. + + + + + Gets or sets the business open time. + + + + + Gets or sets the business closing time. + + + + + Gets or sets the flagged enum to selected the list of working days in a business week. + + + + + Gets or sets the minimum value for the axis range. This is nullable property. + + + If we didn't set the minimum value, it will be calculate from the underlying collection. + + + + + Gets or sets the maximum value for the axis range. This is nullable property. + + + If we didn't set the maximum value, it will be calculate from the underlying collection. + + + + + Gets or sets a value that determines the interval between labels. + If this property is not set, interval will be calculated automatically. + + + + + Gets or sets the padding used to shift the DateTimeAxis range inside or outside. + + + Additional, to extend the range, + Round, to round-off the range, + None, do nothing, + Auto, auto range based on type of series. + + + + + Gets or sets the type of interval to be displayed in axis. + + + This property hold the values ranges from Year, Months to Milliseconds. + + + + + Class implementation for LogarithmicAxis + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when instance created for LogarithmicAxis + + + + + Converts co-ordinate of point related to chart control to axis units. + + The absolute point value. + The value of point on axis. + + + + Return the object Value from the given double value + + + + + + + Calculates nice interval + + + + + + + + Method implementation for Add SmallTicks for axis + + + + + + + Calculates actual interval + + + + + + + + Calculates the visible range. + + + + + Method implementation for Generate Labels in ChartAxis + + + + + Calculates actual range + + + + + + Apply padding based on interval + + + + + + + + Called when maximum changed + + + + + + Called when minimum property changed + + + + + + Called when Interval changed + + + + + + Get the Actual YValues from chart series. + + + + + + + Get the range if date values contain 0 or double.NaN + + + + + + + + Calculate base actual range. + + + + + + Gets or sets a value that determines the interval between labels. Its nullable. + If this property is not set, interval will be calculated automatically. + + + + + Gets or sets the minimum value for the axis range. This is nullable property. + + + If we didn't set the minimum value, it will be calculate from the underlying collection. + + + + + Gets or sets the maximum value for the axis range. This is nullable property. + + + If we didn't set the maximum value, it will be calculate from the underlying collection. + + + + + Gets or sets the base for the LogarithmicAxis. + + + 2 for binary logarithm, + 10 for common logarithm. + + + + + Class implementation for RangeAxisBase + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when instance created for . + + + + + Converts co-ordinate of point related to chart control to axis units. + + The absolute point value. + The value of point on axis. + + + + Converts the PolarCoefficient to the required chart axis value. + + The polar coefficient. + The chart co-ordinate value. + + + + Calculates actual interval + + + + + + + + Calculates the visible range. + + + + + Called when Maximum property changed + + + + + + called when Minimum property changed + + + + + + Called when interval changed + + + + + + Method implementation for Generate Labels in ChartAxis + + + + + Calculates actual range + + + + + + Apply padding based on interval + + + + + + + + Called Maximum property changed + + + + + + + Gets or sets a value that determines the interval between labels. Its nullable. + If this property is not set, interval will be calculated automatically. + + + + + Gets or sets the minimum value for the axis range. This is nullable property. + + + If we didn't set the minimum value, it will be calculate from the underlying collection. + + + + + Gets or sets the maximum value for the axis range. This is nullable property. + + + If we didn't set the maximum value, it will be calculate from the underlying collection. + + + + + Gets or sets the padding used to shift the numeric range inside or outside. + + + Additional, to extend the range, + Round, to round-off the range, + None, do nothing, + Auto, auto range based on type of series. + + + + + Gets or sets a value indicating whether to start range from zero when range calculated automatically. + + + True will reset the range starting from zero. + + + + + Gets or sets the scale break collection for the axis. + + + + + Gets or sets the property used to position the breaks. + + + DataCount, Break will be placed based on the data count, + Percent, Break will be placed based on the given BreakPercent, + Scale, Break will be placed based on the delta of the range + + + + + Class implementation for TimeSpanAxis + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Return Object from the given double value + + + + + + + Calculates the visible range. + + + + + Calculates actual interval + + + + + + + + Called when Maximum property changed + + + + + + Method implementation for Minimum property changed + + + + + + Called when Interval property changed + + + + + + Method implementation for Generate Labels in ChartAxis + + + + + Calculates actual range + + + + + + Apply padding based on interval + + + + + + + + Gets or sets a value that determines the interval between labels. Its nullable. + If this property is not set, interval will be calculated automatically. + + + + + Gets or sets the minimum value for the timespan axis range. This is nullable property. + + + If we didn't set the minimum value, it will be calculate from the underlying collection. + + + + + Gets or sets the maximum value for the axis range. This is nullable property. + + + If we didn't set the maximum value, it will be calculate from the underlying collection. + + + + + Represents a base class for all the triangular and circular series. This class has options to customize the appearance of triangular and circular series. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when instance created for AccumulationSeriesBase + + + + + This method used to get the chart data at an index. + + + + + + + Validate the datapoints for segment implementation. + + + + + Validate the datapoints for segment implementation. + + + + + Method used to set SegmentSelectionBrush to selectedindex chartsegment. + + new index + old index + + + + Method used to generate points for accumulation series. + + + + + Called when the chart mouse up. + + source + position + + + + Called when the chart mouse down. + + source + position + + + + Method implementation for ExplodeIndex. + + + + + + Virtual Method for ExplodeRadius. + + + + + Virtual method for ExplodeAll. + + + + + Called when ItemsSource property changed. + + old value + new value + + + + Called when binding path changed. + + args + + + + Returns the instance of series. + + object + + + + Gets or sets the property name that associates the secondary axis with a property in the itemssource. + + + The string that represents the property name for secondary axis. The default value is null. + + + # [MainWindow.xaml](#tab/tabid-1) + + + + + + + + + + ]]> + # [MainWindow.cs](#tab/tabid-2) + + *** + + + + + Gets or sets the index of data point (or segment) of chart series to be exploded. + + + + + Gets or sets a value indicating whether to explode all the pie slices (segments). + + + True, will explode all the segments. + + + + + Gets or sets a value indicating whether segment slices will explode on click or tap. + + + if true, the segment will explode on click or tap. + + + + + Gets or sets the interior (brush) for the selected segment(s). + + + The value. + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected and its default value is -1. + + + + + Returns the corresponding series selected segment. + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns list of . + + + + + Gets or sets the Y values collection binded with this series. + + + + + This class serves as an event data for the event. The event data holds the information when the adornment label is created. + + + This class is used for internal purpose only. + + + + + Gets or sets the chart adornment label. + + + + + BoxAndWhiskerSeries plots a combination of rectangle and lines to show the distribution of data set. + + + + <syncfusion:BoxAndWhiskerSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:BoxAndWhiskerSeries> + + + BoxAndWhiskerSeries series1 = new BoxAndWhiskerSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Finds the nearest point in ChartSeries relative to the mouse point/touch position. + + The co-ordinate point representing the current mouse point /touch position. + x-value of the nearest point. + y-value of the nearest point + + + + + Creates the segments of Box and Whisker Series. + + + + + Method used to generate points for BoxAndWhisker series. + + + + + + + + Called when binding path changed. + + args + + + + Called when ItemsSource property changed. + + new value + old value + + + + Method used to clear the unused adornments. + + index + + + + Returns the instance of series. + + object + + + + Method used to calculate the segment spacing. + + Spacing + Right + Left + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected and its default value is -1. + + + + + Gets or sets the plotting mode for drawing the series. + + + + + Gets or sets the template for outliers. + + + + + + + + Gets or sets a value indicating whether to enable the median symbol. + + + + + Gets or sets the spacing between the segments across the series in cluster mode. + + + The value ranges from 0 to 1. + + + + + Gets or sets the interior for the selected segment. + + + The value. + + + + + Gets or sets the value that indicates whether to show or hide the outlier symbol that is displayed outside the whiskers of the box plot. + + + The default value is True. + + + + + + Gets or sets the whisker width. + + + + + Gets a value indicating whether this series is placed side by side. + + + It returns true, if the series is placed side by side [cluster mode]. + + + + + Gets or sets the y values collection. + + + + + Define the members that used in SfChart data. + + + + + Define the index of the data point. + + + + + Method implementation for CreateVisual method. + + Size + UIElement + + + + Method implementation for GetRenderedVisual method. + + UIElement + + + + Method implementation for Update method. + + + + + + Method implementation for OnSizeChanged method. + + Size + + + + Gets or sets the x-axis data of the series data point. + + + + + Gets or sets the y-axis data of the XY data series data point. + + + + + Gets or sets the high value of the range/financial series data point. + + + + + Gets or sets the low value of the range/financial series data point. + + + + + Gets or sets the Open value of the financial series data point. + + + + + Gets or sets the close value of the financial series data point. + + + + + Represents a base class for pie and doughnut series. This type of chart is divided into slices to illustrate numerical proportions. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Returns the instance of this series. + + object + + + + Returns the radian value. + + Degree + + + + Gets or sets a value indicating whether to enable the smart adornment labels, which will place the around series without overlapping. + + + + + Gets or sets a value indicating whether the marker placed in start position or at line end position. + + + + + Gets or sets the type of connector line to be drawn. + + + . + + + + + Gets or sets a value indicating whether to render the straight connector line in auto available space. + + + Provides better alignment to the straight connector lines with outside extended label position for minimum number of data points. + + + . + + + + + Gets or sets the adornment label position inside, outside or outside extend. + + + . + + + + + Gets or sets a value that specifies the start angle for the circular series. This is a bindable property. + + + + + Gets or sets a value that specifies the end angle for the circular series. This is a bindable property. + + + + + Gets or sets the radial distance for the exploded segment from center. + + + + + Gets or sets the group mode, which indicates the series segments grouping. This is a bindable property. + + + + + Gets or sets the double value, which indicates series segments grouping. This is a bindable property. + + + + + DoughnutSeries displays data as a proportion of the whole. DoughnutSeries are most commonly used to make comparisons among a set of given data. + + + + <syncfusion:DoughnutSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:DoughnutSeries> + + + DoughnutSeries series1 = new DoughnutSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + + + + Using a DependencyProperty as the backing store for TrackBorderWidth. This enables animation, styling, binding, etc... + + + + + Using a DependencyProperty as the backing store for brushTrackBorderColor. This enables animation, styling, binding, etc... + + + + + Using a DependencyProperty as the backing store for IsStackedDoughnut. This enables animation, styling, binding, etc... + + + + + Using a DependencyProperty as the backing store for MaximumValue. This enables animation, styling, binding, etc... + + + + + Using a DependencyProperty as the backing store for RimColor. This enables animation, styling, binding, etc... + + + + + Using a DependencyProperty as the backing store for CapStyle. This enables animation, styling, binding, etc... + + + + + Using a DependencyProperty as the backing store for GapRatio.This enables animation, styling, binding, etc... + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Using a DependencyProperty as the backing store for DoughnutHoleSize. This enables animation, styling, binding, etc... + + + + + The DependencyProperty for property + + + + + Called when instance created for DoughnutSeries + + + + + Returns the doughnut hole size. + + object + + + + + Sets the doughnut hole size. + + object + value + + + + Creates the doughnut segments. + + + + + Virtual Method for Animate + + + + + Adding the center view at series panel + + + + + + Positioning the center view while updating center view size dynamically. + + + + + + + Positioning the center view based on the doughnut center. + + + + + Gets the doughnut series count. + + + + + + Return IChartTransformer value from the given size. + + Size + bool + + + + + + + + Method implementation for create Adornments. + + + + + + + + + + + Method implementation for ExplodeIndex. + + + + + + Called when ItemsSource property changed. + + old value + new value + + + + Virtual Method for ExplodeRadius. + + + + + Virtual method for ExplodeAll. + + + + + Returns the instance of series. + + object + + + + Gets or sets a value that specifies the track area border width for stacked doughnut. This is a bindable property. + + + + + Gets or sets the brush that specifies the track area border color for stacked doughnut. This is a bindable property. + + + + + Gets or sets a value indicating whether to draw stacked doughnut segment. + + + + + Gets or sets the maximum value for the doughnut segment when stacked doughnut is used. + + + + + Gets or sets the brush that specifies the track area segment color for stacked doughnut. This is a bindable property. + + + + + Gets or sets the capstyle that specifies the start and end points of doughtnut segment. This is a bindable property. + + + + + Gets or sets a value that specifies the gap ratio for the doughnut segments. This is a bindable property. + + + The double value ranges from 0 to 1. + + + + + Gets or sets a value that specifies the inner circular radius of the DoughnutSeries. This is a bindable property. + + + The double value ranges from 0 to 1. + + + + + Gets or sets the size of the DoughnutSeries. + + + + + Gets or sets the view to be added to the center of the DoughnutSeries. + + + + + Gets the inner radius of . + + + + + Represents a control that represents a error bar type series. + + + + <syncfusion:BarSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:BarSeries> + + + BarSeries series1 = new BarSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when instance created for ErrorBarSeries + + + + + Creates the segments of ErrorBarSeries. + + + + + Method used to generate data points for ErroBarSeries. + + + + + + + + Method called when x-axis changed. + + old axis + new axis + + + + Called when ItemsSource property changed. + + old value + new value + + + + Called when binding path changed. + + args + + + + Returns the instance of series. + + object + + + + Get Percentage ErrorBar Value + + + + + + + + Actual Range Event hooked here for the suppose of DateTimeAxis with Auto type errorbar calculation + + + + + + + Calculate StandardDeviation and StandardError value + + + + + + + Calculate the Plus value of line + + + + + + + + + Calculate the Minus Value of line + + + + + + + + + Gets or sets the property path to be bind with horizontal error value. + + + + + Gets or sets the property path to be bind with vertical error value. + + + + + Gets or sets the style for the horizontal line in error bar. + + + . + + + + + Gets or sets the style for the vertical line in error bar. + + + . + + + + + Gets or sets the end cap style for the horizontal error line. + + + . + + + + + Gets or sets the end cap style for the vertical error line. + + + . + + + + + Gets or sets the error or varying value along x value. + + + + + Gets or sets the error or varying value along y value. + + + + + Gets or sets a value indicating whether to draw error bar in horizontal or vertical or both directions. + + + . + + + + + Gets or sets the standard types of error bar to be drawn. + + + + + + + + Gets or sets the horizontal custom values. + + + + + Gets or sets the vertical custom values. + + + + + Represents a special kind of bar series which uses writeablebitmap for rendering chart points. FastBarBitmapSeries allows to render a collection with large number of data points. + + + FastBarBitmapSeries renders large quantity of data in fraction of milliseconds using writeablebitmap. + + + # [MainWindow.xaml](#tab/tabid-1) + + + + + + + + + + + + + + ]]> + # [MainWindow.cs](#tab/tabid-2) + + # [ViewModel.cs](#tab/tabid-3) + Data { get; set; } + + public ViewModel() + { + Data = new ObservableCollection(); + Data.Add(new Model() { XValue = 10, YValue = 100 }); + Data.Add(new Model() { XValue = 20, YValue = 150 }); + Data.Add(new Model() { XValue = 30, YValue = 110 }); + Data.Add(new Model() { XValue = 40, YValue = 230 }); + } + ]]> + *** + + + + + + + Identifies the SegmentSpacing dependency property. + + + The identifier for SegmentSpacing dependency property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when instance created for . + + + + + + + + Used to create the segment of . + + + + + Method used to return the hittest series while mouse action. + + + + + + Method used to set SegmentSelectionBrush to SelectedIndex segment. + + new index + old index + + + + + + + Called when pointer or mouse move on chart area. + + Event args + + + + Returns the instance of series. + + object + + + + Method used to calculate the segment spacing. + + Segment spacing value. + Segment right value. + Segment left value. + Returns the calculated segment space. + + + + Gets or sets the spacing between the segments across the series in cluster mode. + + + Default value is 0 and its value ranges from 0 to 1. + + + + + Gets or sets the interior (brush) for the selected segment(s). + + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns list of . + + + + + + + + FastCandleBitmapSeries is another version of CandleSeries which uses different technology for rendering line in order to boost performance. + + + It uses WriteableBitmap for rendering; Its advantage is that it will render the series with large quantity of data in a fraction of milliseconds. + + + + <syncfusion:FastCandleBitmapSeries ItemsSource="{Binding Data}" XBindingPath="Year" High="High" Open="Open" Close="Close" Low="Low"> + </syncfusion:FastCandleBitmapSeries> + + + FastCandleBitmapSeries series1 = new FastCandleBitmapSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.High="High"; + series1.Low="Low"; + series1.Open="Open"; + series1.Close="Close"; + chart.Series.Add(series1); + + + + + + + + Serve as base class for Candle, HiLoOpenClose series and its an abstract class. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Constructor + + + + + This method used to get the chart data at a mouse position. + + + + + + + This method used to get the chart data at an index. + + + + + + + Validate the datapoints for segment implementation. + + + + + Validate the datapoints for segment implementation. + + + + + Method used to generate points for financial series. + + + + + Called when ItemsSource property changed. + + old value + new value + + + + Called when binding path chnaged. + + args + + + + + + + + Returns the instance of series. + + object + + + + Gets or sets the property path bind with high value of financial series. + + + + + Gets or sets the property path bind with low value of financial series. + + + + + Gets or sets the property path bind with close value of financial series. + + + + + Gets or sets the interior of the segment that represents the bear value. This is a bindable property. + + + The value. + + + + + Gets or sets the interior of the segment that represents the bull value. This is a bindable property. + + + The value. + + + + + Gets or sets the property path bind with which price need to consider for fluctuation detection. + + + + + Gets or sets the property path bind with open value of financial series. + + + + + Gets or sets OpenValues. + + + + + Gets or sets HighValues. + + + + + Gets or sets LowValues. + + + + + Gets or sets CloseValues. + + + + + Gets or sets Segments property + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when instance created for FastCandleBitmapSeries + + + + + Creates the segments of FastCandleBitmapSeries. + + + + + This method used to get the chart data at an index. + + + + + Method used to set SegmentSelectionBrush to SelectedIndex segment. + + + + + + + + + + Called when pointer or mouse move on chart area. + + Event args + + + + Returns the instance of series. + + object + + + + Method used to calculate the segment spacing. + + Spacing + Right + Left + + + + Gets or sets the spacing between the segments across the series in cluster mode. + + + The value ranges from 0 to 1. + + + + + Gets or sets the interior (brush) for the selected segment(s). + + + The value. + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + Gets a value indicating whether this series is placed side by side. + + + It returns true, if the series is placed side by side [cluster mode]. + + + + + This indicates whether its a bitmap series or not. + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns list of . + + + + + Represents a special kind of column series which uses writeablebitmap for rendering chart points. FastColumnBitmapSeries allows to render a collection with large number of data points. + + + FastColumnBitmapSeries renders large quantity of data in fraction of milliseconds using writeablebitmap. + + + # [MainWindow.xaml](#tab/tabid-1) + + + + + + + + + + + + + + ]]> + # [MainWindow.cs](#tab/tabid-2) + + # [ViewModel.cs](#tab/tabid-3) + Data { get; set; } + + public ViewModel() + { + Data = new ObservableCollection(); + Data.Add(new Model() { XValue = 10, YValue = 100 }); + Data.Add(new Model() { XValue = 20, YValue = 150 }); + Data.Add(new Model() { XValue = 30, YValue = 110 }); + Data.Add(new Model() { XValue = 40, YValue = 230 }); + } + ]]> + *** + + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Identifies the SegmentSpacing dependency property. + + + The identifier for SegmentSpacing dependency property. + + + + + + + + Used to create the segment of . + + + + + Method used to return the hittest series while mouse action. + + + + + + Method used to set SegmentSelectionBrush to SelectedIndex segment. + + new index + old index + + + + + + + Called when pointer or mouse moves on chart area. + + Event args that contains the event data. + + + + Called when property changed. + + ItemsSource old value. + ItemsSource new value + + + + + + Returns the instance of series. + + object + + + + Method used to calculate the segment spacing. + + Segment spacing value. + Segment right value. + Segment left value. + Returns the calculated segment space. + + + + Gets or sets the interior (brush) for the selected segment(s). + + + The value. + + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + + Gets or sets the spacing between the segments across the series in cluster mode. + + + Default value is 0 and its value ranges from 0 to 1. + + + + + + + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns list of . + + + + + FastHiLoOpenCloseBitmapSeries is another version of HiLoOpenCloseSeries which uses different technology for rendering line in order to boost performance. + + + It uses WriteableBitmap for rendering; Its advantage is that it will render the series with large quantity of data in a fraction of milliseconds. + + + + <syncfusion:FastHiLoOpenCloseBitmapSeries ItemsSource="{Binding Data}" XBindingPath="Year" High="High" Open="Open" Close="Close" Low="Low"> + </syncfusion:FastHiLoOpenCloseBitmapSeries> + + + FastHiLoOpenCloseBitmapSeries series1 = new FastHiLoOpenCloseBitmapSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.High="High"; + series1.Low="Low"; + series1.Open="Open"; + series1.Close="Close"; + chart.Series.Add(series1); + + + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Creates the segments of FastHiLoOpenCloseBitmapSeries. + + + + + This method used to get the chart data at an index. + + + + + + + + Method used to set SegmentSelectionBrush to SelectedIndex segment. + + + + + + + Called when pointer or mouse moving on chart area. + + args + + + + Returns the instance of series. + + object + + + + Method used to calculate the segment spacing. + + Spacing + Right + Left + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + Gets or sets the spacing between the segments across the series in cluster mode. + + + The value ranges from 0 to 1. + + + + + Gets or sets the interior (brush) for the selected segment(s). + + + The value. + + + + + Gets a value indicating whether this series is placed side by side. + + + It returns true, if the series is placed side by side [cluster mode]. + + + + + This indicates whether its a bitmap series or not. + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns list of . + + + + + FastHiLoSeries is another version of HiLoSeries which uses different technology for rendering line in order to boost performance. + + + It uses WriteableBitmap for rendering; Its advantage is that it will render the series with large quantity of data in a fraction of milliseconds. + + + + <syncfusion:FastHiLoBitmapSeries ItemsSource="{Binding Data}" XBindingPath="Year" High="High" Low="Low"> + </syncfusion:FastHiLoBitmapSeries> + + + FastHiLoBitmapSeries series1 = new FastHiLoBitmapSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.High="High"; + series1.Low="Low"; + chart.Series.Add(series1); + + + + + + + + Class implementation for RangeSeriesBase + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when instance created for RangeSeriesBase + + + + + This method used to get the chart data at an index. + + + + + + + Validate the datapoints for segment implementation. + + + + + Validate the datapoints for segment implementation. + + + + + Method used generate adornment for range series. + + + + + Called when ItemsSource property changed. + + old value + new value + + + + Called when binding path changed. + + Event args + + + + Returns the instance of series. + + object + + + + Gets or sets the property path to be bound with high value of HiLo series to render it. This is a bindable property. + + + + + Gets or sets the property path to be bind with low value of HiLo series. + + + + + Gets or sets HighValues. + + + + + Gets or sets LowValues. + + + + + Gets or sets Segment property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Creates the segments of FastHiLoSeries. + + + + + This method used to gets the segment pixel positions at data point. + + + + + This method used to get the chart data at a mouse position. + + + + + + + Method used to set SegmentSelectionBrush to SelectedIndex segment. + + + + + + + + + + Returns the instance of series. + + object + + + + Called when pointer moving on chart area. + + Event args + + + + Gets or sets the interior (brush) for the selected segment(s). + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + Gets a value indicating whether this series is placed side by side. + + + It returns true, if the series is placed side by side [cluster mode]. + + + + + This indicates whether its a bitmap series or not. + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns list of . + + + + + FastRangeAreaBitmapSeries is another version of RangeAreaSeries which uses different technology for rendering line in order to boost performance. + + + It uses WriteableBitmap for rendering; Its advantage is that it will render the series with large quantity of data in a fraction of milliseconds. + + + + <syncfusion:FastRangeAreaBitmapSeries ItemsSource="{Binding Data}" XBindingPath="Year" High="High" Low="Low"> + </syncfusion:FastRangeAreaBitmapSeries> + + + FastRangeAreaBitmapSeries series1 = new FastRangeAreaBitmapSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.Low = "Low"; + series1.High="High"; + chart.Series.Add(series1); + + + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Creates the segments of . + + + + + This method used to gets the chart data point at a position. + + The mouse position. + Returns the data point nearest to the mouse position. + + + + This method used to get the chart data index at an co-ordinates + + The point to be passed to get the data point index. + Returns the data point index. + + + + Updates the segment when reset. + + The index on reset. + + + + + + + Method used to set SegmentSelectionBrush to SelectedIndex segment. + + The new index passed. + The old index passed. + + + + Called when ItemsSource property changed. + + The old value passed for the items source. + The new value passed for the items source. + + + + Called when pointer or mouse move on chart area. + + Event args + + + + Returns the instance of series. + + object + + + + Updates the series when the series property changed. + + The Dependency Object + The Event Arguments + + + + Updates the selection index. + + The Dependency Property + The Event Arguments + + + + Adds the created segment to the segment collection. + + + + + Updates the stroke rendering for empty points. + + + + + Gets or sets a value indicating whether to enable the anti aliasing for the bitmap series, to draw smooth edges. + + + + + Gets or sets the interior(brush) for the selected segment(s). + + + The value. + + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + Gets or sets the interior brush for the high value segment. + + + The value. + + + + + Gets or sets the interior brush for the low value segment. + + + The value. + + + + + Used to indicate whether multipleYValues is needed,will be set internally. + + + + + This indicates whether its a bitmap series or not. + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns . + + + + + The property confirms the linearity of this series. + + + Returns true if its linear, otherwise it returns false. + + + + + This property used to confirm whether it is area typed series. + + + Returns true if its area type series, otherwise it returns false. + + + + + Represents a special kind of scatter series which uses writeablebitmap for rendering chart points. FastScatterBitmapSeries allows to render a collection with large number of data points. + + + FastScatterBitmapSeries renders large quantity of data in fraction of milliseconds using writeablebitmap. + + + # [MainWindow.xaml](#tab/tabid-1) + + + + + + + + + + + + + + ]]> + # [MainWindow.cs](#tab/tabid-2) + + # [ViewModel.cs](#tab/tabid-3) + Data { get; set; } + + public ViewModel() + { + Data = new ObservableCollection(); + Data.Add(new Model() { XValue = 10, YValue = 100 }); + Data.Add(new Model() { XValue = 20, YValue = 150 }); + Data.Add(new Model() { XValue = 30, YValue = 110 }); + Data.Add(new Model() { XValue = 40, YValue = 230 }); + } + ]]> + *** + + + + + + + Identifies the ScatterWidth dependency property. + + + The identifier for ScatterWidth dependency property. + + + + + Identifies the ScatterHeight dependency property. + + + The identifier for ScatterHeight dependency property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Identifies the ShapeType dependency property. + + + The identifier for ShapeType dependency property. + + + + + Used to create the segment of . + + + + + Method used to return the hittest series while mouse action. + + + + + + This method used to get the chart data at an index. + + + + + + This method used to gets the chart data point at a position. + + + + + + + Method used to set SegmentSelectionBrush to SelectedIndex segment. + + new index + old index + + + + + + + Invoked when VisibleRange property changed. + + that contains the event data. + + + + Returns the instance of series. + + object + + + + Called when pointer or mouse move on chart area. + + Event args that contains the event data. + + + + Gets or sets a value that specifies the width of the FastScatterBitmap segment. + + + The default value is 3. + + + + + Gets or sets a value that specifies the height of the FastScatterBitmap segment. + + + The default value is 3. + + + + + Gets or sets the interior (brush) for the selected segment(s). + + + The value. + + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + + Gets or sets different types of shapes in a fast scatter bitmap series. + + This property takes fast scatter shape value, and its default shape type is ellipse. + + + Fast scatter bitmap series does not support Custom, HorizontalLine and VerticalLine shapes. + By using the above shapes for fast scatter bitmap series, you can render only the default type, which is ellipse. + + + + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns the list of . + + + + + Represents the fast stacking column elements that use a WriteableBitmap to define their appearance. + + + + <syncfusion:FastStackingColumnBitmapSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:FastStackingColumnBitmapSeries> + + + FastStackingColumnBitmapSeries series1 = new FastStackingColumnBitmapSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + + + + Represents a base class for all stacked chart series in chart. + + + + + The DependencyProperty for property. . + + + + + Returns the stacked value of the series. + + ChartSeries instance + returns StackedYValues + + + + Returns the distinct values of the series XValues. + + returns distinct XValues + + + + Finds the nearest point in ChartSeries relative to the mouse point/touch position. + + The co-ordinate point representing the current mouse point /touch position. + x-value of the nearest point. + y-value of the nearest point + stackedyvalue + + + + This method used to get the segment pixel positions + + + + + Invoked when ItemsSource property changed. + + Old itemssource collection. + New itemssource collection. + + + + + + + + + This method is used to gets the selected data point segment pixel positions + + + + + This method is used to gets the selected data point segment pixel positions + + + + + Return stacked double value from the given index. + + Used to specify the index of yvalues. + Returns the stacked yvalue. + + + + Gets or sets the label to group and stack the similar stacked series types. This is a bindable property. + + + + <syncfusion:StackingColumnSeries GroupingLabel="Group1" ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:StackingColumnSeries> + + + StackingColumnSeries series1 = new StackingColumnSeries(); + series1.GroupingLabel="Group1"; + chart.Series.Add(series1); + + + + + + Gets or sets the start y values collection to render the stacked series. + + + + + Gets or sets the end y values collection to render the stacked series. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Creates the segments of FastStackingColumnBitmapSeries. + + + + + Method used to return the hittest series while mouse action. + + + + + + Method used to set SegmentSelectionBrush to SelectedIndex segment. + + new index + old index + + + + + + + Called when pointer or mouse move on chart area. + + Event args + + + + Called when ItemsSource property changed. + + new value + old value + + + + Returns the instance of series. + + object + + + + Method used to calculate the segment spacing. + + Spacing + Right + Left + + + + Gets or sets the spacing between the segments across the series in cluster mode. + + + The value ranges from 0 to 1. + + + + + Gets or sets the interior(brush) for the selected segment(s). + + + The value. + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + Gets a value indicating whether this series is placed side by side. + + + It returns true, if the series is placed side by side [cluster mode]. + + + + + This indicates whether its a bitmap series or not. + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns the list of . + + + + + + + + + + + Identifies the EnableAntiAliasing dependency property. + + + The identifier for EnableAntiAliasing dependency property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Used to create the segment of . + + + + + Add the into the Segments collection. + + The xValues. + The yValues. + + + + This method used to gets the chart data point at a position. + + + + + + + + + + Method used to set SegmentSelectionBrush to SelectedIndex segment. + + new index + old index + + + + Called when pointer or mouse move on chart area. + + Event args that contains the event data. + + + + Invoked when VisibleRange property changed. + + that contains the event data. + + + + Returns the instance of series. + + object + + + + Gets or sets a value that indicates whether to enable anti-aliasing for , to draw smooth edges. + + + Default value is false. + + + + + Gets or sets the interior(brush) for the selected segment(s). + + + The value. + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + + + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns the list of . + + + + + + + + + + Represents a base class for funnel and pyramid series. This type of chart is triangle with lines dividing it into sections to illustrate numerical proportions.. + + + + + Identifies the GapRatio dependency property. + + + The identifier for GapRatio dependency property. + + + + + Identifies the ExplodeOffset dependency property. + + + The identifier for ExplodeOffset dependency property. + + + + + Returns the instance of series. + + object + + + + Gets or sets the ratio of distance between the funnel or pyramid segment blocks. + + Default value is 0 and its value ranges from 0 to 1. + + # [MainWindow.xaml](#tab/tabid-1) + + + + + + + + + + ]]> + # [MainWindow.cs](#tab/tabid-2) + + # [ViewModel.cs](#tab/tabid-3) + Data { get; set; } + + public ViewModel() + { + Data = new ObservableCollection(); + Data.Add(new Model() { XValue = 10, YValue = 100 }); + Data.Add(new Model() { XValue = 20, YValue = 150 }); + Data.Add(new Model() { XValue = 30, YValue = 110 }); + Data.Add(new Model() { XValue = 40, YValue = 230 }); + } + ]]> + *** + + Its used to provide the spacing between the segments. + + + + Gets or sets the distance where the segment is exploded from its origination positions when ExplodeAll is true or ExplodeIndex value is given. + + Default value is 40. + + + + Identifies the FunnelMode dependency property. + + + The identifier for FunnelMode dependency property. + + + + + Identifies the MinWidth dependency property. + + + The identifier for MinWidth dependency property. + + + + + Initializes a new instance of the class. + + + + + Creates the segments of FunnelSeries. + + + + + + + + + + + Creates the adornment of FunnelSeries. + + Series instance. + Used to specify the xvalue. + Used to specify the yvalue. + Used to specify the height. + Used to specify the yposition. + returns + + + + Method implementation for ExplodeIndex. + + Exploded segment index. + + + + Returns the instance of series. + + object + + + + To calculate the segments if the pyramid mode is ValueIsHeight. + + + + + To calculate the segments if the pyramid mode is valueisWidth. + + + + + Gets or sets a value indicating whether the y value should interpret the height or width of the funnel block. + + + One of the enumeration values. The default value is . + + + + + Gets or sets the minimum width for the funnel block. + + Default value is 40. + + + + Represents a base class for polar, radar series in chart. + + + + + Identifies the YBindingPath dependency property. + + + The identifier for YBindingPath dependency property. + + + + + Identifies the IsClosed dependency property. + + + The identifier for IsClosed dependency property. + + + + + Identifies the DrawType dependency property. + + + The identifier for DrawType dependency property. + + + + + Identifies the XAxis dependency property. + + + The identifier for XAxis dependency property. + + + + + Identifies the YAxis dependency property. + + + The identifier for YAxis dependency property. + + + + + Identifies the StrokeDashArray dependency property. + + + The identifier for StrokeDashArray dependency property. + + + + + Initializes a new instance of the PolarRadarSeriesBase class. + + + + + Finds the nearest point in ChartSeries relative to the mouse point/touch position. + + The co-ordinate point representing the current mouse point /touch position. + x-value of the nearest point. + y-value of the nearest point. + The stacked y value. + + + + Validate the datapoints for segment implementation. + + + + + Validate the datapoints for segment implementation. + + + + + Method used to generate the data points for Polar and Radar series. + + + + + Invoked when YAxis property changed. + + Old chartaxis value. + New chartaxis value. + + + + Invoked when XAxis property changed. + + Old chartaxis value. + New chartaxis value. + + + + + + + Invoked when XBindingPath or YBindingPath properties changed. + + The that contains the event data + + + + + + Timer Tick Handler for closing the Tooltip + + + + + + + Gets or sets the property name that associates the secondary axis with a property in the itemssource. + + + The string that represents the property name for secondary axis. The default value is null. + + + # [MainWindow.xaml](#tab/tabid-1) + + + + + + + + + + + + + + ]]> + # [MainWindow.cs](#tab/tabid-2) + + *** + + + + + Gets or sets a value that indicates whether area path should be closed or opened for Polar/Radar series. + + + If its true, Area stroke will be closed; otherwise stroke will be applied on top of the series only. + + + + + Gets or sets the type of series to be drawn for Radar or Polar series. + + One of the enumeration values. The default value is . + + + + Gets the series x-axis start and end range values. + + A DoubleRange specifies the start and end range of x-axis. + + + + Gets the series y-axis start and end range values. + + A DoubleRange specifies the start and end range of y-axis. + + + + Gets or sets the multiple axis is not applicable for Radar/Polar series. + + It takes the value. + + + + Gets or sets the multiple axis is not applicable for Radar/Polar series. + + It takes the value. + + + + Gets or sets the stroke dash array for line to customize the appearance of and . + + + It takes value and default value is null. + + + # [MainWindow.xaml](#tab/tabid-1) + + + + + + + + + + + + + + ]]> + # [MainWindow.cs](#tab/tabid-2) + + *** + + + + + + + + + + + Gets or sets YValues to render the series. + + It takes the collection of double values. + + + + Gets or sets the chart segment. + + It takes the chart segment value. + + + + Represents a series which displays data in the form of a triangle with lines dividing it into sections and each section has a different width. Depending on the Y coordinates, this width indicates a level of hierarchy among other categories. + + + It is a single series, representing data as portions of 100% and does not use any axes. + + + # [MainWindow.xaml](#tab/tabid-1) + + + + + + + + + + ]]> + # [MainWindow.cs](#tab/tabid-2) + + # [ViewModel.cs](#tab/tabid-3) + Data { get; set; } + + public ViewModel() + { + Data = new ObservableCollection(); + Data.Add(new Model() { XValue = 10, YValue = 100 }); + Data.Add(new Model() { XValue = 20, YValue = 150 }); + Data.Add(new Model() { XValue = 30, YValue = 110 }); + Data.Add(new Model() { XValue = 40, YValue = 230 }); + } + ]]> + *** + + + + + + + + Identifies the PyramidMode dependency property. + + + The identifier for PyramidMode dependency property. + + + + + Initializes a new instance of the class. + + + + + To get the SurfaceHeight for PyramidSeries. + + + + + Creates the segment of PyramidSeries. + + + + + + + + + + + Creates the adornment of PyramidSeries. + + + + + Method implementation for ExplodeIndex. + + Exploded segment index. + + + + Returns the instance of series. + + object + + + + To calculate the segments if the pyramid mode is linear + + + + + To calculate the segments if the pyramid mode is surface + + + + + Gets or sets a value indicating whether the y value should interpret the length or surface of the pyramid block. + + + One of the enumeration values. The default value is + + + + + Serves as base class for range series segment dragging. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Gets the snap to point. + + The actual value. + + + + + Updates the drag spliter high. + + The rect. + + + + Updates the drag spliter low. + + The rect. + + + + Method implementation for DragStart. + + point + object + + + + Method implementation for DragDelta. + + point + object + + + + Method implementation for DragEnd. + + point + object + + + + Method implementation for DragEnter. + + point + object + + + + Method implementation for DragExit. + + point + object + + + + Called when mouse moved. + + Event args + + + + Called when mouse left button down. + + Event args + + + + Called when mouse left button up. + + Event args + + + + Called when mouse entered. + + Event args + + + + Called when mouse leave. + + Event args + + + + Updates the under laying model. + + The path. + The index. + The updated data. + + + + Method used to raise PreviewDragEnd event. + + Event args + + + + Method used to raise DragStart event. + + Event args + + + + Method used to raise DragEnd event. + + Event args + + + + Method used to raise DragDelta event. + + Event args + + + + Method used to raise SegmentEnter event. + + Event args + + + + Resets the segment drag tooltip information. + + + + + Occurs when [segment enter]. + + + + + Occurs when [drag start]. + + + + + Occurs when [drag delta]. + + + + + Occurs when [drag end]. + + + + + Occurs when [preview drag end].. + + + + + Gets or sets a value indicating whether to enable the ToolTip while dragging segment. + + + + + Gets or sets the custom template for the dragging tooltip. + + + + + + + + Gets or sets the round off decimal places for the ToolTip value. + + + + + Gets or sets the segment dropping mechanism as per requirement. + + + + + + + + Gets or sets a value indicating whether to enable the segment dragging for this series. + + + + + Gets or sets a value indicating whether to update the underlying source value while dragging. + + + + + Gets or sets the key modifier to cancel the dragging. + + + + + + + + Gets or sets the segment index. + + + + + Gets or sets a value for drag spliter high value. + + + + + Gets or sets a value for drag spliter low value. + + + + + Gets or sets a dragged value. + + + + + Gets or sets the current High value. + + + + + Gets or sets the current Low value. + + + + + Gets or sets the new High value. + + + + + Gets or sets the new High value. + + + + + Gets or sets a value indicating whether to disable/revert the dragging before completing the dragging. + + + + + SplineRangeAreaSeries connects it data points using a smooth curve with the areas between the high value and low value are filled in. + + + + <syncfusion:SplineRangeAreaSeries ItemsSource="{Binding Data}" XBindingPath="Year" High="High" Low="Low"> + </syncfusion:SplineRangeAreaSeries> + + + SplineRangeAreaSeries series1 = new SplineRangeAreaSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.High = "High"; + series1.Low = "Low"; + chart.Series.Add(series1); + + + + + + + + + + RangeAreaSeries displays data points as a set of continuous lines with the areas between the high value and low value are filled in. + + + + <syncfusion:RangeAreaSeries ItemsSource="{Binding Data}" XBindingPath="Year" High="High" Low="Low"> + </syncfusion:RangeAreaSeries> + + + RangeAreaSeries series1 = new RangeAreaSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.High = "High"; + series1.Low = "Low"; + chart.Series.Add(series1); + + + + + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Creates the segments of RangeAreaSeries. + + + + + This method used to gets the chart data point at a position. + + + + + + + Method used to set SegmentSelectionBrush to SelectedIndex segment. + + new index + old index + + + + + + + Returns the instance of series. + + object + + + + Used to update the series tooltip when pointer moved on series. + + PointerRoutedEventArgs + + + + Gets the cross point. + + The P11 value. + The P12 value. + The P21 value. + The P22 value. + The CrossPoint + + + + Gets or sets the interior(brush) for the selected segment(s). + + + The value. + + + + + Gets or sets the interior brush that specifies the color for the high value segment. This is a bindable property. + + + The value. + + + + + Gets or sets the interior brush that specifies the color for the low value segment. This is a bindable property. + + + The value. + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + The property confirms the linearity of this series. + + + Returns true if its linear, otherwise it returns false. + + + + + This property used to confirm whether it is area typed series. + + + Returns true if its linear, otherwise it returns false. + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns the list of . + + + + + Using a DependencyProperty as the backing store for SplineType. This enables animation, styling, binding, etc... + + + + + Creates the segments of SplineRangeAreaSeries. + + + + + + + + Add the into the Segments collection. + + The AreaPoints. + + + + Method implementation for NaturalSpline + + + + + + + + Method implementation for GetBezierControlPoints + + + + + + + + + + + Gets or sets SplineType enum value which indicates the spline series type. + + + + + StackingArea100Series resembles , but the cumulative portion of each stacked element always totals to 100%. + + + + <syncfusion:StackingArea100Series ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:StackingArea100Series> + + + StackingArea100Series series1 = new StackingArea100Series(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + StackingAreaSeries is typically preferred in cases of multiple series of type . + Each series is stacked vertically one above the other. + + + + <syncfusion:StackingAreaSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:StackingAreaSeries> + + + StackingAreaSeries series1 = new StackingAreaSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + + + + + Identifies the IsClosed dependency property. + + + The identifier for IsClosed dependency property. + + + + + Identifies the SelectedIndex dependency property. + + + The identifier for SelectedIndex dependency property. + + + + + Identifies the SegmentSelectionBrush dependency property. + + + The identifier for SegmentSelectionBrush dependency property. + + + + + Creates the segments of . + + + + + This method used to gets the chart data point at a position. + + + + + + + Method used to set SegmentSelectionBrush to SelectedIndex segment. + + Used to specify the new selected index. + Used to specify the old selected index. + + + + + + + Invoked when ItemsSource property changed. + + Old itemssource collection. + New itemssource collection. + + + + + + Returns the instance of series. + + object + + + + Used to update the series tooltip when pointer moved on series. + + MouseEventArgs + + + + Gets or sets a value that indicates whether area path should be closed or opened for . + + + If its true, Area stroke will be closed; otherwise stroke will be applied on top of the series only. Default value is true. + + + + + Gets or sets the index of the first segment in the current selection or returns negative one (-1) if the selection is empty. + + + The index of first segment in the current selection. The default value is negative one (-1). + + + + + + Gets or sets the interior(brush) for the selected segment(s). + + + The value. + + + + + The property confirms the linearity of this series. + + + Returns true if its linear, otherwise it returns false. + + + + + This property used to confirm whether it is area typed series. + + + Returns true if its linear, otherwise it returns false. + + + + + Gets the list of selected segments in this series, when we enable the multiple selection. + + + It returns the list of . + + + + + + + + Creates the segments of . + + + + + Returns the instance of series. + + object + + + + StackingBar100Series resembles , but the cumulative portion of each stacked element always totals to 100%. + + + + <syncfusion:StackingBar100Series ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:StackingBar100Series> + + + StackingBar100Series series1 = new StackingBar100Series(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + StackingBarSeries is typically preferred in cases of multiple series of type . + Each series is stacked horizontally side by side to each other. + + + + <syncfusion:StackingBarSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:StackingBarSeries> + + + StackingBarSeries series1 = new StackingBarSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + + + + + Identifies the SegmentSelectionBrush dependency property. + + + The identifier for SegmentSelectionBrush dependency property. + + + + + Identifies the SegmentSpacing dependency property. + + + The identifier for SegmentSpacing dependency property. + + + + + Identifies the SelectedIndex dependency property. + + + The identifier for SelectedIndex dependency property. + + + + + Identifies the CustomTemplate dependency property. + + + The identifier for CustomTemplate dependency property. + + + + + Initializes a new instance of the StackingBarSeries. + + + + + + + + Creates the segments of . + + + + + + + + Returns the instance of series. + + object + + + + Method used to calculate the segment spacing. + + Segment spacing + Segment right value + Segment left value + Returns the segment spacing value. + + + + Gets or sets the interior(brush) for the selected segment(s). + + + The value. + + + + + Gets or sets the spacing between the segments across the series in cluster mode. + + + The value ranges from 0 to 1 and its default value is 0. + + + + + Gets or sets the index of the first segment in the current selection or returns negative one (-1) if the selection is empty. + + + The index of first segment in the current selection. The default value is negative one (-1). + + + + + + Gets or sets the DataTemplate used to customize the shape appearence. + + + The template that specifies shape inside canvas. The default is null. + + + # [MainWindow.xaml](#tab/tabid-1) + + + + + + + + + + + + + + + + + + + + + + ]]> + *** + + + + + Gets a value indicating whether this series is placed side by side. + + + It returns true, if the series is placed side by side [cluster mode]. + + + + + + + + Creates the segments of . + + + + + Returns the instance of series. + + object + + + + StackingColumn100Series resembles , but the cumulative portion of each stacked element always totals to 100%. + + + + <syncfusion:StackingColumn100Series ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:StackingColumn100Series> + + + StackingColumn100Series series1 = new StackingColumn100Series(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + StackingColumnSeries is typically preferred in cases of multiple series of type . + Each series is stacked vertically one above the other. + + + + <syncfusion:StackingColumnSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:StackingColumnSeries> + + + StackingColumnSeries series1 = new StackingColumnSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + + + + + Identifies the SegmentSelectionBrush dependency property. + + + The identifier for SegmentSelectionBrush dependency property. + + + + + Identifies the SegmentSpacing dependency property. + + + The identifier for SegmentSpacing dependency property. + + + + + Identifies the SelectedIndex dependency property. + + + The identifier for SelectedIndex dependency property. + + + + + Identifies the CustomTemplate dependency property. + + + The identifier for CustomTemplate dependency property. + + + + + + + + Creates the segments of . + + + + + + + + Returns the instance of series. + + object + + + + Method used to calculate the segment spacing. + + Segment spacing + Segment right value + Segment left value + Returns the segment spacing value. + + + + Gets or sets the interior(brush) for the selected segment(s). + + + The value. + + + + + Gets or sets the spacing between the segments across the series in cluster mode. + + + The value ranges from 0 to 1 and its default value is 0. + + + + + Gets or sets the index of the first segment in the current selection or returns negative one (-1) if the selection is empty. + + + The index of first segment in the current selection. The default value is negative one (-1). + + + + + + Gets or sets the DataTemplate used to customize the shape appearence. + + + The template that specifies shape inside canvas. The default is null. + + + # [MainWindow.xaml](#tab/tabid-1) + + + + + + + + + + + + + + + + + + + + + + ]]> + *** + + + + + Gets a value indicating whether this series is placed side by side. + + + It returns true, if the series is placed side by side [cluster mode]. + + + + + + + + Creates the segments of . + + + + + Returns the instance of series. + + object + + + + StackingLine100Series resembles , but the cumulative portion of each stacked element always totals to 100%. + + + + <syncfusion:StackingLine100Series ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:StackingLine100Series> + + + StackingLine100Series series1 = new StackingLine100Series(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + StackingLineSeries is typically preferred in cases of multiple series of type . + Each series is stacked horizontal one above the other. + + + + <syncfusion:StackingLineSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:StackingLineSeries> + + + StackingLineSeries series1 = new StackingLineSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + + + + Identifies the SelectedIndex dependency property. + + + The identifier for SelectedIndex dependency property. + + + + + Identifies the SegmentSelectionBrush dependency property. + + + The identifier for SegmentSelectionBrush dependency property. + + + + + Identifies the StrokeDashArray dependency property. + + + The identifier for StrokeDashArray dependency property. + + + + + + + + + + + Creates the segments of . + + + + + This method used to gets the chart data point at a position. + + Point + + + + + Returns the instance of series. + + object + + + + Add the into the Segments collection. + + The values. + The actualData. + + + + Gets or sets the index of the first segment in the current selection or returns negative one (-1) if the selection is empty. + + + The index of first segment in the current selection. The default value is negative one (-1). + + + + + + Gets or sets the interior(brush) for the selected segment(s). + + + The value. + + + + + Gets or sets the stroke dash array for line to customize the appearance of . + + + It takes value and the default value is null. + + + # [MainWindow.xaml](#tab/tabid-1) + + + + + + + + + + + + + + + ]]> + # [MainWindow.cs](#tab/tabid-2) + + *** + + + + + + + + Creates the segments of . + + + + + Returns the instance of series. + + object + + + + Class implementation for StackingValues. + + + + + Gets or sets StartValues of the series. + + + + + Gets or sets EndValues of the series. + + + + + StepAreaSeries connects its data points,using a continuous line with its underlying areas being filled in. + + + + <syncfusion:StepAreaSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:StepAreaSeries> + + + StepAreaSeries series1 = new StepAreaSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + + + + + The DependencyProperty for property. . + + + + + The DependencyProperty for property. . + + + + + The DependencyProperty for property. . + + + + + Creates the segments of StepAreaSeries. + + + + + This method used to gets the chart data point at a position. + + + + + + + Method used to set SegmentSelectionBrush to SelectedIndex segment. + + new index + old index + + + + + + + Returns the instance of series. + + object + + + + Called when pointer or mouse moving on chart area. + + Event args + + + + Gets or sets a value indicating whether area path should be closed or opened. + + + If its true, Area stroke will be closed; otherwise stroke will be applied on top of the series only. + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + Gets or sets the interior(brush) for the selected segment(s). + + + The value. + + + + + Gets the value which confirms whether this series in linearity. + + + Returns true if its linear, otherwise it returns false. + + + + + Gets the value which confirms whether it is area typed series. + + + Returns true if its linear, otherwise it returns false. + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns the list of . + + + + + StepLineSeries displays its data points using line segments. + + + + <syncfusion:StepLineSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:StepLineSeries> + + + StepLineSeries series1 = new StepLineSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + + The DependencyProperty for property. . + + + + + The DependencyProperty for property. . + + + + + The DependencyProperty for property. . + + + + + Creates the segments of StepLineSeries. + + + + + This method used to gets the chart data point at a position. + + + + + + + Method used to set SegmentSelectionBrush to selectedindex chartsegment. + + new index + old index + + + + + + + Called when pointer or mouse moving on chart area. + + Event args + + + + Returns the instance of series. + + object + + + + Add the into the Segments collection. + + The values. + + + + Removes the unused segments + + + + + Gets or sets the custom template for this series. + + + + + + This example, we are using . + + + + <syncfusion:ScatterSeries ItemsSource="{Binding Demands}" XBindingPath="Demand" ScatterHeight="40" + YBindingPath="Year2010" ScatterWidth="40"> + <syncfusion:ScatterSeries.CustomTemplate> + <DataTemplate> + <Canvas> + <Path Data="M20.125,32l0.5,12.375L10.3125,12.375L10.3125,0.5L29.9375,0.5L29.9375,12.375L39.75,12.375Z" Stretch="Fill" + Fill="{Binding Interior}" Height="{Binding ScatterHeight}" Width="{Binding ScatterWidth}" + Canvas.Left="{Binding RectX}" Canvas.Top="{Binding RectY}"/> + </Canvas> + </DataTemplate> + </syncfusion:ScatterSeries.CustomTemplate> + </syncfusion:ScatterSeries> + + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + Gets or sets the interior(brush) for the selected segment(s). + + + The value. + + + + + Gets the value which confirms whether this series in linearity. + + + Returns true if its linear, otherwise it returns false. + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns the list of . + + + + + WaterfallSeries displays its positive and negative data points using a set of bars. + + + + <syncfusion:WaterfallSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:WaterfallSeries> + + + WaterfallSeries series1 = new WaterfallSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + + + Using a DependencyProperty as the backing store for AllowAutoSum. This enables animation, styling, binding, etc... + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Using a DependencyProperty as the backing store for ShowConnector. This enables animation, styling, binding, etc... + + + + + Using a DependencyProperty as the backing store for SummaryBindingPath. This enables animation, styling, binding, etc... + + + + + Using a DependencyProperty as the backing store for ConnectorLineStyle. This enables animation, styling, binding, etc... + + + + + Using a DependencyProperty as the backing store for NegativeSegmentBrush. This enables animation, styling, binding, etc... + + + + + Using a DependencyProperty as the backing store for SummarySegmentBrush. This enables animation, styling, binding, etc... + + + + + Creates the segments of WaterfallSeries. + + + + + Occurs when segment created for waterfall series. + + WaterfallSegmentCreatedEventArgs + + + + Method for Generate Points for XYDataSeries. + + + + + + + + Called when ItemsSource property changed. + + old value + new value + + + + Method implementation for set points to given index. + + index + object + bool + + + + Returns the instance of series. + + object + + + + Method used to calculate the segment spacing. + + Spacing + Right + Left + + + + Method used to update the segment and adornment interior color. + + + + + + Event raised while the segment have created. + + + + + Gets or sets a value indicating whether to auto sum. + + + + + Gets or sets the interior (brush) for the selected segment(s). + + + The value. + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + Gets or sets the spacing between the segments across the series in cluster mode. + + + The value ranges from 0 to 1. + + + + + Gets or sets a value indicating whether the segments connector line is visible. + + + + + Gets or sets string that indicates sum segment of series. + + + + + Gets or sets the style value that indicates the segments connector line visual representation. + + + + + Gets or sets the brush value that indicates the interior color of negative segment. + + + + + Gets or sets the brush value that indicates the consolidated segment's interior. + + + + + Gets or sets the y values collection. + + + + + Gets a value indicating whether this series is placed side by side. + + + It returns true, if the series is placed side by side [cluster mode]. + + + + + Handler implementation for waterfall Segment created event. + + + + + Sets the bool value, which used to identify the corresponding segment is sum segment or not. + + + + + Gets the corresponding created segment. + + + + + Gets the corresponding created segment's index. + + + + + Represents EventArgs that a cancel option for abort the operation. + + + + + + Gets or sets double value to delta. + + + + + Gets or sets a value indicating whether to cancel. + + + + + Represents a events args that contain event data, and provides a value to use for events that do not include event data. + + + + + + Gets or sets a value indicating whether empty point. + + + + + Gets or sets a value indicating whether to cancel. + + + + + Gets or sets x value. + + + + + Represents a events args that contain event data, and provides a value to use for events that do not include event data. + + + + + + Gets or sets y value. + + + + + Gets or sets new value. + + + + + Represents a ChartDragPoint that includes a current and existing value. + + + + + + Represents a data point that used to display the drag data point to user. + + + + + + Called when Property changed + + + + + + Gets or sets the font family for dragging tooltip text. + + + + + Gets or sets the font size for dragging tooltip text. + + + + + Gets or sets the font style for dragging tooltip text. + + + + + Gets or sets the Brush for dragging tooltip text. + + + + + Gets or sets brush. + + + + + Gets or sets chart segment. + + + + + Gets or sets the double value to delta. + + + + + Gets or sets a value indicating whether to Enable or disable IsNegative. + + + + + Gets or sets the points to screen co-ordinates. + + + + + Gets or sets the template for prefix label. + + + + + + + + Gets or sets the template for postfix label. + + + + + Gets or sets the template for prefix x label. + + + + + + + + Gets or sets the template for postfix x label. + + + + + Gets or sets new value. + + + + + Gets or sets new x value. + + + + + Gets or sets base value. + + + + + Gets or sets base y value. + + + + + Gets or sets new y value. + + + + + Gets or sets chart segment. + + + + + Gets or sets base y value. + + + + + Gets or sets new y value. + + + + + Defines the ChartXyDragStart event arguments. + + + + + Gets or sets base y value. + + + + + Defines the XyDeltaDrag event arguments. + + + + + Gets or sets base x value. + + + + + Gets or sets new x value. + + + + + Gets or sets x value to delta. + + + + + Defines the ChartXyDragEnd event arguments. + + + + + Gets or sets base x value. + + + + + Gets or sets new x value. + + + + + Represents the class for configuring dragging tooltip Style. + + + + + Gets or sets the font family for dragging tooltip text. + + + + + Gets or sets the font size for dragging tooltip text. + + + + + Gets or sets the font style for dragging tooltip text. + + + + + Gets or sets the Brush for dragging tooltip text. + + + + + Gets or sets the background Brush for dragging tooltip. + + + + + XySeriesDraggingBase is abstract class which is used to allow, drag a chart series in chart area. + + + + + + The DependencyProperty for property. . + + + + + Called when mouse move. + + Event args + + + + Called when mouse left button down. + + Event args + + + + Called when mouse left button up. + + Event args + + + + Called when mouse enter. + + Event args + + + + Called when mouse leave. + + Event args + + + + Resets the dragging elements. + + The reason. + if set to true, DragEndEvent will raise. + + + + Called when dragging series. + + mouse position + original source + + + + Called when dragging entered. + + mouse position + original source + + + + Called when dragging exit. + + mouse position + original source + + + + Method used to update the underlying model. + + path + updated datas + + + + Gets or sets a value indicating whether to enable the series dragging. We can drag the series, if its true. + + + + + Gets or sets base y value. + + + + + Represents a ChartDragPoint that includes a offsety value. + + + + + + Gets or sets value of y offset + + + + + Gets or sets x value + + + + + Gets or sets y value + + + + + Gets or sets a value indicating whether to Enable or disable dragging + + + + + Gets or sets the segment index + + + + + Provides arrow line rendering support, which includes a positioning attributes. + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Draw a arrow line. + + Return the of arrow line. + + + + Vector and matrix multiplication + + The Point + The Matrix + Returns the multiplied result. + + + + Matrixes multiplication + + The First Matrix + The Second Matrix + Returns the multiplied result matrix. + + + + Vector Normalization. + + The vector Point + The Length + Returns the normalized point. + + + + Calculates the arrow points. + + The Path Figure + The First Point + The Second Point + Returns the for the arrow. + + + + Gets or sets the x-coordinate of the ArrowLine start point. + + + + + Gets or sets the y-coordinate of the ArrowLine start point. + + + + + Gets or sets the x-coordinate of the ArrowLine end point. + + + + + Gets or sets the y-coordinate of the ArrowLine end point. + + + + + ChartToolBar class implementation that represents a ItemsControl. + + + + + + Represents the class. + + + + + Initializes a new instance of the class. + + + + + Changes the background color. + + + + + Change the ItemsPanel orientation + + + + + Set Items for ToolBar. + + + + + Updates the chart tool bar on mouse left button down. + + The Event Arguments + + + + Updates the when loaded. + + The Sender + The Event Arguments. + + + + Gets or sets the . + + + + + ChartToolBarItem class implementation. + + + + + class implementation. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Updates the when it's property changes. + + The Property Name + + + + Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the WPF infrastructure. + + The type-specific System.Windows.Automation.Peers.AutomationPeer implementation. + + + + Updates interactive behaviors when mouse moved. + + The Event Arguments + + + + Updates interactive behaviors when mouse leaves. + + The Event Arguments + + + + Updates the when the size changed. + + The Dependency Object + The Event Arguments + + + + Binds the tool bar item. + + The Required Source. + + + + Schedule the update. + + + + + Updates the toolbar position. + + + + + Gets or sets the icon background + + + + + Gets or sets the toolbar color. + + + + + Gets or sets the toolbar disable color. + + + + + Gets or sets the Height for the ZoomingToolbar items. + + + + + Gets or sets the Width for the ZoomingToolbar items. + + + + + Gets or sets the Margin for the ZoomingToolbar items. + + + + + Gets or sets the . + + + + + class Implementation. + + + + + Initializes a new instance of the class. + + + + + Updates the icon. + + The Event Arguments + + + + class Implementation. + + + + + Initializes a new instance of the class. + + + + + Updates the icon. + + The Event Arguments + + + + class Implementation. + + + + + Initializes a new instance of the class. + + + + + Updates the icon. + + The Event Arguments + + + + class Implementation. + + + + + Initializes a new instance of the class. + + + + + Updates the icon. + + The Event Arguments + + + + class Implementation. + + + + + Initializes a new instance of the class. + + + + + Updates the icon. + + The Event Arguments + + + + Represents a dependency object that defines the style for axis label. + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Updates the label bar style on it's property change. + + The Dependency Object + The Event Arguments + + + + Gets or sets the HorizontalAlignment of the labels inside the label bar. + + + + + Gets or sets the Background the label bar. + + + + + Gets or sets the color of the labels inside the selected region. + + + + + Gets or sets the style for labels in the selected region. + + + + + Gets or sets the position which is used to place the upper and lower labels inside or outside of the label bar. + + + + + Gets or sets the date time range navigator. + + + + + Represents the class. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Gets or sets the font family for label + + + + + Gets or sets the foreground color for label + + + + + Gets or sets the font size + + + + + Represents the class. + + + + + The DependencyProperty for property. + + + + + Get the row + + UI Element + Return the row index. + + + + Set the row + + UI Element + The Value + + + + Measures the children of the panel. + + The Available Size + Returns the measure size. + + + + Arranges the children of the panel. + + The Final Size + Returns the arrange size. + + + + Gets or sets the range navigator rows + + + + + Represents the class. + + + + + Initializes a new instance of the class. + + + + + Represents the class. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Measures the + + The Size + The Row Index + The Row Height + + + + Arranges the + + The Available Size + The Top + + + + Gets the row top value + + + + + Gets or sets height of this row. + + + + + Gets or sets unit of the value specified in Height. + + + + + Gets or sets thickness of the border. + + + + + Gets or sets border stroke. + + + The value. + + + + + Gets or sets the . + + + + + Represents the class. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Applied the required templates for the control. + + + + + Applies the required orientation template on orientation changed. + + The Event Arguments + + + + Updates the on range value changed. + + + + + Measures the control. + + The Available Size + Returns the measure size. + + + + Arranges the elements in the control. + + The Final Size + Returns the arrange size. + + + + Updates the scroll bar when the thumb is dragged. + + The Sender + The Event Arguments + + + + Updates the scroll bar on far hand dragged. + + The Sender Object + The Event Arguments + + + + Updates the scroll bar on near hand dragged. + + The Sender Object + The Event Arguments + + + + Updates the on it's value change. + + + + + Updates the on orientation changed. + + The Dependency Object + The Event Arguments + + + + Updates the on orientation changed. + + The Dependency Object + The Event Arguments + + + + Updates the on scroll button visibility changed. + + The Dependency Object + The Event Arguments + + + + Applies the orientation templates. + + + + + Updates the on small increase click. + + The Object + The Event Arguments + + + + Updates the on small decrease click. + + The Sender Object + The Event Arguments + + + + Updates the on large decrease click. + + The Sender Object + The Event Arguments + + + + Updates the on large increase click. + + The Sender Object + The Event Arguments + + + + Calculates the thumbs sizes. + + + + + Calculates the thumbs minimum and maximum sizes. + + + + + Calculates the ranges when thumbs are dragged. + + The Start Range + The End Range + + + + Calculates the minimum and the maximum range. + + + + + Calculates the large thumb size. + + + + + Calculates the range difference. + + + + + Calculates the range when is clicked at a range. + + The Start Change + The End Change + + + + Calculates the thumb size. + + + + + Gets or sets the Orientation for the Scroll Bar + + + + + Gets or sets Maximum Value for Scroll Bar + + + + + Gets or sets Minimum Value for Scroll Bar + + + + + Gets or sets ViewSizePort Value for Scroll Bar + + + + + Gets or sets SmallChange Value for Scroll Bar Thumb Change When the Small Increase and Decrease Button is Clicked. + + + + + Gets or sets LargeChange Value for Scroll Bar Thumb Change When the Large Increase and Decrease Button is Clicked. + + + + + Gets or sets a value that determines how far the scroll content is scaled. + + + + + Gets or sets RangeStart Value for Scroll Bar. + + + + + Gets or sets RangeEnd Value for Scroll Bar. + + + + + Gets or sets the visibility of scroll buttons. + + + + + Gets or sets a value indicating whether to EnableTouchMode. + + + + + Gets the resizable thumb size. + + + + + Gets the available size. + + + + + Gets the track size. + + + + + Gets or sets a value indicating whether the value changed is triggered. + + + + + Gets or sets the near hand. + + + + + Gets or sets the far hand. + + + + + Gets or sets the middle thumb. + + + + + Gets or sets the small decrease. + + + + + Gets or sets the large decrease. + + + + + Gets or sets the large increase. + + + + + Gets or sets the small increase. + + + + + Override the ResizableScrollBar for Range navigator thumb selector + + + + + The DependencyProperty for property. + + + + + Gets or sets the overlay brush color + + + The value. + + + + + Represents the class. + + + + + Initializes a new instance of the class. + + + + + Changes the view. + + + + + Maps the actual value to pixels. + + + + + Applies the templates for resizer. + + + + + Updates the on drag completed. + + The Sender Object + The Event Arguments + + + + Checks the co-ordinate value. + + + + + Updates the resizer bounds on resizing. + + The Horizontal Changed Value + The Vertical Changed Value. + Is Left Change + Is Top Change + + + + Drag delta operations for the top resizing. + + The Sender Object + The Drag Delta Event Arguments + + + + Maps the co-ordinates values to points. + + + + + Drag delta operations for the top middle resizing. + + The Sender Object + The Drag Delta Event Arguments + + + + Drag delta operations for the top left resizing. + + The Sender Object + The Drag Delta Event Arguments + + + + Drag delta operations for the middle right resizing. + + The Sender Object + The Drag Delta Event Arguments + + + + Drag delta operations for the middle left resizing. + + The Sender Object + The Drag Delta Event Arguments + + + + Drag delta operations for the bottom right resizing. + + The Sender Object + The Drag Delta Event Arguments + + + + Drag delta operations for the bottom middle resizing. + + The Sender Object + The Drag Delta Event Arguments + + + + Drag delta operations for the bottom left resizing. + + The Sender Object + The Drag Delta Event Arguments + + + + Gets or sets the annotation resizer. + + + + + Gets the annotation resizer x axis. + + + + + Gets the annotation resizer y axis. + + + + + Gets or sets the actual x1 value. + + + + + Gets or sets the actual x2 value. + + + + + Gets or sets the actual y1 value. + + + + + Gets or sets the actual y2 value. + + + + + Represents the class. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Serialize the navigator with the given file name. + + The File Name + + + + Serialize the navigator with the given file stream. + + The Stream + + + + Serialize the navigator. + + + + + Deserialize the navigator with the given stream. + + The Stream + Returns the root object + + + + Deserialize the navigator with the given file name. + + The File Name. + Returns the root object. + + + + Deserialize the navigator. + + Returns the root object. + + + + Updates the on zoom factor changed. + + The New Value + The Old Value + + + + Updates the range navigator on zoom position changed. + + The New Value + + + + Updates the on view range end changed. + + + + + Updates the on view range start changed. + + + + + Calculates the range for the selected data. + + + + + Applies the templates for the control. + + + + + Updates the on it's value change. + + + + + Updates the on scroll bar value changed. + + The Sender Object + The Event Arguments + + + + Updates the on time line value changed. + + The Sender Object + The Event Arguments. + + + + Updates the on time line size changed. + + The Sender Object + The Event Argument + + + + Updates the on zoom factor changed. + + The Dependency Object + The Event Arguments + + + + Updates the on zoom position changed. + + The Dependency Object + The Event Arguments + + + + Updates the on view range start changed. + + The Dependency Object + The Event Arguments + + + + Updates the on view range end changed. + + The Dependency Object + The Event Arguments + + + + Updates the on size changed. + + The Sender Object + The Event Arguments + + + + Updates the on loaded. + + The Sender + The Event Arguments + + + + Clips the with the given range. + + + + + Gets or sets zoom factor. Value must fall within 0 to 1. It determines delta of visible range. + + + + + Gets or sets zoom position. Value must fall within 0 to 1. It determines starting value of visible range + + + + + Gets or sets Navigator's Start Thumb value, Value can be DateTime if Minimum and Maximum are set as DateTime values. + + + + + Gets or sets Navigator's End Thumb value, Value can be DateTime if Minimum and Maximum are set as DateTime values. + + + + + Gets or sets the content that needs to be hosted inside the Navigator, the content can be any UI element. + + + + + Gets or sets the overlay brush color. + + + The value. + + + + + Gets or sets the visibility of the scrollbar. + + + + + Gets or sets the x range. + + + + + Gets or sets the navigator. + + + + + Gets or sets the scrollbar. + + + + + Gets or sets the data start. + + + + + Gets or sets the data end. + + + + + Gets or sets the selected items. + + + + + Gets or sets the x values. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Schedule the update. + + + + + Updates the . + + + + + Sets the thumb style. + + + + + Generates the data points. + + + + + Gets the selected data. + + + + + Sets the label position. + + + + + Updates the on view range start changed. + + + + + Updates the on view range end changed. + + + + + Updates the on zoom factor changed. + + The New Value + The Old Value + + + + Updates the on zoom position changed. + + The New Value + + + + When overridden in a derived class, is invoked whenever application code or + internal processes (such as a rebuilding layout pass) call . + In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks. + + + + + Updates the on data source changed. + + The Event Arguments. + + + + Updates the mouse move operations. + + The Event Arguments + + + + Updates the on scroll bar value changed. + + The Sender Object + The Event Arguments + + + + Updates the tooltip on time line value changed. + + The Sender Object + The Event Arguments + + + + Updates the interval on time line changed. + + The Sender + The Event Arguments + + + + Updates the on it's value change. + + + + + Updates the tooltip when the left tooltip template changed. + + The Dependency Object + The Event Arguments + + + + Updates the thumb style when it is changed. + + The Dependency Object + The Event Arguments + + + + Updates the gridlines when it's style changed. + + The Dependency Object + The Event Arguments + + + + Updates the tick lines when it's style changed. + + The Dependency Object + The Event Arguments + + + + Updates the when the deferred update property is changed. + + The Dependency Object + The Event Arguments + + + + Updates the on deferred update duration changed. + + The Dependency Object + The Event Arguments + + + + Updates the when the interval property is changed. + + The Dependency Object + The Event Arguments + + + + Updates the range when the maximum or the minimum value changed. + + The Dependency Object + The Event Argument + + + + Updates the on items source changed. + + The Dependency Object + The Event Arguments + + + + Updates the tooltip visibility. + + The Dependency Object + The Event Arguments + + + + Updates the right tooltip when it's template changed. + + The Dependency Object + The Event Arguments + + + + Updates the tooltip when it's format changed + + The Dependency Object + The Event Arguments + + + + Generates the points when the x binding path changed. + + The Dependency Object + The Event Arguments + + + + Updates the label when it's style is changed. + + The Dependency Object + The Event Arguments + + + + Updates the gridlines when property is changed. + + The Dependency Object + The Event Arguments + + + + Updates the lower label bar visibility when property is changed. + + The Dependency Object + The Event Arguments + + + + Updates the upper label bar visibility when property is changed. + + The Dependency Object + The Event Arguments + + + + Gets the week number. + + The Date + Returns the week number. + + + + Sets the minute interval + + The Minute Interval + The Dock Position + + + + Method called to style for the labels. + + The Label Bar Panel + The Index + The Label Bar Style + + + + Sets the second interval. + + + + + Updates the thumb style when it is changed. + + The Range Navigator + The Event Arguments + + + + Updates the range when the maximum or the minimum value changed. + + + + + Method called to reset default range when items source is changed. + + + + + Updates the on collection changed. + + The Sender Object + The Event Arguments + + + + Refreshes the points and the layout. + + + + + Updates the label when it's style is changed. + + + + + Updating the upper label bar visibility. + + + + + Updating the lower label bar visibility.. + + + + + Updates the when the interval collection changed. + + The Sender Object + The Event Arguments + + + + Updates the label format when the label formatter collection changed. + + The Sender Object + The Event Arguments + + + + Updates the on it's size changed. + + The Sender Object + The Event Arguments + + + + Updates the when it is loaded. + + The Sender Object + The Event Arguments + + + + Updates the when the layout updated. + + The Sender Object + The Event Arguments + + + + Calculates the range for the . + + + + + Updates the tooltip visibility. + + + + + Updates the mouse left button down interactions for the . + + The Sender Object + The Event Arguments + + + + Updates the mouse left button up interactions for the . + + The Sender Object + The Event Arguments + + + + Gets the visual children + + + + + Adds the day values. + + The Current Date + + + + Generates the property points. + + + + + Updates the tooltip for the + + + + + Changes view range. + + + + + Method called to set the style for upper and lower labels. + + + + + Updates the mouse left button down interaction of the lower label bar. + + The Sender Object + The Event Arguments + + + + Selects the label. + + The Start Left Range + The End Right Range + + + + Updates the mouse left button down interaction of the lower label bar. + + The Sender Object + The Event Arguments + + + + Updates the mouse leave interaction of the lower label bar. + + The Sender Object + The Event Arguments + + + + Updates the mouse move interaction of the lower label bar. + + The Sender Object + The Event Arguments + + + + Updates the mouse leave interactions of the upper label bar. + + The Sender + The Event Arguments + + + + Updates the mouse move interaction of the upper label bar. + + The Sender Object + The Event Arguments + + + + Inserts the labels at the specified dock position. + + The Dock Position. + + + + Sets the hour interval. + + The Hour Interval + The Dock Position + The Formatter + + + + Sets the day interval. + + The Day Interval + The Dock Position + The Formatter + + + + Method to check whether to add the format to labels. + + The Format + The Dock Position. + The Interval + Returns a value indicating whether the total text block width is less than the track size. + + + + Sets the week interval. + + The Week Interval + The Dock Position + The Formatter + + + + Sets the month interval + + The Month Interval + The Dock Position + The Formatter + + + + Clears the labels according to the dock position. + + The Dock Position + + + + Sets the quarter interval. + + The Quarter Interval. + The Dock Position + The Formatter + + + + Sets the year interval + + The Year Interval + The Dock Position + The Formatter + + + + Generates the label containers. + + The Position + Returns a value indicating whether the total text block width is less than the track size. + + + + Method to calculate the selected data. + + + + + Method called to reset the timer. + + + + + Method called on every tick of timer. + + The Sender Object + The Event Arguments + + + + Generates the data table points. + + + + + Clears the navigator labels. + + + + + Clears the navigator labels. + + + + + Occurs when the lower bar labels are created. + + + + + Occurs when the upper bar labels are created. + + + + + Gets or sets the thumb style for left thumb. + + + + + Gets or sets the right thumb style. + + + + + Gets or sets the style for tick lines inside the upper bar. + + + + + Gets or sets the style for upper bar gridlines. + + + + + Gets or sets the style for tick lines in lower bar. + + + + + Gets or sets the style for lower bar gridlines. + + + + + Gets or sets a value indicating whether to defer the ValueChanged notification. + + + + + Gets or sets double interval value to reset the timer when EnableDeferredUpdate is true + + + + + Gets or sets intervals collection to render labels of . + + + + + Gets or sets the Minimum Starting Range of the . + + + + + Gets or sets the Maximum Ending Range of the . + + + + + Gets or sets an object source used to render range. + + The DataSource value. + + + + Gets an IEnumerable source for the particular selected region + + + + + Gets or sets a value indicating whether to show ToolTip. + + + + + Gets or sets a value for indicating whether the visibility of the lower label bar. + + + + + Gets or sets a value for indicating whether the visibility of the upper label bar. + + + + + Gets or sets template for the left side ToolTip. + + + + + + + + Gets or sets template for the right side ToolTip. + + + + + + + + Gets or sets label format for ToolTip. + + + + + Gets or sets the property path of the x data in ItemsSource. + + + + + Gets or sets the styles for the lower label bar of . + + + + + Gets or sets the styles for the higher label bar of . + + + + + Gets or sets the higher label style. + + + The higher label style. + + + + + Gets or sets the lower label style. + + + The lower label style. + + + + + Gets or sets a value indicating whether to show grid lines inside the content. + + + + + Gets or sets to shift the axis range inside or outside. + + + + + Represents the class. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Updates the thumb style on it's property change. + + The Dependency Property + The Event Arguments + + + + Gets or sets the style for the thumb line. + + + + + Gets or sets the data template for the symbol. + + + + + + + + Gets or sets the . + + + + + Represents the class. + + + + + Measures the resize canvas elements. + + The Size Constraint + Returns the size to arrange the children. + + + + Arranges the resize canvas elements. + + The Arrange Size + Returns the arranged size. + + + + Represents a collection of Interval. + + + + + + Initializes a new instance of the class. + + + + + Represents a dependency object that contains the types of interval for axis. + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Gets or sets interval type in which the navigator values should be displayed. + + + + + Gets or sets string collection to set the label format for the navigator labels. + + + + + Lower bar labels created event arguments. + + + + + Initializes a new instance of the class. + + + + + Gets or sets the lower bar labels. + + + + + Higher bar labels created event arguments. + + + + + Initializes a new instance of the class. + + + + + Gets and sets the higher bar labels. + + + + + Serves as the label type for MinorScale and MajorScale labels. + + + + + Gets and sets the labels content. + + + + + Represents the class. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Updates the . + + value to indicate the visibility + + + + Applies the template for the control. + + + + + Updates the on value change. + + + + + Updates the on far hand dragged. + + The Sender Object + The Event Arguments + + + + Updates the on near hand dragged. + + The Sender Object + The Event Arguments + + + + Updates the on thumb dragged. + + The Sender Object + The Event Arguments + + + + Updates the on zoom factor changed. + + The Dependency Object + The Event Arguments + + + + Updates the on zoom position changed. + + The Dependency Object + The Event Arguments + + + + Middles the thumb drag completed. + + The sender. + The instance containing the event data. + + + + Attaches the touch mode events. + + + + + Detaches the touch mode events. + + + + + Updates the on axis unloaded. + + The Sender Object + The Event Arguments + + + + Updates the on axis loaded. + + The Sender Object + The Event Arguments + + + + Updates the mouse down interactive features of the . + + The Sender Object + The Event Arguments + + + + Updates the interactive features of the when mouse leaves the axis. + + The Sender Object + The Event Arguments + + + + Updates the interactive features of the when mouse enters the axis. + + The Sender Object + The Event Arguments + + + + Checks whether the point is inside the axis. + + The Position + Returns the indication whether the pointer is inside the axis. + + + + Zoom factor and zoom position is set. + + The New Zoom Position + The New Zoom Factor + + + + Raised when zooming occurs. + + The New Position + The New Factor + + + + Raised when zooming is done. + + The Previous Position + The Previous Factor + + + + Raised when panning is changed. + + The Zoom Position + + + + Update the range according to the zoom position. + + The Value + + + + Raised when panning occurs. + + The Previous Position + The New Position + + + + Update the range according to the zoom factor. + + The Value + + + + Binds the resizable bar with the axis. + + + + + Translate the thumb label templates. + + The Thumb Label + The Range Value + + + + Resets the timer. + + + + + Time outs the timer operations. + + The Sender Object + The Event Arguments + + + + Gets or sets the axis of the . + + + + + Gets or sets zoom position. Value must fall within 0 to 1. It determines starting value of visible range + + + + + Gets or sets Template For Visible Range Label View. + + + + + Gets or sets the visibility of Range Label View. + + + + + Gets or sets zoom factor. Value must fall within 0 to 1. It determines delta of visible range. + + + + + Represents the class. + + + + + Gets or sets the light theme for phone + + + + + Gets or sets the dark theme for phone + + + + + Gets a value indicating whether is dark theme applied. + + + + + Represents the class. + + + + + Represents the class to customize the axis GridLines, TickLines and LabelStyle for specific region. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Gets or sets the start range for customizing the axis style. + + + + + Gets or sets the end range for customizing the axis style. + + + + + Gets or sets options for customizing the axis labels. + + + + + Gets or sets options for customizing the major gridlines. + + + + + Gets or sets options for customizing the minor gridline. + + + + + Gets or sets options for customizing the major tick lines. + + + + + Gets or sets options for customizing the minor tick lines. + + + + + Sets the value for box and whisker segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Creates the visaul for box and whisker segment. + + + + + + + Gets the rendered visaul for box and whisker segment. + + + + + + Updates the box and whisker segment based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Method implementation for Set Bindings to properties in ColumnSegement. + + + + + + Gets the actual stroke for box and whisker segment. + + + + + Gets or sets minimum value for segment. + + + + + Gets or sets maximum value for segment. + + + + + Gets or sets median value for segment. + + + + + Gets or sets lower quartile value for segment. + + + + + Gets or sets upper quartile value for segment. + + + + + Gets or sets the whisker edge width. + + + + + Class implementation for DoughnutSegment + + + + + Using a DependencyProperty as the backing store for TrackBorderWidth. This enables animation, styling, binding, etc... + + + + + Using a DependencyProperty as the backing store for brushTrackBorderColor. This enables animation, styling, binding, etc... + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when instance created for . + + + + + Called when instance created for DoughnutSegment + + + + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Size of the panel + + retuns UIElement + + + + + Gets the UIElement used for rendering this segment. + + reurns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + Method used to check the given co-ordinates lies in doughnut segment or not + + + + + + + + Method Implementation for set Binding to ChartSegments properties. + + + + + + Gets or sets the track area border width. + + + + + Gets or sets the track area border color. + + + + + Gets or sets the opacity for the track area. + + + + + Gets or sets the track area color. + + + + + Gets or sets the start angle of this segment slice. + + + + + Gets or sets the end angle of this segment slice. + + + + + Gets or sets a value indicating whether this segment can be exploded or not. + + + + + Gets the start angle of the . + + + + + Gets the end angle of the . + + + + + Gets the actual angle the slice. + + + + + Gets the data point value, bind with x for this segment. + + + + + Gets the data point value, bind with x for this segment. + + + + + Represents a ChartSegment which displays the error bar type series. + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + + + + Gets the UIElement used for rendering this segment. + + returns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Size of the panel + + returns UI Element + + + + + Represents a chart segment which renders collection of points using writeablebitmap. + + + + + + Called when instance created for . + + + + + Called when instance created for . + + Specifies the instance of series. + + + + Called when instance created for . + + specifies the x1 values. + specifies the y1 values. + specifies the x2 values. + specifies the y2 values. + instance of the series. + + + + + + + + + + + + + + + + + + + + + + Represents chart fast candle bitmap segment. + + Class instance is created automatically by WinRT Chart building system. + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + + + + + Gets the UIElement used for rendering this segment. + + returns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + Gets the segment color based on data point + + + + + + + Represents a chart segment which renders collection of points using writeablebitmap. + + + + + + Called when instance created for . + + + + + Called when instance created for . + + Used to specify the instance. + + + + Called when instance created for with following arguments. + + Used to specify the segment x1 values + Used to specify the segment y1 values + Used to specify the segment x2 values + Used to specify the segment y2 values + Used to specify the instance + + + + + + + + + + + + + + + + + + + + + + Gets the data point value, bind with x for this segment. + + + + + Gets the data point value, bind with y for this segment. + + + + + Represents chart fast hilo open close bitmap segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + + Constructor + + + + + Called when instance created for FastHiLoOpenCloseSegment + + + + + + Called when instance created for FastHiLoOpenCloseSegment with following arguments + + + + + + + + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Gets the UIElement used for rendering this segment. + + reurns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Reresents the view port of chart control.(refer ) + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Size of the panel + + retuns UIElement + + + + + Gets the segment color based on data point + + + + + + + Method Implementation for set Binding to ChartSegments properties. + + + + + + Represents chart fast hilo bitmap segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + Constructor + + + + + Called when instance created for FastHiLoSegment + + + + + + Called when instance created for FastHiLoSegment + + + + + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Size of the panel + + retuns UIElement + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + + + Gets the UIElement used for rendering this segment. + + reurns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Reresents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Method Implementation for set Binding to ChartSegments properties. + + + + + + Represents chart range area segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + Initializes a new instance of the class. + + The range area plot values. + Indicates a whether the high value is greater than low value. + The series of the segment. + + + + Gets the UIElement used for rendering this segment. + + returns UIElement + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Size of the panel + returns the created + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + The range area plot values. + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + The Size + + + + Gets the segment color in accordance with priorities. + + Returns the prioritized segment color. + + + + + Calculates the transform points. + + The transformer to get the required points from chart values. + + + + Updates the visual when series is placed in non transposed condition. + + The Width + The Height + The Color + The Left Thickness + The Right Thickness + + + + Gets or sets the high(top) value bind with this segment. + + + + + Gets or sets the low(bottom) value bind with this segment. + + + + + Represents a chart segment which renders collection of points using writeablebitmap. + + + + + + Called when instance created for . + + + + + Called when instance created for . + + Specifies the xvalues. + Specifies the yvalues. + Specifies the instance of series. + + + + + + + + + + + + + + + + + + + + + + Represents a control that use a WriteableBitmap to define their appearance. + + + + + + Called when instance created for FastStackingColumnSegment with following arguments + + + + + + + + + + Represents a chart segment which renders collection of points using writeablebitmap. + + + + + + Called when instance created for . + + + + + Called when instance created for . + + Specifies the instance of series. + + + + Called when instance created for . + + Specifies the xvalues. + Specifies the yvalues. + Specifies the instance of series. + + + + + + + + + + + + + + + + + + + + + + Represents a chart segment which renders collection of points using funnel shape. + + + + + + WP-1076[Data marker label position support for funnel series] + + + + Initializes a new instance of the . + + + + + Initializes a new instance of the . + + Used to specify the segment y position. + Height of the funnel. + Used to specify the instance. + Used to specify the segment IsExploded or not. + + + + Initializes a new instance of the . + + Used to specify the segment y position. + Height of the funnel. + Used to specify the instance. + Used to specify the segment IsExploded or not. + >Used to specify the segment width top. + >Used to specify the segment width bottom. + + + + + + + + + + + + + + + + + + + + + + Gets or sets a value indicating whether this segment is exploded in the user interface (UI). + + true if the segment is exploded; otherwise, false. The default value is false. + + + + Gets or sets the data point value, which is used to bind with x value for this segment. + + A data point value, which is used to bind with x value of the segment. + + + + Gets or sets the data point value, which is used to bind with y value for this segment. + + A data point value, which is used to bind with y value of the segment. + + + + Represents a chart segment which renders collection of points using pyramid shape. + + + + + + + WP-1076[Data marker label position support for pyramid series] + + + + Initializes a new instance of the . + + + + + Initializes a new instance of the . + + Used to specify y value. + Used to specify pyamid height value. + Used to specify ExplodedeOffset value. + Used to specify instance. + Used to specify the segment is exploded or not. + + + + + + + + + + + + + + + + + + + + + + Gets or sets the data point value, which is used to bind with x value for this segment. + + A data point value, which is used to bind with x value of the segment. + + + + Gets or sets the data point value, which is used to bind with y value for this segment. + + A data point value, which is used to bind with y value of the segment. + + + + Represents chart range column segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + Represents chart column segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + Variables declarations + + + + + Variables declarations + + + + + Variables declarations + + + + + Variables declarations + + + + + RectSegment property declarations + + + + + Set corresponding content control. + + + + + Called when instance created for . + + + + + Defines the Column Rectangle + + + + + + + + + + Called when instance created for ColumnSegment + + + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Size of the panel + + retuns UIElement + + + + + Gets the UIElement used for rendering this segment. + + reurns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Method implementation for Set Bindings to properties in ColumnSegment. + + + + + + Gets the data point value, bind with x for this segment. + + + + + Gets the data point value, bind with y for this segment. + + + + + Gets or sets the Width of the ColumnSegment. + + + + + Gets or sets the Height of the ColumnSegment. + + + + + Gets or sets the X position of the segment rect. + + + + + Gets or sets the Y position of the segment RectY. + + + + + Called when instance created for RangeColumnSegment + + Used to specify segment x1 + Used to specify segment y1 + Used to specify segment x2 + Used to specify segment y2 + Used to specify corresponding series + Used to specify corresponding item model + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Gets or sets the high(top) value bind with this segment. + + + + + Gets or sets the low(bottom) value bind with this segment. + + + + + Represents chart range area segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + Gets or sets the high(top) value bind with this segment. + + + + + Gets or sets the low(bottom) value bind with this segment. + + + + + Called when instance created for rangeAreaSegments + + + + + + + + Called when instance created for rangeAreaSegments + + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Size of the panel + + returns UIElement + + + + + Gets the UIElement used for rendering this segment. + + returns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + Method Implementation for set Binding to ChartSegments properties. + + + + + + Called when Property changed + + + + + + Gets or sets the actual color used to paint the interior of the segment. + + + The value. + + + + + Gets or sets the high value interior brush of this segment. + + + The value. + + + + + Gets or sets the low value interior brush of this segment. + + + The value. + + + + + Called when instance created for SplineRangeAreaSegments + + + + + + + Called when instance created for SplineRangeAreaSegments. + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Size of the panel + + returns UIElement + + + + + Gets the UIElement used for rendering this segment. + + returns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + Method Implementation for set Binding to ChartSegments properties. + + + + + + Represents a chart segment which renders collection of points using bar shape. + + + + + + Represents chart bar segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + Variables declarations + + + + + Variables declarations + + + + + Variables declarations + + + + + Variables declarations + + + + + barSegment variable declaration + + + + + Variable declaration for SegmentCanvas + + + + + Variable declaration for segment width and height + + + + + Constructor + + + + + Defines a Column Rect and Range + + + + + + + + + + Called when instance created for BarSegment with following Parameters + + + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Size of the panel + + returns UIElement + + + + + Gets the UIElement used for rendering this segment. + + returns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + Method Implementation for set Binding to ChartSegments properties. + + + + + + Gets the data point value, bind with x for this segment. + + + + + Gets the data point value, bind with y for this segment. + + + + + Gets or sets the width of this segment + + + + + Gets or sets the height of this segment + + + + + Gets or sets the x position of the segment rect. + + + + + Gets or sets the y position of the segment rect. + + + + + Initializes a new instance of the . + + + + + Initializes a new instance of the . + + Used to specify the segment x1 value. + Used to specify the segment y1 value. + Used to specify the segment x2 value. + Used to specify the segment y2 value. + Used to specify the instance. + + + + Class implementation for StepAreaSegment + + + + + Called when instance created for StepAreaSegment + + + + + Called when instance created for StepAreaSegment + + + + + + + Called when instance created for StepAreaSegment + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Sets the values for this segment. This method is not intended to be called explicitly outside the Chart but it can be overriden by any derived class. + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Size of the panel + + retuns UIElement + + + + + Gets the UIElement used for rendering this segment. + + reurns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Reresents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Method Implementation for set Binding to ChartSegments properties. + + + + + + Called to add the stroke for step area series. + + + + + + Gets or sets the data point value, bind with x for this segment. + + + + + Gets or sets the data point value, bind with y for this segment. + + + + + Represents chart StepLine segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + Called when instance created for . + + + + + Called when instance created for SteplineSegment + + + + + + + + + Called when instance created for SteplineSegment. + + + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Sets the values for this segment. This method is not intended to be called explicitly outside the Chart but it can be overriden by any derived class. + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Size of the panel + + returns UIElement + + + + + Gets the UIElement used for rendering this segment. + + reurns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Reresents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Gets or sets x1 point of this segment. + + + + + Gets or sets the x2 point of this segment + + + + + Gets or sets the y1 point of this segment. + + + + + Gets or sets the y2 point of this segment. + + + + + Gets or sets the step x point of this segment. + + + + + Gets or sets the step y point of this segment. + + + + + Gets or sets the X value of point1 in a step line segment. + + + + + Gets or sets the Y value of point1 in a step line segment. + + + + + Gets or sets the X value of point2 in a step line segment. + + + + + Gets or sets the Y value of point2 in a step line segment. + + + + + Gets or sets the ending y value, bind with this segment. + + + + + Gets or sets the starting x value, bind with this segment. + + + + + Gets or sets the ending y value, bind with this segment. + + + + + Gets or sets the starting y value, bind with this segment. + + + + + Gets or sets the point collection corresponds to this segment. + + + Each StepLineSegment consists of 3 points(start point, end point and intermediate step point). + + + + + Class for TrendlineSegment. + + + + + Represents chart Spline segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + Called when instance created for . + + + + + Called when instance created for SplineSegment. + + Specifies start point. + Specifies start control point. + Specifies end control point. + Specifies end point. + Specifies corresponding . + + + + Called when instance created for SplineSegment + + Specifies start point + Specifies start control point + Specifies end control point + Specifies end point + Specifies corresponding + + + + Called when instance created for SplineSegment. + + + Marked as obsolete. + + + + + Called when instance created for SplineSegment. + + Specifies start point + Specifies start control point + Specifies end control point + Specifies end point + Specifies corresponding + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + + + + Sets the values for this segment. This method is not intended to be called explicitly outside the Chart but it can be overriden by any derived class. + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Size of the panel + + retuns UIElement + + + + + Gets the UIElement used for rendering this segment. + + reurns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Reresents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Returns Y range for corresponding + + + + + + + + + + Method Implementation for set Binding to ChartSegments properties. + + + + + + Gets or sets the x1 point of this segment. + + + + + Gets or sets the x2 point of this segment. + + + + + Gets or sets the y1 point of this segment. + + + + + Gets or sets the y2 point of this segment. + + + + + Gets or sets the start point of the bezier segment. + + + + + Gets or sets the first control point for the bezier segment. + + + + + Gets or sets the second control point for the bezier segment. + + + + + Gets or sets the end point for the bezier segment. + + + + + Gets or sets x1 value. + + + + + Gets or sets the data point value, bind with x for this segment. + + + + + Gets or sets the data point value, bind with y for this segment. + + + + + Gets or sets the y1 value. + + + + + Gets or sets the segment geometry for this segment. + + + + + Represents chart column segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + Variables declarations + + + + + Variables declarations + + + + + Variables declarations + + + + + Variables declarations + + + + + RectSegment property declarations + + + + + Defines the Column Rectangle + + + + + + + + + + Called when instance created for ColumnSegment + + + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Size of the panel + + retuns UIElement + + + + + Gets the UIElement used for rendering this segment. + + reurns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Method implementation for Set Bindings to properties in ColumnSegement. + + + + + + Method used to update the connector line position. + + + + + Returns current segment rendering x value. + + + + + + Returns current segment rendering y value. + + + + + + Method used to calculate the segment's rendering rect. + + + + + + Gets the data point value, bind with x for this segment. + + + + + Gets the data point value, bind with y for this segment. + + + + + Gets or sets the Width of the ColumnSegment. + + + + + Gets or sets the Height of the ColumnSegment. + + + + + Gets or sets the X position of the segment rect. + + + + + Gets or sets the Y position of the segment RectY. + + + + + Gets or sets the summary value till to this segment except this segment. + + + + + Gets or sets the summary value till to this segment. + + + + + Represents the class. + + + + + Initializes a new instance of the class. + + The Panel + + + + To clear the children of . + + + + + To measure the size of . + + The Available Size + Returns the desired size. + + + + To update the children of . + + + + + To arrange the children in based on its final size + + The Final Size + Returns the arranged size. + + + + To arrange the text blocks and border of vertical axis's . + + The Final Size + + + + To calculate the left values for text block and border of vertical axis's . + + Returns the calculated actual left value. + + + + To calculate the top value for text block and border of horizontal axis's . + + Returns the Calculated actual top value. + + + + To reset the current values of + + + + + To calculate the current label's start and end position + + The Label + Returns a value indicating whether the range permissible. + + + + To set the thickness for rectangle border style of vertical axis + + The Row + + + + To set the thickness for WithoutTopAndBottom border style of vertical axis. + + + + + To set current border position + + + + + To set horizontal multi -level labels border + + The Border + + + + To set vertical multi-level labels border + + The Border + + + + To place the vertical axis's label + + The Text Block + + + + To align the vertical axis's label + + The TextBlock To Calculate Position + + + + Calculates the corresponding screen point of vertical axis value. + + The Mid Value + Returns the middle screen point value. + + + + To set the text blocks and borders of horizontal axis's . + + The Final Size + + + + Removes the panel's children when label's start and end are equal + + + + + Sets the border style. + + The Row + Indicates Horizontal Axis + + + + To set the thickness for rectangle border style + of horizontal axis's + + The Row + + + + To set the thickness for Without Top and Bottom border style + of vertical axis's + + + + + To draw the brace border style of horizontal axis's + + + + + To set the points for polyline + + The x 1 Value + The x 2 Value + The x 3 Value + The y 1 Value + The y 2 Value + + + + To draw the brace border style of vertical axis's + + + + + To set the polyline points for vertical label's brace + + The x 1 Value + The x 2 Value + The y 1 Value + The y 2 Value + The y 3 Value + The y 4 Value + + + + To position the text blocks of horizontal axis's + + + + + To Align the text of horizontal axis's label based on label alignment + + The TextBlock + + + + To set horizontal multi-level axis labels text block position + + The Label + + + + Calculates the double value corresponding object. + + The Object Data + Returns the double value corresponding object + + + + Checks the opposed position based on axis and it's label position. + + Returns the value based on axis and its label position + + + + To calculate the desired size of based on its children's available size + + The Available Size + Returns the desired size of + + + + To calculate the actual plot offset of axis + + + + + Generates the children of + + The Labels Count + + + + To set the properties of current label to generated and + + + + + Gets the desired size of the panel + + + + + Gets the corresponding . + + + + + Gets or sets the corresponding chart axis + + + + + Represents a canvas panel that update the children while changing trend line collection. + + + + + + Initializes a new instance of the class. + + + + + Updates the . + + The Final Size + + + + Provides the behavior for the Arrange pass of Silverlight layout. Classes can override this method to define their own Arrange pass behavior. + + + The actual size that is used after the element is arranged in layout. + + The final area within the parent that this object should use to arrange itself and its children. + + + + Updates the when segment collection changed. + + The Sender + The Event Arguments + + + + Represents a content control that display a information about focused element. + + + + + + The DependencyProperty for ShowDuration property. + + + + + The DependencyProperty for InitialShowDelay property. + + + + + The DependencyProperty for HorizontalOffset property. + + + + + The DependencyProperty for VerticalOffset property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for EnableAnimation property. + + + + + The DependencyProperty for TooltipMargin property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Gets whether animation  is enabled for tooltip or not. + + The Object + Returns a value indicating whether the animation is enabled. + + + + Sets the value to enable/disable the tooltip animation. + + The Object + The Value + + + + Gets the horizontal alignment for the tooltip. + /// + The Object + Returns the horizontal alignment. + + + + Sets the horizontal alignment to the tooltip. + + The Object + The Value + + + + Gets the vertical alignment for the tooltip. + + The Object + Returns the vertical alignment. + + + + Sets the vertical alignment to the tooltip. + + The Object + The Value + + + + Gets the margin of the tooltip. + + The Object + Returns the margin. + + + + Sets the margin to the tooltip. + + The Object + The Value + + + + Gets the duration of the tooltip text in seconds. + + The Dependency Object + Returns the show duration. + + + + Sets the duration to the tooltip. + + The Dependency Object + The Value + + + + Gets the initial delay value to show the tooltip. + + The Dependency Object + Returns the show delay. + + + + Sets the initial delay value to show the tooltip. + + The Dependency Object + The Value + + + + Gets the horizontal offset value to position the tooltip. + + The Dependency Object + Returns the horizontal offset. + + + + Sets the horizontal offset value to position the tooltip. + + The Dependency Object + The Value + + + + Gets the vertical offset value to position the tooltip. + + The Dependency Object + Returns the vertical offset. + + + + Sets the vertical offset value to position the tooltip. + + The Dependency Object + The Value + + + + Gets or sets the left offset. + + + + + Gets or sets the top offset. + + + + + Represents a control that indicates a base of column sparkline. + + + + + + Represents the class. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Creates the screen point from data point. + + The x value. + The y value. + Returns the corresponding screen co-ordinate. + + + + Resets the sparkline values. + + + + + Method used to generate a serialize file in default location with customized name. + + + + + + Method used to generate a serialize file in specified location. + + + + + + Method used to serialize the file in default location. + + + + + Method used to deserialize the serialized file in specified location. + + The stream to be deserialized + Returns the root object. + + + + Method used to deserialize a file + + The file to be deserialized. + Returns the root object. + + + + Method used to deserialize the file in default location + + + + + To update the sparkline + + + + + Validates the empty points. + + The y values + + + + Finds the empty point. + + + + + Clears the unused segments. + + The data count. + + + + To set the visual binding for the element + + The element to be bind. + + + + Finds the screen co-ordinates corresponding to the given values. + + The x value + The y value + Returns the updated . + + + + Binds the style of the sparkline with the corresponding . + + The to be bind. + The input style. + The property path. + + + + Animates the segments. + + The . + + + + Generate the points from the items source. + + The x path. + + + + Updates the minimum and maximum value. + + + + + set the individual points to the existing collection + + The individual point index. + The object. + The replace indication + The x path. + + + + To render the visual segments + + + + + Method gets called when the default template is applied. + + + + + Measures the size in layout required for child elements and determines a size for the sparkline. + + The available size that this element can give to child elements. + Returns the size that the element determines it needs during layout, based on its calculation of child element sizes. + + + + Updates the mouse moved interactions for the sparkline. + + The Event Arguments + + + + Updates the sparkline when y range changed. + + The dependency object + The dependency property changed event arguments. + + + + Updates the sparkline when highlight value changed. + + The dependency object + The dependency property changed event arguments. + + + + Updates the sparkline animation when the animation is enabled. + + The dependency object. + The dependency property changed event arguments + + + + Updates the sparkline when empty point value changed. + + The dependency object. + The dependency property change event arguments + + + + Updates the sparkline on items source changed. + + The dependency object. + The dependency property changed event arguments. + + + + Updates the sparkline on y binding path changed. + + The dependency object. + The event arguments. + + + + Updates the sparkline on x binding path changed. + + The dependency object. + The event arguments. + + + + Updates the sparkline animation when the animation is enabled. + + + + + Updates the sparkline on items source changed. + + The dependency property changed event arguments + + + + Updates the sparkline on data collection changed. + + The sender object. + The notify collection changed event arguments. + + + + Updates the range band. + + + + + Binds the range band brush with the corresponding shape. + + The range band shape. + + + + Raised when the sparkline mouse gets moved. + + + + + Gets or sets a value indicating whether to animate the sparkline on loading and whenever ItemsSource change. + + + + + Gets or sets the brush to paint the interior of the sparkline. + + + The value. + + + + + Gets or sets the range band brush. + + + The value. + + + + + Gets or sets the maximum range band value in Y axis. + + + + + Gets or sets the minimum range band value in Y axis. + + + + + Gets or sets the minimum value for Y axis. + + + + + Gets or sets the maximum value for Y axis. + + + + + Gets or sets stroke thickness for segments + + + + + Gets or sets the brush to paint outline of the sparkline. + + + The value. + + + + + Gets or sets an IEnumerable source used to generate sparkline. + + + + + Gets or sets the property path to retrieve y data from ItemsSource. + + + + + Gets or sets a value that determines how to calculate value for empty point. + + + + + Gets or sets the root panel. + + + + + Gets or sets the utility presenter. + + + + + Gets or sets a value indicating whether sparkline is indexed. + + + + + Gets or sets the segment presenter + + + + + Gets or sets the empty point indexes. + + + + + Gets or sets the data count. + + + + + The DependencyProperty for property. + + + + + Sets the binding for the shape element with sparkline. + + The Shape Element + + + + Updates the mouse move interactive behaviors for the marker. + + The Event Arguments + + + + Updates the mouse leave operations for the sparkline + + The Event Arguments. + + + + Animates the segments. + + The UI Element Collection + + + + Renders the segments. + + + + + Binds the fill property of the shape element with the column sparkline. + + The Shape Element + The Property Path + + + + Applies the selector color. + + The Shape Segment + + + + Resets the segment color. + + The Shape Segment + + + + Gets or sets a value indicating whether to highlight segment on mouse move. + + + + + Represents the class. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Reset the marker. + + + + + Add the marker. + + The screen x position. + The screen y position. + The x value. + The y value. + + + + Clear unused markers. + + The Data Count + + + + Binds the shape element with marker properties. + + The Element + + + + Sets the individual points. + + The Index + The Object + The Replace Require Check + The X Path + + + + Generates the data points for the marker base. + + The X Path + + + + Removes the axis. + + + + + Updates the horizontal axis. + + + + + Animates the segments. + + The UI Element Collection + + + + Renders the segments. + + + + + Adds marker to the sparkline. + + The Screen Point + The X Value + The Y Value + The Index + + + + Applies the required template to the marker base. + + + + + Updates the mouse move interactive behaviors for the marker. + + The Event Arguments + + + + Updates the axis property changed. + + The Dependency Object + The Event Arguments. + + + + Updates the axis on origin property changed. + + The Dependency Object + The Event Arguments + + + + Updates the trackball when property changed. + + The dependency Object + The dependency property changed event arguments + + + + Updates the marker visibility on changed. + + The Dependency Object + The Event Arguments + + + + Places the marker at the given value. + + The Marker + The Screen Point + + + + Updates the marker. + + The Screen Point X + The Scree Point Y + The X Value + The Y Value + The Marker Element To Be Positioned. + + + + Creates the trackball. + + + + + Updates the marker on visibility changed. + + The Event Arguments. + + + + Resets the trackball canvas. + + + + + Gets or sets the property path of the x data in ItemsSource. + + + + + Gets or sets the axis line style. + + + + + Gets or sets a value indicating whether to show/hide axis + + + + + Gets or sets axis origin + + + + + Gets or sets the track ball style. + + + + + Gets or sets line style for track ball. + + + + + Gets or sets a value indicating whether to show track ball. + + + + + Gets or sets the marker visibility. + + + + + Gets or sets marker template selector to customize the each markers + + + + + Gets or sets the marker presenter. + + + + + Represents the class. + + + + + Initializes a new instance of the class. + + + + + Binds the shape element with sparkline properties. + + The Element + + + + Renders the segments. + + + + + Adds the segment's path data. + + The path figure. + The segment geometry + The segment path + The screen point + + + + Represents the class. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Generates the data points. + + The X Path + + + + Sets the individual data points. + + The Index + The Object + Replace Indication + The X Path + + + + Removes the axis for the . + + + + + Updates the horizontal axis for the + + + + + Updates the minimum and maximum values. + + + + + Renders the segments. + + + + + Updates the axis visibility on property changed. + + The Dependency Object + The Event Arguments + + + + Updates the axis when is changed. + + The Dependency Object + The Event Arguments + + + + Gets or sets the property path of the x data in ItemsSource. + + + + + Gets or sets the axis line style. + + + + + Gets or sets a value indicating whether to show axis. + + + + + Gets or sets axis origin + + + + + Gets or sets the segment template selector to customize the each segments. + + + + + Class which represents the line sparkline. + + + + + Initializes a new instance of the class. + + + + + Renders the segment. + + + + + Represents the class. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Updates the minimum and maximum values. + + + + + Renders the segments. + + + + + Gets or sets the brush to paint the interior of the negative segment(s). + + + The value. + + + + + Gets or sets the brush to paint the interior of the neutral segment(s). + + + The value. + + + + + Raised when the sparkline mouse gets moved. + + The spark line. + The sparkline mouse move event arguments. + + + + Class which represents the spark line mouse move event arguments. + + + + + Gets or sets the point. + + + + + Gets or sets the co-ordinate points. + + + + + Gets or sets the elements. + + + + + Gets or sets the panel + . + + + + + Represents the enum for the + + + + + Data point plotted at zero position. + + + + + Data point plotted at average of the point before and after. + + + + + Data point not plotted. + + + + + Represents the class. + + + + + Represents the class. + + + + + Represents the class. + + + + + Initializes a new instance of the class. + + + + + Sets the required data to the template selector. + + The Sparkline. + The Count + + + + Selects the required template. + + The x value. + The y value + Returns the selected template. + + + + Gets the maximum Y axis value. + + + + + Gets the minimum Y axis value. + + + + + Gets the sparkline. + + + + + Gets the data count. + + + + + Gets the minimum X axis value. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Binds the template selector property with the corresponding . + + The x value. + The y value. + The marker shape to be set with binding. + + + + Binds the fill property of the template selector with the marker shape. + + The property name. + The marker shape to be bind. + The binding provider. + + + + Updates the marker on marker template changed. + + The dependency object + The event arguments. + + + + Gets or sets the brush to paint the first point of the sparkline. + + + The value. + + + + + Gets or sets the brush to paint the last point of the sparkline. + + + The value. + + + + + Gets or sets the brush to paint the negative points of the sparkline. + + + The value. + + + + + Gets or sets the brush to paint the high points of the sparkline. + + + The value. + + + + + Gets or sets the brush to paint the low point(s) of the sparkline. + + + The value. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Binds the template properties with the visual. + + The x value. + The y value + The marker value. + + + + Selects the template. + + The x value. + The y value. + Returns the selected template. + + + + Updates the sparkline when marker property changed. + + The dependency object. + The dependency property changed event arguments. + + + + Clears the marker presenter on marker template changed. + + The dependency object. + The dependency property changed event arguments. + + + + Clears the marker presenter. + + + + + Binds the visual size of the with the marker . + + The Shape element to set the binding. + + + + Gets or sets the brush to paint the markers of the sparkline. + + + The value. + + + + + Gets or sets the marker template. + + + + + + + + Gets or sets height of the marker. + + + + + Gets or sets width of the marker. + + + + + Class which represents spark line points info. + + + + + Initializes a new instance of the class. + + + + + Gets or sets the co-ordinates points. + + + + + Gets or sets the points. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Generates the continuous list without empty points. + + + + + When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks. + + + + + Update Legend Ion Template method + + + + + + Update Trendline elements method + + + + + Clone the trendline + + + + + + Update Polynomial trend source + + + + + Calculate Gauss Jordan Eliminiation value + + + + + + + + Calculate Polynomial Trendline with order + + + + + Create the polynomial segments + + + + + Update Logarithmic Trend Source + + + + + Caluculate Logarithmic Value and Draw Trendline + + + + + Update Exponential Trend Source + + + + + Calculate Exponential Value and Draw Trendline + + + + + Update Power TrendSource + + + + + Calculate Power Value and Draw Trendline + + + + + Update Linear Trend Source + + + + + Calculate Linear Value and Draw Trendline + + + + + Calculate Sum of x and y values + + + + + Calculate Trend Segment X values + + + + + + Get Linear Y Value + + + Segment y values + + + + Get Logarithmic Y Value + + + Segment y values + + + + Get Exponential Y Value + + + Segment y values + + + + Get Power Y Value + + + Segment y values + + + + Get polynomial y value + + + + Segment y values + + + + Create Spline Segment of Trendline + + + + + Coefficient Of Natural Spline Segment + + + + + + + + Returns the controlPoints of the curve + + + + + + + + + + + Gets or sets the slope. + + + + + Gets or sets the intercept. + + + + + Gets or sets the polynomial slopes. + + + + + Gets or sets a value indicating whether the Trendline is visible. + + + if its true, trendline will be visible. + + + + + Gets or sets a value that determines whether to create a legend item for this trendline. + + + By default, legend will be visible for this trendline. + + + + + + + + Gets or sets the custom template for the legend icons. + + + . + + + + + Gets or sets the type of icon to be displayed in legend item. + + + By default, the icon shape will represent the series type. + + + The value can be Circle, Rectangle, etc. See . + + + + + Gets or sets the label that will be displayed in the associated legend item. + + + + + Gets or sets the type of the trendline. + + + . + + + + + Gets or sets the brush to paint the stroke of the trendline. + + + The value. + + + + + Gets or sets the thickness for the trendline. + + + + + Gets or sets a collection of Double values that indicates the pattern of + dashes and gaps that is used to outline shapes. + + + + + Gets or sets the range of trend to be estimated from the future. + + + + + + The double value. + + + + + Gets or sets the range of trend to be estimated from the past. + + + + + + The double value. + + + + + Gets or sets the Polynomial Order for the polynomial trendline, + it calculate the order based equation.. + + + It accepts integer value ranging from 2 to 6. + + + + + The class is used to render the trendlines for to show the direction of price. + + + Trendline is applicable for only non-empty sets of corresponding . + + + + + Represents a ChartCloning class implentation. + + + + + Represents a dependency object that display a cap style in error bar. + + + + + + Represents the line style customization used for chart elements. + + + + + Called when instance created for . + + + + + Called when instance created for LineStyle + + Used to specify corresponding series + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Gets or sets a stroke brush for the line + + + The value. + + + + + Gets or sets a stroke thickness for the line + + + + + Gets or sets a stroke dash cap for the line + + + + + Gets or sets a stroke end cap for the line + + + + + Gets or sets the line join for the stroke of the line. + + + + + + + + Gets or sets a limit on the ratio of the miter length to half the of the shape. + A Double that represents the distance within the dash pattern where a dash begins. + + + + + + + + Gets or sets the stroke dash offset for the line. + + + The double value. + + + + + Gets or sets the stroke dash array for the line. + + + . + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Gets or sets the visiblity for the line + + + + + Gets or sets a width for the line + + + + + Inteface implementation for IRangeAxis + + + + + + Gets or sets Minimum property + + + + + Gets or sets Maximum property + + + + + Interface implementation for IChartAxis + + + + + Gets or sets VisibleLabels property + + + + + Interface implementation for IChartSeries + + + + + Gets or sets ItemsSource property + + + + + Print the chart. + + + + + + Gets or sets the chart + + + + + Represents the class that manages the localization for SfChart. + + + + + Holds the resource manager of the . + + + + + Initializes new instance of . + + + + + Gets the assembly of the project. + + Returns assembly of the project. + + + + Gets the default namespace of the referred project. + + Default namespace of the control assembly. + + + + Gets the default resource manager of the project. + + Default resource manager. + + + + Gets the localized ResourceManager of specific assembly and namespace. + + The assembly from where need to look up the resource. + The namespace of the control. + Returns the resource manager. + + + + Gets the localized text. + + String that has to be localized. + Control object. + The localized string. + + + + Gets the localized text. + + String that has to be localized. + The localized string. + + + + Gets the localized text. + + Current UI culture. + String that has to be localized. + The localized string. + + + + Sets the resource manager based on the assembly and namespace. + It can be used to get the values from the application resource files when the assembly name and the namespace of the control or application is different. + + The control assembly. + The namespace of the control. + + + //Localization WPF is the project namespace and GetType().Assembly returns the assembly of that project. + ChartLocalizationResourceAccessor.Instance.SetResources(GetType().Assembly, "LocalizationWPF"); + + + + + + A markup extension that returns the localized string based on culture for the . + + + + + + + + Gets or sets the resource name to get the localized string. + + + + + 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 string similar to Advanced. + + + + + Looks up a localized string similar to axis is not compatible with the axis of. + + + + + Looks up a localized string similar to Black and White Mode. + + + + + Looks up a localized string similar to BoxSelection Zoom. + + + + + Looks up a localized string similar to Cancel. + + + + + Looks up a localized string similar to Chart Print Dialog. + + + + + Looks up a localized string similar to Close. + + + + + Looks up a localized string similar to Color Mode. + + + + + Looks up a localized string similar to Decrease. + + + + + Looks up a localized string similar to High. + + + + + Looks up a localized string similar to Histogram. + + + + + Looks up a localized string similar to Increase. + + + + + Looks up a localized string similar to Low. + + + + + Looks up a localized string similar to Lower Line. + + + + + Looks up a localized string similar to MACD. + + + + + Looks up a localized string similar to Maximum. + + + + + Looks up a localized string similar to Median. + + + + + Looks up a localized string similar to Minimum. + + + + + Looks up a localized string similar to Open. + + + + + Looks up a localized string similar to Pan. + + + + + Looks up a localized string similar to Period Line. + + + + + Looks up a localized string similar to Print. + + + + + Looks up a localized string similar to Element must be rendered, and must have a parent in order to print.. + + + + + Looks up a localized string similar to is printing.. + + + + + Looks up a localized string similar to Print Mode. + + + + + Looks up a localized string similar to Print Stretch. + + + + + Looks up a localized string similar to Q. + + + + + Looks up a localized string similar to Q1. + + + + + Looks up a localized string similar to Q3. + + + + + Looks up a localized string similar to Quarter. + + + + + Looks up a localized string similar to Reset. + + + + + Looks up a localized string similar to Signal Line. + + + + + Looks up a localized string similar to Size. + + + + + Looks up a localized string similar to Total. + + + + + Looks up a localized string similar to Upper Line. + + + + + Looks up a localized string similar to W. + + + + + Looks up a localized string similar to Week. + + + + + Looks up a localized string similar to YValue. + + + + + Looks up a localized string similar to Zoom In. + + + + + Looks up a localized string similar to Zoom Out. + + + + + SR provides localized access to string resources from the Syncfusion.SfChart.WPF.resx file. + + + + + + Initializes a new instance of the SR class. + + + + + + The DependencyProperty for property. + + + + + Clears the BitmapContext, filling the underlying bitmap with zeros + + + + + Draws a colored line by connecting two points using the Bresenham algorithm. + + The WriteableBitmap. + The x-coordinate of the start point. + The y-coordinate of the start point. + The x-coordinate of the end point. + The y-coordinate of the end point. + The color for the line. + + + + Draws a colored line by connecting two points using the Bresenham algorithm. + + The WriteableBitmap. + The x-coordinate of the start point. + The y-coordinate of the start point. + The x-coordinate of the end point. + The y-coordinate of the end point. + The color for the line. + + + + Draws a colored line by connecting two points using a DDA algorithm (Digital Differential Analyzer). + + The WriteableBitmap. + The x-coordinate of the start point. + The y-coordinate of the start point. + The x-coordinate of the end point. + The y-coordinate of the end point. + The color for the line. + + + + Draws a colored line by connecting two points using a DDA algorithm (Digital Differential Analyzer). + + The WriteableBitmap. + The x-coordinate of the start point. + The y-coordinate of the start point. + The x-coordinate of the end point. + The y-coordinate of the end point. + The color for the line. + + + + Draws a colored line by connecting two points using an optimized DDA. + + The WriteableBitmap. + The x-coordinate of the start point. + The y-coordinate of the start point. + The x-coordinate of the end point. + The y-coordinate of the end point. + The color for the line. + + + + Draws a colored line by connecting two points using an optimized DDA. + + The WriteableBitmap. + The x-coordinate of the start point. + The y-coordinate of the start point. + The x-coordinate of the end point. + The y-coordinate of the end point. + The color for the line. + + + + Draws a colored line by connecting two points using an optimized DDA. + Uses the pixels array and the width directly for best performance. + + The context containing the pixels as int RGBA value. + The width of one scanline in the pixels array. + The height of the bitmap. + The x-coordinate of the start point. + The y-coordinate of the start point. + The x-coordinate of the end point. + The y-coordinate of the end point. + The color for the line. + + + + Draws an anti-aliased line, using an optimized version of Gupta-Sproull algorithm + From http://nokola.com/blog/post/2010/10/14/Anti-aliased-Lines-And-Optimizing-Code-for-Windows-Phone-7e28093First-Look.aspx + The WriteableBitmap. + The x-coordinate of the start point. + The y-coordinate of the start point. + The x-coordinate of the end point. + The y-coordinate of the end point. + The color for the line. + + + + + Draws an anti-aliased line, using an optimized version of Gupta-Sproull algorithm + From http://nokola.com/blog/post/2010/10/14/Anti-aliased-Lines-And-Optimizing-Code-for-Windows-Phone-7e28093First-Look.aspx + The WriteableBitmap. + The x-coordinate of the start point. + The y-coordinate of the start point. + The x-coordinate of the end point. + The y-coordinate of the end point. + The color for the line. + + + + + Draws an anti-aliased line, using an optimized version of Gupta-Sproull algorithm + From http://nokola.com/blog/post/2010/10/14/Anti-aliased-Lines-And-Optimizing-Code-for-Windows-Phone-7e28093First-Look.aspx + The context containing the pixels as int RGBA value. + The width of one scanline in the pixels array. + The height of the bitmap. + The x-coordinate of the start point. + The y-coordinate of the start point. + The x-coordinate of the end point. + The y-coordinate of the end point. + The color for the line. + + + + + Slope Calculation Method + + + + + + + + + + Intersect Calculation Method(c = y- mx) + + + + + + + + + Draws a polyline. Add the first point also at the end of the array if the line should be closed. + + The WriteableBitmap. + The points of the polyline in x and y pairs, therefore the array is interpreted as (x1, y1, x2, y2, ..., xn, yn). + The color for the line. + + + + Draws a polyline. Add the first point also at the end of the array if the line should be closed. + + The WriteableBitmap. + The points of the polyline in x and y pairs, therefore the array is interpreted as (x1, y1, x2, y2, ..., xn, yn). + The color for the line. + + + + Draws a triangle. + + The WriteableBitmap. + The x-coordinate of the 1st point. + The y-coordinate of the 1st point. + The x-coordinate of the 2nd point. + The y-coordinate of the 2nd point. + The x-coordinate of the 3rd point. + The y-coordinate of the 3rd point. + The color. + + + + Draws a triangle. + + The WriteableBitmap. + The x-coordinate of the 1st point. + The y-coordinate of the 1st point. + The x-coordinate of the 2nd point. + The y-coordinate of the 2nd point. + The x-coordinate of the 3rd point. + The y-coordinate of the 3rd point. + The color. + + + + Draws a rectangle. + x2 has to be greater than x1 and y2 has to be greater than y1. + + The WriteableBitmap. + The x-coordinate of the bounding rectangle's left side. + The y-coordinate of the bounding rectangle's top side. + The x-coordinate of the bounding rectangle's right side. + The y-coordinate of the bounding rectangle's bottom side. + The color. + + + + Draws a rectangle. + x2 has to be greater than x1 and y2 has to be greater than y1. + + The WriteableBitmap. + The x-coordinate of the bounding rectangle's left side. + The y-coordinate of the bounding rectangle's top side. + The x-coordinate of the bounding rectangle's right side. + The y-coordinate of the bounding rectangle's bottom side. + The color. + + + + Draws a filled rectangle. + x2 has to be greater than x1 and y2 has to be greater than y1. + + The WriteableBitmap. + The x-coordinate of the bounding rectangle's left side. + The y-coordinate of the bounding rectangle's top side. + The x-coordinate of the bounding rectangle's right side. + The y-coordinate of the bounding rectangle's bottom side. + The color. + + + + Draws a filled rectangle. + x2 has to be greater than x1 and y2 has to be greater than y1. + + The WriteableBitmap. + The x-coordinate of the bounding rectangle's left side. + The y-coordinate of the bounding rectangle's top side. + The x-coordinate of the bounding rectangle's right side. + The y-coordinate of the bounding rectangle's bottom side. + The color. + + + + Draws a filled polygon. Add the first point also at the end of the array if the line should be closed. + + The WriteableBitmap. + The points of the polygon in x and y pairs, therefore the array is interpreted as (x1, y1, x2, y2, ..., xn, yn). + The color for the line. + + + + Draws a filled polygon. Add the first point also at the end of the array if the line should be closed. + + The WriteableBitmap. + The points of the polygon in x and y pairs, therefore the array is interpreted as (x1, y1, x2, y2, ..., xn, yn). + The color for the line. + + + + A Fast Bresenham Type Algorithm For Drawing Ellipses. + x2 has to be greater than x1 and y2 has to be greater than y1. + + The WriteableBitmap. + The x-coordinate of the bounding rectangle's left side. + The y-coordinate of the bounding rectangle's top side. + The x-coordinate of the bounding rectangle's right side. + The y-coordinate of the bounding rectangle's bottom side. + The color for the line. + + + + A Fast Bresenham Type Algorithm For Drawing Ellipses. + x2 has to be greater than x1 and y2 has to be greater than y1. + + The WriteableBitmap. + The x-coordinate of the bounding rectangle's left side. + The y-coordinate of the bounding rectangle's top side. + The x-coordinate of the bounding rectangle's right side. + The y-coordinate of the bounding rectangle's bottom side. + The color for the line. + + + + A Fast Bresenham Type Algorithm For Drawing Ellipses. + Uses a different parameter representation than DrawEllipse(). + + The WriteableBitmap. + The x-coordinate of the ellipses center. + The y-coordinate of the ellipses center. + The radius of the ellipse in x-direction. + The radius of the ellipse in y-direction. + The color for the line. + + + + A Fast Bresenham Type Algorithm For Drawing Ellipses. + Uses a different parameter representation than DrawEllipse(). + + The WriteableBitmap. + The x-coordinate of the ellipses center. + The y-coordinate of the ellipses center. + The radius of the ellipse in x-direction. + The radius of the ellipse in y-direction. + The color for the line. + + + + Uses a different parameter representation than DrawEllipse(). + + The WriteableBitmap. + The x-coordinate of the ellipses center. + The y-coordinate of the ellipses center. + The radius of the ellipse in x-direction. + The radius of the ellipse in y-direction. + The color for the line. + + + + Uses a different parameter representation than DrawEllipse(). + + The WriteableBitmap. + The x-coordinate of the ellipses center. + The y-coordinate of the ellipses center. + The radius of the ellipse in x-direction. + The radius of the ellipse in y-direction. + The color for the line. + + + + Uses a different parameter representation than GetEllipse(). + + The WriteableBitmap. + The x-coordinate of the ellipses center. + The y-coordinate of the ellipses center. + The radius of the ellipse in x-direction. + The radius of the ellipse in y-direction. + The color for the line. + + + + Uses a different parameter representation than GetRectangle(). + + + + + + + + + + + + Assemblies the resolver. + + The sender. + The instance containing the event data. + Assembly object. + + + + 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. + + + + + Maintains the string constant to access the localized text in xaml file and code behind. + + + + + + Gets the culture based value to represent tooltip for zoom out option. + + + + + Gets the culture based value to represent tooltip for zoom in option. + + + + + Gets the culture based value to represent tooltip for reset option. + + + + + Gets the culture based value to represent tooltip for panning option. + + + + + Gets the culture based value to represent tooltip for rect zooming option + + + + + Gets the culture based value to represent week. + + + + + Gets the culture based value to represent W. + + + + + Gets the culture based value to represent quarter. + + + + + Gets the culture based value to represent Q. + + + + + Gets the culture based value to represent color mode. + + + + + Gets the culture based value to represent black and white mode option in print dialog. + + + + + Gets the culture based value to represent print stretch option. + + + + + Gets the culture based value to represent print mode option. + + + + + Gets the culture based value to represent advanced propery in print dialog. + + + + + Gets the culture based value to represent print. + + + + + Gets the culture based value to represent cancel. + + + + + Gets the culture based value to represent chart print dialog. + + + + + Gets the culture based value to represent tooltip's high. + + + + + Gets the culture based value to represent tooltip's low. + + + + + Gets the culture based value to represent tooltip's open. + + + + + Gets the culture based value to represent tooltip's close. + + + + + Gets the culture based value to represent tooltip's maximum. + + + + + Gets the culture based value to represent tooltip's minimum. + + + + + Gets the culture based value to represent tooltip's Q1. + + + + + Gets the culture based value to represent tooltip's Q3. + + + + + Gets the culture based value to represent tooltip's median. + + + + + Gets the culture based value to represent tooltip's size. + + + + + Gets the culture based value to represent tooltip's Yvalue. + + + + + Gets the culture based value to represent legend Increase. + + + + + Gets the culture based value to represent legend decrease. + + + + + Gets the culture based value to represent legend total. + + + + + Gets the culture based value to represent printing exception. + + + + + Gets the culture based value to represent incompatible exeception. + + + + + Gets the culture based value to represent print message. + + + + + Gets the culture based value to represent indicator signal line. + + + + + Gets the culture based value to represent indicator upper line. + + + + + Gets the culture based value to represent indicator lower line. + + + + + Gets the culture based value to represent indicator period line. + + + + + Gets the culture based value to represent indicator histogram. + + + + + Gets the culture based value to represent indicator MACD. + + + + + Represents a items control that display the control with color elements. + + + + + + Initializes a new instance of the class. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Invoke when color bar loaded + + + + + + + Chage orientation for color bar items + + + + + Update color bar items source + + + + + Gets or sets whether range label shown in color bar + + + + + Gets or sets the position of the color bar. + + + + + Represents a dependency object that indicates the color bar. + + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Gets or sets orientation for color bar item. + + + + + Gets or sets background for color bar icon. + + /// + The value. + + + + + Gets or sets Label for color bar icon. + + + + + Gets or sets height for color bar icon + + + + + Gets or sets width for color bar icon + + + + + Gets or sets a value that indicates whether to show or hide the label. + + + + + Occurs when a property value changes. + + + + + Class which represents the mesh generator. + + + + + Draw mesh for axis X,Y,Z plane + + + + + + + + Draw mesh for axis Z plane + + + + + + + + Draw mesh for axis Y plane + + + + + + + + Draw mesh for Wall + + + + + + + + + add position and triangle index for wall + + + + + + + + + + Normalize the points to 3D world + + + + + + + + + + + + + Draw material for surface chart + + + + + + + + Create wireframe mesh + + + + + + + + Get Minimum valuue for given pointer array + + + + + + + + Get the maximum value of given pointer array + + + + + + + + Class which represents the surface chart. + + + + + Class which represents the surface base. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Method used to serialize the surface chart and store in XML file. + + + + + Method used to serialize the surface chart and store the XML file in the given file path location. + + + + + + Method used deserialize and load the surface chart. + + + + + Method used to load the serialized XML from the given file path and load the surface chart. + + + + + + Refresh the CustomBrushes when it is updated dynamically. + + + + + Update the surface area + + + + + Gets or sets value whether rotate the surface chart + + + + + Gets or sets value whether show the left wall + + + + + Gets or sets value whether show the bottom wall + + + + + Gets or sets value whether show the back wall + + + + + Gets or sets brush for left wall + + + The value. + + + + + Gets or sets brush for bottom wall + + + The value. + + + + + Gets or sets brush for Back wall + + + The value. + + + + + Gets or sets thickness for surface walls + + + + + Gets or sets color model for surface + + + + + Gets or sets Palette for surface chart + + + + + Gets or sets rotate angle value for surface chart + + + + + Gets or sets tilt angle value for surface chart + + + + + Gets or sets title for Surface chart + + + + + The current position in the iterative cycle, initialized to 0. + + + + + Initializes a new instance of the class. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + When overridden in a derived class, is invoked whenever application code or + internal processes (such as a rebuilding layout pass) call . + In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks. + + + + + Update the surface chart area + + + + + Calculate the mesh rendered size + + + + + Calculate the matrix3d for rendered size + + + + + + Initialize default axis + + + + + Update surface chart data points + + + + + Get Point array from items source + + + + + + Update surface chart axis range + + + + + update colors and its items source + + + + + Update surface axis layout + + + + + + Draw surface chart walls + + + + + Set Light for surface chart + + + + + Draw Axis and its elements + + + + + Draw axis + + + + + + + Update Axis gridlines + + + + + Draw gridlines as a mesh + + + + + + + Draw grilines based on axis + + + + + + + + + Draw surface types + + + + + Update viewport child + + + + + Arrange color bar + + + + + Create projection camera types + + + + + Positioning the camera based on Rotate and Tilt value + + + + + Capture mouse position and change mouse cursor + + + + + + Calculate the Rotate and Tilt value from mouse position + + + + + + Reset mouse position and cursor + + + + + + Calculate zoom leve based on mouse wheel zooom + + + + + + Reset zoom level value + + + + + + Get data type for given itemsource + + + + + + + + Method used to dispose unmanaged elements in SfSurfaceChart + + + + + Passing surface data through Data property + + + + + Gets or sets items source for surface chart + + + + + Gets or sets Primary Axis for surface chart + + + + + Gets or sets Secondary Axis for surface chart + + + + + Gets or sets Depth Axis for surface chart + + + + + Gets or sets color bar for surface chart + + + + + Gets or sets linear gradient brush for given palette + + + + + Gets or sets the property path to retrieve x data from ItemsSource. + + + + + Gets or sets the property path to retrieve y data from ItemsSource. + + + + + Gets or sets the property path to retrieve z data from ItemsSource. + + + + + Gets or sets Row size for items source + + + + + Gets or sets column size for items source + + + + + Gets or sets label format for the legends label + + + + + Gets or sets stroke for wireframe line + + + The value. + + + + + Gets or sets stroke thickness for wireframe line + + + + + Gets or sets type for surface chart + + + + + Gets or sets Camera for Surface chart + + + + + Gets or sets zoom view level for 3D viewport + + + + + Gets or sets a value indicating whether the contour line for surface chart + + + + + Gets or sets a value indicating whether surface chart is zooming + + + + + Gets or sets a value indicating the count for applying brushes in surface chart + + + + + Gets the rendered size of mesh in surface chart. + + + + + Represents a DataPointCollection class implementation. + + + + + Initializes a new instance of the class. + + + + + Method used to add point value to the data point collection. + + The x value. + The y value. + The z value. + + + + Gets or sets the x value of the data point collection. + + + + + Gets or sets the y value of the data point collection. + + + + + Gets or sets the z value of the data point calculation. + + + + + Class which represent the surface axis. + + + + + Initializes a new instance of the class. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + When overridden in a derived class, is invoked whenever application code or + internal processes (such as a rebuilding layout pass) call . + In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks. + + + + + Calculate interval for surface axis + + + + + + + + Apply range padding + + + + + + + + Calculate the nice interval + + + + + + + + Returns the maximum desired intervals count. + + + + + + + Gets or sets header for surface axis + + + + + Gets or sets header template for surface axis + + + + + + + + Gets or sets axis label format for surface axis + + + + + Gets or sets axis label template for surface axis + + + + + + + + Gets or sets small tics per interval + + + + + Gets or sets Minimum property + + + + + Gets or sets Maximum property + + + + + Get visible labels for surface axis. + + + + + Gets or sets style for axis line + + + + + Gets or sets size for tick line + + + + + Gets or sets major tick line style. + + + + + Gets or sets minor tick line style. + + + + + Gets or sets interval for suface axis + + + + + Gets or sets whether showing gridlines for surface axis + + + + + Gets or sets brush for gridline + + + The value. + + + + + Gets or sets thickness for gridline + + + + + Get or sets the label drawing mode. + + + + + This property used to shift the SurfaceAxis range inside or outside. + + + + + Represents a collection of control that display axis elements. + + + + + + Class which represents the surface axis element panel. + + + + + This interfaces defines the members and methods to create and arrange the child elements in a panel. + + + + + Method to measure the panel. + + + + + + + Method to arrage the elements in panel + + + + + + + Method to update the elements (Children ) in the panel. + + + + + Method to detachs elements from the panel. + + + + + Gets Children property + + + + + Gets the panel. + + + The panel. + + + + + Gets or sets the left. + + + The left. + + + + + Gets or sets the top. + + + The top. + + + + + Gets desiredSize property + + + + + Called when instance created for ChartCartesianAxisElementsPanel + + + + + + Method declaration for Measure + + + + + + + Seek the elements. + + + + + Method declaration for Arrange + + + + + + + Method declaration for UpdateElements + + + + + Gets or sets the left. + + + + + + Gets the panel. + + + + + Gets the desired size of the panel. + + + + + Gets the Children count in the panel. + + + + + Class which represents the surface axis label panel. + + + + + Called when instance created for ChartCartessianAxisLabelsPanel + + + + + + Method declaration for Measure + + + + + + + Method declaration for Arrange + + + + + + + Seek the elements. + + + + + Method declaration for UpdateElements + + + + + Gets the labels panel value. + + + + + Gets the desired size of the panel. + + + + + Gets or sets the chart axis of the panel./> + + + + + Gets the children count in the panel. + + + + + Gets or sets the left. + + + + + + Class which represents the surface axis label layout. + + + + + Method used to create the axis layout. + + + + + + + + Method declaration for Measure + + + + + + + Method declaration for Arrange. + + + + + + Returns desired height + + + + + + Holds the width and height of the element after rotating. + + + + + Holds the width and height of the element without rotating. + + + + + Class which represents the surface horizontal label layout. + + + + + Initializes a new instance of the class. + + The surface axis value. + The ui element value. + + + + Returns desired height + + + + + + Method declaration for Measure. + + + + + + + Method declaration for Arrange. + + + + + + + Class which represents the surface vertical label layout. + + + + + Initializes a new instance of the class. + + The surface axis label value. + The ui element value. + + + + Returns desired width + + + + + + Method declaration for Measure. + + + + + + + Method declaration for Arrange. + + + + + + + Class which represents the surface axis panel. + + + + + called when instance created for ChartCarttesianAxisPanel + + + + + Class which represents the wall thickness. + + + + + Initializes a new instance of the class. + + The uniform value. + + + + Initializes a new instance of the class. + + The left value. + The bottom value. + The back value. + + + + Override GetHashCode to return the hash code. + + + + + + Override Equals to return bool value comparing to wall thickness object. + + The object. + The bool value. + + + + Override Equals to return bool value comparing to wall thickness position. + + The wall thickness. + The bool value. + + + + Override Operator == to return bool value comparing to two points. + + The wall thickness point one value. + The wall thickness point two value. + The bool value. + + + + Override Operator != to return bool value comparing to two points. + + The wall thickness point one value. + The wall thickness point two value. + The bool value. + + + + Gets or sets the left. + + + + + Gets or sets the bottom. + + + + + Gets or sets the back. + + + + + Class which represents the wall thickness converter. + + + + + Override CanConvertFrom to return true for String-to-Complex conversions. + + The context value. + The source type. + The string to complex. + + + + Override CanConvertTo to return true for Complex-to-String conversions. + + The context value. + The destination type. + The complex to string value. + + + + Override ConvertFrom to convert from a string to an instance of WallThickness. + + The context value. + The culture value. + The source value. + + + + + Override ConvertTo to convert from a null to an destination type. + + The context value. + The culture value. + The value. + The destination type. + The argument null exception. + + + + ChartPrintDialog + + + + + Initializes m_elementToPrint + + + + + Initializes m_nativePrintDialog + + + + + Initializes m_visualBrush + + + + + Initializes ChartHeight + + + + + Initializes ChartWidth + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Identifies the dependency property. + + + The identifier for the dependency property. + + + + + + Shows the print dialog. + + The element. + Returns ShowDialog + + + + Shows the print dialog. + + The element. + The print area. + Returns ShowDialog + + + + + Starts the print. + + + + + + Called when [print click]. + + The sender. + The instance containing the event data. + + + + + Called when [cancel click]. + + The sender. + The instance containing the event data. + + + + Called when [color click]. + + The sender. + The instance containing the event data. + + + + Called when [black and white click]. + + The sender. + The instance containing the event data. + + + + Called when [advanced click]. + + The sender. + The instance containing the event data. + + + + Gets the size by specified stretch. + + The stretch. + The viewport. + The original. + The PRint size + + + + Calls OnPrintStretchChanged method of the instance, notifies of the depencency property value changes. + + Dependency object, the change occures on. + Property change details, such as old value and new value. + + + + Calls OnPrintModeChanged method of the instance, notifies of the depencency property value changes. + + Dependency object, the change occures on. + Property change details, such as old value and new value. + + + + Sets the viewport. + + The brush. + The size value. + + + + Updates property value cache and raises PrintStretchChanged event. + + Property change details, such as old value and new value. + + + + Updates property value cache and raises PrintModeChanged event. + + Property change details, such as old value and new value. + + + + When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing. + + The drawing instructions for a specific element. This context is provided to the layout system. + + + + InitializeComponent + + + + + Gets or sets the print mode. + + The print stretch. + + + + Gets or sets the print stretch. + + The print stretch. + + + + Gets or sets the border style to customize the chart print dialog window. + + + The BorderStyle for print dialog window. + + + + + Gets or sets the dahsed border style to customize the chart print dialog window. + + + The DashedBorderStyle for print dialog window. + + + + + Event that is raised when PrintStretch property is changed. + + + + + Event that is raised when PrintMode property is changed. + + + + + Identifies and returns the basethemename applied to the object using SfSkinManager. + + UI Element + SfSkinManager base theme name of type . + + + + Sets the themename to child from source UI element. + + Source UI Element + Child UI Element (Target element) + + + + + Sets the SizeMode value to child from source UI element. + + Source UI Element + Child UI Element + + + + + Represents the Chart control which is used to visualize the data graphically. + + + The Chart is often used to make it easier to + understand large amount of data and the relationship between different parts + of the data. Chart can usually be read more quickly than the raw data that they + come from. Certain are more useful for + presenting a given data set than others. For example, data that presents + percentages in different groups (such as "satisfied, not satisfied, unsure") are + often displayed in a chart, but are more easily + understood when presented in a horizontal chart. + On the other hand, data that represents numbers that change over a period of + time (such as "annual revenue from 2011 to 2012") might be best shown as a chart. + + + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when instance created for . + + + + + Performs application-defined tasks accociated with freeing, releasing, or resetting unmanaged resource in . + + + + + Disposing chart objects. + + Used to indicate perform dispose or not. + + + + Method used to highlight selected index series. + + Used to indicate current selected index. + Used to indicate previous selected index. + + + + Converts Value to point. + + The Chart axis . + The value. + The double value to point. + + + + Converts Value to point. + + The Chart axis . + The value. + The double value to point. + + + + Method used to gets the byte value of given color. + + The color value which is used to byte value. + The byte value of given color. + + + + Notifies the row and column collection changed in Chart. + + NotifyCollectionChanged event arguments. + + + + Converts Value to Log point. + + The Logarithmic axis. + The value. + The double value to point. + + + + This method is called while the annotation adding dynamically. + + + + + + + Method used to update selection in bitmap series. + + Used to specify bitmap series to update. + Used to indicate corresponding need to reset or not + + + + Set default axes for . + + + + + Method is used to convert list collection in to hashset. + + + + + Method used to set PrimaryAxis for SfChart. + + + + + Raises the event. + + The instance containing the event data. + + + + Occurs when zooming position changed in chart. + + ZoomChangedEventArgs + + + + Occurs when zooming takes place in chart. + + ZoomChangingEventArgs + + + + Occurs at the start of selection zooming. + + SelectionZoomingStartEventArgs + + + + Occurs at the end of selection zooming. + + SelectionZoomingEndEventArgs + + + + Occurs while selection zooming in chart. + + SelectionZoomingDeltaEventArgs + + + + Occurs when panning position changed in chart. + + PanChangedEventArgs + + + + Occurs when panning takes place in chart. + + PanChangingEventArgs + + + + Occurs when zoom is reset. + + ResetZoomEventArgs. + + + + Used to add the zooming toolbar in canvas. + + ZoomingToolBar value. + ChartZoomPanBehavior instance. + + + + When overridden in a derived class, is invoked whenever application code or + internal processes (such as a rebuilding layout pass) call . + In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks. + + + + + Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the WPF infrastructure. + + The type-specific System.Windows.Automation.Peers.AutomationPeer implementation. + + + + Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior. + + + The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects; or based on other considerations, such as a fixed container size. + + The size value. + + + + called when lost focus from the . + + RoutedEventArgs. + + + + Called when got focus in the . + + RoutedEventArgs. + + + + Called when the event occurs. + + The data for the event. + + + + Called when the event occurs. + + The data for the event. + + + + Called when the event occurs to provide handling for the event in a derived class without attaching a delegate. + + A that contains the event data. + + + + Called when the event occurs. + + The data for the event. + + + + Called when touch down on the chart. + + TouchEventArgs. + + + + Called when touch move on the chart. + + TouchEventArgs. + + + + Called when touch up on the chart. + + TouchEventArgs + + + + Called when the event occurs. + + The data for the event. + + + + Called when the event occurs. + + The data for the event. + + + + Called when the event occurs. + + The data for the event. + + + + Called when the event occurs. + + The data for the event. + + + + Called when the event occurs. + + Event data for the event. + + + + Called when the event occurs. + + Event data for the event. + + + + Called when the event occurs. + + Event data for the event. + + + + Called when drop the pointer in the chart. + + DragEventArgs. + + + + Called when drag over the chart. + + DragEventArgs. + + + + Called when drag leave from the chart. + + DragEventArgs. + + + + Called when drag enter into the chart. + + DragEventArgs. + + + + Method to remove the border lines in row and column definition. + + + + + This method is to update bitmap series tooltip. + + + + + Occurs when chart zooming value is changed. + + + + + Occurs when zooming takes place in chart. + + + + + Occurs at the start of selection zooming. + + + + + Occurs during selection zooming. + + + + + Occurs at the end of selection zooming. + + + + + Occurs when panning position of chart is changed. + + + + + Occurs when panning takes place in chart. + + + + + Occurs when the zoom is reset. + + + + + Gets or sets primary axis for . + + + + + Gets or sets the secondary axis for . + + + + + Gets or sets the chart watermark. + + + + + Gets or sets the color to paint the outline of chart area. + + + The value. + + + + + Gets or sets the outline thickness of chart area. + + + + + Gets or sets the background color of the plotting area. + + + The value. + + + + + Gets or sets the collection of chart behaviors. + + + + + Gets or sets a collection of series to be added to the chart. To render a series, create an instance of required series class, and add it to the collection. + + + + + Gets or sets a collection of technical indicators to the chart. + + + + + Gets or sets a collection of annotations to the chart. + + + + + Property to get the list of lines added for a row definition. + + + + + Property to get the list of lines added for a column definition. + + + + + Represents chart series bounds changed event arguments. + + + It contains information like old bounds and new bounds. + + + + + Called when instance created for . + + + + + Gets or sets the updated bounds of the rectangle. + + + + + Gets or sets the previous bounds of the rectangle. + + + + + Gets or sets a value indicating whether to show the print dialog or not. + + + + + Gets or sets a value indicating whether to cancel the printing or not. + + + + + Gets or sets a value for print dialog. + + + + + + Gets or sets a value for print visual. + + + + + + Defines the namespace to intialize the SfChart, SfDateTimeRangeNavigator and SfSurfaceChart control. + + + + + Represents an axis label element. + + + + + Constructor + + + + + Called when instance created for ChartAxisLabel with following arguments + + + + + + + + Called when instance created for ChartAxisLabel with following arguments + + + + + + + Gets or sets content of Axis Label. + + + + + Gets or sets PrefixLabelTemplate of Axis Label. + + + + + + + + Gets or sets PostfixLabelTemplate of Axis Label. + + + + + + + + Gets or sets position of Axis Label. + + + + + Gets or sets actual value used for XForms.UWP + + + + + Gets or sets LabelStyle for individual Axis Used for xForms.uwp + + + + + Used for xForms.UWP to return true if label content is changed + + + + + Gets or sets ChartAxis Property used for xForms.uwp + + + + + Gets or sets Alignment property for individual axis label. + + + + + Represents an date time axis label element. + + + + + Constructor + + + + + Called when instance created for DateTimeAxisLabel with following arguments + + + + + + + + Called when instance created for DateTimeAxisLabel with following arguments + + + + + + + Gets or sets the date time interval type. + + + + + + + + Gets whether Transition is allowed or not + + + + + Represents chart series bounds changed event arguments. + + + It contains information like old bounds and new bounds. + + + + + Gets or sets the updated bounds of the rectangle. + + + + + Gets or sets the previous bounds of the rectangle. + + + + + Represents chart series bounds changed event arguments. + + + It contains information like old bounds and new bounds. + + + + + Gets or sets the updated range of the chart axis. + + + + + Gets or sets the previous range of the chart axis. + + + + + Class implementation for Label created event arguments. + + + + + Gets or sets the chart axis label for further customization. + + + + + Represents chart axis actual range changed event arguments. + + + + + Initializes a new instance of the class. + + The axis. + + + + Gets or sets a value indicating whether to enable scrolling. + + + + + Gets or sets object that represents definite minimum value of axis range. + + + The actual minimum. + + + + + Gets or sets object that represents definite maximum value of axis range. + + + The maximum. + + + + + Gets or sets object that represents observable minimum value of axis range. + + + The minimum. + + + + + Gets or sets object that represents observable maximum value of axis range. + + + The maximum. + + + + + Gets or sets object that represents definite interval value of axis range. + + + + + Represents legend for a . + + + Chart legend will be added as chart's child. Each item in legend contain key information about the . Legend has all abilities such as docking, enabling or + disabling desired series in a . + + + + <syncfusion:SfChart> + <syncfusion:SfChart.Legend> + <syncfusion:ChartLegend/> + </syncfusion:SfChart.Legend> + <syncfusion:Series/> + </syncfusion:SfChart > + + + ChartLegend chartLegend = new ChartLegend(); + ChartArea.Legend = chartLegend; + + + + + + The DependencyProperty for property. + + + + + Identifies the OffsetX dependency property. + The DependencyProperty for property. + + + + + Identifies the OffsetY dependency property. + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Identifies the CornerRadius dependency property. + The DependencyProperty for property. + + + + + Identifies the CheckBoxVisibility dependency property. + The DependencyProperty for property. + + + + + Identifies the ToggleSeriesVisibility dependency property. + The DependencyProperty for property. + + + + + Identifies the IconVisibility dependency property. + The DependencyProperty for property. + + + + + Identifies the IconWidth dependency property. + The DependencyProperty for property. + + + + + Identifies the IconHeight dependency property. + The DependencyProperty for property. + + + + + Identifies the ItemMargin dependency property. + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Returns the instance of class. + + object. + + + + Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the WPF infrastructure. + + The type-specific System.Windows.Automation.Peers.AutomationPeer implementation. + + + + Called when the mouse moved on the . + + Event args. + + + + Called when the mouse button pressed on the . + + Event args. + + + + Called when the mouse leaved from the chart legend. + + Event args. + + + + Gets or sets the orientation of chart legend. + + + + + + + + Gets or sets the position of the ChartLegend. + + + + + + + + Gets or sets the legend position in the chart. + + + This is works for 2D charts alone. + + + + + + + + Gets or sets the margin for legend item. + + + + + Gets or sets the header for the legend. + + + + + Gets or sets the legend header template. + + + + + + + + Gets or sets the CornerRadius of legend's border. + + + + + + + + Gets or sets a value that determines whether to show/hide CheckBox in legend item. + + + + + + + + Gets or sets a value indicating whether ToggleSeriesVisibility is enabled. + + + + + Gets or sets the visibility of the legend icon. + + + + + + + + Gets or sets width of the legend icon. + + + + + Gets or sets height of the legend icon. + + + + + Gets or sets the value used to move the ChartLegend on x-coordinate. + + + This property is working for dock position as Floating only. + + + + + Gets or sets the series value to get data point based legend items. + + + + + Gets or sets the value used to move the ChartLegend on y-coordinate. + + + This property is working for dock position as Floating only. + + + + + Represents the class implementation for LegendItem. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Occurs when a property value changed. + + + + + Gets or sets the value for the legend item label text. + + + + + Gets or sets the data template for the legend icon. + + + + + + + + Gets or sets stroke for the legend item. + + + The value. + + + + + Gets or sets stroke thickness for legend item. + + + + + Gets or sets interior for legend item. + + + The value. + + + + + Gets or sets icon visibility of the legend item. + + + + + Gets or sets checkbox visibility of the legend item. + + + + + Gets or sets width of the legend item icon. + + + + + Gets or sets height of the legend item icon. + + + + + Gets or sets margin of the legend item. + + + + + Gets or sets a value indicating whether is series visible or not. + + + + + Gets or sets value whether legend is visible or not. + + + + + Gets or sets Opacity of the legend item. + + + + + Gets or sets Segment of the legend item. + + + + + Gets or sets Item of the legend item. + + + + + Gets or sets the Trendline of the legend item. + + + + + Gets or sets the Series of the legend item. + + + + + AreaSeries connects its data points,using a continuous line with its underlying areas being filled in. + + + + <syncfusion:AreaSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:AreaSeries> + + + AreaSeries series1 = new AreaSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Creates the segments of AreaSeries. + + + + + Add the into the Segments collection. + + The xValues. + The yValues. + + + + This method used to gets the chart data point at a position. + + + + + + + Method used to set SegmentSelectionBrush to selectedindex chartsegment + + + + + + + + + + Returns the instance of series. + + object + + + + Used to update the series tooltip when pointer moved on series. + + EventArgs + + + + Gets or sets a value that indicates whether area path should be closed or opened. This is a bindable property. + + + If its true, Area stroke will be closed; otherwise stroke will be applied on top of the series only. + + + + + Gets or sets the interior (brush) for the selected segment(s). + + + The value. + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected and its default value is -1. + + + + + Gets the value which confirms whether this series in linearity. + + + Returns true if its linear, otherwise it returns false. + + + + + Gets the value which confirms whether it is area typed series. + + + Returns true if its linear, otherwise it returns false. + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns list of . + + + + + Bubble series displays a set of circular symbols of varying size. It is represented by closely packed circles, whose areas are proportional to the quantities. + + + BubbleSeries requires an additional data binding parameter in addition to X,Y parameters. + The size of each bubble depends on the size value given in the data point. and properties can be used to + control the minimum and maximum radius of the symbols. + + + + <syncfusion:BubbleSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value" Size="Size"> + </syncfusion:BubbleSeries> + + + BubbleSeries series1 = new BubbleSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + series1.Size="Size"; + chart.Series.Add(series1); + + + + + + + + The DependencyProperty of property + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when instance created for BubbleSeries + + + + + Creates the Segments of BubbleSeries. + + + + + Method used to generate points for bubble series. + + + + + + + + Called when ItemsSource property changed. + + + + + + + Returns the instance of series. + + object + + + + This method used to check the position within the ellipse + + + + + + + + Gets or sets a value that indicates whether to show the bubble segment when apply size value to 0. This is a bindable property. + + + + + Gets or sets the interior (brush) for the selected segment(s). + + + The value. + + + + series.SegmentSelectionBrush = new SolidColorBrush(Colors.Red); + + + + + + Gets or sets the maximum size for each bubble. + + + + + Gets or sets a value that specifies the maximum size for each bubble segment. This is a bindable property. + + + + + Gets or sets the property binding path that specifies the bubble series size. This is a bindable property. + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + Gets or sets the custom template for this series. + + + + + + This example, we are using . + + + + <syncfusion:ScatterSeries ItemsSource="{Binding Demands}" XBindingPath="Demand" YBindingPath="Year2010" + ScatterHeight="40" ScatterWidth="40"> + <syncfusion:ScatterSeries.CustomTemplate> + <DataTemplate> + <Canvas> + <Path Data="M20.125,32l0.5,12.375L10.3125,12.375L10.3125,0.5L29.9375,0.5L29.9375,12.375L39.75,12.375Z" + Stretch="Fill" Fill="{Binding Interior}" Height="{Binding ScatterHeight}" Width="{Binding ScatterWidth}" + Canvas.Left="{Binding RectX}" Canvas.Top="{Binding RectY}"/> + </Canvas> + </DataTemplate> + </syncfusion:ScatterSeries.CustomTemplate> + </syncfusion:ScatterSeries> + + + + + + CandleSeries is used primarily to analyze price movements of a stcock market over a period of time. + + + Each data point contains four values namely open, high, low, close. Typically, the high and low values are connected using a vertical straight line, + whereas the region between open and close values are connected using a vertical column segment. + + + + <syncfusion:CandleSeries ItemsSource="{Binding Data}" XBindingPath="Year" High="High" Open="Open" Close="Close" Low="Low"> + </syncfusion:CandleSeries> + + + CandleSeries series1 = new CandleSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.High="High"; + series1.Low="Low"; + series1.Open="Open"; + series1.Close="Close"; + chart.Series.Add(series1); + + + + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Creates the segments of CandleSeries. + + + + + + + + Returns the instance of series. + + object + + + + Method used to calculate the segment spacing. + + Spacing + Right + Left + + + + Method is used to check the point in on line + + + + + + + + + Gets or sets the spacing between the segments across the series in cluster mode. + + + The value ranges from 0 to 1. + + + + + Gets or sets the interior (brush) for the selected segment(s). + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected and its default value is -1. + + + + + Gets a value indicating whether this series is placed side by side. + + + It returns true, if the series is placed side by side [cluster mode]. + + + + + ColumnSeries displays its data points using a set of vertical bars. Its height is proportional to the data points being plotted. + + + + <syncfusion:ColumnSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:ColumnSeries> + + + ColumnSeries series1 = new ColumnSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Creates the segments of ColumnSeries. + + + + + + + + Returns the instance of series. + + object + + + + Resets the dragging elements. + + The reason. + if set to true, DragEndEvent will raise . + + + + Called when dragging started. + + mouse position + original source + + + + Called when dragging series. + + mouse position + original source + + + + Called when dragging end. + + mouse position + original source + + + + Called when dragging entered. + + mouse position + original source + + + + Method used to calculate the segment spacing. + + Spacing + Right + Left + + + + Add the into the Segments collection. + + The values. + The xValue. + The yValue. + The actualData. + + + + Gets or sets the interior (brush) for the selected segment(s). + + + The value. + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected and its default value is -1. + + + + + Gets or sets the spacing between the segments across the series in cluster mode. + + + The value ranges from 0 to 1. + + + + + Gets or sets the custom template for this series. + + + + + + This example, we are using . + + + + <syncfusion:ScatterSeries ItemsSource="{Binding Demands}" XBindingPath="Demand" YBindingPath="Year2010" + ScatterHeight="40" ScatterWidth="40"> + <syncfusion:ScatterSeries.CustomTemplate> + <DataTemplate> + <Canvas> + <Path Data="M20.125,32l0.5,12.375L10.3125,12.375L10.3125,0.5L29.9375,0.5L29.9375,12.375L39.75,12.375Z" + Stretch="Fill" Fill="{Binding Interior}" Height="{Binding ScatterHeight}" Width="{Binding ScatterWidth}" + Canvas.Left="{Binding RectX}" Canvas.Top="{Binding RectY}"/> + </Canvas> + </DataTemplate> + </syncfusion:ScatterSeries.CustomTemplate> + </syncfusion:ScatterSeries> + + + + + + Gets a value indicating whether this series is placed side by side. + + + It returns true, if the series is placed side by side [cluster mode]. + + + + + + + + + + Identifies the EnableAntiAliasing dependency property. + + + The identifier for EnableAntiAliasing dependency property. + + + + + Identifies the StrokeDashArray dependency property. + + + The identifier for StrokeDashArray dependency property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Used to create the segment of . + + + + + Method used to return the hittest series while mouse action. + + + + + + This method used to gets the chart data point at a position. + + + + + + + Method used to trigger SelectionChanged event to SelectedIndex segment. + + new index + old index + + + + + + + Invoked when VisibleRange property changed. + + that contains the event data. + + + + Returns the instance of series. + + object + + + + Called when property changed. + + ItemsSource old value. + ItemsSource new value + + + + + + Called when pointer or mouse moving on chart area. + + Event args that contains the event data. + + + + Method used to check the point within the polygon or not. + + + + + + + + Method used to get polygon points. + + + + + + + + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + + Gets or sets the interior (brush) for the selected segment(s). + + + The value. + + + + + + Gets or sets a value that indicates whether to enable anti-aliasing for , to draw smooth edges. + + + Default value is false. + + + + + Gets or sets the stroke dash array for the line stroke. + + + It takes the value. The default value is null. + + + + + + + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns the list of . + + + + + + Represents a special kind of line series which uses poly lines for rendering chart points. FastLineSeries allows to render a collection with large number of data points. + + + FastLineSeries renders large quantity of data in fraction of milliseconds using poly lines. FastLineBitmapSeries also can be used for better performance which uses WriteableBitmap to render the series. + + + # [MainWindow.xaml](#tab/tabid-1) + + + + + + + + + + + + + + ]]> + # [MainWindow.cs](#tab/tabid-2) + + # [ViewModel.cs](#tab/tabid-3) + Data { get; set; } + + public ViewModel() + { + Data = new ObservableCollection(); + Data.Add(new Model() { XValue = 10, YValue = 100 }); + Data.Add(new Model() { XValue = 20, YValue = 150 }); + Data.Add(new Model() { XValue = 30, YValue = 110 }); + Data.Add(new Model() { XValue = 40, YValue = 230 }); + } + ]]> + *** + + + + + + + + Identifies the CustomTemplate dependency property. + + + The identifier for CustomTemplate dependency property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Used to create the segment of . + + + + + MEthod used to create empty point segments. + + Yvalues + YValues list + XValues list + + + + This method used to gets the chart data point at a position. + + + + + + + Method used to trigger SelectionChanged event to SelectedIndex segment. + + new index + old index + + + + + + + Invoked when pointer or mouse move on chart area. + + Events args thats contains the event data. + + + + Called when property changed. + + ItemsSource old value. + ItemsSource new value + + + + + + Invoked when VisibleRange property changed. + + that contains the event data. + + + + Returns the instance of series. + + object + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + + Gets or sets the interior (brush) for the selected segment(s). + + + + + + Gets or sets the stroke dash array forline to customize the appearance of FastLineSeries. This is a bindable property. + + + It takes the value. + + + + + Gets or sets the stroke dash offset for line to customize the appearance of FastLineSeries. This is a bindable property. + + + Its takes the double value. + + + + + Gets or sets the stroke dash cap for the stroke. + + + It takes the value. + + + + + Gets or sets the line join for the stroke of the line. + + + It takes the value. + + + + + Gets or sets the DataTemplate used to customize the poly line appearence. + + + The template that specifies poly line inside canvas. The default is null. + + + This data template should be loaded with poly line inside canvas where poly line appearence properties like stroke dasharray, stroke dashoffset, stroke dashcap, stroke linejoin can be customized. + + + # [MainWindow.xaml](#tab/tabid-1) + + + + + + + + + + + + + + + + + + + + + ]]> + # [MainWindow.cs](#tab/tabid-2) + + *** + + + + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns the list of . + + + + + HiLoOpenCloseSeries is used primarily to analyze price movements of a stock market over a period of time. + + + Each data point contains two values namely high, low. Typically, the high and low values are connected using a vertical straight line. + + + + <syncfusion:HiLoOpenCloseSeries ItemsSource="{Binding Data}" XBindingPath="Year" High="High" Open="Open" Close="Close" Low="Low"> + </syncfusion:HiLoOpenCloseSeries> + + + HiLoOpenCloseSeries series1 = new HiLoOpenCloseSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.High="High"; + series1.Low="Low"; + series1.Open="Open"; + series1.Close="Close"; + chart.Series.Add(series1); + + + + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Creates the segments of HiLoOpenCloseSeries + + + + + + + + Returns the instance of series. + + object + + + + Method used to check the given checkPoint within the startPoint and endPoint + + + + + + + + + + Gets or sets the spacing between the segments across the series in cluster mode. + + + The value ranges from 0 to 1. + + + + + Gets or sets the interior(brush) for the selected segment(s). + + + The value. + + + + series.SegmentSelectionBrush = new SolidColorBrush(Colors.Red); + + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + Indicates that this series requires multiple y values. + + + + + Gets a value indicating whether this series is placed side by side. + + + It returns true, if the series is placed side by side [cluster mode]. + + + + + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Creates the segments of HiLoSeries. + + + + + This method used to gets the chart data point at a position. + + + + + + + + + + Returns the instance of series. + + object + + + + Method used to check the given checkPoint within the startPoint and endPoint + + + + + + + + + Gets or sets the interior(brush) for the selected segment(s). + + + The value. + + + + series.SegmentSelectionBrush = new SolidColorBrush(Colors.Red); + + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + Indicates that this series requires multiple y values. + + + + + Gets a value indicating whether this series is placed side by side. + + + It returns true, if the series is placed side by side [cluster mode]. + + + + + + + + + + Initializes c_distributionPointsCount + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes c_sqrtDoublePI + + + + + Called when instance created for HistogramSeries + + + + + Creates the segments of HistogramSeries. + + + + + Updates the segment at the specified index. + + The index of the segment. + The action that caused the segments collection changed event + + + + Method used to generate points for histogram series. + + + + + Called when YAxis property changed. + + old axis + new axis + + + + Called when XAxis value changed. + + old axis + new axis + + + + + + + Called when ItemsSource property changed. + + old value + new value + + + + Called when binding path changed. + + Event args + + + + + Called when pointer or mouse move on chart area. + + Event args + + + + Returns the instance of series. + + object + + + + Gets the histogram mean and deviation. + + The cpwi A. + The mean value. + The standart deviation. + + + + Normal Distribution function. + + The x value. + The m value. + The sigma value. + The Normal Distribution + + + + Gets or sets the property path bind with y axis. + + + + + Gets or sets a value that specifies the interval to combine in histogram axis. This is a bindable property. + + + + + Gets or set the line style of normal distribution curve. + + + + <syncfusion:SfChart.Resources> + <Style TargetType = "Polyline" x:Key="curveLineStyle"> + < Setter Property = "Stroke" Value="YellowGreen"/> + < Setter Property = "StrokeThickness" Value="3"/> + < Setter Property = "StrokeDashArray" Value="1,2" /> + </Style> + </syncfusion:SfChart.Resources> + <syncfusion:HistogramSeries HistogramInterval="10" ItemsSource="{Binding Data}" CurveLineStyle = {StaticResource curveLineStyle} + XBindingPath="Year" YBindingPath="Value"> + </syncfusion:HistogramSeries> + + + SfChart chart = new SfChart(); + Style style = new Style(typeof(Polyline)); + style.Setters.Add(new Setter(Polyline.StrokeProperty, Brushes.Green)); + style.Setters.Add(new Setter(Polyline.StrokeThicknessProperty, 5.0)); + DoubleCollection doubleCollection = new DoubleCollection(); + doubleCollection.Add(2); + doubleCollection.Add(3); + style.Setters.Add(new Setter(Polyline.StrokeDashArrayProperty, doubleCollection)); + HistogramSeries series1 = new HistogramSeries(); + series1.ItemsSource = viewmodel.Data; + series1.HistogramInterval = "10"; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + series1.CurveLineStyle = style; + chart.Series.Add(series1); + + + + + + + Gets or sets a value indicating whether to enable the distribution curve in the histogram series. + + + + + Gets or sets the x axis for the Histogram series. + + + + + Gets or sets the y axis for the Histogram series. + + + + + Gets or sets the x axis range. + + + + + Gets or sets the y axis range. + + + + + Line chart displays series as a set of points connected using a straight line to represent large amounts of data observed over a continuous period of time. + + + LineChart appearance can be customized by using property. + + + + <syncfusion:LineSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:LineSeries> + + + LineSeries series1 = new LineSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The Dependency property for property. + + + + + Creates the segments of LineSeries. + + + + + This method used to gets the chart data point at a position. + + + + + + + Method used to set SegmentSelectionBrush to SelectedIndex segment. + + new index + old index + + + + + + + Called when pointer or mouse move on chart area. + + Event args + + + + Returns the instance of series. + + object + + + + Resets the dragging elements. + + The reason. + if set to true, DragEndEvent will raise. + + + + Called when dragging started. + + mouse position + original source + + + + Called when dragging ended. + + mouse position + original source + + + + Add the into the Segments collection. + + The values. + The actualData. + + + + Gets or sets the custom template for this series. + + + This example, we are using . + + + + <syncfusion:ScatterSeries ItemsSource="{Binding Demands}" XBindingPath="Demand" YBindingPath="Year2010" + ScatterHeight="40" ScatterWidth="40"> + <syncfusion:ScatterSeries.CustomTemplate> + <DataTemplate> + <Canvas> + <Path Data="M20.125,32l0.5,12.375L10.3125,12.375L10.3125,0.5L29.9375,0.5L29.9375,12.375L39.75,12.375Z" Stretch="Fill" + Fill="{Binding Interior}" Height="{Binding ScatterHeight}" Width="{Binding ScatterWidth}" + Canvas.Left="{Binding RectX}" Canvas.Top="{Binding RectY}"/> + </Canvas> + </DataTemplate> + </syncfusion:ScatterSeries.CustomTemplate> + </syncfusion:ScatterSeries> + + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + Gets or sets the interior(brush) for the selected segment(s). + + + The value. + + + + + Gets or sets the stroke dash array for line to customize the appearance of LineSeries. This is a bindable property. + + + . + + + + + Gets the value which confirms whether this series in linearity. + + + Returns true if its linear, otherwise it returns false. + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns list of . + + + + + + + + + + The DependencyProperty for property. + + + + + Called when instance created for PieSeries + + + + + Creates the segments of PieSeries. + + + + + Gets the pie series count. + + + + + + Return IChartTranform value based upon the given size. + + size + bool + + + + + + + + Method implementation for Create Adornments. + + series + xvalue + yvalue + angle + radius + + + + + Method implementation for ExplodeIndex. + + + + + + Virtual Method for ExplodeRadius. + + + + + Virtual method for ExplodeAll. + + + + + Returns the instance of series. + + object + + + + Called when ItemsSource changed. + + old value + new value + + + + Gets or sets a value that specifies the ratio of pie size with respect to chart area. This is a bindable property. + + + The value ranges from 0 to 1. + + + + + Represents a series which visualizes data in terms of values and angles. It provides options for visual comparison between several quantitative or qualitative aspects of a situation. + + + Polar charts are most commonly used to plot polar data, where each data point is determined by an angle and a distance. + + + # [MainWindow.xaml](#tab/tabid-1) + + + + + + + + + + + + + + + + + + ]]> + # [MainWindow.cs](#tab/tabid-2) + + # [ViewModel.cs](#tab/tabid-3) + Data { get; set; } + + public ViewModel() + { + Data = new ObservableCollection(); + Data.Add(new Model() { XValue = 10, YValue = 100 }); + Data.Add(new Model() { XValue = 20, YValue = 150 }); + Data.Add(new Model() { XValue = 30, YValue = 110 }); + Data.Add(new Model() { XValue = 40, YValue = 230 }); + } + ]]> + *** + + + + + + Creates the segments of PolarSeries. + + + + + Add the into the Segments collection. + + The values. + + + + + + + + + + Returns the instance of series. + + object + + + + Represents a series which visualizes data in terms of values and angles. It provides options for visual comparison between several quantitative or qualitative aspects of a situation. + + + Unlike the , RadarSeries does not display data in terms of polar coordinates. + RadarSeries is useful for comparisons between multiple series of category data. + + + # [MainWindow.xaml](#tab/tabid-1) + + + + + + + + + + + + + + + + + + ]]> + # [MainWindow.cs](#tab/tabid-2) + + # [ViewModel.cs](#tab/tabid-3) + Data { get; set; } + + public ViewModel() + { + Data = new ObservableCollection(); + Data.Add(new Model() { XValue = 10, YValue = 100 }); + Data.Add(new Model() { XValue = 20, YValue = 150 }); + Data.Add(new Model() { XValue = 30, YValue = 110 }); + Data.Add(new Model() { XValue = 40, YValue = 230 }); + } + ]]> + *** + + + + + + Creates the Segments of RadarSeries. + + + + + Add the into the Segments collection. + + The values. + + + + + + + + + + Returns the instance of series. + + object + + + + RangeColumnSeries displays data points as a set of vertical bars of varying heights,starting at different points within a area of. + + + + <syncfusion:RangeColumnSeries ItemsSource="{Binding Data}" XBindingPath="Year" High="High" Low="Low"> + </syncfusion:RangeColumnSeries> + + + RangeColumnSeries series1 = new RangeColumnSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.High = "High"; + series1.Low = "Low"; + chart.Series.Add(series1); + + + + + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Creates the segments of RangeColumn Series. + + + + + + + + Returns the instance of series. + + object + + + + Called when dragging started. + + mouse position + original source + + + + Called when dragging ended. + + mouse position + original source + + + + Called when dragging entered. + + mouse position + original source + + + + Called when dragging series. + + mouse position + original source + + + + Method used to calculate the segment spacing. + + Spacing + Right + Left + + + + Gets or sets the spacing between the segments across the series in cluster mode. + + + The value ranges from 0 to 1. + + + + + Gets or sets the interior(brush) for the selected segment(s). + + + The value. + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + Indicates that this series requires multiple y values. + + + + + Gets a value indicating whether this series is placed side by side. + + + It returns true, if the series is placed side by side [cluster mode]. + + + + + ScatterSeries displays data points as set of circular symbols. + Values are being represented by the position of the symbols on the chart. + + + ScatterSeries are typically used to compare aggregated data across categories. + + + + <syncfusion:ScatterSeries ScatterHeight = "10" ScatterWidth = "10" ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:ScatterSeries> + + + ScatterSeries series1 = new ScatterSeries(); + series1.ItemsSource = viewmodel.Data; + series1.ScatterHeight = 10; + series1.ScatterWidth = 10; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + + + The DependencyProperty for property. + + Using a DependencyProperty as the backing store for DragDirection. This enables animation, styling, binding, etc... + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Creates the segments of ScatterSeries. + + + + + + + + Returns the instance of series. + + object + + + + Called when dragging started. + + mouse position + original source + + + + Called when touch down on series. + + Event args + + + + Called when dragging entered. + + mouse position + original source + + + + Called when dragging series. + + mouse position + original source + + + + Called when dragging end. + + mouse position + original source + + + + Resets the dragging elements. + + The reason. + if set to true, DragEndEvent will raise. + + + + Called when dragging exit. + + mouse position + original source + + + + This method used to check the position within the ellipse + + + + + + + + Gets or sets the dragging direction. + + + + + Gets or sets the interior(brush) for the selected segment(s). + + + The value. + + + + + Gets or sets a value that specifies the width of the chart scatter segment. This is a bindable property. + + + The default value is 20. + + + + + Gets or sets a value that specifies the height of the chart scatter segment. This is a bindable property. + + + The default value is 20. + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + Gets or sets the custom template for this series. + + + + + + This example, we are using . + + + + <syncfusion:ScatterSeries ItemsSource="{Binding Demands}" XBindingPath="Demand" YBindingPath="Year2010" + ScatterHeight="40" ScatterWidth="40"> + <syncfusion:ScatterSeries.CustomTemplate> + <DataTemplate> + <Canvas> + <Path Data="M20.125,32l0.5,12.375L10.3125,12.375L10.3125,0.5L29.9375,0.5L29.9375,12.375L39.75,12.375Z" Stretch="Fill" + Fill="{Binding Interior}" Height="{Binding ScatterHeight}" Width="{Binding ScatterWidth}" + Canvas.Left="{Binding RectX}" Canvas.Top="{Binding RectY}"/> + </Canvas> + </DataTemplate> + </syncfusion:ScatterSeries.CustomTemplate> + </syncfusion:ScatterSeries> + + + + + + SplineAreaSeries connects it data points using a smooth line segment with the areas below are filled in. + + + + <syncfusion:SplineAreaSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:SplineAreaSeries> + + + SplineAreaSeries series1 = new SplineAreaSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + + + + The DependencyProperty for property. + + + + + Using a DependencyProperty as the backing store for SplineType. This enables animation, styling, binding, etc... + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Creates the segments of SplineAreaSeries. + + + + + This method used to gets the chart data point at a position. + + + + + + + Method used to set SegmentSelectionBrush to SelectedIndex segment. + + new index + old index + + + + + + + Called when ItemsSource property changed. + + old value + new value + + + + Returns the instance of series. + + object + + + + Called when pointer or mouse moving on chart area. + + Event args + + + + Method used to calculate cardinal spline values. + + xvalues + yvalues + + + + Method used to calculate monotonic spline values. + + xvalues + yvalues + + + + Method used to calculate the natural spline values. + + xvalues + yvalues + ys2 + + + + Method used to calculate the bezier values. + + chart point + chart point + ys1 + ys2 + chart point + chart point + + + + Gets or sets a value indicating whether area path should be closed or opened. + + + If its true, Area stroke will be closed; otherwise stroke will be applied on top of the series only. + + + + + Gets or sets SplineType enum value which indicates the spline series type. + + + + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + Gets or sets the interior(brush) for the selected segment(s). + + + The value. + + + + + Gets the value which confirms whether this series in linearity. + + + Returns true if its linear, otherwise it returns false. + + + + + This property used to confirm whether it is area typed series. + + + Returns true if its linear, otherwise it returns false. + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns the list of . + + + + + SplineSeries is similar to that of except that the points here are connected using smooth Bezier curves. + + + + <syncfusion:SplineSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value"> + </syncfusion:SplineSeries> + + + SplineSeries series1 = new SplineSeries(); + series1.ItemsSource = viewmodel.Data; + series1.XBindingPath = "Year"; + series1.YBindingPath = "Value"; + chart.Series.Add(series1); + + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Using a DependencyProperty as the backing store for SplineType. This enables animation, styling, binding, etc... + + + + + The Dependency property for + + + + + Creates the segments of SplineSeries. + + + + + This method used to gets the chart data point at a position. + + + + + + + Method used to set SegmentSelectionBrush to SelectedIndex segment. + + new index + old index + + + + + + + Called when pointer or mouse move on chart area. + + Event args + + + + Returns the instance of series. + + object + + + + Resets the dragging elements. + + The reason. + if set to true, DragEndEvent will raise. + + + + Called when dragging started. + + mouse position + original source + + + + Called when dragging end. + + mouse position + original source + + + + Method used to calculate cardinal spline values. + + xvalues + yvalues + + + + Method used to calculate monotonic spline values. + + xvalues + yvalues + + + + Method used to calculate the natural spline values. + + xvalues + yvalues + ys2 + + + + Method used to calculate the bezier values. + + chart point + chart point + ys1 + ys2 + chart point + chart point + + + + Gets or sets the custom template for this series. + + + + + + This example, we are using . + + + + <syncfusion:ScatterSeries ItemsSource="{Binding Demands}" XBindingPath="Demand" + ScatterHeight="40" YBindingPath="Year2010" ScatterWidth="40"> + <syncfusion:ScatterSeries.CustomTemplate> + <DataTemplate> + <Canvas> + <Path Data="M20.125,32l0.5,12.375L10.3125,12.375L10.3125,0.5L29.9375,0.5L29.9375,12.375L39.75,12.375Z" Stretch="Fill" + Fill="{Binding Interior}" Height="{Binding ScatterHeight}" Width="{Binding ScatterWidth}" + Canvas.Left="{Binding RectX}" Canvas.Top="{Binding RectY}"/> + </Canvas> + </DataTemplate> + </syncfusion:ScatterSeries.CustomTemplate> + </syncfusion:ScatterSeries> + + + + + + Gets or sets the index of the selected segment. + + + Int value represents the index of the data point(or segment) to be selected. + + + + + Gets or sets the interior(brush) for the selected segment(s). + + + The value. + + + + + Gets or sets SplineType enum value which indicates the spline series type. + + + + + + + + Gets or sets the stroke dash array for the spline series. + + + + + The property confirms the linearity of this series. + + + Returns true if its linear, otherwise it returns false. + + + + + Gets the selected segments in this series, when we enable the multiple selection. + + + It returns the list of . + + + + + A collection class which holds ChartBehaviors. + + + + + Called when instance created for ChartBehaviourCollection + + + + + + Called when instance created for ChartBehaviorsCollection + + + + + Inserts an item into the collection at the specified index. + + The zero-based index at which should be inserted. + The object to insert. + + + + Removes the item at the specified index of the collection. + + The zero-based index of the element to remove. + + + + Clears the behavior collection in the items. + + + + + Represents a collection of . + + + + + Inserts an item into the collection at the specified index. + + The zero-based index at which should be inserted. + The object to insert. + + + + ChartAxisLabelsCollection Clear Items + + + ChartAxisLabelsCollection + + + + + A collection class which holds chart legend + + + + + A collection class which holds ChartAxisScaleBreak + + + + + A collection class which holds ChartStripLine + + + + + A collection class which holds ChartMultiLevelLabels + + + + + A collection class which holds ChartAxis. + + + + + Inserts an item into the collection at the specified index. + + The zero-based index at which should be inserted. + The object to insert. + + + + return ChartAxis value from the given string + + + + + + A collection class which holds ChartTrendLine. + + + + + Called when instance created for ChartTrendLineCollection + + + + + return ChartTrendLine from the given string + + + + + + A collection class which holds ChartSeries. + + + + + return ChartSeries from the given string + + + + + + A collection class which holds ChartSeries 2D. + + + + + return ChartSeries from the given string + + + + + + A collection class which holds ChartSeries 3D. + + + + + return ChartSeries from the given string + + + + + + A collection class which holds ChartRowDefinitions + + + + + A collection class which holds ChartColumnDefinitions + + + + + A collection class that holds ChartAxisRangeStyle. + + + + + Converts Visibility to Boolean value and vice-versa. + + + + + Modifies the source data before passing it to the target for display in the UI. + + + The value to be passed to the target dependency property. + + The source data being passed to the target.The of data expected by the target dependency property.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Modifies the target data before passing it to the source object. This method is called only in bindings. + + + The value to be passed to the source object. + + The target data being passed to the source.The of data expected by the source object.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Converts Boolean value to Visibility value and vice-versa. + + + + + Modifies the source data before passing it to the target for display in the UI. + + + The value to be passed to the target dependency property. + + The source data being passed to the target.The of data expected by the target dependency property.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Modifies the target data before passing it to the source object. This method is called only in bindings. + + + The value to be passed to the source object. + + The target data being passed to the source.The of data expected by the source object.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Converts the angle value by series IsTransposed. + + + + + Called when instance created for ConnectorRotationAngleConverter + + + + + + Modifies the source data before passing it to the target for display in the UI. + + + The value to be passed to the target dependency property. + + The source data being passed to the target.The of data expected by the target dependency property.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Modifies the target data before passing it to the source object. This method is called only in bindings. + + + The value to be passed to the source object. + + The target data being passed to the source.The of data expected by the source object.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Resolves the color of the series or segment dynamically. + + + + + Called when instance created for InteriorConverter + + + + + + Modifies the source data before passing it to the target for display in the UI. + + + The value to be passed to the target dependency property. + + The source data being passed to the target.The of data expected by the target dependency property.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Modifies the target data before passing it to the source object. This method is called only in bindings. + + + The value to be passed to the source object. + + The target data being passed to the source.The of data expected by the source object.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Resolves the SegmentSelectionBrush of the series dynamically. + + + + + Called when instance created for InteriorConverter + + + + + + Modifies the source data before passing it to the target for display in the UI. + + + The value to be passed to the target dependency property. + + The source data being passed to the target.The of data expected by the target dependency property.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Modifies the target data before passing it to the source object. This method is called only in bindings. + + + The value to be passed to the source object. + + The target data being passed to the source.The of data expected by the source object.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Resolves the SeriesSelectionBrush of the series dynamically. + + + + + Called when instance created for InteriorConverter + + + + + + Modifies the source data before passing it to the target for display in the UI. + + + The value to be passed to the target dependency property. + + The source data being passed to the target.The of data expected by the target dependency property.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Modifies the target data before passing it to the source object. This method is called only in bindings. + + + The value to be passed to the source object. + + The target data being passed to the source.The of data expected by the source object.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Returns the brush to be used based on the property value. + + + + + Modifies the source data before passing it to the target for display in the UI. + + + The value to be passed to the target dependency property. + + The source data being passed to the target.The of data expected by the target dependency property.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Modifies the target data before passing it to the source object. This method is called only in bindings. + + + The value to be passed to the source object. + + The target data being passed to the source.The of data expected by the source object.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Returns the rotate angle. + + + + + Modifies the source data before passing it to the target for display in the UI. + + + The value to be passed to the target dependency property. + + The source data being passed to the target.The of data expected by the target dependency property.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Modifies the target data before passing it to the source object. This method is called only in bindings. + + + The value to be passed to the source object. + + The target data being passed to the source.The of data expected by the source object.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + set the margin for windows phone legend icon + + + + + Modifies the source data before passing it to the target for display in the UI. + + + + + Modifies back to the target data before passing it to the source object. + + + + + Modifies the chart adornment label based on content path. + + + + + Modifies the source data before passing it to the target for display in the UI. + + + The value to be passed to the target dependency property. + + The source data being passed to the target.The of data expected by the target dependency property.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Modifies the target data before passing it to the source object. This method is called only in bindings. + + + The value to be passed to the source object. + + The target data being passed to the source.The of data expected by the source object.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Represents a converter that returns the brush to axis label. + + + + + + Modifies the source data before passing it to the target for display in the UI. + + + The value to be passed to the target dependency property. + + The source data being passed to the target.The of data expected by the target dependency property.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Method used to get the given adornment is selected or not + + + + + + + Modifies the target data before passing it to the source object. This method is called only in bindings. + + + The value to be passed to the source object. + + The target data being passed to the source.The of data expected by the source object.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Sets the chart adornment border brush. + + + + + Modifies the source data before passing it to the target for display in the UI. + + + The value to be passed to the target dependency property. + + The source data being passed to the target.The of data expected by the target dependency property.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Modifies the target data before passing it to the source object. This method is called only in bindings. + + + The value to be passed to the source object. + + The target data being passed to the source.The of data expected by the source object.An optional parameter to be used in the converter logic.The culture of the conversion. + + + + Represents a expression converter that returns the binding based on value. + + + + + + Represents the converter that converts color values to brush values. + + + + + Converts a color value to a brush value. + + The color value to convert. + This parameter is not used. + This parameter is not used. + This parameter is not used. + Returns a brush value. + + + + Converts a brush value to a color value. + + The brush value to convert. + This parameter is not used. + This parameter is not used. + This parameter is not used. + Returns a color value. + + + + Contains members to hold PropertyInfo. + + + + + ChartAdornmentInfoBase represents the class used for configuring chart adornments for chart. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when instance created for . + + + + + Returns the clone adornment info. + + + + + Gets the bezier approximation. + + The control points. + The output segment count. + The list of points. + + + + Aligns the element. + + The control. + The vertical alignment. + The horizontal alignment. + The x. + The y. + + + + Find the Adornments which are positioned with in Visible Range. + + + + + Updates the adornment connecting lines. + + + + + Adornment element's properties have updated. + + + + + Updates the spider labels. + + The pie left. + The pie right. + The size. + Used to specify the pie radius. + + + + Align label position for straight connector line for circular series. + + + + + + + + + Specifies the . + + + + Draws the connecotr line. + + Index of the connector. + The drawing points. + The connector line mode. + Used to indicate the actual depth. + Used to indicate 3D chart or not. + + + + Panels the changed. + + The panel. + + + + Gets the adornment positions. + + The pie radius. + The bounds. + The final size. + The adornment. + Index of the label. + The pie left. + The pie right. + The label. + The series. + The x. + The y. + Used to specify the angle for adornment label. + Used to indicate, whether series is pie or not. + + + + Gets the actual label position when the chart is inversed or y values less than 0. + + + + + Draws the line segment. + + The points. + The path. + + + + Get equivalent from . + + which get type of . + + + + + + + Get equivalent from . + + which get type of . + + + + + + + Gets the bezier point. + + The t. + The control points. + The index. + The count. + + + + + Updates the adornment symbol symbol type is changed. + + The dependency object. + The event arguments. + + + + Updates the font style properties. + + The dependency object. + The event arguments. + + + + Updates the labels and position. + + The dependency object. + The event arguments. + + + + Updates the styling properties. + + The dependency object + The event arguments + + + + Updates the label. + + The dependency object. + The event arguments. + + + + Updates the label color properties. + + The dependency object. + The event arguments. + + + + Updates all the adornment properties. + + The dependency object. + The event arguments. + + + + Smarts the labels for outside. + + The bounds. + The drawing points. + The curr rect. + The label. + The center. + The label radius from origin. + Height of the connector. + The exploded radius. + The pie adornment. + + + + + Smarts the labels for inside. + + The adornment. + The bounds. + The label. + Height of the connector. + The label radius from origin. + The pie radius. + The drawing points. + The center. + The curr rect. + + + + + Updates the font style properties. + + + + + Updates the label color properties. + + + + + Updates all the adornment properties. + + + + + Gets or sets the rotation angle to the adornment label content. + + + The default value is 0 and the label will be rotated with center as origin. + + + + + Gets or sets the background brush for the adornment label. + + + The value. + + + + + Gets or sets the outer border thickness of the label. + + + + + Gets or sets the brush that draws the outer border stroke brush. + + + The value. + + + + + Gets or sets the outer margin of a label. + + + + + Gets or sets the top-level font style for the label. + + + + + + + + Gets or sets the font size for the label. + + + + + Gets or sets foreground brush to apply to the label content. + + + The value. + + + + + Gets or sets a value indicating whether the adornment should reflect the series interior. + + + if its true, the segment color will be applied for the respective adornments. + By default, its false. + + + + + Gets or sets the label position for the adornment. + + + + + + By defining its value as AdornmentsLabelPosition.Auto, the adornment label will position smartly based + on type of the series. + + + + + Gets or sets a value indicating whether to enable the selection for the adornments. + + + if its true, we can selected the data point by selecting adornments. + + + This feature will be useful for the continuous series like FastLine, Area, etc. + + + + + Gets or sets the horizontal alignment for the label. + + + + + + + + Gets or sets the vertical alignment for the label. + + + + + + + + Gets or sets the connector line height of the adornment. + + + + + Gets or sets the rotation angle for the connector line. + + + + + Gets or sets the connector line style. + + + + + + + + Gets or sets a value indicating whether to show or hide the connector line. + + + + + Gets or sets the custom template for the adornment label. + + + + + + + + Gets or sets the type of symbol to be displayed as adornment. + + + By default, symbol will not be displayed. We need to define the required shape. + + + The value can be Circle, Rectangle, etc. See . + + + + + Gets or sets the width of the adornment symbol. + + + The default value is 12. + + + + + Gets or sets the height of the adornment symbol. + + + The default value is 12. + + + + + Gets or sets the custom template for the adornment symbol. + + + + + + + + Gets or sets the background of the adornment symbol. + + + The value. + + + + + Gets or sets the stroke of the adornment symbol. + + + The value. + + + + + Gets or sets the adornment label font family. + + + Identifies font family that should be used to display adornment's text. + + + + + + + + Gets the associated series of this adornment. + + + + + Gets or sets the position of the adornments. + + + AdornmentsPosition.Top + AdornmentsPosition.Bottom + AdornmentsPosition.TopAndBottom + + + + + Gets or sets the actual label content to be displayed as adornment. + + + This property is used to define the value to be displayed in adornment label + like x value or any other value from underlying model object. + + + + + + + + Gets or sets the string formatting for the adornment labels. + + + + + Gets or sets a value indicating whether to show or hide the marker symbol. + + + + + Gets or sets a value indicating whether to show or hide the adornment label. + + + + + Gets the sum value of all data. + + + + + Gets a value indicating whether to generate the adornment containers. + + + + + Gets a value indicating whether the adornment label is rendered with textblock. + + + + + Represents the class used for configuring chart adornments for 2D chart. + + + Chart adornments are used to show additional information about the data point. + + + This example, we are using . + + <syncfusion:PieSeries> + <syncfusion:PieSeries.AdornmentInfo> + <syncfusion:ChartAdornmentInfo/> + </syncfusion:PieSeries.AdornmentInfo> + <syncfusion:PieSeries> + + + ChartAdornmentInfo chartAdornmentInfo = new ChartAdornmentInfo(); + pieSeries.AdornmentInfo = chartAdornmentInfo; + + + + + + Draws the line segment for adornment connector line. + + + + + Define auto position for the straight line. + + + + + + + + + + Represents the class used for configuring chart adornments for 3D chart. + + + Chart adornments are used to show additional information about the data point. + + + This example, we are using . + + <syncfusion:PieSeries3D> + <syncfusion:PieSeries3D.AdornmentInfo> + <syncfusion:ChartAdornmentInfo3D> + </syncfusion:PieSeries3D.AdornmentInfo> + <syncfusion:PieSeries3D> + + + ChartAdornmentInfo3D chartAdornmentInfo = new ChartAdornmentInfo(); + pieSeries3D.AdornmentInfo = chartAdornmentInfo; + + + + + + Draws the line segment for adornment connectorline. + + + + + ChartColorModel contains a number of predefined color palette and have custom brushes collection to populate a custom palette. + + + + + Called when instance created for ChartColorModel + + + + + Called when instance created for ChartColorModel with single arguments + + + + + + Returns the collection of brushes for specified pallete + + ChartColorPalette + List of brushes + + + + Returns the brushes used for metro palette. + + Metro Brushes + + + + Returns the brushes used for AutumnBrights palette. + + AutumnBrights Brushes + + + + Returns the brushes used for FloraHues palette. + + FloraHues Brushes + + + + Returns the brushes used for Pineapple palette. + + + + + + Returns the brushes used for TomatoSpectrum palette. + + TomatoSpectrum Brushes + + + + Returns the brushes used for TomatoSpectrum palette. + + TomatoSpectrum Brushes + + + + Returns the brushes used for RedChrome palette. + + RedChrome Brushes + + + + Returns the brushes used for PurpleChrome palette. + + PurpleChrome Brushes + + + + Returns the brushes used for BlueChrome palette. + + BlueChrome Brushes + + + + Returns the brushes used for GreenChrome palette. + + GreenChrome Brushes + + + + Returns the brushes used for Elite palette. + + Elite Brushes + + + + Returns the brushes used for SandyBeach palette. + + SandyBeach Brushes + + + + Returns the brushes used for LightCandy palette. + + LightCandy Brushes + + + + Returns the brush at the specified index for current palette + + + The value. + + + + + + + Stores the instance of the SurfaceBase class. + + + + + Gets or sets the custom brushes to be used to paint the interiors of each segment or series. + + + + + Represents a column definition. + + + The width of the row can be defined either in terms of fixed pixels units mode or in auto adjust mode, by using property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when instance created for ChartColumnDefinition + + + + + Clone the column + + + + + + Gets or sets the width of this column. + + + + + Gets or sets unit of the value to be specified for row width. + + + + + + + + Gets or sets the thickness of the column border. + + + + + Gets or sets the border stroke. + + + The value. + + + + + ChartPointInfo contains information about the displaying series data points. + + + + + Called when property changed + + + + + + Occurs when a property value changes. + + + + + Gets or sets the SeriesValues. + + + + + Gets or sets the associated series. + + + + + Gets or sets the associated axis. + + + + + Gets or sets the items of this data point. + + + + + Gets or sets the interior color of this data point. + + + The value. + + + + + Gets or sets the foreground color of this data point. + + + The value. + + + + + Gets or sets the border color of this data point. + + + The value. + + + + + Gets or sets the x value + + + + + Gets or sets the y value. + + + + + Gets or sets the high value. + + + + + Gets or sets the low value. + + + + + Gets or sets the open value. + + + + + Gets or sets the close value. + + + + + Gets or sets the median value. + + + + + Gets or sets the y value of the indicator segment. + + + + + Gets or sets the y value of the indicator segment. + + + + + Gets or sets the y value of the signal line in the indicator. + + + + + Gets or sets the x initial coordinate. + + + + + Gets or sets the y initial coordinate + + + + + Gets or sets the x coordinate + + + + + Gets or sets the y coordinate + + + + + Gets or sets the point collection. + + + + + Represents a row definition. + + + The height of the row can be defined either in terms of fixed pixels units mode or auto adjust mode, by using property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when instance created for ChartRowdefinitions + + + + + Clone the Row + + + + + + Gets or sets RowTap property + + + + + Gets or sets height of this row. + + + + + Gets or sets unit of the value to be specified for row height. + + + + + + + + Gets or sets the thickness of the border. + + + + + Gets or sets the brush for the border of the row. + + + The value. + + + + + Chart enables the user to highlight a specific region of by adding strip lines to it. + + + The strip lines length and width can be customized,a text label can be specified and also the look and feel can be customized too. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes a new instance of the class. + + + + + Clone the strip line + + + + + + Called when StartX property changes + + + + + + + Occurs when a property value changes. + + + + + Gets or sets the start range for the Stripline. + + + + + Gets or sets the fill color for this Stripline. + + + The value. + + + + + Gets or sets the border brush of the Stripline. + + + The value. + + + + + Gets or sets the border thickness. + + + + + Gets or sets the start value for the Stripline, when is set as true.. + + + + + Gets or sets the end value for the Stripline, when is set as true.. + + + + + Gets or sets the name of the axis associated with the segmented Stripline. + + + + + Gets or sets a value indicating whether to enable the segmented stripline. + + + + + Gets or sets the stripline interval. + + + This property used to draw multiple striplines repeatedly. + + + + + Gets or sets the end value, till that striplines will be drawn. + + + + + Gets or sets the label to be displayed inside the Stripline. + + + + + Gets or sets the custom template for the Stripline label. + + + + + + + + Gets or sets the width of the Stripline. + + + + + Gets or sets rotation angle for the Stripline angle. + + + + + Gets or sets a value indicating whether the value specified in Width property should be measured in pixels. + + + + + Gets or sets horizontal alignment of stripline label. + + + + + Gets or sets vertical alignment of the Stripline label. + + + + + Represents chart area segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + Constructor + + + + + Called when instance created for AreaSegments + + Used to specify the segment x-values + Used to specify the segment y-values + Used to specify the corresponding series + Used to specify the corresponding item model + + + + Called when instance created for AreaSegments + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Size of the panel + + returns UIElement + + + + + Gets the UIElement used for rendering this segment. + + returns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Method Implementation for set Binding to ChartSegments properties. + + + + + + Called to add the stroke for area series. + + + + + + Gets or sets the data point value, bind with x for this segment. + + + + + Gets or sets the data point value, bind with y for this segment. + + + + + Represents chart bubble segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + Called when instance created for . + + + + + Called when instance created for . + + + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Size of the panel + + retuns UIElement + + + + + Gets the UIElement used for rendering this segment. + + reurns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Reresents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Method implementation for Set Binding to visual elements. + + + + + + Gets the data point value, bind with x for this segment. + + + + + Gets the data point value, bind with y for this segment. + + + + + Gets or sets the size of the bubble segment. + + + It will not render the segment as in given size, its based on the other segments(as proportionate). + + + + + Gets or sets the segment radius in units of pixels. + + + + + Gets or sets the x position of the segment rect. + + + + + Gets or sets the y position of the segment rect. + + + + + Represents chart candle segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + Called when Instance created for CandleSegment + + + + + + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Size of the panel + + retuns UIElement + + + + + Gets the UIElement used for rendering this segment. + + reurns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Reresents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Method Implementation for set Binding to CandleSegment properties. + + + + + + Called when Property changed + + + + + + Gets the actual color used to paint the interior of the segment. + + + The value. + + + + + Gets or sets the interior of the segment represents bear value. + + + The value. + + + + + Gets or sets the interior of the segment represents bull value. + + + The value. + + + + + Gets or sets the high value of this segment. + + + + + Gets or sets the low value of this segment. + + + + + Gets or sets the open value of this segment. + + + + + Gets or sets the close value of this segment. + + + + + Represents chart adornment. + + Class instance is created automatically by WINRT Chart building system. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Constructor + + + + + Called when instance created for ChartAdornment + + + + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Size of the panel + + retuns UIElement + + + + + Gets the UIElement used for rendering this segment. + + reurns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Reresents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Updated the text for the adornment label TextBlock. + + + + + Gets or sets series property + + + + + Gets or sets the background brush to apply to the label content. + + + The value. + + + + + Gets or sets the outer border thickness of the adornment label. + + + + + Gets or sets the brush that draws the outer border color. + + + The value. + + + + + Gets or sets the outer margin of a label. + + + + + Gets or sets the font family for the adornment label. + + + Identifies font family that should be used to display adornment's text. + + + + + + + + Gets or sets the font style for the adornment. + + + + + + + + Gets or sets the font size for the label. + + + + + Gets or sets the foreground brush to be applied for the label content. + + + The value. + + + + + Gets or sets the rotation angle for the connectors. + + + + + Gets or sets the height of the connector line. + + + + + Gets the actual content displayed visually. Actual content is resolved based on . + + + + + Gets or sets the x-value to be bind in ChartAdornment. + + + + + Gets or sets the y-value to be bind in ChartAdornment. + + + + + Gets or sets the x screen coordinate relative to series + + + + + Gets or sets the y screen coordinate relative to series + + + + + Gets or sets contrast foreground or theme base foreground. + XAMARIN-38561 foreground not updated while using datamarker created event. provide majority for and . + + + + + Represents a ChartAdornment that used to render 3D element in chart. + + + + + + Called when instance created for ChartAdornment + + + + + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Represents chart adornment. + + Class instance is created automatically by WINRT Chart building system. + + + + Called when instance created for ChartPieAdornment + + + + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Reresents the view port of chart control.(refer ) + + + + Gets or sets Angle property + + + + + Gets or sets Radius property + + + + + Class implementation for triangularAdornments + + + + + Called when instance created for TriangularAdornment + + + + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Reresents the view port of chart control.(refer ) + + + + Represents a ChartAdornment that used to render visual in 3D chart. + + + + + + Called when instance created for ChartPieAdornment + + + + + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Gets or sets Angle property + + + + + Gets or sets Radius property + + + + + Represents chart empty point segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + Represents chart scatter segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + EllipseSegment property declarations + + + + + Constructor + + + + + Called when instance created for Scattersegment + + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Size of the panel + + retuns UIElement + + + + + Gets the UIElement used for rendering this segment. + + reurns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Reresents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Method Implementation for set Binding to ChartSegments properties. + + + + + + Gets the data point value, bind with x for this segment. + + + + + Gets the data point value, bind with y for this segment. + + + + + Gets or sets the width of the scatter segment. + + + + + Gets or sets the height of the scatter segment. + + + + + Gets or sets the X position of the segment rect. + + + + + Gets or sets the Y position of the segment rect. + + + + + Called when instance created for EmptyPointSegment with following arguments + + + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Size of the panel + + returns UIElement + + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Gets or sets empty point symbol height. + + + + + Gets or sets empty point symbol width. + + + + + Gets or sets the x coordinate of this segment. + + + + + Gets or sets the y coordinate of this segment. + + + + + Represents a chart segment which renders collection of points using writeablebitmap. + + + + + + Called when instance created for . + + + + + Called when instance created for . + + Used to specify the instance. + + + + Called when instance created for with following arguments. + + Used to specify the segment x values + Used to specify the segment y values + Used to specify the instance. + + + + + + + + + + + + + + + + + + + + + + Transforms for non logarithmic axis + + + + + Transforms for non logarithmic axis + + + + + + Represents a chart segment which renders collection of points using poly line. + + + + + + Segment xvalues. + + + + + Segment yvalues. + + + + + Called when instance created for . + + + + + Called when instance created for . + + Specifies the instance of series. + + + + Called when instance created for . + + Specifies the xvalues. + Specifies the yvalues. + Specifies the instance of series. + + + + + + + + + + + + + + + + + + + + + + Transforms for non logarithmic axis + + + + + Transforms for non logarithmic axis + + + + + + Gets or sets rendering mode for fastline segment. + + + + + Gets or sets collection of points to render. + + + + + Gets or sets xChartVals property. + + + + + Gets or sets yChartVals property. + + + + + Represents chart HiLoOpenClose segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + Constructor + + + + + Called when instance created for HiLoOpenCloseSegment + + + + + + + + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + + + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Size of the panel + + retuns UIElement + + + + + Gets the UIElement used for rendering this segment. + + reurns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Reresents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Method Implementation for set Binding to ChartSegments properties. + + + + + + Called when Property changed + + + + + + Gets the actual color used to paint the interior of the segment. + + + The value. + + + + + Gets or sets the interior of the segment represents bear value. + + + The value. + + + + + Gets or sets the interior of the segment represents bull value. + + + The value. + + + + + Gets or sets the high value of this segment. + + + + + Gets or sets the low value of this segment. + + + + + Gets or sets the open value of this segment. + + + + + Gets or sets the close value of this segment. + + + + + Represents chart HiLo segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + Called when instance created for HiLoSegment + + Used to specify segment x-value + Used to specify segment higher bounds + Used to specify segment lower bounds + Used to specify corresponding series + Used to specify corresponding item model + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Size of the panel + + returns UIElement + + + + + Gets the UIElement used for rendering this segment. + + returns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + Gets or sets the high(top) value bind with this segment. + + + + + Gets or sets the low(top) value bind with this segment. + + + + + Gets or sets the x value of the segment. + + + + + Represents chart Histogram segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + + + + + + + + + + + Class implementation for HistogramDistributionSegment + + + + + Called when instance created for HistogramDistributionSegment + + + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Size of the panel + + retuns UIElement + + + + + Gets the UIElement used for rendering this segment. + + reurns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Reresents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Method Implementation for set Binding to ChartSegments properties. + + + + + + Gets the data point value, bind with x for this segment. + + + + + Gets the data point value, bind with y for this segment. + + + + + Represents chart line segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + Called when instance created for . + + + + + Called when instance created for LineSegment with following arguments + + Used to specify segment x1 + Used to specify segment y1 + Used to specify segment x2 + Used to specify segment y2 + Used to specify corresponding series + Used to specify corresponding item model + + + + Called when instance created for LineSegment + + Used to specify segment x1 + Used to specify segment y1 + Used to specify segment x2 + Used to specify segment y2 + Used to specify corresponding item model + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Size of the panel + + retuns UIElement + + + + + Gets the UIElement used for rendering this segment. + + reurns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Reresents the view port of chart control.(refer ) + + + + The element to be bind. Method implementation for set bindings. + + The Element To Be Bind + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + + + + + Gets or sets the start point x value. + + + + + Gets or sets the start point y value. + + + + + Gets or sets the end point x value. + + + + + Gets or sets the end point y value. + + + + + Gets or sets the end point(y) of the line. + + + + + Gets or sets the end point(x) of the line. + + + + + Gets or sets the start point(y) of the line. + + + + + Gets or sets the end point(y) of the line. + + + + + Gets or sets the end data point x value, for this segment. + + + + + Gets or sets the start data point value, bind with x for this segment. + + + + + Gets or sets the start data point value, bind with y for this segment. + + + + + Gets or sets the end data point y value, for this segment. + + + + + Represents chart pie segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when instance created for . + + + + + Called when instance created for PieSegment + + Used to specify segment start angle + Used to specify segment end angle + Used to specify corresponding series + Used to specify corresponding item model + + + + Called when instance created for PieSegment with four arguments + + Used to specify segment start angle + Used to specify segment end angle + Used to specify corresponding series + Used to specify corresponding item model + Used to indicate whether the segment having interior for empty value or not + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Size of the panel + + returns UIElement + + + + + Gets the UIElement used for rendering this segment. + + reurns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + Method used to check the given co-ordinates lies in pie segment or not + + + + + + + + Method Implementation for set Binding to ChartSegments properties. + + + + + + Gets or sets a value indicating whether this segment can be exploded or not. + + + + + Gets the start angle of the . + + + + + Gets or sets the start angle of this pie slice. + + + + + Gets or sets the end angle of this pie slice. + + + + + Gets the end angle of the . + + + + + Gets the actual angle the slice. + + + + + Gets the data point value, bind with x for this segment. + + + + + Gets the data point value, bind with y for this segment. + + + + + Represents chart SplineArea segment. + + Class instance is created automatically by WINRT Chart building system. + + + + + Called when instance created for . + + + + + Constructor for SplineAreaSegment. + + + + + + + + + Called when instance created for . + + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Size of the panel + + returns UIElement + + + + + Gets the UIElement used for rendering this segment. + + returns UIElement + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Represents the view port of chart control.(refer ) + + + + Called whenever the segment's size changed. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + + + + + Method implementation for SetData + + + + + + + + Sets the values for this segment. This method is not intended to be called explicitly outside the Chart but it can be overriden by any derived class. + + + + + Method Implementation for set Binding to ChartSegments properties. + + + + + + Called to add the stroke for spline area series. + + + + + + Represents a chart segment which renders collection of points using area shape. + + + + + + Initializes a new instance of the . + + + + + Initializes a new instance of the . + + Used to specify the segment xvalues + Used to specify the segment yvalues + Used to specify the instance. + + + + Initializes a new instance of the . + + Used to specify the segment xvalues + Used to specify the segment yvalues + + + + + + + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overridden by + any derived class. + + Used to specify the segment x values. + Used to specify the segment y values. + + + + + + + + + + + + + Called to add the stroke for stacking area series. + + + + + + Gets or sets the data point value, which is used to bind with x value for this segment. + + A data point value, which is used to bind with x value of the segment. + + + + Gets or sets the data point value, which is used to bind with y value for this segment. + + A data point value, which is used to bind with y value of the segment. + + + + Represents a chart segment which renders collection of points using column shape. + + + + + + Initializes a new instance of the . + + + + + Initializes a new instance of the . + + Used to specify the segment x1 value. + Used to specify the segment y1 value. + Used to specify the segment x2 value. + Used to specify the segment y2 value. + Used to specify the instance. + + + + + + + Represents the panel which contains all the ChartAdornment elements. + + + The elements inside the panel comprises of adornment labels, marker symbols and connector lines to connect the labels. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes m_symbolPresenter. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + + + + Updates the adornment containers. + + + + + Provides the behavior for the Arrange pass of Silverlight layout. Classes can override this method to define their own Arrange pass behavior. + + + The actual size that is used after the element is arranged in layout. + + The final area within the parent that this object should use to arrange itself and its children. + + + + Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior. + + + The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects; or based on other considerations, such as a fixed container size. + + The Available Size + + + + Updates the adornment symbol on changed. + + The Dependency Object + The Event Arguments + + + + Sets the binding between the adornment symbol and + + + + + + Helper method to create the binding between symbol and . + + The Binding Path + The Binding Source + + + + + Updates the symbol. + + The Symbol String + + + + Gets or sets the label vertical alignment. + + The label vertical alignment. + + + + Gets or sets the label horizontal alignment. + + The label horizontal alignment. + + + + Gets or sets the chart symbol + + + + + Gets the symbol offset. + + The symbol offset. + + + + Gets or sets the . + + + + + Gets or sets the pre-defined adornment symbol. + + + + + A control that represents symbol in chart adornments + + + + + The DependencyProperty for property. + + + + + Gets or sets the stroke + + + The value. + + + + + Represents class. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Method is used to highlight the adornment. + + The Adornment Index + Used to indicate whether the corresponding data point selected or not + + + + Method is used to reset the adornment. + + + + + Updates the . + + The Available Size + + + + Arranges the adornment elements. + + The Final Size. + + + + Updates the visibility of the . + + The Dependency Object + The Event Arguments + + + + Gets or sets the VisibleSeries. This is a dependency property. + + The VisibleSeries. + + + + Gets or sets the Series collection in Chart. + + + + + Represents class. + + + + + Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior. + + + The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects; or based on other considerations, such as a fixed container size. + + + + + + Provides the behavior for the Arrange pass of Silverlight layout. Classes can override this method to define their own Arrange pass behavior. + + + The actual size that is used after the element is arranged in layout. + + The final area within the parent that this object should use to arrange itself and its children. + + + + Gets or sets AxisLayout property + + + + + Represents ChartCartesianAxisElementsPanel. + + + The elements inside the panel comprises of axis line, major ticklines and minor ticklines. + + + + + Initializes a new instance of the class. + + The Panel + + + + Method declaration for Measure + + The Available Size + Returns the size available for arranging the elements. + + + + Seek the elements. + + + + + Method declaration for Arrange + + The Final Size + Returns the arranged size. + + + + Method declaration for UpdateElements + + + + + Updates the tick lines. + + + + + Binds the axis line style with the . + + + + + Updates the tick lines. + + The Tick Lines Count + The Tick Lines Recycler + The Tick Lines Style + + + + Renders the axis line. + + The Final Size + + + + Renders the tick lines. + + The Final Size + The Line Recycler + The Orientation + The Tick Size + The Tick Postion + The Values + + + + Calcuates the tick position. + + The Tick Position + The Tick Size + The x 1 value + The y 1 value + The x 2 value + The y 2 value + + + + Renders the 3D tick lines. + + The Line Recycler + The Orientation + The Tick Size + The Tick Position + The Values + + + + Calculates the 3D position for the ticklines. + + The Tick Position + The Tick Size + The X 1 Value + The Y 1 Value + The X 2 Value + The Y 2 Value + The Actual Rotation Angle + + + + Gets or sets the left. + + + The left. + + + + + Gets or sets the top. + + + The top. + + + + + Gets the panel. + + + The panel. + + + + + Gets the desired size. + + + + + Gets the Children count in the panel. + + + + + Gets or sets the axis. + + + + + Gets or sets the main axis line. + + + + + Represents layout panel for chart axis labels. + + + The elements inside the panel comprises of labels.You can customize the label elements appearance using + property. + + + + + Initializes a new instance of the . + + The Panel + + + + Method declaration for Measure + + + + + + + Method declaration for Arrange + + + + + + + Seek the elements. + + + + + Method declaration for UpdateElements + + + + + Gets the panel. + + + The panel. + + + + + Gets the desired size of the panel. + + + + + Gets or sets the chart axis of the panel. + + + + + Gets the children count in the panel. + + + + + Gets or sets the left. + + + The left. + + + + + Gets or sets the top. + + + The top. + + + + + Gets or sets the direct children of + + + + + Gets or sets the . + + + + + Represents a base of chart axis label layout. + + + + + Specifies padding for label border. + + + + + Specifies auto rotation angle for label. + + + + + Specifies label margin. + + + + + initializes a new instance of the class. + + The Axis + The Elements + + + + Method used to create the axis layout. + + The Chart Axis + The Elements + Returns the created layout. + + + + Method declaration for Measure. + + The Available Size + Returns the size required for arranging the elements. + + + + Method declaration for Arrange. + + The Final Size + + + + Checks for the side by side series. + + Returns true when any of registered series is side by side series + + + + Checks the label placement + + Is Side By Side + Returns true when the label placement is between ticks + + + + Checks for the intersection of the rectangles. + + The First Rectangle + The Second Rectangle + The Previous Index + The Current Index + Returns a value indicating whether the rectanges are intersected. + + + + Insert the at the given row column index. + + The Row Column Index + The Item Index + The Rect + + + + Calulates the bounds + + The Size + + + + Checks the actual opposed position of the labels. + + The Axis + The Axis Opposed Indication + Returns the actual opposed position. + + + + Layuouts the axis labels. + + Returns desired height + + + + Calculates the actual plotoffset. + + The Available Size + + + + Checks whether two line segments are intersecting + + The Point 11 + The Point 12 + The Point 21 + The Point 22 + Returns a value indicating whether the lines are intersecting. + + + + Calculates the rotated size. + + The Angle + The Size + Returns the rotated size. + + + + Returns the points after translating the rect about (0,0) and then translating it by some x and y. + + Angle to rotate + Rect + Offset x to be translated after rotating + Offset y to be translated after rotating + Returns the rotated points. + + + + Checks whether two polygons intersects. + + Polygon + Polygon + + + + + Returns the points after rotating a rectangle. + + The Rectangle + The Index + Used to indicate label rotation angle + Returns the rotated points. + + + + Binds the visiblilty of the axis labels with . + + + + + Gets or sets the left of the + + + + + Gets or sets the top of the + + + + + Gets or sets the borders of the + + + + + Gets or sets the rects of rows and columns of labels. + + + + + Gets or sets the width and height of the element after rotating. + + + + + Gets or sets the width and height of the element without rotating. + + + + + Gets or sets the axis of the + + + + + Gets or sets the children. + + + + + Represents a axis layout in chart control that indicates the layout orientation as horizontal. + + + + + + Initializes a new instance of the class. + + The Axis + The Elements + + + + Measures the labels in the . + + The Available Size + Returns the size required to arrange the elements + + + + Arranges the labels in the + + + + + + Calculates the actual plot offset. + + The Available Size + + + + Layouts the elements + + Returns the desired height. + + + + Calculates the bounds. + + The Available Width + + + + Positions the labels back. + + Is Oppoosed Indication + The Left Element Shift. + The Top Element Shift + The Actual Tilt Angle + + + + Positions the label right. + + The Left Element Shift + The Top Element Shift + The Actaul Tilt Angle + + + + Positions the label left. + + The Left Element Shift + The Top Element Shift + The Actual Tilt Angle + + + + Positions the label front. + + Is Opposed Indication + The Left Element Shift + The Top Element Shift + The Actual Tilt Angle + + + + Calcuales the point. + + The Value + Returns the calculated point. + + + + To place the label border when the label placement is OnTicks + + The Dictionary + The Row + The Axis + The Tick Size + + + + To set the label border thickness. + + The Dictionary + The Axis + + + + To position the label border on its top value + + The Row + The Top + The Tick Size + + + + Shifts the labels according to the shifts. + + The Left Element Shift + The Top Element Shift + The Opposed Check + The Actual Rotation Angle + The Actual Tilt Angle + + + + Represents the class. + + + + + Called when instance created for . + + Used to indicates corresponding axis. + Uesd to indicates elements to be layout. + + + + Method declaration for Measure. + + The Available Size + Returns the desired height + + + + Method declaration for Arrange. + + The Final Size. + + + + Returns desired width + + Returns the total width of the rows and columns collection + + + + Calculates the bounds. + + The Available Height + + + + Calculates the actual plot offset. + + The Available Size + + + + To set the border thicknesss for axis label border + + The Dictionary + The Axis + + + + Calculates the corresponding screen co-ordinate value. + + The Value + Returns corresponding screen co-ordinate value + + + + To place the label when the LabelPlacement property is OnTicks + + The Dictionary + The Row + The Axis + The Tick Size + + + + To position the border on its left value + + The Row + The Left + The Tick Size + + + + Represents ChartCartesianAxisLayoutPanel + + + + + Initializes a new instance of the class. + + The Panel + + + + + Measures the elements in the panel. + + available size of the panel. + Returns the desired size + + + + Seek the elements from the panel. + + + + + Layouts the axis. + + The final size used to arrange axes. + + + + Adds the elements inside the panel. + + + + + Updates the legend arrange rectangle. + + + + + Check whether the declared series is manhattan. + + The Visible Series + The 3D Axis + Returns a value indicating whether the declared series is manhattan. + + + + Prevents the axis addition. + + The 3D Axis + Returns a value indicating wehter axis to be added in the axis collection. + + + + Spanning Calculation for each axis. + + + + + Measures the axis and it's elements + + The Available Size + The Series Clip Rectangle + + + + Calculates the row size. + + The Rectangle. + + + + Calculates the column size. + + The Rectangle + + + + Arranges the elements in the panel. + + Final size of the panel. + Returns Size + + + + Arranges the axes. + + + + + Gets or sets the chart area where the panel is bounded. + + + + + Gets the panel. + + + The panel. + + + + + Gets the desired size of the panel. + + + + + Gets the children count in the panel. + + + + + Gets or sets the left value for . + + + + + Gets or sets the right value for . + + + + + Represents class. + + + + + Initializes a new instance of the class. + + + + + Computes the size of the . + + The Available Size + Returns the computed size. + + + + Arranges the elements of the + + The Final Size + + + + Arranges the cartesian elements. + + The Final Size + + + + Sets the labels panel bounds. + + + + + + + Gets or sets the chart axis. + + + + + Gets or sets the calculated layout. + + + + + Represents class. + + + + + Initializes a new instance of the class. + + + + + Computes the size of the . + + The Availabel Size + Returns the computed size. + + + + Arranges the elements of the + + The Final Size + + + + Arranges the cartesian elements. + + The Final Size + + + + Calculates the header vector collection. + + The Left Position + The Top position + The Depth Position + IsFront Check + Returns the header vector collection + + + + Gets or sets the axis. + + + + + Gets or sets the header content. + + + + + Gets or sets the calculated layout. + + + + + Represents . + + + + + Initializes a new instance of the class. + + The Panel + may be thrown + + + + Draws the Gridlines at definite intervals in + + Relevant ChartAxis + + + + Draws the Gridlines at definite intervals in + + Relevant ChartAxis + + + + Measures the elements in the panel. + + Available size of the panel. + Returns Size + + + + Arrranges the elements inside a panel. + + final size of the panel. + Returns Size + + + + Arrranges the elements inside a panel. + + Final size of the panel. + Returns Size + + + + Seek the elements. + + + + + Adds the elements in the panel. + + + + + Adds the Gridlines for the axis. + + The Axis + + + + Updates the strip lines. + + + + + Updates the gridlines. + + The Relevant Axis + The Line Recycler + The Required Lines Count + Check For Marjor Axis + Check For Origin Flag + + + + Creates the binding provider with the specifed path and source. + + The Path + The Source + Returns the binding provider. + + + + Draws the gridlines with the specified values. + + The Axis + The Lines + The Left + The Top + The Width + The Height + The Values + Check For Draw Origin + The Index + + + + Draws the gridlines with the specified values. + + The Axis + The Lines + The Left + The Top + The Width + The Height + The Values + The Index + + + + Renders the stripline. + + The Strip + The Strip Line + + + + Updates the horizontal stripline. + + The Relevant Axis + + + + Updates the vertical stripline. + + The Axis + + + + Gets the desired size of the panel. + + + + + Gets the panel. + + + The panel. + + + + + Gets the children count in the panel. + + + + + Gets or sets the left. + + + The left. + + + + + Gets or sets the top. + + + The top. + + + + + Gets or sets the chart area. + + + + + Represents class. + + + + + Initializes a new instance of the class. + + The Required Panel + + + + Method implementation for Render labels and Ticks + + + + + Measures the elements in a panel. + + available size of the panel. + returns Size. + + + + Seek the elements. + + + + + Arranges the elements in a panel. + + final Size of the panel. + returns Size. + + + + Adds the elements in a panel. + + + + + Updates the labels. + + + + + Updates the tick lines. + + + + + Renders the tick lines. + + + + + Renders the labels. + + + + + Gets or sets the center point of the panel. + + + + + Gets the panel. + + + The panel. + + + + + Gets or sets the radius of the circular panel. + + + + + Gets or sets the axis of the panel. + + + + + Gets the desired size of the panel. + + + + + Gets the Children count of the panel. + + + + + Gets or sets the left. + + + The left. + + + + + Gets or sets the top. + + + The top. + + + + + Represents the position of a child element in the chart. + + + + + Docks element at the left side of panel. + + + + + Docks element at the top side of panel. + + + + + Docks element at the right side of panel. + + + + + Docks element at the bottom side of panel. + + + + + Docks element at any position on panel + + + + + Arranges child elements around the edges of the panel. Optionally, + last added child element can occupy the remaining space. + + Stable + + + + The DependencyProperty for property. + + + + + The DependencyProperty for Dock property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Initializes m_rootElement + + + + + Initializes m_controlsThickness + + + + + Initializes m_resultDockRect + + + + + A value indicating whether a dependency property change handler + should ignore the next change notification. This is used to reset + the value of properties without performing any of the actions in + their change handlers. + + + + + Gets an element's dock position in the Chart area. + + any UIElement + returns dock position of UIElement. + + + + Sets an element's dock position in the Chart area. + + + + + + + Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior. + + + The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects; or based on other considerations, such as a fixed container size. + + The Available Size + + + + When overridden in a derived class, positions child elements and determines a size for a derived class. + + The final area within the parent that this element should use to arrange itself and its children. + The actual size used. + + + + LastChildFillProperty property changed handler. + + DockPanel that changed its LastChildFill. + Event arguments. + + + + DockProperty property changed handler. + + UIElement that changed its ChartDock. + Event arguments. + + + + Called when root element is changed. + + The dependency object. + The instance containing the event data. + + + + Ensures the rectangle is inside specified bounds. + + The bounds. + The rectangle. + Returns the Rectangle + + + + Invalidates the layout when parent grid size changed. + + The Sender Object + The Event Arguments + + + + Arranges the elements inside the passing element. + + The Element + The Dock Position + The Reference Size + + + + Gets or sets a value indicating whether to enable the lastChildFillProperty. + + + + + Gets or sets the root element. This is a dependency property. + + The root element. + + + + Gets or sets the element margin. This is a dependency property. + + The element margin. + + + + Gets or sets the sync chart area. + + The sync chart area. + + + + Represents + + + + + Initializes a new instance of the class. + + The Required Panel + may be thrown + + + + Measures the elements in the panel + + Available Size of the panel + + + + + Seek the elements. + + + + + Arranges the elements in a panel + + final size of the panel. + returns Size + + + + Method declaration for UpdateElements + + + + + Calculates the series rectangle. + + The Available Size + + + + To calculate the cartesian arrange rect based on StartAngle property + + The Center Point + The Axis + + + + Gets or sets the Chart area of the panel. + + + + + Gets the panel. + + + The panel. + + + + + Gets or sets the polar axis of the Chart area. + + + + + Gets or sets the Cartesian axis of the Chart area. + + + + + Gets or sets the radius of the panel + + + + + Gets the desired sze of a panel. + + + + + Gets the Children count in the panel. + + + + + Gets or sets the left. + + + The left. + + + + + Gets or sets the top. + + + The top. + + + + + Represents ChartPolarGridLinesPanel + + + + + Initializes a new instance of the class. + + The Required Panel + may be thrown + + + + Measures the elements of a panel. + + available size of the panel. + returns Size. + + + + Arranges the elements of a panel. + + final size of the panel. + returns Size + + + + Seek the elements from the panel. + + + + + Adds the elements to the panel. + + + + + Renders the circles. + + + + + Updates the striplines. + + + + + Creates the binding provider with the provided path and source. + + The path for binding + The source for binding + Returns the required binding provider. + + + + Renders the ellipse. + + The center point + The start value + The end value + The geometry group + + + + Renders the segment path. + + The start value + The end value + The angle + The Cneter point + The first vector point + The second vector point + The inner arc + the outer arc + The path geometry + + + + Calculates the angle between two vectors. + + The first vector + The second vector + The angle + + + + Renders the arc + + The radius + The angle + The point + The arc + The direction + + + + Renders the striplines. + + The data + The stripline + + + + Adds stripline for the secondary axis of polar series. + + Vertically oriented axis + + + + Adds stripline for the primary axis of polar series. + + Horizontally oriented axis + + + + Renders the polar strip lines. + + + + + Renders the grid lines. + + + + + Render radar striplines. + + + + + Adds stripline for the primary axis of radar series. + + Horizontally oriented axis + + + + Adds stripline for the secondary axis of radar series. + + Vertically oriented axis + + + + Gets or sets a value indicating whether the Series is Radar/Polar Series type. + + + + + Gets the panel. + + + The panel. + + + + + Gets or sets the chart area. + + + + + Gets the x-axis of the chart. + + + + + Gets the y-axis of the chart. + + + + + Gets the desired position of the panel. + + + + + Gets the children count in the panel. + + + + + Gets or sets the left. + + + The left. + + + + + Gets or sets the top. + + + The top. + + + + + Represents the panel where all the child elements of Chart will be arranged. + + + + + The DependencyProperty for MeasurePriorityIndex property. + + + + + Gets measure priority for this obj. + + + + + + + Sets the measure priority for this obj. + + + + + + + Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior. + + + The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects; or based on other considerations, such as a fixed container size. + + The Available Size + + + + Provides the behavior for the Arrange pass of Silverlight layout. Classes can override this method to define their own Arrange pass behavior. + + + The actual size that is used after the element is arranged in layout. + + The final area within the parent that this object should use to arrange itself and its children. + + + + Gets or sets the chart area. + + + + + Gets or sets the surface chart. + + + + + Represents the panel where the series segments and adornments will be placed. + + + + + Initializes a new instance of the class. + + + + + Updates the panel. + + + + + + Provides the behavior for the Arrange pass of Silverlight layout. Classes can override this method to define their own Arrange pass behavior. + + + The actual size that is used after the element is arranged in layout. + + The final area within the parent that this object should use to arrange itself and its children. + + + + Updates the chart on segment collection changed. + + The Sender Object + The Collection Changed Event Arguments + + + + Adds the segment visuals to + + + + + Gets or sets the series. + + + + + Represents the AccumulationDistribution technical indicator. + + + + + + + Base class for all the Financial technical indicators available in control. + + + + + + + + + + + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Creates the segments of financial technical indicators. + + + + + Called when data source changed. + + The old value. + The new value. + + + + Called when YAxis property changed. + + Specifies the old axis value. + Specifies the new axis value. + + + + Called when XAxis property changed. + + Specifies the old axis value. + Specifies the new axis value. + + + + Updates the segment at the specified index. + + The index of the segment. + The action that caused the segments collection changed event. + + + + Method implementation for set ItemsSource to TechnicalIndicator. + + TechnicalIndicator instance + + + + Method implementation for GeneratePoints for TechnicalIndicator. + + + + + Gets the values of XRange. + + + + + Gets the values of YRange. + + + + + Gets or sets a value indicating whether to show/hide indicator value. + + + + + Gets or sets the XAxis. + + + + + Gets or sets the associated YAxis. + + + + + Gets or sets a value indicating whether to exchange the orientation of the series. + + + True exchanges the horizontal axis to vertical and vice versa. + False is the default behavior. + + + + + Gets or sets the custom template. + + + + + Gets or sets the stroke dash array for the line. + + + . + + + + + Gets or sets the name of the series to which this indicator is associated with. + + + + + Gets or sets the property path to retrieve high value from ItemsSource. + + + + + Gets or sets the property path to retrieve low value from ItemsSource. + + + + + Gets or sets the property path to retrieve open value from ItemsSource. + + + + + Gets or sets the property path to retrieve close value from ItemsSource. + + + + + Gets or sets the property path to retrieve volume data from ItemsSource. + + + + + Called when instance created for . + + + + + The DependencyProperty for property. + + + + + Called when ItemsSource property changed. + + Specifies the old value. + Specifies the new value. + + + + Called when binding path changed. + + Event args. + + + + Method implementation for set ItemsSource to TechnicalIndicator. + + TechnicalIndicator instance. + + + + Method implementation for GeneratePoints for TechnicalIndicator. + + + + + Creates the segments of . + + + + + Updates the segment at the specified index. + + The index of the segment. + The action that caused the segments collection changed event. + + + + + + + Gets or sets the fill color for the Signal Line. + + + The value. + + + + + Represents the AverageTrueRange technical indicator. + + + + + + + Called when instance created for . + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when ItemsSource property changed. + + Specifies the old value. + Specifies the new value. + + + + Called when binding path changed. + + Event args. + + + + Method implementation for set ItemsSource to TechnicalIndicator. + + TechnicalIndicator instance. + + + + Method implementation for GeneratePoints for TechnicalIndicator. + + + + + Creates the segments of . + + + + + Updates the segment at the specified index. + + The index of the segment. + The action that caused the segments collection changed event. + + + + + + + Gets or sets the moving average value for the indicator. + + + + + Gets or sets the color for the signal Line. + + + The value. + + + + + Represents the BollingerBand technical indicator. + + + + + + + Called when instance created for . + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when ItemsSource property changed. + + Specifies the old value + Specifies the new value + + + + Called when binding path changed. + + + + + + Method implementation for set ItemsSource to TechnicalIndicator. + + TechnicalIndicator instance + + + + Method implementation for GeneratePoints for TechnicalIndicator. + + + + + Creates the segments of BollingerBandIndicator. + + + + + Updates the segment at the specified index. + + The index of the segment. + The action that caused the segments collection changed event + + + + + + + Gets or sets the moving average value for the indicator. + + + + + Gets or sets the value for upper line color of the . + + + The value. + + + + + Gets or sets the value for lower line color of the . + + + The value. + + + + + Gets or sets the color for the signal Line. + + + The value. + + + + + Represents the ExponentialAverage technical indicator. + + + + + + + Called when instance created for . + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when ItemsSource changed. + + Specifies the old value. + Specifies the new value. + + + + Called when binding path changed. + + Event args. + + + + Method implementation for set ItemsSource to TechnicalIndicator. + + TechnicalIndicator instance. + + + + Method implementation for GeneratePoints for TechnicalIndicator. + + + + + Creates the Segments of . + + + + + Updates the segment at the specified index. + + The index of the segment. + The action that caused the segments collection changed event. + + + + + + + Gets or sets the moving average value for the indicator. + + + + + Gets or sets the color for the signal line. + + + The value. + + + + + Represents the MACD technical indicator. + + + + + + + Called when instance created for . + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when ItemsSource changed. + + Specifies the old value. + Specifies the new value. + + + + Called when binding path changed. + + Event args. + + + + Method implementation for set ItemsSource to TechnicalIndicator. + + TechnicalIndicator instance. + + + + Method implementation for GeneratePoints for TechnicalIndicator. + + + + + Creates the segments of . + + + + + Updates the segment at the specified index. + + The index of the segment. + The action that caused the segments collection changed event. + + + + Method implementation for add MACD indicator values. + + + + + + + + Gets a value indicating whether this series is placed side by side. + + + It returns true, if the series is placed side by side [cluster mode]. + + + + + Gets or sets the type of MACD indicator. + + + + + + + + Gets or sets the short time period(no of days) for calculating EMA. + + + By default, its value is 12 days. + + + + + Gets or sets the long time period(no of days) for calculating EMA. + + + By default, its value is 26 days. + + + + + Gets or sets the moving average period for MACD. + + + + + Gets or sets the convergence line color. + + + The value. + + + + + Gets or sets the divergence line color. + + + The value. + + + + + Gets or sets the histogram interior color. + + + The value. + + + + + Gets or sets the signal line color. + + + The value. + + + + + Represents the Momentum technical indicator. + + + + + + + Called when instance created for . + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when ItemsSource changed. + + Specifies the old value. + Specifies the new value. + + + + Called when binding path changed. + + Event args. + + + + Method implementation for set ItemsSource to TechnicalIndicator. + + TechnicalIndicator instance. + + + + Method implementation for GeneratePoints for TechnicalIndicator. + + + + + Creates the segments of . + + + + + Updates the segment at the specified index. + + The index of the segment. + The action that caused the segments collection changed event. + + + + + + + Gets or sets the momentum time span. + + + The default value is 14 days. + + + + + Gets or sets the momentum line color. + + + The value. + + + + + Gets or sets the center line color. + + + The value. + + + + + Represents the RelativeStrengthIndex technical indicator. + + + + + + + Called when instance created for . + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when ItemsSource changed. + + specifies the old value. + specifies the new value. + + + + Called when binding path changed. + + Event args. + + + + Method implementation for set ItemsSource to TechnicalIndicator. + + TechnicalIndicator instance. + + + + Method implementation for GeneratePoints for TechnicalIndicator. + + + + + Creates the segments of . + + + + + Updates the segment at the specified index. + + The index of the segment. + The action that caused the segments collection changed event. + + + + + + + Gets or sets the moving average period for indicator. + + + The default value is 14 days. + + + + + Gets or sets the upper line color. + + + The value. + + + + + Gets or sets the lower line color. + + + The value. + + + + + Gets or sets the signal line color. + + + The value. + + + + + Represents the SimpleAverage technical indicator. + + + + + + + Called when instance created for . + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when ItemsSource changed. + + Specifies the old value. + Specifies the new value. + + + + Called when binding path changed. + + Event args. + + + + Method implementation for set ItemsSource to TechnicalIndicator. + + TechnicalIndicator instance. + + + + Method implementation for GeneratePoints for TechnicalIndicator. + + + + + Creates the segments of . + + + + + Updates the segment at the specified index. + + The index of the segment. + The action that caused the segments collection changed event. + + + + + + + Gets or sets the moving average period for indicator. + + + The default value is 14 days. + + + + + Gets or sets the signal line color. + + + The value. + + + + + Represents the Stochastic technical indicator. + + + + + + + Called when instance created for . + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when ItemsSource changed. + + Specifies the old value. + Specifies the new value. + + + + Called when binding path changed. + + Event args. + + + + Method implementation for set ItemsSource to TechnicalIndicator. + + TechnicalIndicator instance. + + + + Method implementation for GeneratePoints for TechnicalIndicator. + + + + + Creates the segments of . + + + + + Updates the segment at the specified index. + + The index of the segment. + The action that caused the segments collection changed event. + + + + Calculates the percentage K value. + + Period value. + Percentage K points. + + + + Adding points of Upper line and Lower line. + + Period value. + KPeriod value. + + + + Calculates the Signal line points. + + DPeriod points. + + + + Calculates the Period line points. + + KPeriod value. + + + + + + + Gets or sets the moving average period for indicator. + + + The default value is 14 days. + + + + + Gets or sets the %K for the Stochastic indicator. + + + %K = (Current Close - Lowest Low)/(Highest High - Lowest Low) * 100 + + + + + Gets or sets the %D for the Stochastic indicator. + + + %D = 3-day SMA of %K + + + + + Gets or sets the period line color. + + + The value. + + + + + Gets or sets the upper line color. + + + The value. + + + + + Gets or sets the lower line color. + + + The value. + + + + + Gets or sets the signal line color. + + + The value. + + + + + Represents the chart technical indicator segment. + + Class instance is created automatically by Chart building system. + + + + + Called when instance created for . + + + + + Called when instance created for . + + Used to specify the x values + Used to specify the y values + Used to specify the stroke + Used to specify the series + + + + Called when instance created for . + + Used to specify the x values + Used to specify the y values + Used to specify the stroke + Used to specify the series + Used to specify the length + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Used to specify segment x-values. + Used to specify segment y-values. + Used to specify brush for segment stroke. + + + + Sets the values for this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Used to specify the x values. + Used to specify the y values. + Used to specify the stroke. + Used to specify the length. + + + + Used for creating UIElement for rendering this segment. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Size of the panel + + retuns UIElement + + + + + Updates the segments based on its data point value. This method is not + intended to be called explicitly outside the Chart but it can be overriden by + any derived class. + + Reresents the view port of chart control.(refer ) + + + + Transforms for non logarithmic axis. + + + + + + Transforms for non logarithmic axis. + + + + + + Represents the TriangularAverage technical indicator. + + + + + + + Called when instance created for . + + + + + The DependencyProperty for property. + + + + + The DependencyProperty for property. + + + + + Called when ItemsSource changed. + + Specifies the old value. + Specifies the new value. + + + + Called when binding path changed. + + Event args. + + + + Method implementation for set ItemsSource to TechnicalIndicator. + + TechnicalIndicator instance. + + + + Method implementation for GeneratePoints for TechnicalIndicator + + + + + Creates the segments of . + + + + + Updates the segment at the specified index. + + The index of the segment. + The action that caused the segments collection changed event. + + + + + + + Gets or sets the triangular average period. + + + The default value is 2 days. + + + + + Gets or sets the signal line color. + + + The value. + + + + + Contains utility methods to manipulate data. + + + + + Gets the object by path. + + The obj value. + The path value. + Returns the object + + + + Converts to double. + + The obj value. + The double value + + + + + Gets the double by path. + + The obj value. + The path value. + The double value + + + + Gets the property from the specified object. + + Object to retrieve a property. + Property name + + + + + Custom comaprer to compare the chart points by x-value. + + + + + Initializes diff + + + + + Compares the specified p1 with the specified p2. + + The point1. + The point2. + + negative value if point1 < point2 + + zero if point1 = point2. + + + positive value if point1 > point2 + + + + + + ChartColorModifed To modify a given color. + + + + + Gets the darkened color which was set. + + The point1. + The point2. + + + + Contains Chart extension methods. + + + + + Converts the value of this instance to the equivalent OLE Automation date. + + + + + + + Returns a DateTime equivalent to the specified OLE Automation Date. + + + + + + + Returns sum of DoubleRange + + Collection of DoubleRange + + + + + + + + + + + + + Get the bool value for current series is draggable or not + + Current Series + + + + + Gets the multiple area rectangle of the provided mouse point. + Also returns a value indicating whether the point is inside rect. + This bool is used since the is value type and the null conditions for the outcoming rect cannot be checked. + + The mouse point. + The axis to be checked. + The property indicates whether the point is inside the axis area rectangle. + Returns the point captured . + + + + Create and compare chart points. + + + + + Called when instance created for ChartPoint. + + Used to specify point value. + Used to specify point value. + + + + Returns the hash code for this instance. + + + + + Indicates whether this instance and a specified object are equal. + + The object to compare with the current instance. + true if obj and this instance are the same type and represent the same value otherwise, false. + + + + Indicates whether this instance and a specified points are equal. + + The point to compare with the current instance. + true if x and y of and current instance are the same type and represent the same value otherwise, false. + + + + Indicates whether the both instance and a specified points are equal. + + true if and instance are the same type and represent the same value otherwise, false. + + + + Indicates whether both the specified points are not equal. + + true if and are represent not the same value otherwise, false. + + + + Gets or sets point X. + + + + + Gets or sets point Y. + + + + + Contains static methods for performing certain mathematical calculations. + + + + + Initializes ToDegree + + + + + Initializes ToRadial + + + + + Initializes Percent + + + + + Initializes DoublePI + + + + + Initializes HalfPI + + + + + Initializes OneAndHalfPI + + + + + The epsilon + + + + + Method used to gets or sets intersect of two rectangle. + + + + + + + + Method used to get interpolarated point + + + + + + + + + + + Method used to get the normal. + + + + + + + + + Solves quadratic equation in form a*x^2 + b*x + c = 0 + + The A component + The B component + The C component + First root. + Second root. + Bool value + + + + Gets minimal value from value or min and maximal from value or max. + + The value. + The minimal value. + The maximal value. + The MinMax value + + + + Gets minimal value from parameters. + + The parameters + The minimal value. + + + + Gets maximal value from parameters. + + The parameters + The maximal value. + + + + Gets maximal value from parameter or zero. + + The value. + The double value + + + + Gets minimal value from parameter or zero. + + The value. + The MinZero value + + + + Rounds the specified value. + + The x value. + The divider. + if set to true value will be rounded up. + The Round off value + + + + Gets the cross point. + + The P11 value. + The P12 value. + The P21 value. + The P22 value. + The CrossPoint + + + + Returns the angle between the points. + + The start point + The end point + The Angle + + + + Calculates the perpendicular distance of point from a line. + + Starting point of the line. + Ending point of the line + The point + + + + + return point values from the given origin,end and angle points + + + + + + + + + Method used to check a point inside a rectangle. + + + + + + + + Calculates the area of the given triangle. + + + + + + + + + Calculates the area of the given rectangle. + + + + + + + + + + Calculates the distance between two points. + + + + + + + + Calculates the perpendicular distant point with the given points and distance. + + + + + + + + + Checks whether the given point is inside the circle. + + The center point of the circle. + The radius of the circle + The test point to be checked inside a circle. + + + + Initializes c_half + + + + + Gets the rect by center. + + The center. + The size value. + The Rect value + + + + Gets the rect by center. + + The cx value. + The cy value. + The width. + The height. + The Rect value + + + + Gets the center. + + The size value. + The vector center value + + + + Gets the center. + + The rect value. + The center point value + + + + Subtracts the thickness. + + The rect value. + The thickness. + The Rectangle + + + + Subtracts the thickness. + + The size value. + The thickness. + Returns the size + + + + The Addthickness method + + The Rect value + The thickness + The rectangle + + + + + The Addthickness method + + The size value + The thickness value + Returns the size + + + + + Checks the members of size by infinity. + + The size value. + Returns the size + + + + Defines methods and memebers to transform the screen co-ordinate to Chart co-ordinate. + + + + + + Transforms chart cordinates to real coordinates. + + The x value. + The y value. + Visible point + + + + Gets the viewport. + + The viewport. + + + + + Class implementation for Chartransform + + + + + Creates the Cartesian transformer. + + The viewport. + The Chart Transformer + + + + Creates the Cartesian transformer. + + The viewport. + The Chart Transformer + + + + Creates the Cartesian transformer. + + The viewport. + The series. + The Cartesian Transformer + + + + Creates the Cartesian transformer. + + The viewport. + The x axis. + The y axis. + The Cartesian Transformer + + + + Creates the polar. + + The viewport. + The series. + The Polar Transformer + + + + Return point values from the given values + + + + + + + Return the Polar/Radar type Axis Coefficient Value from the given radian value + + + + + + + Return the Radian Value of Polar/Radar chart Mouse point + + + + + + + + Values to vector. + + The axis value. + The value. + The vector value + + + + Represents ChartSimpleTransformer + + + + + Initializes m_viewport + + + + + Initializes a new instance of the class. + + The viewport. + + + + Transforms chart cordinates to real coordinates. + + The x value. + The y value. + visible point + + + + Gets the viewport. + + The viewport. + + + + Represents ChartCartesianTransformer + + + + + Initializes m_viewport + + + + + Initializes m_xAxis + + + + + Initializes m_yAxis + + + + + Initializes m_zAxis + + + + + Initializes m_IsRotated + + + + + Initializes a new instance of the class. + + The viewport. + The x axis. + The y axis. + + + + Initializes a new instance of the class. + + The viewport. + The series. + + + + Transforms chart cordinates to real coordinates. + + The x value. + The y value. + The visible point + + + + Transforms chart cordinates to real coordinates. + + The x value. + The y value. + The y value. + The visible point + + + + Return point values from the given values + + + + + + + + + + Gets the viewport. + + The viewport. + + + + Represents ChartPolarTransformer + + + + + Initializes xlogarithmicBase + + + + + Initializes ylogarithmicBase + + + + + Initializes y_IsLogarithmic + + + + + Initializes x_IsLogarithmic + + + + + Initializes m_viewport + + + + + Initializes m_xAxis + + + + + Initializes m_yAxis + + + + + Initializes m_center + + + + + Initializes m_radius + + + + + Initializes a new instance of the class. + + The viewport. + The x axis. + The y axis. + + + + Initializes a new instance of the class. + + The viewport. + The series. + + + + Transforms chart cordinates to real coordinates. + + The x value. + The y value. + The visible point + + + + Gets the viewport. + + The viewport. + + + + Represents a ChartTransform3D class implementation. + + + + + + Initializes mviewport + + + + + Method used to get the visible transform points. + + + + + + + + Sets the center of world. + + The center. + + + The vector3d. + + + + + Returns the intercept point of mouse ray with the specified plane. + + The point. + The plane. + + + + + Gets or sets the centered matrix. + + + + + Gets or sets the view matrix. + + The view. + + + + Gets the result matrix. + + The result. + + + + Defines memebers and methods to handle DateTime type range in . + + + + + Initilaizes m_start + + + + + Initilaizes m_end + + + + + Initializes a new instance of the struct. + + The range start. + The range end. + + + + Returns the hash code for this instance. + + + + + Indicates whether this instance and a specified object are equal. + + The object to compare with the current instance. + true if obj and this instance are the same type and represent the same value otherwise, false. + + + + Indicates whether this instance and a specified range are equal. + + The range to compare with the current instance. + true if start and end range of and current instance are the same type and represent the same value otherwise, false. + + + + Indicates whether the both instance and a specified range are equal. + + true if and instance are the same type and represent the same value otherwise, false. + + + + Indicates whether both the specified range are not equal. + + true if and are represent not the same value otherwise, false. + + + + Gets a value indicating whether this instance is empty. + + true if this instance is empty; otherwise, false. + + + + Gets the start. + + The start. + + + + Gets the end. + + The end value. + + + + Defines a custom DoubleRange data type for library. + + + + + Initializes c_empty + + + + + Initializes m_start + + + + + Initializes m_end + + + + + Initializes a new instance of the struct. + + The start value. + The end value. + + + + Union operator + + First double range + Second double range + The Union value + + + + Union operator + + First double range + Second double range + The Union value + + + + The operator + + The DoubleRange + The double value + The range value + + + + Return bool value from the given DoubleRange + + + + + + + + return Bool value from doublerange + + + + + + + + The operator + + The DoubleRange + The double value + The range value + + + + The operator method + + The left DoubleRange + The right DoubleRange + The left range + + + + The operator method + + The left range + The right range + The inverse left range + + + + Create range by array of double. + + The values + The DoubleRange + + + + Unions the specified left range with right range. + + The left range. + The right range. + The DoubleRange + + + + Unions the specified range with value. + + The range. + The value. + The DoubleRange + + + + Scales the specified range by value. + + The range. + The value. + The DoubleRange + + + + Offsets the specified range by value. + + The range. + The value. + The DoubleRange + + + + Excludes the specified range. + + The range. + The excluder. + The left range. + The right range. + True if empty + + + + Checks whether intersection region of two ranges is not empty. + + the DoubleRange + true if intersection is not empty + + + + Checks whether intersection region of two ranges is not empty. + + The start value + The end value + true if intersection is not empty + + + + Checks whether the given value is inside the axis range + + The value. + True if value is inside + + + + Checks whether the given range is inside the axis range + + The range. + True is range is inside + + + + 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. + + + + + Gets the Empty value + + + + + Gets the Start value + + + + + Gets the End value + + + + + Gets the Delta value + + + + + Gets the median. + + The median. + + + + Gets a value indicating whether IsEmpty + + + + + Represents . + + + + + Position the tooltip at data point. + + + + + Position the tooltip at mouse pointer. + + + + + Represents mode of axis. + + + + + Indicates AutoScrollingDelta calculated in axis start position. + + + + + Indicates AutoScrollingDelta calculated in axis end position. + + + + + Represents the doughnut series cap style. + + + + + The both edges are flat. + + + + + The both edges are curve. + + + + + The start edge only curve. + + + + + The end edge only curve. + + + + + Circular series segment grouping based on group mode. + + + + + Circular series segment grouping based on value. + + + + + Circular series segment grouping based on percentage. + + + + + Circular series segment grouping based on angle. + + + + + Defines the way of series or segment selection. + + + + + Select the segment using mouse or pointer click. + + + + + Select the segment while mouse hovering. + + + + + Represents range padding to the minimum and maximum extremes of the chart axis range for the . + + + + + RangePadding will be automatically chosen based on the orientation of the axis. + + + + + The visible range sets to exact minimum and maximum value of the items source. + + + + + The visible range start and end round to nearest interval value. + + + + + The visible range start and end will be added with an additional interval. + + + + + The visible range start round to nearest interval value. + + + + + The visible range end round to nearest interval value. + + + + + The visible range start will be prepended with an additional interval. + + + + + The visible range start will be appended with an additional interval. + + + + + Defines the way of selection type. + + + + + Single segment selection. + + + + + Multiple segment selection. + + + + + Defines to find the working days for + + + + + Sunday + + + + + Monday + + + + + Tuesday + + + + + Wednesday + + + + + Thursday + + + + + Friday + + + + + Saturday + + + + + Represents range padding to the minimum and maximum extremes of the chart axis range for the . + + + + + RangePadding will be automatically chosen based on the orientation of the axis. + + + + + The visible range sets to exact minimum and maximum value of the items source. + + + + + The visible range start and end round to nearest interval value. + + + + + The visible range will be the actual range calculated from given items source and series types. + + + + + The visible range start and end will be added with an additional interval. + + + + + The visible range start round to nearest interval value. + + + + + The visible range end round to nearest interval value. + + + + + The visible range start will be prepended with an additional interval. + + + + + The visible range end will be appended with an additional interval. + + + + + Legend position in chart area. + + + + + Positioning the legend inside of chart area. + + + + + Positioning the legend outside of chart area. + + + + + A date time interval. + + + + + Automatically determine interval. + + + + + Interval type is milliseconds. + + + + + Interval type is seconds. + + + + + Interval type is minutes. + + + + + Interval type is hours. + + + + + Interval type is days. + + + + + Interval type is months. + + + + + Interval type is years. + + + + + Specifies the different values that are natively used. + + + + + + value + + + + + value + + + + + value + + + + + value + + + + + Logarithmic value + + + + + Specifies the rendering mode to be used to render the chart series. + + + + + Default element will be used to render the series. + + + + + WriteableBitmap will be used to render the series. + + + + + DirectX will be used to render the series. + + + + + Represents the Icon for the Chartlegend + + + + + + Default behaviour + + + + + Represents the Icon of Series type + + + + + Represents the Rectangular Icon + + + + + Represents the Straight Line + + + + + Represents the VerticalLine + + + + + Represents the Circle + + + + + Represents the Diamond + + + + + Represents the Pentagon + + + + + Represents the Hexagon + + + + + Represents the Triangle + + + + + Represents the Inverted Triangle + + + + + Represents the Cross + + + + + Represents the Plus + + + + + Defines the way of display mode for trackball labels. + + + + + Trackball displays only the nearest label to the touch point. + + + + + Trackball displays all the nearest labels in same x values. + + + + + Trackball displays label for all the data points that are grouped. + + + + + Represents sorting direction + + + + + Orders the items in increasing order. + + + + + Orders the items in decreasing order. + + + + + Represents Sorting Axis. + + + + + Sorting will be done based on values related to x-axis. + + + + + Sorting will be done based on values related to y-axis. + + + + + Represents the adornments marker symbol types. + + + + + Custom option to set User-defined SymbolTemplates + + + + + Renders Ellipse symbol + + + + + Renders Cross symbol + + + + + Renders Diamond symbol + + + + + Renders Hexagon symbol + + + + + Renders HorizontalLine symbol + + + + + Renders InvertedTriangle symbol + + + + + Renders Pentagon symbol + + + + + Renders Plus symbol + + + + + Renders Square symbol + + + + + Renders Traingle symbol + + + + + Renders VerticalLine symbol + + + + + Defines the way of category axis label placement. + + + + + Labels placed on ticks. + + + + + Labels placed on between ticks. + + + + + Represents label placement in Axis. + + + + + Label placed center to the axis tick. + + + + + Label placed Far to the axis tick. + + + + + Label placed Near to the axis tick. + + + + + Represents the polar and radar chart axis start angle for primary axis, secondary axis, or both axes. + + + + + Indicates chart polar and radar angle axis start position at 0 degree angle. + + + + + Indicates chart polar and radar angle axis start position at 90 degree angle. + + + + + Indicates chart polar and radar angle axis start position at 180 degree angle. + + + + + Indicates chart polar and radar angle axis start position at 270 degree angle. + + + + + Represents axis elements position in elements panel. + + + + + Positions the elements above the axis line. + + + + + Positions the elements below the axis line. + + + + + Represents the axis header position. + + + + + Positions the header near the axis. + + + + + Positions the header far away from the axis. + + + + + Represents the aggregation functions. + + + + + Represents the modes for placing edge labels in . + + + + + Value indicating that the edge label should appear at the center of its GridLines. + + + + + Value indicating that edge labels should be shifted to either left or right so that it comes within the area of Chart. + + + + + Value indicating that the edge labels should be fit within the area of . + + + + + Value indicating that the edge labels will be hidden. + + + + + Represents the visibility for edge label. + + + + + Value indicating that default behavior of axis. + + + + + Value indicating that edge labels should be visible all cases. + + + + + Value indicating that edge labels should be visible in non zoom mode. + + + + + Specifies the options for the action that is to be taken when labels intersect each other. + + + + + + No special action is taken. Labels may intersect. + + + + + Labels are wrapped into multiple rows to avoid intersection. + + + + + Labels are hidden to avoid intersection. + + + + + Labels are rotated to avoid intersection. + + + + + Labels are wrapped to next line to aviod intersection. + + + + + Represents the different types of color palette available in library. + + + + + No palette will be set. + + + + + Metro palette will be set. + + + + + + Custom palette will be set, and color values will be taken from collection. + + + + + AutumnBrights palette will be set + + + + + FloraHues palette will be set + + + + + Pineapple palette will be set + + + + + TomatoSpectram palette will be set + + + + + RedChrome palette will be set + + + + + PurpleChrome palette will be set + + + + + BlueChrome palette will be set + + + + + GreenChrome palette will be set + + + + + Elite palette will be set + + + + + SandyBeach palette will be set + + + + + LightCandy palette will be set + + + + + A custom alignment to handle both horizontal and vertical alignment types in a generalized way. + + + + + Positions the element as like setting left/top alignment. + + + + + Positions the element as like setting right/bottom alignment. + + + + + Positions the element with center alignment. + + + + + Positions the element with default alignment when the series is transposed. + + + + + Represents modes of drawing radar and polar types. + + + + + Draw the Filled Area in the Polar Chart type + + + + + Draw the Lines in the Polar chart type + + + + + Represents modes of Chart orientation + + + + + Orienatation will be automatically analyzed based on the panel's docking position. + + + + + Horizontal Orientation will be set. + + + + + Vertical Orientation will be set. + + + + + Identifies axes types enumeration. + + + Intended for internal use + + + ChartArea + + + + + Represents No axis. + + + + + Cartesian axis. + + + + + Polar axis. + + + + + Represents modes for chart rows/columns space allocations. + + + + + Height/Width will be auto adjusted. + + + + + Height/Width will be based on the pixel units given. + + + + + Represents zooming modes of + + + + + Zooming will be done along x-axis + + + + + Zooming will be done along y-axis + + + + + Zooming will be done along both axis. + + + + + Represents label position modes available for PieSeries adornments. + + + + + PieSeries adornment labels will be placed inside over the PieSeries. + + + + + PieSeries adornment labels will be placed just outside over the PieSeries. + + + + + PieSeries adornment labels will be placed outside over the PieSeries at a certain distance. + + + + + Represents the type of connector line that connects the adornment label and data point. + + + + + This draws a Bezier curve as connector line. + + + + + This draws a solid line as connector line. + + + + + This draws a horizontal straight line as connector line. + + + + + Represents the circular series connector line position. + + + + + Connector line will be positioned automatically. + + + + + Connector line will be positioned at center. + + + + + Represents the positioning of Adornment labels. + + + + + Positions the Adornment labels at Default. + + + + + Positions the Adornment labels at Auto. + + + + + Positions the Adornment labels at Inner. + + + + + Positions the Adornment labels at Outer. + + + + + Positions the Adornment labels at Center. + + + + + Represents modes for positioning Chart adornments. + + + AdornementPosition value cannot be specified for all series types. + The values in adornments position will be applicable only to certain series + + + + + Positions the adornment at the top edge point of a chart segment. + + + + + Positions the adornment at the bottom edge point of a chart segment. + + + + + Positions the adornment at the center point of a chart segment. + + + + + Enumeration represents series adornments label content. + + + AdornmentInfo + + + + + Identifies that label should contain X value of series' point. + + + + + Identifies that label should contain Y value of series' point. + + + + + Identifies that label should contain percentage value of series' point among other points. + + + + + Identifies that label should contain value of Y of total values. + + + + + Identifies that label should contain value. + + + + + Label's content will be retrieved from the + ChartAdornmentInfo.LabelContentPath + + property. + + + + + Represents modes of displaying empty points. + + + + + The empty point segment resembles the shape of a normal segment. + Fills the empty point segments with the color value specified in series property. + + + + + The empty point segment resembles the shape of a symbol control. + + + + + The empty point segment resembles the shape of a symbol control. + Fills the symbol segments with the color value specified in series property. + + + + + Represents modes for handling empty points. + + + + + Validates the empty points in a series and sets the points y-value to Zero. + + + + + Validates the empty points in a series and sets the points y-value to an average value based on its neighbouring points. + + + + + Represents modes of the funnel types. + + + ChartFunnelType + + + + + The specified Y value is used to compute the width of the corresponding block. + + + + + The specified Y value is used to compute the height of the corresponding block. + + + + + Specifies the mode in which the Y values should be interpreted in the Pyramid chart. + + + ChartPyramidType + + + + + The Y values are proportional to the length of the sides of the pyramid. + + + + + The Y values are proportional to the surface area of the corresponding blocks. + + + + + Specifies the Interval type in which the navigator values should be displayed. + + + + + One year interval. + + + + + One Quarter interval + + + + + One Month interval + + + + + One Week interval + + + + + One Day interval + + + + + One Day interval + + + + + The pixel mode for the CoordinateUnit of Annotation + + + + + The axis mode for the CoordianteUint of Annotation + + + + + Defines the way of positioning the tooltip labels. + + + + + Represents the tooltip position left to the interaction point. + + + + + Represents the tooltip position right to the interaction point. + + + + + Represents the tooltip position top to the interaction point. + + + + + Represents the tooltip position left to the interaction point. + + + + + Specifies the type of surface + + + + + Specifies the mode of surface projection + + + + + Represents Perspective CameraProjection + + + + + Represents Orthographic CameraProjection + + + + + Specifies which price need to consider for fluctuation detection + + + + + Specifies which type segment consider for rendering. + + + + + Specifies the type of spline. + + + + + This type used natural spline for data rendering. + + + + + This type used monotonic spline for data rendering. + + + + + This type used cartinal spline for data rendering. + + + + + This type used clamped spline data rendering. + + + + + Contains Chart resource dictionaries + + + + + Contains utility methods to add and remove elements inside a panel. + + + + + + Constructor + + + + + + + Constructor + + + + + Generates or recycles the elements + + Number of elements to be generated + + + + Generates or recycles the elements of the specified type. + Please not the type must be inherited from the FrameworkElement. + + Number of elements to be generated + Used to indicate element type + + + + Method used to add a element in the panel. + + + + + + Indexes the of. + + The element. + + + + + Method used to remove the element from the panel. + + + + + + Creates a new instance of the specified type + + + + + + Removes the particular binding from the generated elements + + + + + + Clears the generated elements + + + + + Returns an enumerator that iterates through the collection. + + + A that can be used to iterate through the collection. + + + + + Gets the panel + + + + + Gets the value of CLR property. + + + + + Gets the binding objects to be attached with the generated FrameworkElement. + + + + + Return the panel's child at the corresponding index + + + + + + + LicensePopup + + + + + InitializeComponent + + + + diff --git a/ZZ_Signature_C/bin/Debug/Syncfusion.Shared.Base.dll b/ZZ_Signature_C/bin/Debug/Syncfusion.Shared.Base.dll new file mode 100644 index 00000000..0ec30fc5 Binary files /dev/null and b/ZZ_Signature_C/bin/Debug/Syncfusion.Shared.Base.dll differ diff --git a/ZZ_Signature_C/bin/Debug/Syncfusion.Shared.Base.xml b/ZZ_Signature_C/bin/Debug/Syncfusion.Shared.Base.xml new file mode 100644 index 00000000..850586af --- /dev/null +++ b/ZZ_Signature_C/bin/Debug/Syncfusion.Shared.Base.xml @@ -0,0 +1,94442 @@ + + + + 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. + + + + + 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. + + + + + Invalidates text box. + + + + + 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. + + + + + Variable to indicate the Text alignment for BannerTextInfo. + + + + + Static constructor. + + + + + Default constructor. + + + + + Copy constructor. + + + + + Specifies banner text. + + + + + Gets or sets the value to indicate the Text alignment for . + + + + + Specifies whether to serialize TextAlignment property + + Returns true when the value is not Near. + + + + Specifies whether to reset TextAlignment property + + + + + + Specifies font of banner text. + + + + + Specifies banner text rendering mode. See for details. + + + + + Specifies banner text color. + + + + + Type converter for + + + + + Designer for + + + + + 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. + + + + + + + + + + + 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. + + + + + Returns the type of the property. + + + + + Indicates whether this property is read-only. + + + + + Returns the type of component this property is bound to. + + + + + 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. + + + + 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. + + + + + 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. + + + + 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. + + + + Sets the cursor position to initial state + + The font. + + + + Gets the font. + + The font. + + + + Gets the right to left. + + The right to left. + + + + Invalidates this instance. + + + + + Releases unmanaged and - optionally - managed resources + + true to release both managed and unmanaged resources; false to release only unmanaged resources. + + + + 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. + + + + + Represents the class used to validate customization. + + + + + Helps to calculate the Path for CornerRadius customization in Control + + + + + Render button in metro style + + + + + 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) + + + + + + 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) + + + + + + Represents the class to define the style for control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Gets the default style value for the control. + + + + + Gets or sets the value of the + control. + + + + + Gets or sets the value for corner radius of the + control. + + + + + Gets or sets the value used to draw the border of the + control. + + + + + Gets or sets the value used to draw the border of the + control in default state. + + The value is used to draw the border of the button. + The default value is null. + + + + Gets or sets the value used to draw the border of the + control in pressed state. + + The value is used to draw the border of the button. + The default value is null. + + + + + Gets or sets the value used to draw the border of the + control in disabled state. + + + + + Gets or sets the value used to draw the border of the + control in default state. + + The value is used to draw the border of the button. + The default value is null. + + + + Gets or sets the value used to draw the border of the + control in pressed state. + + The value is used to draw the border of the button. + The default value is null. + + + + + Gets or sets the value used to draw the border of the + control in disabled state. + + + + + Gets or sets the value used to draw the border of the + control in focused state. + + The value is used to draw the border of the button. + The default value is null. + + + + Gets or sets the value used to draw the font of the + control in hover state. + + The value is used to draw the font of the button. + The default value is null. + + + + Gets or sets the value used to draw the font of the + control in pressed state. + + The value is used to draw the font of the button. + The default value is null. + + + + Gets or sets the value used to draw the border of the + control in focused state. + + The value is used to draw the border of the button. + The default value is null. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the ButtonAdv for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Represents a ButtonAdv control with advanced customization options on background, text, and border etc. + + + Button with advanced rendering features + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Occurs when theme name of the has changed. + + + + + Gets or sets a value indicating whether a theme style + has been applied to the control. + + The default value is true. + + + + Gets or sets the theme name of the ButtonAdv control. + + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets or sets the BaseTheme name of the theme + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + + Gets the name of the control. + + + + + Gets the active theme name of the ButtonAdv control. + + Returns the active theme name. + + + + Returns the name of the control. + + + + + Raises the event when themename changed. + + The sender value. + A contains the event data. + + + + Helps to reset Layout customization of the ButtonAdv Control. + + + + + Updates the Style renderers of ButtonAdv Control based on applied Theme. + + + + + 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)); + } + + + + + Indicates whether button have DesignMode + + + + + It stores the value of the property. + + + + + + It contains the value of the property. + + + + + 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 value for the control. + + + + + To indicate whether to serialize MetroColor or not + + + + + + To Reset MetroColor + + + + + Gets or sets the foreground color of the ButtonAdv + + + + + Gets or sets the background color of the ButtonAdv + + + + + Gets or sets the ImageListAdv 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 overriding 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. + + + + + + + + Constructor. + + Indicates whether button is of combo button type. + + + + + + + Cleans up any resources being used. + + + + + + gets or sets the touchmode + + + + + + + + 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. + + + + + Gets/Sets the value for IsBackStageButton + + + + + Holds MessageBoxAdvOptionButton + + + + + Gets/Sets whether this is MessageBoxAdv Button + + + + + Holds is DropDown Button + + + + + Gets/Sets whether this is DropDownButton + + + + + 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. + + + + + + + + + Gets/Sets Control size before touch enabled + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + + + + + Delegate used for border drawing. + + + + + + + + Represents the class to define the Theme customization of control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + ButtonAdv + + + + Draws text over the button + + + + + + + Overrides the render method from base(ButtonRenderer) + + + + + + CreateDrawingObjects method has been set to define background and border color + + + Design of background + + + + + + + + Design of border + + + + + + + + + Represents the class that provides the accessibility object for the + + + + + Specifies the accessibility control. + + + + + Initializes a new instance of the class. + + The which needs to create the accessibility object. + + + + Gets the AccessibleRole of the control. + + + + + Gets the AccessibleName of the control. + + + + + Gets the bounds of the control. + + + + + Gets the AccessibleDescription of the control. + + + + + Gets the details about what the object does or how the object is used. + + + + + Gets the accessibility object of the parent. + + + + + Gets the state for the control. + + + + + Gets the selected color value of the control. + + + + + Overridden. Retrieves the child object at the specified screen coordinates. + + The horizontal screen coordinate. + The vertical screen coordinate. + + + + + Represents the class that provides the accessibility object for the + + + + + Specifies the accessibility control. + + + + + Initializes a new instance of the class. + + The which needs to create the accessibility object. + + + + Gets the AccessibleRole of the . + + + + + Gets the AccessibleName of the . + + + + + Gets the bounds of the accessible object. + + + + + Gets the AccessibleDescription of the . + + + + + Gets the details about what the object does or how the object is used. + + + + + Gets the accessibility object of the parent. + + + + + Gets the state for the . + + + + + Gets the value of the . + + + + + Design the property values into the class. + + + + + Initialize a new instance of the ColorUIActionList 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. + + + + + + This class represents to maintain DPI based image + + + + + Instance of . + + + + + Instance of . + + Image in 125 scaling + Image in 150 scaling + Image in 200 scaling + + + + + Stores the value of DPI120Image + + + + + Stores the value of DPI144Image + + + + + Stores the value of DPI192Image + + + + + Stores the value of Index + + + + + Get or sets the image of the item in 125 scaling + + + + + Get or sets the image of the item in 150 scaling + + + + + Get or sets the image of the item in 200 scaling + + + + + Gets or sets the index of the default image. + + + + + + The class which represents the collection of DPI images. + + + + + 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. + + + + Removes given image from collection. + + Image to remove. + + + + Gets index of given image. + + Image to get index of. + Index of given image or -1 if image doesn't exist in collection. + + + + Adds array of images to collection. + + Array of images to add. + + + + Gets value indicating whether collection is empty. + + + + + Gets or sets image at specified index. + + Index of image. + Image at specified index + + + + + The class which represents the collection editor to store the DPI images. + + + + + Initializes a new instance of the class. + + The type of the collection for this editor to edit. + + + + Initializes the class. + + + + + Static instance of custom for s. + + + + + Static instance of . + + + + + 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. + + + + + + Custom provider 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 DPiImages 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. + + + + 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. + + + + + 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); + + + + Represents the class to apply the theme for control. + + + + + 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 . + + + + + 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 a value indicating whether the control should enable its Accessibility support. + + + + + Indicates whether to serialize the CurrencyNumberDigits property + if its the same as the MaximumLength. + + + + + + Restores the CurrencyNumberDigits to the MaximumLength. + + + + + 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. + + + + + + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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 + + + + + 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. + + + + + 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. + + + + + Gets or sets remove last decimal zeros. + + + + + Format the given text according to the current setting. + + + + + + + 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 to serialize the Text property + if it is null or quals NullString + + + + + + Restores the CurrencyNumberDigits to the MaximumLength. + + + + + The Maximum Value that can be set through the CurrencyTextBox. + + + The default value is the MaxValue for . + + + + + Indicates whether the MaxValue property should be serialized. + + true if the value is not equal to + + + + Resets the value to the default. + + + + + The Minimum Value that can be set through the CurrencyTextBox. + + + + + Indicates whether the MinValue property should be serialized. + + True if the value is not equal to + + + + Resets the value to the default. + + + + + Occurs when the property is changed. + + + + + The decimal value of the control. This will be formatted and + displayed. + + + + + Raises the event. + + A that contains the event data. + + + + Overrides OnTextChanged. + + The event data. + + + + 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 unmanage resources. + + + + Raises the System.Windows.Forms.Control.EnabledChanged event. + + An System.EventArgs that contains 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. + + + + + It contains the value of the property. + + + + + Checks whether the value is zero. + + True, if value is zero. + + + + Helps to apply the ThemeName settings in control + + ThemeName + + + + Helps to override the ThemeName property settings + + ThemeName + + + + Helps to override the OnGotFocus events + + An System.EventArgs that contains the event data. + + + + Helps to draw text border of control + + + + + Provides information about a control that can be used by an accessibility application. + + + + + CurrencyTextBox + + + + + Constructor + + The RibbonControlAdv instance. + + + + 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. + + + + 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. + + + + Represents a class to define the style for the control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Gets the default style value for the control. + + + + + Gets or sets the value used to draw the fore color of the + control when text value is negative. + + The value is used to fill the fore color of the textbox. + + + + Gets or sets the value used to draw the fore color of the + control when text value is zero. + + The value is used to fill the fore color of the textbox. + + + + Gets or sets the value used to draw the back color of the + control when text value is read only. + + The value is used to fill the back color of the textbox. + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Implements a class that provide the identity information of + using . + + + + + Maintains the CurrencyTextBox for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Summary description for CurrencyCultureEditor. + + + + + + + + + + + + + + + + + + + + + + Managed control + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Updates bounds of the instertion pointer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + + + Workaround for incident 35141. When calling Timer.Stop in GridGroupDropArea + this ends up calling MdiSysMenuProvider.MsgHook + + + + + Represents a class to define the style for the control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Gets the default style value for the control. + + + + + Gets or sets the value used to draw the inner border color of the + control in default state. + + The value is used to draw the inner border color of the GradientPanelExt. + + + + Gets or sets the value used to draw the disabled inner border color of the + control in disabled state. + + The value is used to draw the disabled inner border color of the GradientPanelExt. + + + + Gets or sets the value used to draw the inner back color of the + control in default state. + + The value is used to draw the inner back color of the GradientPanelExt. + + + + Gets or sets the value used to draw the inner back color of the + control in disabled state. + + The value is used to draw the disabled inner back color of the GradientPanelExt. + + + + Gets or sets the value used to draw the CornerRadius of the + control. + + The value is used to draw the CornerRadius of the GradientPanelExt. + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Implements a class that provide the identity information of + using . + + + + + Maintains the GradientPanelExt for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Represents a class to define the style for the control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Gets the default style value for the control. + + + + + Gets or sets the value used to draw the border thickness of the + control. + + The value is used to draw the border thickness of the GradientPanel. + + + + Gets or sets the value used to draw the back color of the + control in the default state. + + The value is used to draw the back color of the GradientPanel. + The default value is null. + + + + Gets or sets the value used to draw the back color of the + control in the disabled state. + + The value is used to draw the disabled back color of the GradientPanel. + The default value is null. + + + + Gets or sets the value used to draw the border color of the + control in the default state. + + The value is used to draw the border color of the GradientPanel. + The default value is null. + + + + Gets or sets the value used to draw the border color of the + control in the disabled state. + + The value is used to draw the disabled border color of the GradientPanel. + The default value is null. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Implements a class that provide the identity information of + using . + + + + + Maintains the GradientPanel for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents a class that provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable sub-object. + + + + + Represents a class to apply the theme for the control. + + + The GradientPanel is a -derived class that has numerous border styles and has a background composed of a multiple gradient brush. + + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Get or Set of Skin Manager Interface + + + + + It contains the value of the property. + + + + + + Gets or sets the theme name of the control. + + + The default value is null. + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Get or Set of Visual theme + + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets or sets a value indicating whether a theme settings + can be applied to the control. + + The default value is true. + + This property must be initialized before applying the VisualTheme /> + + + + + Gets or sets the Base Theme name of the theme + + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Gets the name of the control. + + + + + Gets the active theme name of the control. + + Returns the active theme name. + + + + Helps to override the CanOverriderStyle property settings + + CanOverriderStyle + + + + Helps to override the CanApplyTheme property settings + + CanApplyTheme + + + + Raises the event when theme name changed. + + The sender value. + A contains the event data. + + + + Helps to apply the ThemeName settings in control + + ThemeName + + + + Helps to override the ControlName property settings + + ControlName + + + + Default size of the control + + + + + 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. + + + + + Required designer variable. + + + + + Gets the ScrollerFrame + + + + + Cleans up any resources being used. + + + + + Required method for designer support - do not modify + the contents of this method with the code editor. + + + + + Gets or Sets the touch mode + + + + + + + + Applies the scaling for controls + + + + + Font changed + + + + + Signals the object that initialization is starting. + + + + + Signals the object that initialization is complete. + + + + + Represents the class to apply the theme for control. + + + 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 . + + + + + It contains the value of the property. + + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Helps to apply the ThemeName settings in control + + ThemeName + + + + Helps to override the ThemeName property settings + + ThemeName + + + + Helps to override the OnGotFocus events + + An System.EventArgs that contains the event data. + + + + Invoked when corner radius changed. + + + + + Sets correctly corner radius. + + + + + Gets maximum radius. + + + + + + Find maximum size of the primitive in the collection. + + + + + Refresh work sizes. + + + + + Gets size collapsed control. + + + + + 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. + + + + + Refresh location for all primitives + + + + + Sets correctly position of the primitive. + + + + + Gets IDesignerHost interface. + + + + + + Gets start point position primitive from given side. + + + + + Gets end point position of the primitive from given side. + + + + + Gets rectangle which primitive is drawing. + + + + + Sets size of the control. + + + + + Sets correctly border gap. + + + + + Gets minimum border gap for a specific side. + + + + + Find maximum size of the primitive in the collection for a specific side. + + + + + Gets maximum border gap for the specified side. + + + + + Gets minimum border gap. + + + + + Gets rounded path. + + + + + Gets rounded path. + + + + + 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 + + + + + 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 + + + + + Resets the Inner Rectangle Border Thickness + + + + + Serializes the Inner Border Thickness + + + + + + Gets / Sets the Inner Rectangle Border Color + + + + + Resets the Inner Rectangle Border Color + + + + + Serializes the Inner Rectangle Border Color + + + + + + Gets / Sets the Inner Rectangle Background Brush + + + + + Resets the Inner Rectangle Background Brush + + + + + Serializes 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. + + + + + Initialize animation. + + + + + Initialize control's style. + + + + + Initialize control's colors. + + + + + Initialize primitives. + + + + + Gets or Sets the touchmode + + + + + + + + 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 . + + + + + Raise by method. + + + + + Raise by method. + + + + + Raise by method. + + + + + Raise by method. + + + + + Raise by method. + + + + + Represents the partial class of the GroupView which contains the theme renderer properties and methods. + + + 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. + + + + + + + +
+ + + It contains the value of the property. + + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Helps to apply the ThemeName settings for the . + + ThemeName + + + + Helps to apply the ControlName settings for . + + ThemeName + + + + Gets the rectangle for the items to be drawn + + + + + + Helps to update the renderer settings of . + + PaintEventArgs + + + + Draws the highlighting of GroupViewitem. + + object. + The index of the groupViewItem. + value specifying the GroupViewItem bounds. + The state of the item. + + + + Returns the Backcolor according to the . + + of the GroupViewItem + + + + + Returns the forecolor according to the . + + of the GroupViewItem + + + + + Returns the border color according to the . + + of the GroupViewItem + + + + + Helps to draw text of the . + + object. + The index of the groupViewItem. + value specifying the GroupViewItem bounds. + The state of the item. + + + + Helps to draw the background of the . + + PaintEventArgs object + + + + Helps to draw the drag drop indicator of the . + + object. + Start point of the drag provider + End point of the drag provider + + + + Helps to draw the scroll button of the . + + object. + Rectangle of the ScrollButton + Button direction + + + + Draws the arrow of scrollbuttons for GroupView + + + + + 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. + + + + + Gets or sets whether tooltips for GroupViewItems should be shown or not. + Use property to get\set ToolTip text. + + + + + Gets or sets the value of the control. + + + + + 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 + + + + + Gets/Sets Control size before touch enabled + + + + + Gets or Sets the touchmode + + + + + + + + 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 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 the small icon width of the GroupViewItem based on DPI + + Width of the Icon + + + + Gets the large icon width of the GroupViewItem based on DPI + + Width of the Icon + + + + Gets the spacing between text and image + + spacing between text and image + + + + Gets the height between the highlighted edge of a GroupViewItem and the image. + + spacing between highligheted edge of item and image + + + + Gets the horizontal distance between a GroupViewItem and the control's left border. + + + + + + Gets the vertical distance between a GroupViewItem and the control's bottom border. + + + + + + Gets the GroupViewItem Bounds. + + GroupViewItem index + Padding between the GroupViewItem + Bounds + + + + Gets the GroupViewItem Bounds. + + GroupViewItem index + Padding between the GroupViewItem + Bounds + + + + 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. + + + + + + Occurs when a is changed. + + + + + Raises the collection changed event. + + + + + Gets / sets a in the collection. + + The zero-based index of the GroupViewItem to get or set. + + + + 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. + + + + Specifies the name of the custom type used for drag-and-drop. + + + + + Name visible property for PropertyChangedEventArgs + + + + + ArrayList visible items. + + + + + Gets ArrayList visible items. + + + + + Holds the backcolor of metro theme + + + + + 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. + + + + Default size of the control + + + + + 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. + + + + Resets the property to its default value. + + + + + Gets or sets the distance by which the text is offset when the mouse is moved over it. + + A value. + + + + Resets the property to its default value. + + + + + Gets the office2016 style colors respective to the style + + + + + Holds the office2016 colorscheme + + + + + Gets or sets the office2016 colorscheme + + + + + Reset the Office2016ColorScheme + + + + + + Serializes the Office2016ColorScheme + + + + + + Holds the style + + + + + Gets or sets the style + + + + + Reset the Style + + + + + + Serializes the Style + + + + + + Occurs when the style changes + + + + + Gets / sets the distance by which the image is offset when it is selected. + + A value. + + + + Resets the property to its default value. + + + + + Gets / sets the distance by which the text is offset when it is selected. + + A value. + + + + Resets the property to its default value. + + + + + Gets / sets the distance by which the selected image is offset when the mouse is moved over it. + + A value. + + + + Resets the property to its default value. + + + + + Gets / sets the distance by which the selected text is offset when the mouse is moved over it. + + A value. + + + + Resets the property to its default value. + + + + + Gets / sets the distance by which the image is offset when it is being selected. + + A value. + + + + Resets the property to its default value. + + + + + Gets / sets the distance by which the text is offset when it is being selected. + + A value. + + + + Resets the property to its default 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. + + + + Resets the property to its default value. + + + + + Gets / sets the color used for drawing the background of the selected . + + A value. + + + + Resets the property to its default value. + + + + + Gets / sets the color used for drawing the background of the selected when the mouse is moved over it. + + A value. + + + + Resets the property to its default value. + + + + + Gets / sets the color used for drawing the background of the being selected. + + A value. + + + + Resets the property to its default value. + + + + + Gets or sets the color used for drawing the text when the mouse is moved over it. + + A value. + + + + Resets the property to its default value. + + + + + Gets / sets the color used for drawing the selected text. + + A value. + + + + Resets the property to its default value. + + + + + Gets / sets the color used for drawing the selected text when the mouse is moved over it. + + A value. + + + + Resets the property to its default value. + + + + + Gets / sets the color used for drawing the text while it is being selected. + + A value. + + + + Resets the property to its default 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. + + + + Resets the property to its default 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. + + + + + Allow drag any object. + + + + + 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. + + + + + 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. + + + + Retrieving Image with its default image size + + Expected size of the images + collection of images which is need to be changed + New image list with updated image size + + + + 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 . + + + + + Variable which denotes the value changed of TextSpacing property + + + + + Variable which denotes the value changed of ImageSpacing property + + + + + Variable which denotes the value changed of ItemYSpacing property + + + + + Variable which denotes the value changed of ItemXSpacing property + + + + + 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. + + + + + + + +
+ + + It contains the value of the property. + + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Helps to apply the ThemeName settings for the . + + ThemeName + + + + Helps to apply the ControlName settings for . + + ThemeName + + + + Draws GroupBarItem for theme renderer + + Graphics used for drawing + Zero-Based index of the GroupBarItem + Rectangle used to draw the GroupBarItem + + + + Draws text of the GroupBarItem for theme renderer + + Graphics used for drawing + Zero-Based index of the GroupBarItem + Rectangle used to draw the GroupBarItem text + + + + Draws border od the GroupBar + + Graphics used for drawing + Rectangle used to draw the border + + + + Draw header background of stacked groupbar + + Graphics used for drawing + Rectangle used to draw the header + + + + Draws Header text of the stacked groupbar + + Graphics used for drawing + Text to be drawn + Rectangle used to draw the header + + + + Gets the background color of the GroupBarItem according to the item state + + State of the GroupBarItem + Indicates the item enabled + + + + Sets the size of ToopTip based on the font. + + + + + + + Gets the foreground color of the GroupBarItem according to the item state + + State of the GroupBarItem + Indicates the item enabled + + + + Draws stacked GroupBar for theme renderer + + Graphics used for drawing + Rectangle used to draw the Stacked GroupBar + + + + Draws expand/collapse button for theme renderer + + Graphics used for drawing + + + + Draws Navigation pane for GroupBar Renderer + + Graphics used for drawing + Rectangle used to draw the navigation pane + + + + Draws DropDown button for GroupBar Renderer + + Graphics used for drawing + Rectangle used to draw the button + Indicates whether orientation is RightToLeft + + + + Draws collapsed client area background for GroupBar Renderer + + Graphics used for drawing + + + + Draws the collapse expand button + + Graphics used for drawing + Rectangle used to draw the button + + + + Draws the tooltip for theme + + Tooltip object invokes the event + DrawToolTipEventArgs of the tooltip + + + + Draws the navigation pane text for theme + + Graphics used for drawing + Indicates whether RightToLeft applied + + + + Draws background of the GroupBar + + + + + Draws border of the GroupBar + + + + + 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. + + + + + + Gets / sets a in the collection. + + The zero-based index of the GroupBarItem to get / set. + + + + 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. + + + + Collection of visible + + + + + Visible group bar items array list. + + + + + Copies the elements of the to an , starting at a particular index. + + + + + 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). + + + + + Returns the enumerator that iterates through the item collection. + + + + + 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 item height for Office2019Theme + + + + + Indcates the touch down is enabled or not. + + + + + Default size of the control + + + + + Default size of the collapsebutton + + + + + Header font + + + + + barItem height + + + + + Header height + + + + + Collapsedwidth + + + + + Gets or sets a value indicating whether GroupBarItem background color is changed internally or not. + + + + + 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. + + + + Method to apply office2016 style to Tooltip + + + + + Draws office2016 theme tooltip + + + + + + + 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. +
+ + + Resets the Splittercolor + + + + + ShouldSerialize the AddButtonHoverColor. + + + + + Resets the EnableSplittercolorCustomization + + + + + ShouldSerialize the EnableSplittercolorCustomization. + + + + + + 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. + + + + Resets the property to its default value. + + + + + Gets / sets the forecolor for the header. + + + The GroupBar header is shown only when the property is set. + + A value. + + + + Resets the property to its default value. + + + + + Gets / sets the backcolor for the header. + + + The GroupBar header is shown only when the property is set. + + A value. + + + + Resets the property to its default 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 + + + + + + + + Applies the scaling + + + + + Gets a value of GroupBarItem height based on DPI + + Height of GroupBar item + + + + Gets a value of GroupBar Header height based on DPI + + Height of GroupBar Header + + + + Gets a width of the collapsed GroupBar based on DPI + + Width of the collapsed group bar + + + + Gets a height of the navigation pane based on DPI + + Height of navigation pane + + + + Gets the width of the navigation button based on DPI + + Width of the navigation button + + + + 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. + + + + Helps to apply the background color of GroupBarItem. + + graphics to draw on + group bar item + rectangle to fill the back color + back color + + + + 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. + + + + Returns the String format for text drawing. + + + + + Returns the string format object for header drawing. + + + + + 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 . + + + + + 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. + + + + + 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. + + + + + Get is control initializing. + + + + + + + + + + + + + + + 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. + + + + + 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 . + + + + + 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. + + + + + Gets or sets the image of the collapse button in expanded state. + + + + + Resets the property to its default value. + + + + + Indicates whether property should be serialized. + + + + + Gets or sets the image of the collapse button in collapsed state. + + + + + Resets the property to its default value. + + + + + Indicates whether property should be serialized. + + + + + 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. + + + + + Resets the property to its default value. + + + + + Indicates whether property should be serialized. + + + + + Gets or sets the tooltip for collapse button, when control is collapsed. + + + + + Indicates whether property should be serialized. + + + + + Resets the property to its default value. + + + + + Gets or sets the tooltip for GroupBarDropDownToolTip. + + + + + Resets the property to its default value. + + + + + Indicates whether property should be serialized. + + + + + Gets or sets the navigation pane's tooltip. + + + + + Resets the property to its default value. + + + + + Indicates whether property should be serialized. + + + + + 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. + + + + 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. + + + + Occurs when before 's popup is shown. + + Can cancel popup showing. + + + + Shows the item popup when the Group bar is Collapsed + + + GroupBar Item for which Popup to be shown + + + + + Hides the 's popup. + + + + + Variable to denotes the value changed of GroupBarItemHeight + + + + + Variable to denotes the value changed of GroupBarHeaderHeight + + + + + Variable to denotes the value changed of Collapsed width of GroupBar + + + + + Variable to denotes the value changed of Navigation Pane height of GroupBar + + + + + Variable to denotes the value changed of width of the navigation button + + + + + 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 class to define the style of control. + + + + + Maintains the default style of the . + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default AutoLabelStyleInfo value. + + + + + Gets or sets the value for corner radius of the + control. + + + + + Gets or sets the value for the drop down of + control. + + + + + Gets or sets the background color of the control. + + + + + Gets or sets the fore color value of the items of control in disabled state. + + + + + Gets or sets the fore color value of the control. + + + + + Gets or sets the fore color value of the items of control in disabled state. + + + + + Gets or sets the value used to draw the border of the + control in default state. + + + + + Gets or sets the fore color value of the items of control in disabled state. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Represents the class holds the plain data for a style object excluding identity information. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Maintains the static data. + + + + + + Initializes a new instance of the class. + + Populates the SerializationInfo store with the name, type, and value of each piece of information it wants to serialize + Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. + + + + Overridden to get the static data source. + + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the AutoLabel for create the identity. + + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents a control with advanced customization options on background, text, and border etc. + + + 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. + + + + + using System.Windows.Forms; + namespace AutoLabel + { + public partial class Form1 : Form + { + private Syncfusion.Windows.Forms.Tools.AutoLabel autoLabel1; + public Form1() + { + InitializeComponent(); + //Initialization + this.autoLabel1 = new Syncfusion.Windows.Forms.Tools.AutoLabel(); + //Set the properties + this.autoLabel1.Text = "autoLabel1"; + this.autoLabel1.BackColor = System.Drawing.Color.DarkGray; + this.autoLabel1.ForeColor = System.Drawing.Color.DarkBlue; + this.autoLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.autoLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // Add the AutoLabel control to the form. + this.Controls.Add(this.autoLabel1); + } + } + } + + + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Occurs when theme name of the has changed. + + + + + It contains the value of the property. + + + + + Gets or sets a value indicating whether a . + has been applied to the control. + + The default value is true. + + + + + Gets or sets the theme name of the control. + + + + + Gets or sets a value indicating whether control elements styles can be overridden by settings. + + Default value is false. + + By default, the control's element styles will not be overridden by settings if the style is set in sample level. + If this property is enabled, element style will be overridden by settings event if it is set in sample level. + This property should be enabled or disabled before calling the property of the control. + + + + + + + Gets or sets the BaseTheme name of the theme + + + + + Gets the name of the control. + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + + + Gets the active theme name of the control. + + Returns the active theme name. + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + + + Raises the event when themename changed. + + The sender value. + A contains the event data. + + + + Apply themes based on the theme name passing in the + + Represents style for the control + + + + Value for PreferredHeight adding when borders are present. + + + + + Value for PreferredHeight adding when borders are absent. + + + + + Initializes a new instance of the class. + + + + + Font changed + + + + + Fired when the Control, and properties of this class changes. + + + + + 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. + + + + + Sets the specified bounds of the label. + + + + + + + + Get location of the when the parameters that affect + the relative positions have changed (like the LabeledControl's position, size, etc.). + + + + + + + + + + + + + + Updates the position of the 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 renderer for Office2016 style. + + + + + Gets or sets the to the . + + + + + + Gets or Sets of Interface. + + + + + Gets or sets the control is enabled. + + + + + + + Processes Windows messages. + + The Windows System.Windows.Forms.Message to process. + + + + Paints the control. + + + + + Draw the border to the contol. + + Represents the Graphics to draw. + Represents the dimension of border. + Represents the color of border. + + + + 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 or sets the relative position of the control and the . + + + + + + + + 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 and its labeled control. + + When == DX is the distance between the right of the labeled control + and the right of the . + + + + + + + + + Gets or sets the effective vertical distance between the top of the AutoLabel and its labeled control. + + + + + + + + + + Calculates the size of the label's text. + + Text for measuring. + Current font. + Size of the text. + + + + Represents a class to define the style for the control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Gets the default style value for the control. + + + + + Gets or sets the value used to draw the fore color of the + control when text value is negative. + + The value is used to fill the fore color of the textbox. + + + + Gets or sets the value used to draw the fore color of the + control when text value is zero. + + The value is used to fill the fore color of the textbox. + + + + Gets or sets the value used to draw the back color of the + control when text value is read only. + + The value is used to fill the back color of the textbox. + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Implements a class that provide the identity information of + using . + + + + + Maintains the DoubleTextBox for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Represents a class to define the style for the control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Gets the default style value for the control. + + + + + Gets or sets the value used to draw the fore color of the + control when text value is negative. + + The value is used to fill the fore color of the textbox. + + + + Gets or sets the value used to draw the fore color of the + control when text value is zero. + + The value is used to fill the fore color of the textbox. + + + + Gets or sets the value used to draw the back color of the + control when text value is read only. + + The value is used to fill the back color of the textbox. + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Implements a class that provide the identity information of + using . + + + + + Maintains the IntegerTextBox for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Represents the class to apply the theme for control. + + + 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. + + + + + + It contains the value of the property. + + + + + Helps to apply the ThemeName settings in control + + ThemeName + + + + Helps to draw text border of control + + + + + Helps to override the ThemeName property settings + + ThemeName + + + + Helps to override the OnGotFocus events + + An System.EventArgs that contains the event data. + + + + 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. + + + + + Occurs when the property is changed. + + + + + The line of the null value. + + + + + 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 . + + + + + Raises the System.Windows.Forms.Control.EnabledChanged event. + + An System.EventArgs that contains the event data. + + + + 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 unmanage resources. + + + + + + + + + + Formats the given text according to the current setting. + + + + + + + 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 a value indicating whether the control should enable its Accessibility support. + + + + + Indicates whether to serialize the Text property + if it is null or quals NullString + + + + + + Restores the CurrencyNumberDigits to the MaximumLength. + + + + + 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. + + + + + Indicates whether the MaxValue property should be serialized. + + True if the value is not equal to . + + + + Resets the Max value to the default. + + + + + Gets or sets the minimum value that can be set through the DoubleTextBox. + + + + + 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. + + + + + Represents the class to apply the theme for control. + + + 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. + + + + + + It contains the value of the property. + + + + + Helps to draw text border of control + + + + + Helps to apply the ThemeName settings in control + + ThemeName + + + + Helps to override the ThemeName property settings + + ThemeName + + + + Helps to override the OnGotFocus events + + An System.EventArgs that contains the event data. + + + + 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. + + + + + Occurs when the property is changed. + + + + + Gets or sets a value indicating whether the control should enable its Accessibility support. + + + + + 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 . + + + + + 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 to serialize the Text property + if it is null or quals NullString + + + + + + 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. + + + + + + + + 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. + + + + + + + + Gets / sets the minimum value that can be set through the IntegerTextBox. + + + + + Indicates whether the MinValue property should be serialized. + + True if the value is not equal to . + + + + Resets the value to the default. + + + + + Indicates whether to allow insets zero in the beginning value. + + + + + 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. + + + + + 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. + + + + + Indicates whether to serialize property value. + + + + + + Indicates whether to serialize property value + + + + + + 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 unmanage resources. + + + + Raises the System.Windows.Forms.Control.EnabledChanged event. + + An System.EventArgs that contains the event data. + + + + + + + + + + Formats the given text according to the current setting. + + + + + + + Represents a class to define the style for the control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Gets the default style value for the control. + + + + + Gets or sets the value of the + control. + + + + + + Gets or sets the value used to draw the back color of the + control in the default state. + + The value is used to draw the back color of the TextBoxExt. + The default value is null. + + + + Gets or sets the value used to draw the back color of the + control in the disabled state. + + The value is used to draw the disabled back color of the TextBoxExt. + The default value is null. + + + + Gets or sets the value used to draw the fore color of the + control in the default state. + + The value is used to draw the fore color of the TextBoxExt. + The default value is null. + + + + Gets or sets the value used to draw the fore color of the + control in the disabled state. + + The value is used to draw the disabled fore color of the TextBoxExt. + The default value is null. + + + + Gets or sets the value used to draw the border color of the + control in the default state. + + The value is used to draw the border color of the TextBoxExt. + The default value is null. + + + + Gets or sets the value used to draw the border color of the + control in the focussed state. + + The value is used to draw the focussed border color of the TextBoxExt. + The default value is null. + + + + Gets or sets the value used to draw the border color of the + control in the disabled state. + + The value is used to draw the disabled border color of the TextBoxExt. + The default value is null. + + + + Gets or sets the value used to draw the border color of the + control in the hover state. + + The value is used to draw the hover border color of the TextBoxExt. + The default value is null. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Implements a class that provide the identity information of + using . + + + + + Maintains the TextBoxExt for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents a class that provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable sub-object. + + + + + Represents a class to apply the theme for the control. + + + 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. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Gets or sets the Base Theme name of the theme + + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Gets the name of the control. + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Helps to apply the ThemeName settings in control + + ThemeName + + + + Helps to override the ControlName property settings + + ControlName + + + + Helps to draw text border of control + + + + + Overflow indicator size. + + + + + Overflow indicator element size. + + + + + Overflow indicator border indent. + + + + + 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 + + + + + Default windows message for gesture support. + + + + + Default windows message for Mouse captured. + + + + + 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. + + + + + Overrides the base class font property. + + + + + 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 + + + + + + + + + + + + + + + Scale the control based on the scale factor passed in the argument. + + value to scale the factor based upon. + + + + + + + + MetroColor. + + + + + 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. + + + + + Used to set the Hover and Focussed border color + + + + + 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. + + + + + It contains the value of the property. + + + + + Gets or sets the theme name of the control. + + + The default value is null. + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Gets the active theme name of the control. + + Returns the active theme name. + + + + 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. + + + + + Occurs when theme name of the control has 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. + + + + + 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 event when theme name changed. + + The sender value. + A contains the event data. + + + + It contains the value of the property. + + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + It contains the value of the property. + + + + + Gets or sets a value indicating whether a theme settings + can be applied to the control. + + The default value is true. + + This property must be initialized before applying the VisualTheme /> + + + + + Helps to override the CanApplyTheme property settings + + CanApplyTheme + + + + Helps to override the CanOverriderStyle property settings + + CanOverriderStyle + + + + 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. + + + + + + + + + Raises the System.Windows.Forms.Control.EnabledChanged event. + + An System.EventArgs that contains the event data. + + + + Helps to reset Control Layout Settings + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + Office2010 color scheme. + + + + + Gets color table for Office2010 visual style. + + + + + Gets or sets the Office2016 colors for the Office2016 style. + + + + + Office2007 color scheme. + + + + + Gets color table for Office2007 visual style. + + + + + Draw one overflow indicator. + + + + + + + + Draw overflow indicator foregraund element. + + + + + + + + Signals the object that initialization is starting. + + + + + Signals the object that initialization is complete. + + + + + Gets a value indicating whether this is initializing. + + true if initializing; otherwise, false. + + + + CheckBoxAdvActionList class. + + + + + Initializes a new instance of the ClockActionList class. + + Represents component + + + + Overrridden InitializeActionList. + + + + + Gets the image collection + + + + + Represents the class to define the style of control. + + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default ProgressBarAdvStyleInfo value. + + + + + Gets or sets used to draw the progress value of the control. + + + + + Gets or sets an integer value that describes the thickness of border. + + + + + Gets or sets an interger integer value that describes the amount of space between a progress rectangle and its element border. + + + + + Gets or sets the background color of the control. + + + + + Gets or sets the background color of the control in the disabled state. + + + + + Gets or sets the fore color used to draw the progress value of the control. + + + + + Gets or sets the progress fill color value used to draw the progress rectangle of the control. + + + + + Gets or sets the progress fill color used to draw the progress rectangle of the control in the disabled state. + + + + + Gets or sets the border color used to draw the border of the control in the disabled state. + + + + + Gets or sets the foreground color value used to draw the text of the control to in the disabled state. + + + + + Gets or sets the value used to draw the border of the control in the default state. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Represents the class holds the plain data for a style object excluding identity information. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Maintains the static data. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Populates the SerializationInfo store with the name, type, and value of each piece of information it wants to serialize + Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. + + + + Overridden to get the static data source. + + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the progressBarAdv for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + 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; + + + + 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; + + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Occurs when theme name of the has changed. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Gets or sets the value used to customize the appearance of the . + + + + + Gets or sets a value indicating whether a theme style + has been applied to the control. + + The default value is true. + + + + Gets or sets the theme name of the ProgressBarAdv control. + + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets or sets the BaseTheme name of the theme + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Gets or sets the VisualTheme of the ProgressBarAdv control. + + + + + Draws the dual gradient color of the progress bar when office2016 theme is selected. + + + + + + + + + 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 name of the control. + + + + + Gets the active theme name of the ProgressBarAdv control. + + Returns the active theme name. + + + + Raises the event when themename changed. + + The sender value. + A contains the event data. + + + + Updates the Style renderers of ProgressBarAdv Control based on applied Theme. + + + + + Helps to reset Layout customization of the ProgressBarAdv Control. + + + + + 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. + + + + + 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. + + + + + Gets/Sets the Renderer of the ProgressBarAdv. + + + + + Gets the Office2016 style colors respective to the ProgressBarAdv style + + + + + 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. + + + + + 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. + + + + + Serialize the gradient color + + + + + Resets the gradient color + + + + + Serialize the gradient color + + + + + Resets the gradient color + + + + + 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 used to draw the progress value of the control. + + + + + Initialize the whether the Marker imager is shown or not. + + + + + Gets or sets whether the Marker image is shows on ProgressBar. + + + + + Resets the property to it's default value. + + + + + Indicates whether the current value of the property is to be serialized. + + + + + + Display the marker image. + + + + + Gets / sets the marker image to draw on right side of the Progress. + + + + + 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. + + + + + Gets / sets the marker image size to draw on right side of the Progress. + + + + + Resets the property to it's default value. + + + + + Indicates whether the current value of the property is to be serialized. + + + + + + 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. + + + + + Serialize the borderstyle + + + + + Reset the border style + + + + + 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. + + + + + Serializes the bordercolor + + + + + Resets the bordercolor + + + + + Determines whether FontColor has been modified and its contents should be serialized at design-time. + + True if FontColor were changed; False otherwise. + + + + Resets the FontColor back to its default value. + + + + + Determines whether BackTubeStartColor has been modified and its contents should be serialized at design-time. + + True if BackTubeStartColor were changed; False otherwise. + + + + Resets the BackTubeStartColor back to its default value. + + + + + Determines whether BackTubeEndColor has been modified and its contents should be serialized at design-time. + + True if BackTubeEndColor were changed; False otherwise. + + + + Resets the BackTubeEndColor back to its default value. + + + + + Determines whether TubeEndColor has been modified and its contents should be serialized at design-time. + + True if TubeEndColor were changed; False otherwise. + + + + Resets the TubeEndColor back to its default value. + + + + + Determines whether TubeStartColor has been modified and its contents should be serialized at design-time. + + True if TubeStartColor were changed; False otherwise. + + + + Resets the TubeStartColor back to its default value. + + + + + Determines whether BackGradientStartColor has been modified and its contents should be serialized at design-time. + + True if BackGradientStartColor were changed; False otherwise. + + + + Resets the BackGradientStartColor back to its default value. + + + + + Determines whether BackGradientEndColor has been modified and its contents should be serialized at design-time. + + True if BackGradientEndColor were changed; False otherwise. + + + + Resets the BackGradientEndColor back to its default value. + + + + + 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 + + + + + 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. + + + + 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. + + + + RadioButtonAdvActionList Class. + + + + + Initializes a new instance of the RadioButtonAdvActionList class. + + Represents component + + + + Gets or sets thumb color. + + + + + InitializeActionList method + + + + + 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. + + + + Indicates whether size is dependant of child control size. + + + + + Initializes the container control. + + + + + Holds the theme name of it's parent control. + + + + + Adjusts bounds of the popupHost. + + + + + 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. + + + + + + + + + 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 + + + + + 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. + + + + The close button used in SizablePopupHost. + + + + + Override OnPaint. + + The event data. + + + + Gets / sets the text property. + + + + + 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. + + + + + Accessibility class to provide Coded UI support. + + + + + Variable for GradientPanel. + + + + + Constructor. + + GradientPanel + + + + 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. + + + + + 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. + + + + Represent line. + + + + + Start point of the line. + + + + + End point of the line. + + + + + Represents a null Line. + + + + + Gets or sets start point of the line. + + + + + Gets or set end point of the line. + + + + + Gets size of the line. + + + + + Summary description for GradientPanelExtCollectionEditor. + + + + + Summary description for GradientPanelExtDesigner. + + + + + Selected primitive. + + + + + Distance from a mouse and bounds of the primitive. + + + + + Gets or sets selected primitive. + + + + + Gets owner control. + + + + + Gets rectangle where can location primitives. + + + + + Sets alignment of primitive. + + + + + Sets position of primitive. + + + + + Gets draged primitive. + + + + + 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 . + + + + + Color which uses for drawing border selected primitive. + + + + + Default size for primitive. + + + + + Offset for select rectangle. + + + + + Offset for redraw primitive. + + + + + Start position 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + Gets or sets image for collapsed primitive. + + + + + Gets or sets image for expanded primitive. + + + + + Gets or sets value which indicate that primitive is collapse. + + + + + Sets collapse state. Don't raise event. + + + + + Draws plus/minus primitive. + + + + + 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. + + + + + Gets or set control which displaying inside the primitive. + + + + + Refresh location and size for host control. + + + + + Determines if a primitive contains control. + + + + + 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'. + + + + + Raise by method. + + + + + Adds primitive to collection. + + + + + Adds primitives to collection. + + + + + Removes primitive from collection. + + + + + Indexer. + + + + + Class helps to apply Office2016 Theme colors + + + + + Constructor + + + + + Holds Visual style + + + + + GroupBar Visual Style + + + + + Holds Splitter Dot Color + + + + + Gets Splitter Dot Color + + + + + Holds Splitter Backcolor + + + + + Gets the Splitter Color + + + + + Holds the Collapsed Panel Backcolor in Normal state + + + + + Gets the Collapsed panel Backcolor in Normal state + + + + + Holds the Collapsed Panel Backcolor in Hover state + + + + + Gets the Collapsed panel Backcolor in Hover state + + + + + Holds the Collapsed DropDown button Backcolor on Selected state + + + + + Gets the Collapsed Dropdown Button Selected Backcolor + + + + + Holds the Collapsed DropDown button Backcolor on Hover state + + + + + Gets the Collapsed Dropdown Button Hover Backcolor + + + + + Holds the Collapsed DropDown button ForeColor + + + + + Gets the Collapsed Dropdown Button ForeColor + + + + + Holds the Header Border color + + + + + Gets the Header Border color + + + + + Holds the Header BackColor + + + + + Gets the Header BackColor + + + + + Holds the Default Forecolor + + + + + Gets the Header Forecolor + + + + + Holds Header Backcolor in pressed state + + + + + Gets the Header Backcolor in pressed state + + + + + Holds the Header Forecolor in pressed state + + + + + Gets the Header Forecolor in pressed state + + + + + Holds the Header Backcolor in hovered state + + + + + Gets the Header Backcolor in Hovered state + + + + + Holds the Header Fore color + + + + + Gets the Header Forecolor in hovered state + + + + + Holds the Colapsed panel text color + + + + + Gets the Colapsed panel text color + + + + + Holds the Overflow button hover color + + + + + Gets the Overflow button hover color + + + + + Holds the Group bar boder color + + + + + Gets the Group bar boder color + + + + + Holds the Overflow Icon Color + + + + + Gets the Overflow Icon Color + + + + + Holds the TootTip backcolor + + + + + Gets the TootTip backcolor + + + + + Holds the TootTip backcolor + + + + + Gets the TootTip backcolor + + + + + 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. + + + + + 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. + + + + + Creates a new instance of the class with the specified colors. + + Left border color. + Top border color. + Right border color. + Bottom border color. + + + + 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. + + + + + Gets or sets a value indicating whether background color of GroupBarItem is changed or not. + + + + + The image representing the item in the GroupBar's navigation pane. + + + + + 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. + + + + Padding provides spacing between the icons (images) and the text in the . + + + + + 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. + + + + Resets the property to its default value. + + + + + Gets / sets the foreground color used to paint the text in the . + + A value. + + + + + + + + + + Resets the property to its default value. + + + + + Gets / sets the color used to fill the background. + + A value. + + + + Resets the property to its default 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. + + + + Resets the property to its default 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. + + + + + + + + + + Creates an instance of the class. + + + + + Overridden. See . + + + + + 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. + + + + + + Returns the GroupBarItem used by this event. + + The object used by the event. + + + + Creates a new instance of the class. + + The to store in this 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. + + + + + + Returns the menu provider object used by for creating its context menu. + + The object. + + + + Creates a new instance of the class. + + The implementing the context menu. + + + + 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. + + + + 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 . + + + + + 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. + + + + Creates a new instance of the GroupItemRenamedEventArgs class. + + The zero-based index of the renamed item. + The old item text. + The new item text. + + + + 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 + + + + + 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. + + + + 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. + + + + Class for subclassing parent form and prevent it from blinking. + + + + + Catches WM_NCACTIVATE message if needed. + + + + + + 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. + + + + + 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 / sets the 's tooltiptext. + + A string value. + + + + Gets or Sets the value to change the Text Position of the GroupViewItem + + + + + 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. + + + + + Gets / sets the height between adjacent s. + + An integer value. + + + + Indicates whether the is visible. + + + + + Item bounds. + + + + + 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. + + + + + 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. + + + + 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 + + + + + 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 + + + + + Constructor for renderer class + + Theme of GroupView + + + + + 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. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + + + Holds the ImageListAdv + + + + + 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. + + + + + Gets or sets image. + + + + + Gets or sets key. + + + + + Creates new ImageInfo. + + Image. + Key. + + + + 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 the image based on the current DPI + + Image Index + Returns image based on the current DPI + + + + Gets or sets image with specified key. + + Key of image. + Image with specified key. + + + + Gets collection of keys. + + + + + 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. + + + + 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. + + + + 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. + + + + ImageList with support for images of different sizes and transparency. + + + + + Default image size. + + + + + Collection of images. + + + + + Collections images based on DPI + + + + + Size of images. Used in drawing and for compatibility reasons. + + + + + Indicates whether images should be drawn using ImageSize property. + + + + + Tag object. + + + + + Gets collection of images. + + + + + Gets or sets the DPI based 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. + + + + + 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 + + + + + + + + + + + + + + + + + + + + + ImageListAdv Designer + + + + + Designer ActionList collection + + + + + Initializes a new instance of the CheckBoxAdvDesigner class + + + + + Gets a value indication the designer action + + + + + 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. + + + + + Specifies the style with which some controls will appear and behave. + + + + + Classic appearance. + + + + + Office2016 Colorful + + + + + Office2016 White + + + + + Office2016 Black + + + + + Office2016 DarkGray + + + + + Represents the that lays out the children along the borders and + at the center, very similar to the Windows Form's control docking behavior. + + + + This 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 + 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 + . + + + When using , there can be only a single control that + can be docked to a border. + + + When using 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 . + + + + + Here is some sample code that tells you how to initialize a manager. + + // Binding a control to the 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); + + Also, take a look at the project in Tools/Samples/Layout Manager Package/ for an example. + + + + + Hashtable to maintain constraint to control mapping. + + + + + Overloaded. Creates an instance of the class and sets its defaults. + + + + + Creates an instance of the class and sets its . + + + + + Creates an instance of the class and sets its Control. + + + + + Creates an instance of the class and sets its Control, + and . + + + + + 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. + + + + Sets the for a child component. + + The child component whose position is to be set. + The . + + + + Removes a child component from the layout list. + + + The childcontrol which is need to remove from layout + + + + Adds a child component to the layout list with the specified constraints. + + + The childcontrol which is added to the layout + The + + + + 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. + + + The control whose perferred size is to be retrieved + Returns the PreferredSize of the control + + + + + + + Retrieves the minimum size associated with the specified control. + + + The control whose minimum size is to be retrieved + Returns the MinimumSize of the control + + + + Returns the preferred size for the ContainerControl. + + + + + + Returns the minimum size for the ContainerControl. + + + + + + Triggers a layout of the child components. + + + + + + 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 right edge is docked to the right edge of its containing control. + + + + + The control's left edge is docked to the left edge of its containing control. + + + + + The control is resized to fit the area between the controls laid out in the other borders. + + + + + Convert the card names into String type. + + + + + Gets the Cards name as + + + + + + + Specifies how the children will be laid out. + + + In Default mode, the 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 that lays out the children as "Cards". + + + Each child component is a "Card" with a name attached to it. + The 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 class documentation for more information on + in general. + + + Here is some sample code that tells you how to initialize a manager: + + // Binding a Control to the 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(); + + Also, take a look at the project in Tools/Samples/Quick Start/ for an example. + + + + + Indicates the Base Name of the card. + + + + + Overloaded. Creates a new instance of the class and sets its defaults. + + + + + Creates a new instance of the class and adds itself to the specified container. + + The logical parent into which to add itself. + This constructor is used by the design-time to add a component to the form's + field so that it gets Disposed when the form gets Disposed. + Note that this is not the same as the 's container control. + + + + Creates a new instance of the class and sets its . + + + + + Ends designer initialization. + + + + + Gets or sets the . + + The current . Default is .Default. + + + + Gets or sets the selected control. + + + + + 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 .Default. + + + + Overridden. See . + + + + + + + Generates a new unique name for a card that could be added to this . + + A card name unique within this . + + + + Overridden. See . + + + + + + Overridden. See . + + The child control which is added to the Layout + The Card Name as string + + + + Overridden. See . + + The child control which is need to remove from layout + + + + 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. + + + + + 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. + + + + Shows the next Card in the list. + + + + + 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. + + + + Shows the previous Card in the list. + + + + + Shows the last Card in the list. + + + + + Shows a Card by name. + + The Card's name. + + + + Gets or sets the current Card's name. + + The current 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. + + + + This event is raised in method before applying new bounds. + + + + + Represents the method that will handle the event of + the . + + 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. + + + 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 object (that is not empty). + + The default object. + + + + Overloaded. Creates a new instance of the class and sets its defaults. + + + + + Creates a new instance of the 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). + + + + 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 .Justify. + + + + Specifies the mode in which the child should be laid out within a column. + + A value. Default is .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 or sets the structure with its properties left uninitialized. + + + + + Creates an exact copy of this object. + + The cloned object. + + + + Overridden. See + + + + + + Check the object equals with current object and properties. + True, If the object equals with . Otherwise false. Default is false. + + The object + bool + + + + 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 + + + + + Convert the properties values into . + + + + + Overridden. See + + + + + Binds the assembly name and type to the assembly. + + + + + Binds the assembly type to the same type in a different assembly. + + + + + Overridden. See + + + + + Overridden. See + + + + + Overridden. See + + + + + 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 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 's changes, it automatically assigns default to the + children, for convenience sake, so that you don't + have to call for each child component. + Take a look at the class documentation for more information on + in general. + + + The following example shows you how to initialize a manager with a container control: + + // Binding a control to the 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 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 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; + + Also take a look at the project in Tools/Samples/Quick Start/ for an example. + + + + + Gets or 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 bottom justified. + FlowAlignment.ChildConstraints will make the manager refer to the child's constraints. + + + + + Gets or 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 or 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 or sets the vertical spacing between the layout border and the components. + + The vertical space in pixels. + + + + Overloaded. Creates a new instance of the component and sets its defaults. + + + + + Creates a new instance of the class and adds itself to the specified container. + + The logical 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 's container control. + + + + Creates a new instance of the component and sets its . + + The logical parent into which to add itself. + + + + + + + + + + + + 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 . + + The control to associate the preferred size with. + The preferred size of the control. + + + + Overridden. See . + + + + + Overridden. See . + + The control which PreferredSize to be reset. + + + + Indicates whether to serialize the PreferredSize property. + + + + + Overridden. See . + + The Control which MinimumSize to be reset. + + + + Indicates whether to serialize the MinimumSize property. + + + + + Overridden. See . + + An EventArgs that contains the event data. + + + + + + + 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 . + + + + + Arrange the layout components horizontally in the layout container. + + + + + Arranged the layout components vertically in the layout container. + + + + + Overridden. See . + + + + + Occurs when property is changed. + + + + + Occurs when property is changed. + + + + + Create the labeledcontrol with Autolabel which is presented in layout container. + + + + + Create the new instance for add added its controls bounds. + + Childcontrol's bounds values for the layout. + + + + Create the new instance for add added its controls bounds. + + AutoLabel's bounds values for the layout + Position for AutoLable + Horizontal space between the left of AutoLable and its labledcontrol. + Vertical space between the top ofthe AutoLable andIts labledcontrol. + Childcontrol's bounds values for the layout. + + + + Suspends updating the until is called. + + + + + Resumes updating the after a call. + + + + + Gets or sets the Location of the childcomponent. + + + + + Gets or sets the height of the childcomponent. + + + + + Gets or sets the width of the childcomponent. + + + + + InsetsCoverter sets the layout components left,right,top and bottom margins. + + + + + Overridden. See . + + + + + Overridden. See . + + + + + Overridden. See . + + + + + Overridden. See . + + + + + 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. + + + + Gets or sets the insets to the left of the component. + + + + + Gets or sets the insets to the right of the component. + + + + + Gets or sets the insets to the top of the component. + + + + + Gets or sets the insets to the bottom of the component. + + + + + Overriden.See . + + + + + Overriden.See . + + + + + Overriden. See . + + + + + 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. + + + + + Serialize and Deserialize the objects. + + + + + Convert the properties values into . + + + + + Binds the assembly name and type to the assembly. + + + + + Binds the assembly type to the same type in a different assembly. + + + + + Overridden. See . + + + + + Overridden. See . + + + + + Overridden. See . + + + + + Overridden. See . + + + + + 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. + + + 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 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 object that is also empty. + + The default object. + + + + Overloaded. Creates a new instance of the class and sets its defaults. + + + + + Creates a new instance of the class + with the specified values. + + Grid column beggining position. + Grid row beggining position. + The number of columns this component should span in the virtual grid. + The number of rows this component should span in the virtual grid. + The weight of the component to obtain the extra horizontal space. + The weight of the component to obtain the extra vertical space. + The justification of a component within its available layout bounds. + The filltype to resize the components in layout bounds. + Adding the extra space arround the components preferred bounds. + The amount of pixels to add to the component size while calculating the overall width. + The amount of pixels to add to the component size while calculating the overall height. + Represents the structure with its properties left uninitialized. + + + + Gets or 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 or 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(.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 or 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 (.Remainder). + + When value is zero, the component will be the last one in its row. + + + + + Gets or 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 (.Remainder). + + When value is zero, the component will be the last one in its column. + + + + + Gets or 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 or 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 or 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 or 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 or 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 or 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 or 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 or sets the structure with its properties left uninitialized. + + + + + Creates an exact copy of this object. + + The cloned object. + + + + Overridden. See + + + + + Overridden. See . + + The 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. + + + + + Raises when properties changed. + + + + + Initialize the layout bounds. + + + + + Represents the that performs . + + + The 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 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 manager with a container control and its children: + + // Binding a control to the 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; + + Also take a look at the project in Tools/Samples/Quick Start/ 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 class and sets its defaults. + + + + + Creates a new instance of the 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 's ContainerControl. + + + + Creates a new instance of the class and sets its ContainerControl. + + The logical ContainerControl parent into which to add itself. + + + + + + + + + + Overridden. See . + + The control which PreferredSize to be reset. + + + + Indicates whether to serialize the PreferredSize property. + + + + + Overridden. See . + + The Control which MinimumSize to be reset. + + + + Indicates whether to serialize the MinimumSize property. + + + + + 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 . + + The control to associate the preferred size with. + The preferred size of the control. + + + + 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 associated with this component. + If the second argument is not a , an exception will be thrown. + + + + + + + Overridden. See . + + The control to be removed. + + + + + Overridden. See . + + Reutrns the preferred size of the Container control. + + + + Overridden. See . + + Returns the MinimumSize of the ContainerControl. + + + + Overridden. See . + + + + + Overridden. See . + + + + + Represents the that lays out the child components as a + grid consisting of rows and columns. + + + The 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 and properties. + You can remove or add child controls through the SetParticipateInLayout + method. When the '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 during layout, however the and + methods do refer to the above settings to determine the sizes. + Take a look at the class documentation for more information on + in general. + + + The following example shows you how to initialize a manager with a container control: + + // Binding a Control to the 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 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; + + Also take a look at the project in Tools/Samples/Quick Start/ for an example. + + + + + Overloaded. Creates an instance of the class and sets its defaults. + + + + + Creates a new instance of the class and adds itself to the specified container. + + The logical 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 's ContainerControl. + + + + Creates an instance of the class and sets its ContainerControl. + + The logical parent into which to add itself. + + + + Creates an instance of the class and sets its ContainerControl, + rows and columns. + + The logical parent into which to add itself. + Number of rows to be displayed in the + Number of columns to be displayed in the + + + + Creates an instance of the class and sets its ContainerControl, + rows, columns, horizontal gap and vertical gap. + + The logical parent into which to add itself. + Number of rows to be displayed in the . + Number of columns to be displayed in the . + The horizontal space between the child controls. + The vertical space between the child controls. + + + + Gets / sets the number of rows to be displayed in the . + + 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 to be displayed in the . + + 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. + + + + 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 . + + + + + + Retrieves the preferred size associated with the specified control. + + + + + + Retrieves the minimum size associated with the specified control. + + + + + + + + + Overridden. See . + + Returns the preferred layout size. + + + + Overridden. See . + + + + + Overridden. See . + + + + + Calculate the rows count when column count is zero. + + Number of columns + Number of rows + Number of controls + + + + Calculate the columns count when row count is zero. + + Number of columns + Number of rows + Number of controls + + + + + + + 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; + } + } + } + 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); + } + + + + + + Creates an instance of the LayoutItemBase. + + + + + 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. + + + + 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. + + + + 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. + + + + + 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. + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + Sets the CustomLayoutBounds property to Rectangle.Empty. + + + + + Indicates whether the CustomLayoutBounds property is a value other than Rectangle.Empty. + + + + + 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. + + + + + + + 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. + + + + + Helps transform points from LTR to RTL co-ordinates and vice versa. + + + + + 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); + + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + 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. + + + + + Gets or sets a value indicating whether the control should enable its Accessibility support. + + + + + Property changed event handler. + + + + + 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. + + + + Sets the Mask for the MaskedEditBox with the given mask string + + Masked String + + + + 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. + + + + + 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. + + + + + Returns the last mask character. + + + + + + Internal helper function to set the maximum length. + + The new mask length. + + + + Gets / sets the display string. + + + + + 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. + + + + 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. + + + + + Returns the clip text. + + The starting position for the selection. + The end position for the selection. + Returns the clip text. + + + + 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. + + + + + + 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. + + + + 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. + + + + + 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. + + + + + 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. + + + + + Indicates whether the DateSeparator should not be serialized if + the UseLocaleDefault property is set. + + + + + + Resets the value to the culture specific value. + + + + + 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 TimeSeparator should not be serialized if + the UseLocaleDefault property is set. + + + + + + Resets the value to the culture specific value. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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 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 . + + + + + 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. + + + + + 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 . + + + + + 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. + + + + 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. + + + + + 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. + + + + + Helps to apply the ControlName settings in control. + + Name of the Control. + + + + 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. + + + + Use this everywhere except in RefreshPromptCharacter. + + + + + 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. + + + + + 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. + + + + + Internal helper function to directly set the base control Text property. + + The new value. + + + + 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. + + + + + 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. + + + + + Provides information about a control that can be used by an accessibility application. + + + + + MaskedEditBox + + + + + Constructor + + The RibbonControlAdv instance. + + + + 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. + + + + 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. + + + + 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. + + + + + Gets / sets the 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. + + + + PropertyChanged event handler. + + + + + Raises the PropertyChanged event. + + + + + + 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 + . + + + + 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. + + + + 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. + + + + 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. + + + + + Provides information about a control that can be used by an accessibility application. + + + + + DoubleTextBox + + + + + Constructor + + The RibbonControlAdv instance. + + + + 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. + + + + 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. + + + + Provides information about a control that can be used by an accessibility application. + + + + + IntegerTextBox + + + + + Constructor + + The RibbonControlAdv instance. + + + + 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. + + + + 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. + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + Update culture based on LCID. + + A Boolean that denotes whether to use the user-selected culture settings (true) + or the default culture settings (false). + CurrentCulture if LCID is not available. + + + + Initialize the context menu. + + + + + + + + + + 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 ); + + + + + 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. + + + + Gets or sets the culture that is to be used for formatting the numeric display. + + + + + Refreshes and reapplies the culture specific settings. + + + Call this function when there has been a change in the CurrentCulture of the + application. + + + + + 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. + + + + + Resets the property to its default value. + + + + + Resets the property to its default value. + + + + + 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. + + + + + 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. + + + + + + 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. + + + + + Indicates whether NegativeColor property value should be serialized. + + + + + Resets NegativeColor property to default value. + + + + + 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. + + + + + Indicates whether ZeroColor property value should be serialized. + + + + + Resets ZeroColor property to default value. + + + + + 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. + + + + + Indicates whether PositiveColor property value should be serialized. + + + + + Resets ResetPositiveColor property to default value. + + + + + 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. + + + + + Raises the event. + + A that contains the event data. + + + + 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. + + + + + 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. + + + + + + + + + + + + + + Gets or Sets the BackGroundColor of the control. + + + + + Resets the ControlBackColor property to its default value. + + + + + Resets the ControlBackColor property to its default value. + + + + + Color to be used for the Backcolor when the control is Read-only. + + + + + Resets ReadOnlyBackColor property to default value. + + + + + 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. + + + + + Gets the clip text. + + + + + + + Occurs when the property is changed. + + + + + Raises the event. + + A that contains the event data. + + + + 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. + + + + + Raises the event. + + A that contains the event data. + + + + 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. + + + + + 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. + + + + + 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 + + + + + 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. + + + + + + + + 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 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 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. + + + + + + + + + + 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. + + + + + Indicates whether the NumberDecimalDigits should not be serialized if the UseLocaleDefault property is set. + + + + + Resets the value to the culture specific value. + + + + + 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. + + + + + Indicates whether the NumberDecimalSeparator should not be serialized if the UseLocaleDefault property is set. + + + + + Resets the value to the culture specific value. + + + + + 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. + + + + + Indicates whether the NumberGroupSeparator should not be serialized if + the UseLocaleDefault property is set. + + + + + + Resets the value to the culture specific value. + + + + + 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. + + + + + Indicates whether the NumberGroupPattern should not be serialized if + the UseLocaleDefault property is set. + + + + + + Resets the value to the culture specific value. + + + + + 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. + + + + + 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 a value indicating whether to delete selection when number is changed to negative. + + + true if [delete selection on negative]; otherwise, false. + + + + + 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. + + + Represents the class to apply the theme for control. + + + + + + + + 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. + + + + + Occurs when the property is changed. + + + + + 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. + + + + + + Raises the System.Windows.Forms.Control.EnabledChanged event. + + An System.EventArgs that contains the event data. + + + + + + + Overrides . + + + + + + + + + + + + + + + + + + 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. + + + + + 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. + + + + Gets or sets a value indicating whether the control should enable its Accessibility support. + + + + + Resets the value to the culture specific value. + + + + + 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. + + + + + Indicates whether the PercentPositivePattern should not be serialized if + the UseLocaleDefault property is set. + + + + + + Resets the value to the culture specific value. + + + + + + + + + + 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. + + + + + 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. + + + + + 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. + + + + + Indicates whether the PercentDecimalSeparator should not be serialized if + the UseLocaleDefault property is set. + + + + + + Resets the value to the culture specific value. + + + + + 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. + + + + + Indicates whether PercentGroupSeparator should not be serialized if + the UseLocaleDefault property is set. + + + + + + Resets the value to the culture specific value. + + + + + 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. + + + + + Indicates whether the PercentGroupPattern should not be serialized if + the UseLocaleDefault property is set. + + + + + + Resets the value to the culture specific value. + + + + + 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 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. + + + + + + Indicates whether the PercentTextBox should allow editing in numeric mode + when it receives focus. + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Gets / sets the maximum value that can be set through the PercentTextBox. + + + + + + Indicates whether the MaxValue property should be serialized. + + True if the value is not equal to . + + + + Resets the value to the default. + + + + + Gets / sets the minimum value that can be set through the PercentTextBox. + + + + + + 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. + + + + + + + + + + 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. + + + + + Raises the event. + + A that contains the event data. + + + + 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 to serialize the Text property + if it is null or quals NullString + + + + + + Restores the CurrencyNumberDigits to the MaximumLength. + + + + + + + + + Gets or sets the NULL string to be displayed. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + It contains the value of the property. + + + + + Helps to apply the ThemeName settings in control + + ThemeName + + + + Helps to override the ThemeName property settings + + ThemeName + + + + Helps to override the OnGotFocus events + + An System.EventArgs that contains the event data. + + + + Helps to draw text border of control + + + + + + + + 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. + + + + 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. + + + + 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. + + + + Represents a class to define the style for the control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Gets the default style value for the control. + + + + + Gets or sets the value used to draw the fore color of the + control when text value is negative. + + The value is used to fill the fore color of the textbox. + + + + Gets or sets the value used to draw the fore color of the + control when text value is zero. + + The value is used to fill the fore color of the textbox. + + + + Gets or sets the value used to draw the back color of the + control when text value is read only. + + The value is used to fill the back color of the textbox. + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Implements a class that provide the identity information of + using . + + + + + Maintains the PercentTextBox for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + 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. + + + + + 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 + + + + + Gets 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 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 + + + + + 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 + + + + + Constructor for renderer class + + + + + + + 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. + + + + + + + + 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. + + + + + 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. + + + + + Initializes the designer with the specified component. + + The to associate the designer with. This component must always be an instance of, or derive from, . + + + + 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. + + + + + 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. + + + + Gets the selection rules that indicate the movement capabilities of a component. + + + + A bitwise combination of values. + + + + + 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. + + + + Provides information about a control that can be used by an accessibility application. + + + + + TextBoxExt + + + + + Constructor + + The RibbonControlAdv instance. + + + + 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. + + + + 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. + + + + Specifies the information required by the class to enable auto appending + in a control. + + + Take a look at for a usage example. + + + + + + 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. + + + + + 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. + + + + 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)); + + + + + + 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. + + + + + 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. + + + + + + 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. + + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + + + Provides information about a control that can be used by an accessibility application. + + + + + ComboBoxBase + + + + + Constructor + + The RibbonControlAdv instance. + + + + 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. + + + + 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. + + + + 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 + + + + + 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. + + + + + 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. + + + + + Default size of the control + + + 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 . + + + + + + Gets a value indicating whether this instance is initializing. + + + + + 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. + + + + + + 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. + + + + + Gets or sets the value for the control. + + + + + + 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. + + + + 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. + + + + + 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) + + + + + Resets the property to its default value. + + + + + + + + + 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. + + + + + 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. + + + + 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 selection on mouse move is on. + + + + + Gets or sets a value indicating to show the Gray BackColor on ReadOnly is set. + + + + + Gets or sets a value to have effect of BackColor + + + + + Get or Set of Skin Manager Interface + + + + + Gets or sets office 2007 color theme. + + + + + Gets or sets office 2010 color theme. + + + + + + + + Metrocolor. + + + + + Gets or sets the metrocolor. + + + + + Serialize metrocolor. + + + + + Resets 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. + + + + + + + + + + + + + + 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. + + + + Fired when BorderSides are changed. + + + + + Occurs when border's 3D style is changed. + + + + + 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. + + + + + Occurs before the drop-down portion is shown. + + + + + 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. + + + + + 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. + + + + + + + + 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. + + + + + Occurs when the of the combo changes. + + + + + 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. + + + + + Occurs when the property of the combo changes. + + + + + 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 + + + + + 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. + + + + 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. + + + + + 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. + + + + + Gets or sets the BorderColor for metro style + + + + + 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. + + + + Fired when the ThemesEnabled property changes. + + + + + + + + Called while form is deactivated + + + + + + + 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. + + + + + 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 + + + + + + + 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. + + + + Provides information about a control that can be used by an accessibility application. + + + + + ComboDropDown + + + + + Constructor + + The RibbonControlAdv instance. + + + + 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. + + + + 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. + + + + 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. + + + + Gets/Sets Metro Arrow Color + + + + + Reset MetroArrowColor + + + + + To serialize MetroArrowColor + + + + + + Gets the touchmode value. + + + + + Fired when the user performs a mouse down in the drop-down area. + + + + + 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. + + + + + Indicates whether themes is currently enabled for this control. + + This property doesn't check whether themes are currently enabled in the OS. + + + + Invalidates the specified portion in the underlying control. + + The area to invalidate. + + + + Indicates whether owner control is active. + + + true if this instance is control active; otherwise, false. + + + + + 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. + + + + 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. + + + + 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. + + + + 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. + + + + 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. + + + + + 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 + + + + + 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. + + + + + Creates a new instance of the 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 + + + + + + + Scale the control based on the scale factor passed in the argument. + + value to scale the factor based upon. + + + + + + + + Returns the associated with this control. + + + To access the list box to add items to it. + + + + + Gets or sets a value indicating whether the control should enable its Accessibility support. + + + + + 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. + + + + + Holds the Visual Style of EditableList + + + + + Gets or sets the Visual Style for the EditableList + + + + + Represents the Variable assiged with the default value. + + + + + Gets or Sets the colorschemes for the EditableList. + + + + + Represents the property to set the Style. + + + + + Reset the Style + + + + + + Serializes the Style + + + + + + Represents the Variable with Bool Contraint. + + + + + 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. + + + + + 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. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Occurs when theme name of the has changed. + + + + + Gets or sets the theme name of the EditableList control. + + + + + Gets or sets a value indicating whether a theme style + has been applied to the control. + + The default value is true. + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets or sets the BaseTheme name of the theme + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Gets the name of the control. + + + + + Gets the active theme name of the CheckBoxAdv control. + + Returns the active theme name. + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Raises the event when themename changed. + + The sender value. + A contains the event data. + + + + Updates the Style renderers of EditableList Control based on applied Theme. + + + + + Draws the ListBox and Button colors + + + + + + Draws the Background Color using renderer file + + + + + + + Draws the text. + + The instance containing the event data. + + + + Provides information about a control that can be used by an accessibility application. + + + + + EditableList + + + + + Constructor + + The RibbonControlAdv instance. + + + + 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. + + + + 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. + + + + FolderBrowser Designer + + + + + Designer ActionList collection + + + + + Initializes a new instance of the CheckBoxAdvDesigner class + + + + + Gets a value indication the designer action + + + + + Overrides the font property. + + + + + Gets/Sets whether to draw focus when item is selected. + + + + + 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. + + + + + + + + + + + Represents the class to define the style of ListItems. + + + + + Maintains the default style of the . + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default value. + + + + + Gets or sets the item background color of the ListItem. + + + + + Gets or sets the pressed item background color of the ListItem. + + + + + Gets or sets the hover item background color of the ListItem. + + + + + Gets or sets the disabled item background color of the ListItem. + + + + + Gets or sets the item forecolor of the ListItem. + + + + + Gets or sets the pressed item forecolor of the ListItem. + + + + + Gets or sets the hover item forecolor of the ListItem. + + + + + Gets or sets the disabled item forecolor of the ListItem. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Represents the class holds the plain data for a style object excluding identity information. + + + + + Provides information about the control's ItemBackColor property. + + + + + Provides information about the control's PressedItemBackColor property. + + + + + Provides information about the control's HoverItemBackColor property. + + + + + Provides information about the control's DisabledItemBackColor property. + + + + + Provides information about the control's ItemForeColor property. + + + + + Provides information about the PressedItemForeColor property. + + + + + Provides information about the control's HoverItemForeColor property. + + + + + Provides information about the control's DisabledItemForeColor property. + + + + + Maintains the static data. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Populates the SerializationInfo store with the name, type, and value of each piece of information it wants to serialize + Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. + + + + Overridden to get the static data source. + + + + + Implements the class that provide the identity information of + using . + + + + + Initializes a new instance of the class. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + 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 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 + + + + + Gets the color table according to the theme. + + + + + + + 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 + + + + + Represents the class to define the style of control. + + + + + Maintains the default style of the . + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default value. + + + + + Gets or sets the border color of the textbox. + + + + + Gets or sets the background color of the . + + + + + Gets or sets style for ListItems of the control. + + + + + Gets or sets the disabled background color of the . + + + + + Gets or sets the button background color of the . + + + + + Gets or sets the button forecolor of the . + + + + + Gets or sets the button border color of the . + + + + + Gets or sets the value used to draw the button border of the . + + + + + Gets or sets the value used to draw the pressed button border of the . + + + + + Gets or sets the pressed button forecolor of the . + + + + + Gets or sets the hover button forecolor of the . + + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Represents the class holds the plain data for a style object excluding identity information. + + + + + Provides information about the BorderColor property. + + + + + Provides information about the BackColor property. + + + + + Provides information about the ButtonBackColor property. + + + + + Provides information about the ButtonForeColor property. + + + + + Provides information about the property. + + + + + Provides information about the DisabledBackColor property. + + + + + Provides information about the ButtonBorderColor property. + + + + + Provides information about the ButtonBorderThickness property. + + + + + Provides information about the PressedButtonBorderThickness property. + + + + + Provides information about the SelectedButtonForeColor property. + + + + + Provides information about the HoverButtonForeColor property. + + + + + Maintains the static data. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Populates the SerializationInfo store with the name, type, and value of each piece of information it wants to serialize + Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. + + + + Overridden to get the static data source. + + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the EditableList for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + 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. + + + + Start gradient color. + + + + + End gradient color. + + + + + Gradient style. + + + + + 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. + + + + + 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. + + + + + + + + + + + + + + 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. + + + + + 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. + + + + + 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. + + + + + + + Get user icon for drawing this time. + + + + + 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. + + + + + + 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. + + + + + 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. + + + + + Draws grayed image. + + + + + 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. + + + + + 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 + + + + + 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. + + + + + + + Renderer in colorful style. + + + + + 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 + + + + + Gets the color table 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 + + + + + Represents the class to define the style for control. + + + + + Maintains the default style of the . + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + The style object that contains the original data. + + + + + Initializes a new instance of the class. + + + A that holds data for this + . + All changes in this style object will be saved in the + object. + + + + + Initializes a new instance of the class. + + + The identity. + + + + + Initializes a new instance of the class. + + + The identity. + + + A that holds data for this + . + All changes in this style object will be saved in the + object. + + + + + Gets the default ColorTabControlStyleInfo value. + + + + + Gets or sets the border color of ColorTabControl + + The value is used to set the border of the ColorTabControl. + + + + Gets or sets the background color of ColorTabControl + + The value is used to fill the background of the ColorTabControl. + + + + Gets or sets the background color of ColorTabControl + + The value is used to fill the background of the TabItem. + + + + Gets or sets the background color of ColorTabControl in selected state. + + The value is used to fill the background of the ColorTabControl in selected state. + + + + Gets or sets the fore color of the ColorTabControl. + + The value is used to set fore color of ColorTabControl. + + + + Gets or sets the fore color of control in selected state. + + The value is used to set fore color of ColorTabControl. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Represents the class holds the plain data for a style object excluding identity information. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Maintains the static data. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Populates the SerializationInfo store with the name, type, and value of each piece of information it wants to serialize + Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. + + + + Overridden to get the static data source. + + + + + Creates a copy of the current object. + + A duplicate of the current object. + + + + Represents the class to define the style for control. + + + + + Maintains the default style of the . + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + The style object that contains the original data. + + + + + Initializes a new instance of the class. + + + A that holds data for this + . + All changes in this style object will be saved in the + object. + + + + + Initializes a new instance of the class. + + + The identity. + + + + + Initializes a new instance of the class. + + + The identity. + + + A that holds data for this + . + All changes in this style object will be saved in the + object. + + + + + Gets the default ColorPaletteStyleInfo value. + + + + + Gets or sets the PressedBorder color of the color item. + + The value is used to set border color for color item. + + + + Gets or sets the Border color of the color item. + + The value is used to set border color for color item. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Represents the class holds the plain data for a style object excluding identity information. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Maintains the static data. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Populates the SerializationInfo store with the name, type, and value of each piece of information it wants to serialize + Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. + + + + Overridden to get the static data source. + + + + + Creates a copy of the current object. + + A duplicate of the current object. + + + + Represents the class to define the style for control. + + + + + Maintains the default style of the . + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + The style object that contains the original data. + + + + + Initializes a new instance of the class. + + + A that holds data for this + . + All changes in this style object will be saved in the + object. + + + + + Initializes a new instance of the class. + + + The identity. + + + + + Initializes a new instance of the class. + + + The identity. + + + A that holds data for this + . + All changes in this style object will be saved in the + object. + + + + + Gets the default ColorListStyleInfo value. + + + + + Gets or sets the back color of the list item. + + The value is used to set back color for list item. + + + + Gets or sets the border color of the color palette in list item. + + The value is used to set border color for color palette in list item. + + + + Gets or sets the fore color of the list item. + + The value is used to set fore color for list item. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Represents the class holds the plain data for a style object excluding identity information. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Maintains the static data. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Populates the SerializationInfo store with the name, type, and value of each piece of information it wants to serialize + Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. + + + + Overridden to get the static data source. + + + + + Creates a copy of the current object. + + A duplicate of the current object. + + + + Represents the class to define the style for control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Gets the default style value for the control. + + + + + Gets or sets the value of the + control. + + + + + Gets or sets the BackColor of + + The value is used to set BackColor of the control. + The default value is null. + + + + Gets or sets the ForeColor of the + control. + + The value is used to set ForeColor of the control. + The default value is null. + + + + Gets or sets style for ColorPalette of the control. + + + + + Gets or sets style for ListBox of the control. + + + + + Gets or sets style for ColorTabControl of the control. + + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the SplitButton for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents 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 + + + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Helps to apply the ControlName settings in control + + ControlName + + + + 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 + + + + + Design the property values into class. + + + + + Color array. + + + + + Control for invalidate if color array was chenged. + + + + + Gets or sets the color value of index. + + + + + Gets a value indicating whether access to the is synchronized. + + + + + Gets a count value. + + + + + Copies the element of the to an , starting at a particular index. + + + + + Gets an object that can be used to synchronize access to the . + + + + + Returns the enumerator that iterates through the item collection. + + + + + + Gets or sets a flag value. + + + + + 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 or 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. + + + + + Update the colors when the style is changed. + + + + + Get or Set of Skin Manager Interface + + + + + 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. + + + + Gets or sets the tab associated with this color group the selected tab. + + A value. + + + + Resets the property to its default value. + + + + + Gets or sets the text displayed on the custom colors tab. + + A String value. + + + + Resets the property to its default value. + + + + + Gets or sets the text displayed on the standard colors tab. + + A String value. + + + + Resets the property to its default value. + + + + + Gets or sets the text displayed on the system colors tab. + + A String value. + + + + Resets the property to its default value. + + + + + Gets or sets the current selected color. + + A value. + + + + Resets the property to its default value. + + + + + Gets or sets the border style of the control. + + A value. The default is BorderStyle.Fixed3D. + + + + Overridden. See . + + + + + Initialize a new instance of the class. + + + + + Gets the . + + + + + Gets or sets Control size before touch enabled. + + + + + Overrides the Font property. + + + + + 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 + + + + + + + + + + + + + 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 . + + + + + + + + + Creates a new accessibility object in . + + Returns a new System.Windows.Forms.AccessibleObject for the + + + + 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 colorUI control as a drop-down component. + + + + + Displays the control as a drop-down component. + + The initially selected color. + + + + Ends the color display drop-down. + + + + + Returns an array of standard colors. + + + + + Retrieves the array of custom colors for our use. + + + + + Returns an array of system colors. + + + + + Overrides the base class font property. + + + + + Assigns the value for Oldvalue + + + + + Assigns the scale factor + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + Create a new instance of the ColorPalette class with the specified a colorUI. + + Provides a standard interface for selecting colors. + Retrieves the array of custom colors. + + + + Gets standard colors array; + + + + + Stretch color cell on resize. + + + + + Gets or sets stretch color cell on resize. + + + + + Gets custom colors array. + + + + + Gets or sets the current selected colors. + + + + + Initialize a new instance of the ColorPaletteAccessibleObject class. + + + + + + Overridden. See . + + It contains that index value. + + + + + Overridden. See . + + + + + Overridden. See + + + + + Gets the object name. + + + + + Gets a parent of an object. + + + + + Gets the role of colorcell. + + + + + Gets the value of an object. + + + + + Initialize a new instance of the CustomColorDialog class. + + + + + Represents the comparison between standard colors. + + It contains that first color value. + It contains that another color value. + + + + + Represens the comparison between system color. + + It contains that first color value. + It contains that another color value. + + + + + + Represents a helper class for Net core. + + + + + Helper class for handling corner radius of control region. + + + + + Initializes a new instance of the class. + + The owner control. + + + + 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. + + + + + Gets the graphics path for region border. + + + + + Updates and sets control's region. + + + + + Retrieves the minimal size of the owner control. + + Current minimal size. + + + + + + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Provides the design time functionality for control. + + + + + + + + + + + + + + + + Design the property values into the class. + + + + 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 + + + + + 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. + + + + + Gets the button type images for new theme + + + + + + + + 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. + + + + + + + Represents the class for drawing style option of the control. + + + + + + + + + + + + + + + + + + + + + + + + Initialize the Button Appearance. + + + + + Gets/ Sets the Button Appearance. + + + + + + + + + + + + + + + + + + + Default constructor + + + + + Constructor with variables initialization. + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 List{T} with events. + + Type of collection elements. + + + + + + + + + + + + + + + + + + + Gets or sets the element at the specified index. + + + + + + + + + + + + + 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. + + + + + + + Gets a value indicating whether the list has a fixed size. + + + + + Gets a value indicating whether the list is read-only. + + + + + Removes the first occurrence of a specific object from the list. + + + + + + Removes item at the specified index. + + + + + + Gets or sets the element at the specified index. + + + + + + + Copies the elements of the ICollection to an Array, starting at a particular Array 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. + + + + + 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. + + + + + + + + + + + + + + + + + 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. + + + + + + Reference on parent control + + + Reference on parent control/container. + + + Typed version of indexer. + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + Message class that contains reference on control that + required configuration. + + + Storage of control reference. + + + Get reference on Control. + + + Default constructor. + + + + + + + + + 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. + + + + 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. + + + + + + The ColorSelected event occurs when a color is selected from the drop-down . + + + + + Gets a reference to the drop-down ColorUIControl. + + A reference to the instance. + + + + Overrides the base class font property. + + + + + Gets or sets a value indicating whether the control should enable its Accessibility support. + + + + + Gets or sets the size of the drop-down . + + A Size value. + + + + Gets or sets the visibility drop down. + + True if the drop-down is visible; False otherwise. By default, it is False. + + + + Gets or sets the touchmode of is enable. + + + + + Gets or sets a value whether is set as the backcolor. + + True if the SelectedColor is used; False otherwise. By default, it is False. + + + + Gets or sets a value whether is set as the text. + + True if the SelectedColor is used; false otherwise. By default, it is False. + + + + Gets or sets the current selected color. + + A color value. + + + + + + + Resets the property to its default value. + + + + + Gets or sets the tab associated with this colorgroup in 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. + + + + + + + Resets the property to its default value. + + + + + Gets or sets the text displayed on the drop-down 's standard colors tab. + + A String value. + + + + + + + Resets the property to its default value. + + + + + Gets or sets the text displayed on the drop-down 's system colors tab. + + A String value. + + + + + + + Resets the property to its default value. + + + + + Gets a reference to the that will contain the . + + A reference to the instance. + + + + Creates a new instance of the class. + + + + + Gets/Sets if Dropdown opened using Touch Gesture + + + + + Process touch gestures + + Gesture messages + true/false + + + + Overridden. See . + + + + + Sets the font to ColorUI control + + + + + Creates a new accessibility object in . + + Returns a new System.Windows.Forms.AccessibleObject for the + + + + Creates a default instance of a . + + The instance. + + + + Returns the name of the control. + + + + + Initializes the drop-down container. Adds a . + + + + + + + + + + Called when the drop-down has been closed. + + + + + + + + Overridden. See . + + + + + Defines the constant that specify 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. + + + + + Defines the constant that specify 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. + + + + + Defines the constant which specifies the possible source of 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. + + + + + Design the property values into class. + + + + + Designer ActionList collection + + + + + Initialize a new instance of the ColorUIDesigner class. + + + + + Gets a value indication the designer action. + + + + + 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. + + + + 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. + + + + 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. + + + + + 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. + + + + + Hue component of a color space. + + + + + Saturation component of a color space. + + + + + 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. + + + + + + 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. + + + + + Hue component of a color space. + + + + + Saturation component of a color space. + + + + + 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. + + + + + Represents a class that provides support to get the current DPI value and calculate the values based on the current DPI values. + + + + + Indicates the logpixel. + + + + + Stores the current dpi value. + + + + + Stores the current device units. + + + + + Gets the image file from given assembly based on the DPI scaling factor. + If the DPI scaling is greater than 175 then returns the high DPI image, otherwise returns the default image. + + The used to read the image file. + The string contains the folder path. + The string value represents the name of the image file. + The imageName must contains the extension like AddNewRowIcon.png or AddNewRowIcon.bmp + Returns the image file from specified folder path. + + + + Gets an equivalent value based on the current DPI value. + + The float value. + Returns the value based on DPI value. + + + + Gets the current DPI value of the device. + + Returns the current DPI value of the device. + + + + Represents the class to define the style for control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value for the control. + + + + + Gets or sets the value of the + control. + + + + + Gets or sets the background color of the control. + + The value is used to fill the background of the GroupViewItem. + + + + Gets or sets the background color of the control in selected state. + + The value is used to fill the background of the GroupViewItem. + + + + Gets or sets the hover background color of the control in selected state. + + The value is used to fill the background of the GroupViewItem. + + + + Gets or sets the hover foreground color of the control in selected state. + + + + + Gets or sets the hover border color of the control in selected state. + + + + + Gets or sets the background color of the control in mouse hover state. + + + + + Gets or sets the border color of the control. + + + + + Gets or sets the border thickness of the control. + + + + + Gets or sets the border color of the control in mouse hover state. + + + + + Gets or sets the border color of the control in selected state. + + + + + Gets or sets the border color of the control in disabled state. + + + + + Gets or sets the background color of the control in the disabled state. + + + + + Gets or sets the foreground color value of the control. + + + + + Gets or sets the foreground color of the control in hover state. + + + + + Gets or sets the foreground color of the control in selected state. + + + + + Gets or sets the foreground value of the control in disabled state. + + + + + Gets or sets the tooltip background color value of the control. + + + + + Gets or sets the tooltip foreground color value of the control in disabled state. + + + + + Gets or sets the tooltip border color value of the control in disabled state. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Implements the class that provide the identity information of + using . + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Represents the class to define the style for control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Gets the default style value for the control. + + + + + Gets or sets the value used to draw the background of the + control in default state. + + The value is used to draw the background of the control. + The default value is null. + + + + Gets or sets the value used to draw the border of the + control. + + The value is used to draw the border of the control. + The default value is null. + + + + Gets or sets the borderthickness of control. + + + + + + Gets or sets the value used to draw the background color of the + scroll button in control. + + The value used to draw the background color of the scroll button. + The default value is null. + + + + Gets or sets the value used to draw the background color of the + scroll button in control in hover state. + + The value used to draw the background color of the scroll button. + The default value is null. + + + + Gets or sets the value used to draw the background color of the + scroll button in control in pressed state. + + The value used to draw the background color of the scroll button. + The default value is null. + + + + Gets or sets the value used to draw the foreground color of the + scroll button in control. + + The value used to draw the foreground color of the scroll button. + The default value is null. + + + + Gets or sets the value used to draw the foreground color of the + scroll button in control in hover state. + + + + + Gets or sets the value used to draw the foreground color of the + scroll button in control in selected state. + + + + + Gets or sets the value used to draw the border color of the + scroll button in control. + + The value used to draw the border color of the scroll button. + The default value is null. + + + + Gets or sets the value used to draw the hover border color of the + scroll button in control. + + The value used to draw the border color of the scroll button. + The default value is null. + + + + Gets or sets the value used to draw the pressed border color of the + scroll button in control. + + The value used to draw the border color of the scroll button. + The default value is null. + + + + Gets or sets the borderthickness used to draw the border of the scroll button in control. + + + + + Gets or sets style for of the control. + + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the GroupView for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents the class which provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Represents the class to define the style for CollapseButton present in control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value for the GroupBarCollapseButton present in control. + + + + + Gets or sets the collapse button background color of the stack mode . + + + + + Gets or sets the collapse button background color of the stack mode in hover state. + + + + + Gets or sets the collapse button fore color of the stack mode . + + + + + Gets or sets the collapse button fore color of the stack mode in hover state. + + + + + Gets or sets the collapse image value of the stack mode control. + + + + + Gets or sets the expand image value of the stack mode control. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Implements the class that provide the identity information of + using . + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Represents the class to define the style for collapsed state of control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value for collapsed state of control. + + + + + Gets or sets the background color of the navigation pane of control. + + + + + Gets or sets the background color of navigation pane of control in selected state. + + + + + Gets or sets the background color of navigation pane of control in hover state. + + + + + Gets or sets the border color of navigation pane of control. + + + + + Gets or sets the foreground color of navigation pane of control. + + + + + Gets or sets the foreground color of navigation pane of control in hover state. + + + + + Gets or sets the foreground color of navigation pane of control in selected state. + + + + + Gets or sets the value of the + navigation pane of control. + + + + + Gets or sets item style for collapsed state view of the control. + + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Implements the class that provide the identity information of + using . + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Represents the class to define the style for control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value for the control. + + + + + Gets or sets the value of the + control. This property is not applicable for collapsed GroupBarItem. + + + + + Gets or sets the background color of the control. + + + + + Gets or sets the background color of the control in selected state. + + + + + Gets or sets the background color of the control in mouse hover state. + + + + + Gets or sets the border color of the control. + + + + + Gets or sets the border thickness of the control. + + + + + Gets or sets the background color of the control in the disabled state. + + + + + Gets or sets the foreground color of the control. This property is not applicable for collapsed GroupBarItem. + + + + + Gets or sets the foreground color of the control in hover state. This property is not applicable for collapsed GroupBarItem. + + + + + Gets or sets the foreground color of the control. This property is not applicable for collapsed GroupBarItem. + + + + + Gets or sets the foreground color of the control in disabled state. This property is not applicable for collapsed GroupBarItem. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Implements the class that provide the identity information of + using . + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Represents the class to define the style for control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Gets the default style value for the control. + + + + + Gets or sets the value used to draw the background of the + control in default state. + + The value is used to draw the background of the control. + The default value is null. + + + + Gets or sets the value used to draw the border of the + control. + + The value is used to draw the border of the control. + The default value is null. + + + + Gets or sets the int value used to draw the border thickness of the + control. + + The int value is used to draw the border of the control. + The default value is null. + + + + Gets or sets style for of the control. + + + + + Gets or sets style for stack mode container of the control. + + + + + Gets or sets style for collapsed state container of the control. + + + + + Gets or sets style for collapsed state container of the control. + + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the GroupBar for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents the class which provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Represents the class to define the style for GroupBarOptionButton present in control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value for the GroupBarOptionButton present in control. + + + + + Gets or sets the option button background color value of the stack mode control. + + + + + Gets or sets the option button background color value of the stack mode control in hover state. + + + + + Gets or sets the option button foreground color value of the stack mode control. + + + + + Gets or sets the option button foreground color value of the stack mode control in hover state. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Implements the class that provide the identity information of + using . + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Represents the class to define the style for stacked mode of control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value for the stacked mode of > control. + + + + + Gets or sets the header background color of the stack mode control. + + + + + Gets or sets the header foreground color of the control. + + + + + Gets or sets the value of the + header of stack mode control. + + + + + Gets or sets the background color of the splitter of stack mode . + + + + + Gets or sets the foreground color of the splitter of stack mode . + + + + + Gets or sets style for collapse/expand button of the stacked mode control. + + + + + Gets or sets style for option button of the stacked mode control. + + + + + Gets or sets the collapse panel backcolor color value of the stack mode control. + + + + + Gets or sets style for collapsed of the stacked mode control. + + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Implements the class that provide the identity information of + using . + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Represents the class to define the style for ToolTip present in control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value for the ToolTip present in control. + + + + + Gets or sets the value of the ToolTip present in control. + + + + + Gets or sets the background color of the ToolTip present in control. + + + + + Gets or sets the border color value of the ToolTip present in control. + + + + + Gets or sets the foreground color value of the ToolTip present in control. + + + + + Gets or sets the bool value indicates whether to show shadow of the ToolTip present in control. + + + + + Gets or sets the border thickness of the ToolTip present in control. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Implements the class that provide the identity information of + using . + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Defines the constant that specify the alignment of the check box. + + + + + Specifies that the check box will be left aligned. + + + + + Specifies that the check box will be right aligned. + + + + + Specifies the state of Controls + + + + + The Control has its normal appearance. + + + + + The Control appears pressed. + + + + + The mouse hover on the Control. + + + + + The focus state of the Control. + + + + + Defines the constants that specifies the mode of the caption bar height on maximized state. + + + + + Specifies that the caption bar height will be reduced when form is maximized. + + + + + Specifies that the caption bar height will be retained same when form is maximized. + + + + + Represents the method that will handle the event. + + A sender contains the control. + A that contains the event data. + + + + Provides data for the event. + + + + + The theme name. + + + + + Initializes a new instance of the class. + + Name of the theme. + + + + Gets the name of the theme. + + + + + This class helps to register and render icon font in a Windows Forms application from *.ttf file. + + + + + Holds private/custom font collection. + + + + + Holds private/custom font collection. + + + + + Holds FontFamilies collection + + + + + Holds icon font unicode. + + + + + Helps to register the private/custom icon fonts in the system memory for rendering in Windows Forms. + + + + + Helps to retrieve the icon font as string from its unicode for drawing purpose. + + Holds the icon font unicode. + + + + + Helps to dispose the instances used in IconFontHelper class. + + + + + Represents the class that manages the localization for syncfusion controls. + + + + + Holds the resource manager of the + + + + + Initializes new instance of . + + + + + Gets the assembly of the project. + + Returns assembly of the project. + + + + Gets the default namespace of the referred project. + + Control assembly default namespace. + + + + Gets the localized ResourceManager. + + The assembly from where the resource needs to be looked up. + The namespace of the control. + Returns the resource manager. + + + + Gets the localized text. + + String that has to be localized. + Control object + The localized string. + + + + Gets the localized text. + + String that has to be localized. + The localized string. + + + + Gets the localized text. + + Current UI culture. + String that has to be localized. + Control name. + The localized string + + + + Sets the resource manager based on the assembly and namespace. + It can be used to get the values from the application resource files + when the assembly name and the namespace of the control or application is different. + + The control assembly. + The namespace of the control. + + + + + + + Insance of . + + + + + + + + + + + Represents a ToolTip window that displays a brief description about a control when user rests the mouse on that control. + + + This sample shows how to set tooltip text for a control. + + SfToolTip sfToolTip = new SfToolTip(); + sfToolTip.SetToolTip(this.button1, "Sample Tooltip"); + + + + This sample shows how to set for a control to show as a tooltip. + + SfToolTip sfToolTip = new SfToolTip(); + ToolTipInfo tooltipInfo1 = new ToolTipInfo(); + ToolTipItem toolTipItem1 = new ToolTipItem(); + toolTipItem1.Text = "Tooltip item 1 text"; + ToolTipItem toolTipItem2 = new ToolTipItem(); + toolTipItem2.Text = "Tooltip item 2 text"; + toolTipInfo.Items.AddRange(new ToolTipItem[] { toolTipItem1, toolTipItem2}); + sfToolTip.SetToolTipInfo( this.button2, toolTipInfo); + + + + + + The collection of controls registered for tooltip with their ToolTipInfo. + + + + + The collection of controls registered for tooltip with text. + + + + + The timer for initial delay. + + + + + The timer for popup delay. + + + + + The information to be shown in tooltip for show method. + + + + + The tooltip item to be shown in tooltip for show method. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The container in which the SfToolTip component has to be added. + + + + Occurs when the tooltip is showing. + + + The event is raised whenever a ToolTip is displaying, + either by calling method or implicitly called by v. + The class contains all the information needed to customize the , including the location, . + This event can be canceled. + + + + + Occurs when the tooltip is shown. + + + The event is raised whenever a ToolTip is displayed, + either by calling method or implicitly called by v. + + + + + Occurs before drawing the tooltip item. + + + By using the event, the appearance of the can be customized. + The class contains all the information needed to paint the , including the ToolTip text, the Rectangle, and the Graphics object on which the drawing should be done. + This event can be canceled. + + + + + Occurs when theme name of the has changed. + + + + + Gets or sets the time that passes before the ToolTip appears. + + + By using property, you can shorten or lengthen the time that the ToolTip waits before displaying a ToolTip window. + + + + + Gets or sets the period of time the ToolTip remains visible if the pointer is stationary on a control. + + + The period of time, in milliseconds, that the ToolTip remains visible when the pointer is stationary on a control. The default value is 5000. + + + By using property, you can shorten or lengthen the time that the ToolTip window is displayed when the pointer is on a control. + + + + + Gets or sets a value indicating whether shadow should be drawn for the ToolTip. + + + + + Gets or sets the tooltip window for the . + + + + + Gets or sets the active associated control with the tooltip. + + + + + Gets or sets the value of the to customize the appearance of the tooltip. + + + + + Gets or sets a value indicating whether the location of the ToolTip can be adjusted respective to the screen bounds. + + + + + Gets the of the Control. + + An object of control. + Returns the of the control. + + + + Associates the with the specified control. + + The control to associate with the . + The to be + displayed when the pointer is on the control. + + + + Associates the with the specified control. + + The control to associate with the . + The tooltip text to be displayed when the pointer is on the control. + + + + Gets the tooltip text of the Control. + + An object of control. + Returns the tooltip text of the control. + + + + Disables the ToolTip for the specified control. + + The control for which the ToolTip has to be disabled. + + + + Hides the ToolTip, if it is being displayed. + + + + + Shows the ToolTip with the at the specified relative position. + + to be displayed as ToolTip. + A point in which the ToolTip to be displayed. + + + + Shows the ToolTip with the at the specified relative position. + + to be displayed as ToolTip. + The horizontal offset position in which the ToolTip has to be displayed. + The vertical offset position in which the ToolTip has to be displayed. + + + + Shows the ToolTip with the at the specified relative position for a specified duration. + + to be displayed as ToolTip. + The horizontal offset position in which the ToolTip has to be displayed. + The vertical offset position in which the ToolTip has to be displayed. + The period of time that the ToolTip should remain visible. + + + + Shows the ToolTip with the at the specified relative position for a specified duration with specified initial delay. + ToolTip location will be adjusted with respect to the screen bounds, if adjustToScreenBounds value is true. + + to be displayed as ToolTip. + A point in which the ToolTip to be displayed. + The period of time that passes before the ToolTip appears. + The period of time that the ToolTip should remain visible. + Specifies whether to adjust the ToolTip location respective to the screen bounds. + + + + Shows the ToolTip with the at the specified relative position for a specified duration. + + to be displayed as ToolTip. + A point in which the ToolTip to be displayed. + The period of time that the ToolTip should remain visible. + + + + Shows the ToolTip with the tooltip text at the specified relative position. + + The text to be displayed as tooltip. + A point in which the ToolTip to be displayed. + + + + Shows the ToolTip with the tooltip text at the specified relative position. + + The text to be displayed as tooltip. + The horizontal offset position in which the ToolTip has to be displayed. + The vertical offset position in which the ToolTip has to be displayed. + + + + Shows the ToolTip with the tooltip text for the specified duration at the specified relative position. + + The text to be displayed as tooltip. + The horizontal offset position in which the ToolTip has to be displayed. + The vertical offset position in which the ToolTip has to be displayed. + The period of time that the ToolTip should remain visible. + + + + Shows the ToolTip with the tooltip text for the specified duration at the specified relative position. + + The text to be displayed as tooltip. + A point in which the ToolTip to be displayed. + The period of time that the ToolTip should remain visible. + + + + Shows the ToolTip with the tooltip text at the cursor position. + + The text to be displayed as tooltip. + + + + Shows the ToolTip with the at the cursor position. + + to be displayed as ToolTip. + + + + Helps to apply the ControlName settings in control + + The ControlName. + Returns the control name. + + + + Helps to apply the ThemeName settings in control + + The ThemeName. + + + + Specifies whether this object can provide its extender properties to the specified object. + + The Object to receive the extender properties. + true if this object can provide extender properties to the specified object; otherwise, false. + + + + Raises the event. + + An object of + that contains event data. + + + + Raises the event. + + An object of + that contains event data. + + + + Raises the event. + + An object of + that contains event data. + + + + Specifies whether this object can provide its extender properties to the specified object. + + The Object to receive the extender properties. + true if this object can provide extender properties to the specified object; otherwise, false. + + + + Raises the and event when theme name changed. + + The sender value. + A contains the event data. + + + + Releases the unmanaged resources used by the Component and optionally releases the managed resources. + + true to release both managed and unmanaged resources; false to release only unmanaged resources. + + + + Determines whether the extended property for ToolTip should be serialized or not. + + An object of component. + Returns true when it need to be serialized otherwise return false. + + + + Determines whether the extended property for ToolTip should be serialized or not. + + An object of component. + Returns true when it need to be serialized otherwise return false. + + + + Occurs when the mouse pointer leaves the control. + + The sender that contains the control from which the mouse pointer leaves. + A that contains the event data. + + + + Occurs when the mouse pointer rests on the control. + + The sender that contains the control in which the mouse pointer is hovered. + A that contains the event data. + + + + Occurs when the mouse down event of the control occurs. + + The sender that contains the control in which the mouse down is occurred. + A that contains the event data. + + + + Modifies the tooltip if any information is changed. + + A that contains the event data. + + + + Occurs when the popup delay timer interval has elapsed and the timer is enabled. + + The sender that contains the for tooltip popup delay. + A that contains the event data. + + + + Occurs when the initial delay timer interval has elapsed and the timer is enabled. + + The sender that contains the for tooltip initial delay. + A that contains the event data. + + + + Occurs when the Visible property value changes. + + The sender that contains the tooltip form. + A that contains the event data. + + + + Represents a BaseComponent with VisualStyle based theme customization settings. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Occurs when theme name of the control has changed. + + + + + Gets or sets the theme name of the control. + + + The default value is null. + + + The theme will be applied only when the particular theme for this control has included the Themes assembly. + + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets or sets the Base Theme name of the theme + + + + + Gets or sets a value indicating whether a theme settings + can be applied to the control. + + The default value is true. + + This property must be initialized before applying the VisualTheme /> + + + + + Gets the name of the control. + + + + + Gets or sets the VisualTheme of the control. + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Raises the event when theme name changed. + + The sender value. + A contains the event data. + + + + Gets the active theme name of the control. + + Returns the active theme name. + + + + Helps to override the ThemeName property settings + + ThemeName + + + + Helps to override the ThemeName property settings + + ThemeName + + + + Helps to override the CanApplyTheme property settings + + CanApplyTheme + + + + Helps to override the CanOverriderStyle property settings + + CanOverriderStyle + + + + Represents a BaseControl with VisualStyle based theme customization settings. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Occurs when theme name of the control has changed. + + + + + Gets or sets the theme name of the control. + + + The default value is null. + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets or sets the Base Theme name of the theme + + + + + Gets or sets a value indicating whether a theme settings + can be applied to the control. + + The default value is true. + + This property must be initialized before applying the VisualTheme /> + + + + + Gets the name of the control. + + + + + Gets or sets the VisualTheme of the control. + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Raises the event when theme name changed. + + The sender value. + A contains the event data. + + + + Gets the active theme name of the control. + + Returns the active theme name. + + + + Helps to override the ThemeName property settings + + ThemeName + + + + Helps to override the ThemeName property settings + + ThemeName + + + + Helps to override the CanApplyTheme property settings + + CanApplyTheme + + + + Helps to override the CanOverriderStyle property settings + + CanOverriderStyle + + + + Class for Custom Button + + + + + Gets/Sets if this is Custom Buttons + + + + + Class for MessageBoxMetroStyleFormAdv + + + + + Lock Window update function + + + + + Gets the horizontal padding + + + + + Gets the vertical padding + + + + + detailButtonSpace control using for increase the space in flow layout panel inbetween the detail button and message box buttons in while resizing. + + + + + Enumeration for system defined strings + + + + + Holds the height of the before the detail view is collapsed. + + + + + Holds the height of the before the detail view expand. + + + + + 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 + + + + + Method to set same width for all Buttons in the MessageBoxAdv + + Collection of buttons + Greater width + + + + + Method to calculate the height of the panel of MessageBoxAdv + + Panel height + + + + 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 + + + + Variable which indicates whether custom buttons are already initialized or not + + + + + 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 + + + + + Gets or sets whether the image is showing + + + + + 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 + + + + + + + Gets the button operations + + + + + 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. + + + + + Validate the messagebox height in while initialize the control + + + + + Handle the size of the message box while closing and expanding the details view. + + + + + Class for Office2010StyleMessageBoxAdv + + + Class for Office2010StyleMessageBoxAdv. + + + + + Initializes the new instance for Office2010StyleMessageBoxAdv class + + + + + Method to set same width for all Buttons in the MessageBoxAdv + + Collection of buttons + Greater width + + + + + Method to calculate the height of the panel of MessageBoxAdv + + Panel height + + + + Initializes the new instance for Office2010StyleMessageBoxAdv class + + + + + Lock Window update function + + + + + Gets the horizontal padding + + + + + Gets the vertical padding + + + + + Enumeration for system defined strings + + + + + Holds the height of the before the detail view is collapsed. + + + + + Holds the height of the before the detail view expand. + + + + + detailButtonSpace control using for increase the space in flow layout panel inbetween the detail button and message box buttons in while resizing. + + + + + 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 + + + + Variable which indicates whether custom buttons are already initialized or not + + + + + 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 + + + + Method to change the arrow color of the image. + + the bitmap of image after changing the arrow color + + + + 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 + + + + + Gets or sets whether the image is showing + + + + + 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 + + + + Gets the button operations + + + + + 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. + + + + + Occurs when the mouse pointer leaves the control + + The sender that contains the control in which the mouse pointer is leaved + that contains the event data. + + + + Occurs when the mouse pointer rests on the control. + + The sender that contains the control in which the mouse pointer is hovered + that contains the event data. + + + + Validate the messagebox height in while initialize the control + + + + + Handle the size of the message box while closing and expanding the details view. + + + + + Class for ButtonAdv with Border customization + + + + + Constructor + + + + + Variable to define whether this is Custom Button + + + + + Gets/Sets whether this is Custom Button + + + + + Instance to hold the BorderColor + + + + + Gets/Sets option to customize the BorderColor + + + + + Paint Overrides + + + + + + Class for Office2013StyleMessageBoxAdv + + + Class for Office2013StyleMessageBoxAdv. + + + + + Initializes the new instance for Office2010StyleMessageBoxAdv class + + + + + Initializes the new instance for Office2013StyleMessageBoxAdv class + + + + + Method to set same width for all Buttons in the MessageBoxAdv + + Collection of buttons + Greater width + + + + + Method to calculate the height of the panel of MessageBoxAdv + + Panel height + + + + 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 + + + + Gets the horizontal padding + + + + + Gets the vertical padding + + + + + detailButtonSpace control using for increase the space in flow layout panel inbetween the detail button and message box buttons in while resizing. + + + + + Enumeration for system defined strings + + + + + Holds the height of the before the detail view is collapsed. + + + + + Holds the height of the before the detail view expand. + + + + + 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 + + + + + Variable which indicates whether custom buttons are already initialized or not + + + + + 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 + + + + + Gets or sets whether the image is showing + + + + + 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 + + + + Gets the button operations + + + + + 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. + + + + + Gets or sets the Office2013 color theme. + + + + + 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. + + + + + Validate the messagebox height in while initialize the control + + + + + Handle the size of the message box while closing and expanding the details view. + + + + + 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 + + + + Class for Office2016StyleMessageBoxAdv. + + + Class for Office2013StyleMessageBoxAdv. + + + + + Initializes the new instance for Office2016StyleMessageBoxAdv class. + + + + + Initializes the new instance for Office2016StyleMessageBoxAdv class. + + + + + Method to calculate the height of the panel of MessageBoxAdv + + Panel height + + + + 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 + + + + Gets the horizontal padding + + + + + Gets the vertical padding + + + + + detailButtonSpace control using for increase the space in flow layout panel inbetween the detail button and message box buttons in while resizing. + + + + + Enumeration for system defined strings + + + + + Holds the height of the before the detail view is collapsed. + + + + + Holds the height of the before the detail view expand. + + + + + 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 + + + + + Variable which indicates whether custom buttons are already initialized or not + + + + + 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 + + + + + Method to set same width for all Buttons in the MessageBoxAdv + + Collection of buttons + Greater width + + + + + 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 + + + + + Gets or sets whether the image is showing + + + + + 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 + + + + Gets the button operations + + + + + 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. + + + + + Gets or sets the Office2016 color theme. + + + + + 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. + + + + + Validate the messagebox height in while initialize the control + + + + + Handle the size of the message box while closing and expanding the details view. + + + + + 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 + + + + It contains the value of the property. + + + + + Gets the default style values for + + + + + Gets or sets the font for DetailsView. + + + + + Gets or sets the background color for TitleBar. + + + + + Gets or sets the background color for TitleBar. + + + + + Gets or sets the fore color for TitleBar. + + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + It contains the value of the property. + + + + + Gets the default style values for + + + + + Gets or sets the Font for TitleBar. + + + + + Gets or sets the background color for TitleBar. + + + + + Gets or sets the fore color for TitleBar. + + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Gets the default style value for + + + + + Gets or sets the Font for MessageBoxAdv. + + + + + Gets or sets fore color for MessageBoxAdv. + + + + + Gets or sets the background color for MessageBoxAdv. + + + + + Gets or sets the border color for MessageBoxAdv. + + + + + Gets or sets the value for styles. + + + + + Gets or sets the value for styles. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Displays a message box with Office2007 style that can contain text, buttons, and symbols that inform and instruct the user. + + + + + It contains the value of the property. + + + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Gets or sets the theme name of the control. + + + The default value is null. + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + 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. + + + + + Specifies the style in which controls will appear and behave. + + + + + Default appearance + + + + + Office2010Form appearance + + + + + Office2013 appearance + + + + + Metro appearance + + + + + Office2016 appearance + + + + + 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. + + + + + Variable to specify the Shadow effect of the MessageBox. + + + + + Specifies the Shadow effect of the MessageBox. + + + + + + Variable to specify the Layout of the MessageBoxAdv. + + + + + Gets or sets a value indicating whether control's elements are aligned to Right-To-Left or Left-To-Right Layout + + + + + + Variable to specify the Font for Button options + + + + + Gets or sets the Button option Font + + + + + Variable to specify the Font for Message information. + + + + + Gets or sets the Message Font + + + + + Gets or sets the Message Font + + + + + Gets or sets the Caption Font + + + + + Gets or sets the Details Font + + + + + Gets or sets the Details Font + + + + + Variable to specify the default backcolor of the MessageBoxAdv. + + + + + Specifies the default backcolor of the MessageBoxAdv. + + + + + Helps to specify whether the MessageBoxStyle is changed at sample level or not. + + + + + Gets or sets a value indicating the style used for drawing the control + + + + + Gets or sets value to determine whether can be resized. + + + + + Variable for MetroColorTable + + + + + 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. + + + + + Initializes the s_office2013theme variable. + + + + + Gets or sets the Office2013 color theme. + + + + + Initializes the s_Office2016Theme variable. + + + + + Gets or sets the Office2016 color theme. + + + + + Gets or sets whehter to apply AeroTheme in Default MessageBoxStyle. + + + + + 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 + + + + + Method to get the image from specifed folder + + Image to retrive from the folder + Bitmap image + + + + Method to get the width of the button + + ButtonAdv + Graphics variable + Width of the button + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + Class for VisualStyle based theme. + + + + + 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 + + + + + detailButtonSpace control using for increase the space in flow layout panel inbetween the detail button and message box buttons in while resizing. + + + + + Holds the height of the before the detail view is collapsed. + + + + + Holds the height of the before the detail view expand. + + + + + Variable for CancelEventHandler + + + + + Variable which indicates whether custom buttons are already initialized or not + + + + + Static variable for buttons + + + + + Static variable for s_buttonNames + + + + + Static variable for System defined strings + + + + + Gets the horizontal padding + + + + + Gets the vertical padding + + + + + Enumeration for system defined strings + + + + + 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 VisualStyleMessageBoxAdv. + + owner window + text + form caption + buttons + form icon + default button + options + to show helpbutton + click event data + + + + Method to calculate the height of the panel of MessageBoxAdv + + Panel height + + + + Initialization of button names + + + + + Custom Button Initialization + + + + + Click Event for Custom Buttons + + + + + Method to set same width for all Buttons in the MessageBoxAdv + + Collection of buttons + Greater width + + + + + 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 + + + + + Gets or sets whether the image is showing + + + + + 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 used to set location for close button. + + + + + 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 + + + + Gets the button operations + + + + + 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. + + + + + Validate the messagebox height in while initialize the control + + + + + Handle the size of the message box while closing and expanding the details view. + + + + + Initializes the bordercolor variable. + + + + + 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 delegate for CaptionImage + + + + + Mouse move event for CaptionImage + + + + + Mouse leave delegate for CaptionImage + + + + + Mouse leave event for CaptionImage + + + + + Mouse enter delegate for CaptionImage + + + + + Mouse enter event for CaptionImage + + + + + Mouse down delegate for CaptionImage + + + + + + Mouse down delegate for CaptionImage + + + + + Mouse up delegate for CaptionImage + + + + + + Mouse up delegate for CaptionImage + + + + + 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 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 + + + + + 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. + + + + + Collection of Images used in the Form Caption + + + + + Constructor for CaptionImageCollection + + + + + Gets the index of for the CaptionImage + + + + + 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 + + + + + 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 + + + + + Gets/Sets the value for forecolor + + + + + Size of the caption image + + + + + Gets/Sets the value for size + + + + + BackColor for caption image + + + + + Gets/Sets the value for backcolor + + + + + Location for the caption image + + + + + 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 + + + + + Gets/Sets the value for forecolor + + + + + Size of the caption image + + + + + Gets/Sets the value for size + + + + + BackColor for caption image + + + + + Gets/Sets the value for backcolor + + + + + Location for the caption image + + + + + 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 + + + + + Gets/Sets the value for forecolor + + + + + Size of the caption image + + + + + Gets/Sets the value for size + + + + + BackColor for caption image + + + + + Gets/Sets the value for backcolor + + + + + Location for the caption image + + + + + 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 + + + + + Gets/Sets the value for forecolor + + + + + Size of the caption image + + + + + Gets/Sets the value for size + + + + + BackColor for caption image + + + + + Gets/Sets the value for backcolor + + + + + Location for the caption image + + + + + 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 + + + + + Gets/Sets the value for Image + + + + + ForeColor for caption image + + + + + Gets/Sets the value for forecolor + + + + + Size of the caption image + + + + + Gets/Sets the value for size + + + + + BackColor for caption image + + + + + Gets/Sets the value for backcolor + + + + + Location for the caption image + + + + + 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 + + + + + Gets/Sets the value for Label text + + + + + Mouse move delegate for CaptionLabel + + + + + Mouse move event for CaptionLabel + + + + + Mouse leave delegate for CaptionLabel + + + + + Mouse leave event for CaptionLabel + + + + + Mouse enter delegate for CaptionLabel + + + + + Mouse enter event for CaptionLabel + + + + + Mouse down delegate for CaptionLabel + + + + + Mouse down event for CaptionLabel + + + + + Mouse up delegate for CaptionLabel + + + + + Mouse up event for CaptionLabel + + + + + Mouse move event invoking + + + + + Mouse enter event invoking + + + + + Mouse leave event invoking + + + + + Mouse down event invoking + + + + + Mouse up event invoking + + + + + 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 + + + + + + + + + + Specifies the owner of the label + + + + + Gets or Sets the Forecolor of the CaptionLabel. + + + + + 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. + + + + + Collection of Labels used in the Form Caption + + + + + Constructor for CaptionLabelCollection + + + + + Gets the index of for the label + + + + + 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 + + + + + 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 + + + + + Gets/Sets the value for forecolor + + + + + Size of the caption label + + + + + Gets/Sets the value for size + + + + + BackColor for caption label + + + + + Gets/Sets the value for backcolor + + + + + Font for caption label + + + + + Gets/Sets the value for Font + + + + + Text for caption label + + + + + Gets/Sets the value for Text + + + + + Location for the caption label + + + + + 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 + + + + + Gets/Sets the value for forecolor + + + + + Size of the caption label + + + + + Gets/Sets the value for size + + + + + BackColor for caption label + + + + + Gets/Sets the value for backcolor + + + + + Font for caption label + + + + + Gets/Sets the value for Font + + + + + Text for caption label + + + + + Gets/Sets the value for Text + + + + + Location for the caption label + + + + + 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 + + + + + Gets/Sets the value for forecolor + + + + + Size of the caption label + + + + + Gets/Sets the value for size + + + + + BackColor for caption label + + + + + Gets/Sets the value for backcolor + + + + + Font for caption label + + + + + Gets/Sets the value for Font + + + + + Text for caption label + + + + + Gets/Sets the value for Text + + + + + Location for the caption label + + + + + 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 + + + + + Gets/Sets the value for forecolor + + + + + Size of the caption label + + + + + Gets/Sets the value for size + + + + + BackColor for caption label + + + + + Gets/Sets the value for backcolor + + + + + Font for caption label + + + + + Gets/Sets the value for Font + + + + + Text for caption label + + + + + Gets/Sets the value for Text + + + + + Location for the caption label + + + + + 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 + + + + + Gets/Sets the value for forecolor + + + + + Size of the caption label + + + + + Gets/Sets the value for size + + + + + BackColor for caption label + + + + + Gets/Sets the value for backcolor + + + + + Font for caption label + + + + + Gets/Sets the value for Font + + + + + Text for caption label + + + + + Gets/Sets the value for Text + + + + + Location for the caption label + + + + + Gets/Sets the value for Location + + + + + Normal font weight + + + + + Maintains the value indicating whether the caption height should retain or not. + + + + + Stores the value indicating whether the caption height has been initialized or not. + + + + + Value to store the title padding. + + + + + + + + + + Gets/sets if to disable Office2007 look and feel. + + + + + Gets or sets the value indicating whether the caption bar of the form should retain its default height when form is maximized or not. + + + + + Gets or Sets Mouse over color for CaptionButtons + + + + + Gets or Sets the value for CaptionBarColor BorderColor MetroColor + + + + + To Reset the CaptionBarBrush + + + + + Indicates whether to serialize CaptionBarBrush + + + + + 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 + + + + + Hover Color for CaptionButton + + + + + Gets/Sets the value for CaptionButtonHoverColor + + + + + Gets or Sets value for CaptionBarHeight + + + + + Gets/Sets touch enabled + + + + + 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 or sets a value indicating whether the rounded corners are enabled. + + The default value is false. + This option is only in effect with Windows 11. + + + + + + + + + + + + + + + + + + + + + + + + Gets the value used to adjust the titlebar. + + + + + Updates the title padding. + + Updates to retain the title bar height in maximized state. + + + + + + + + + + + + + + To Hold the CaptionButtons visibility + + + + + Gets / Sets whether to hide the CaptionButtons, when displayed in Secondary Monitor + + + + + Hold to apply the Multi Monitor appearance + + + + + Gets / Sets whether to apply the Multi Monitor appearance + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Gets the value indicating whether the current operating system is windows7 or not. + + + + + Gets / set the value to enable the MaximizeBox + + + + + Reset the value of the ShowMaximizeBox + + + + + Serializing the value of the ShowMaximizeBox + + + + + + Gets or sets the visibility of the inner border of the Form. + + + + + Serializing the value of the ShowMinimizeBox + + + + + + Reset the value of the ShowMinimizeBox + + + + + Reset the value of the ShowMinimizeBox + + + + + 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. + + + + + + + + + + + + + + + applies the scaling + + + + + + applies the scaling + + + + + + Method to determine whether the operating system is Windows 11. + + true if the operating system is Windows 11; otherwise false. + + + + Apply rounded corners for the form. + + The handle to the window + Corner style for the round corners + + + + To define whether the customization needs to be applied + + + + + Raises the System.Windows.Forms.Form.Shown event. + + Event args that contains the event data + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Occurs when Form Location is changed + + + + + + + + + + + + + + + + + + + + + + + Helper method to raise the mouse enter event. + + + + + + + + + + + + + + + + + Calculates the non client area of the form + + reference message + retruns true if the method returns combiantion of values + returns false if the method return zero + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Helper method to raise caption image hover events. + + + + + Helper method to raise the caption image mouse move events. + + + + + + + + + + + + + + + + + + + Handles the mouse events of CaptionImage or CaptionLabels. + + + + + Handles the mouse events of CaptionImage or CaptionLabels. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + Gets/Sets the label for form caption + + + + + Gets/Sets the CaptionImage for form caption + + + + + Method to draw the caption label. + + Graphics object + Rectangle to draw caption label + Metroform in which caption image should drawn. + Mdi caption height. + + + + + + + + + + + Paint the caption bar background + + Graphics Object. + Caption Bar rectangle. + Height of the Mdi caption bar. + Width of the caption bar. + Value for the adjustment. + Caption bar Height. + Color to fill the caption bar. + MetroForm. + + + + + + + + + + + Draws the icon for MDIChild. + + Graphics Object. + Rectangle to draw mdiform icon. + Value to adjust icon. + Form to load the Icon + + + + + + + + + + + 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 maintain the visibility of the inner border of the Form. + + + + + 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 + + + + + Indicates whether to allow rounded corners or not. + + + + + This Event will be triggered, when CaptionBar is painted and it is used to customize the CaptionBar. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Gets border width of the Office2007Form instance. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Border width of the Office2007Form instance. + + + + + + + + + + + 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 information about a control that can be used by an accessibility application. + + + + + MetroForm + + + + + Constructor + + The RibbonControlAdv instance. + + + + 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 the parent of an accessible object. + + An RibbonControlAdvAccessibility that represents the parent of an accessible object, or null if there is no parent object. + + + + Gets or sets the value of an accessible 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. + + + + Vertical Alignment + + + + + Top + + + + + Center + + + + + + + + + + Normal font weight + + + + + constructor for Office2010form with empty arguments + + + + + Indicates whether to enable dpiaware or not. + + + + + Variable to Gets or Set Value to Drop Shadow to the form. + + + + + Gets or sets the managed color table value. + + + + + Gets or Sets whether to enable Drop Shadow to the Office2010form + + + + + Gets or sets a value indicating whether the rounded corners are enabled. + + The default value is false. + This option is only in effect with Windows 11. + + + + Gets or sets a value indicating whether dpi aware should be enabled or not. + + + + + Reset the value of the DropShadow + + + + + Serializing the value of the DropShadow + + + + + + 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 the value indicating whether the current operating system is windows7 or not. + + + + + Gets or Sets the pressed button + + + + + Gets or Sets the highlighted button + + + + + To Hold the CaptionButtons visibility + + + + + Gets / Sets whether to hide the CaptionButtons, when displayed in Secondary Monitor + + + + + Hold to apply the Multi Monitor appearance + + + + + 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/Sets touch enabled + + + + + applies the scaling + + + + + + applies the scaling + + + + + + Method to determine whether the operating system is Windows 11. + + true if the operating system is Windows 11; otherwise false. + + + + Apply rounded corners for the form. + + + + + 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 + + + + + Gets the closebox + + + + + + + To define whether the customization needs to be applied + + + + + Raises the System.Windows.Forms.Form.Shown event. + + Event args that contains the event data + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + Indicates whether to allow rounded corners or not. + + + + + DPI Scaling + + + + + DeviceCap + + + + + Defines whether the DPI setting is enabled. + + + + + Defines the dpi scaling + + + + + To retrieve DPI Value + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Gets border width of the Office2010Form instance. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Border width of the Office2010Form instance. + + + + + + + + + + + + + + + + + + + + + Constructor for CaptionManager + + + + + + Provides information about a control that can be used by an accessibility application. + + + + + Office2010Form + + + + + Constructor + + The RibbonControlAdv instance. + + + + 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. + + + + 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. + + + + Represents the class to define the style of control. + + + + + Maintains the default style of the . + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default value. + + + + + Gets or sets the value used to draw the border of the + control. + + + + + Gets or sets the value for the + control. + + + + + Gets or sets the background color of the control. + + + + + Gets or sets the fore color value of the control. + + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Represents the class holds the plain data for a style object excluding identity information. + + + + + Provides information about the control's BorderColor property. + + + + + Provides information about the control's Font property. + + + + + Provides information about the control's ForeColor property. + + + + + Provides information about the control's BackColor property. + + + + + Maintains the static data. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Populates the SerializationInfo store with the name, type, and value of each piece of information it wants to serialize + Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. + + + + Overridden to get the static data source. + + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the CheckBoxAdv for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + This class represents the information to be displayed in the ToolTip. + + + 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 + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Occurs when theme name of the has changed. + + + + + This value used to customize the apperance of the + + + + + Get or Set of Skin Manager Interface + + + + + Gets or sets the theme name of the ToolTipAdv control. + + + + + Gets or sets a value indicating whether a theme style + has been applied to the control. + + The default value is true. + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets or sets the BaseTheme name of the theme + + + + + Gets the name of the control. + + + + + Gets the active theme name of the ToolTipAdv control. + + Returns the active theme name. + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Raises the event when themename changed. + + The sender value. + A contains the event data. + + + + Updates the Style renderers of ToolTipAdv Control based on applied Theme. + + + + + + + + + + + + + + + + + + + + Required designer variable. + + + + + + + + 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. + + + + + + + + + + + + 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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Interface to create an Office 2010 color table. + + + + + Color table for Office 2010 like scroll bars. + + + + + Color references for Office2010. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Constructor for Office2010 color table which is used to register the color style of each theme. + + + + + Used internally + + + + + 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 + + + + 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. + + + + + + + + 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 + + + + Interface to create a Office2010 color table. + + returns office2010 color table + + + + 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 + + + Provides renderer for Office2010 theme. + + + + Scroll Bar min thumb length for lines. + + + + + Scroll thumb line length. + + + + + Enumeration for scroll bar fields. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + 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. + + + + Renderer for VisualStyle based theme + + + + + 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 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. + + + + 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. + + + + + + + Implements the functionalities that provides a StyleInfoBase object for ScrollBarStyleInfo properties in a ScrollBar. + + + + + Holds the default style info of the scrollbar. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + A that holds the identity for this + . + + + + + Initializes a new instance of the class. + + 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. + + + + + Gets the default style for the ScrollBarStyleInfo object. + + + + + Gets or sets the background color for the arrow button. + + + This is applicable for both the Min and Max buttons. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the background color for the arrow button in hovering state. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the background color for the arrow button in pressed state. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the foreground color for the arrow button. + + + This will set the background color for the arrow which is shown in the arrow button. + This is applicable for both the Min and Max buttons. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the foreground color for the arrow button in hovering state. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the foreground color for the arrow button in pressed state. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the background color for the scrollbar. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the background color for the thumb. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the background color for the thumb in hovering state. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the background color for the thumb in pressed state. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the border background color for the arrow button. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the border background color for the arrow button in hover state. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the border background color for the arrow button in pressed state. + + + + + Gets or sets the border background color for the arrow button in disabled state. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets a value for ThumbBorderColor. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets a value for ThumbBorderColor in hover state. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets a value for ThumbBorderColor in pressed state. + + + + + Gets or sets a value for ThumbBorderColor in disabled state. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets a value for ThumbDisabledColor. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the value for ArrowButtonDisabledForeColor. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + Gets or sets the value for ArrowButtonDisabledBackColor. + + + + + Gets a value indicating whether the property has been modified for the current object. + + + + + 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. + + + + Gets the default value for the ScrollBarStyleInfo. + + Returns the default value for the ScrollBarStyleInfo object. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Contains the collection of properties. + + + + + Gets the value for the ArrowButton BackColor property. + + + + + Gets the value for the ArrowButton hover BackColor property. + + + + + Gets the value for the ArrowButton pressed BackColor properly. + + + + + Gets the value for the ArrowButton ForeColor property. + + + + + Gets the value for the ArrowButton hover ForeColor property. + + + + + Gets the value for the ArrowButton pressed ForeColor property. + + + + + Gets the value for the ScrollBarBackColor property. + + + + + Gets the value for the ThumbColor property. + + + + + Gets the value for the ThumbHoverColor property. + + + + + Gets the value for the ThumbPressedColor property. + + + + + Gets the value for the ThumbWidth property. + + + + + Gets the value for the ArrowButtonBorderColor property. + + + + + Gets the value for the ArrowButtonHoverBorderColor property. + + + + + Gets the value for the ArrowButtonDisabledBorderColor property. + + + + + Gets the value for the ArrowButtonPressedBorderColor property. + + + + + Gets the value for the ThumbBorderColor property. + + + + + Gets the value for the ThumbHoverBorderColor property. + + + + + Gets the value for the ThumbPressedBorderColor property. + + + + + Gets the value for the ThumbDisabledBorderColor property. + + + + + Gets the value for ThumbDisabledColor property. + + + + + Gets the value for ArrowButtonDisabledForeColor property. + + + + + Gets the value for ArrowButtonDisabledBackColor property. + + + + + Holds the static data for the Scrollbar style info store. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Provides the static data of the ScrollBarStyleInfo. + + + + + + Creates an exact copy of the current object. + + Copied object. + + + + Initializes the , if is null. + + + + + + Contains the list of properties that are used to customize the appearance of the scroll control. + + + This contains the elements that are available in the scroll control. i.e. Horizontal scrollbar, Vertical scrol bar and SizeGripper. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds data for this object. + All changes in this style object will be saved in the object. + + + + + Initializes a new instance of the class. + + 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. + + + + + Initializes a new instance of the class. + + + A to create the identity for ScrollBars. + + + + + Gets the default style of the . + + + + + Gets or sets the for the horizontal scrollbar of the scroll control. + + + + + Gets or sets the for the vertical scrollbar of the scroll control. + + + + + Gets or sets the for the size grip of the scroll control. + + + + + Determines whether HorizontalScrollBar has been modified and its contents should be serialized at design-time. + + True if contents were changed; False otherwise. + + + + Determines whether VerticalScrollBar has been modified and its contents should be serialized at design-time. + + True if contents were changed; False otherwise. + + + + Override this method to create a product-specific identity object for a sub object. + + An identity object for a sub object of this style. + + The following code is an example how scroll bar creates ScrollerVisualStyleInfoSubObjectIdentity: + + public override StyleInfoSubObjectIdentity CreateSubObjectIdentity(StyleInfoProperty sip) + { + return new ScrollerVisualStyleInfoSubObjectIdentity(this, sip); + } + + + The . + + + + Provide the default style of the . + + Default style object. + + + + Disposes the unused resources. + + Specifies whether to dispose both managed and unmanaged resources or only the unmanaged resources. + + + + Determines whether SizeGrip has been modified and its contents should be serialized at design-time. + + True if contents were changed; False otherwise. + + + + Defines a class that provides style identity information for nested objects of the VisualStyleInfo class of the control. + + + + + Initializes a new instance of the class and associates it with a specified. + + The that owns this sub-object. + The descriptor for this expandable sub-object. + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Contains the static data of the SizeGripStyleInfo class. + + + + + Gets the value of BackColor property. + + + + + Holds the static data of the size grip style info. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data for the SizeGripStyleInfo. + + + + + + Creates an exact copy of the current object. + + Copied object. + + + + Initializes the , if is null. + + + + + + Implements the class that provide an identity information of using + . + + + + + Maintains the SfScrollContol for create the identity. + + + + + Initializes a new instance of the class. + + + Control to create an identity for ScrollBars(HorizontalScrollBar/VerticalScrollBar). + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Implements the functionalities that holds all information stored for a SizeGrip of the scroll control. + + + ScrollBarSizeGripStyleInfo provides user-friendly access to all properties stored + in ScrollBarSizeGripStyleInfoStore. + + + + + Holds the default style info of the Scrollbar size grip. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + 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. + + + + + Gets the default value for the SizeGripStyleInfo. + + + + + Gets or sets the BackColor for the SizeGrip. + + + + + Gets a value indicating whether the BackColor property has been modified or not. + + + + + 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. + + + + Gets the default style of the SizeGrip. + + Returns the default style. + + + + Interface for SkinManager + + + + + 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. + + + + + Office 2019 style colorful theme. + + + + + High contrast tyle black theme. + + + + + Applies and manages the themes for the controls and components which are derived from the and + + + + + It stores the value of the property. + + + + + It stores the value of the property. + + + + + It helps to notify the Theme changes to all controls, when is modified. + + + + + It stores the value of the property. + + + + + This property helps to know, if the is loaded in Form. + + + + + It stores the VisualStyle settings applied in . + + + + + Gets or sets the to apply the theme settings + + + + + Gets or sets a name of the theme to be applied to . + + + + + Gets / sets the VisualTheme to be applied to controls and components loaded in Application. + + + + + Constructor + + + + + + Loads the assembly to register the theme XML configured files. + + An assembly that has the theme XML configuration file. + + + + Sets the theme to given control and its inner controls which are derived from + + The to set the theme. + to be applied to the control + + This method will set the theme to controls which is derived from + + + + + Sets the theme to given control and its inner controls which are derived from the and + + The to set the theme. + A name of the theme to be set to control. + + This method will set the theme to controls which is derived from and + + + + + Sets the theme to given component and its inner controls which are derived from the + + The to set the theme. + A name of the visualTheme to be set to control. + + This method will set the theme to controls which is derived from + + + + + + Sets the theme to given controls and its inner controls which are derived from the and + + The to set the theme. + A name of the theme to be set to control. + + This method will set the theme to controls which is derived from the + + + + + Iterates the Forms loaded in Application and sets the theme to its inner controls which are derived from the and + + + + + Sets the theme to given Component which are derived from the and + + The to set the theme. + A name of the theme to be set to control. + + This method will set the theme to controls which is derived from and + + + + + Sets the theme to given Control which are derived from the and + + The to set the theme. + A name of the theme to be set to control. + + This method will set the theme to controls which is derived from and + + + + + Sets the theme to given Component and its inner controls which are derived from the and + + The to set the theme. + A name of the theme to be set to control. + + This method will set the theme to controls which is derived from and + + + + + Occurs when new control is added to the control which has the theme settings that is set by the . + + The sender. + A that contains events data. + + + + Occurs when new control is added to the control which has the theme settings that is set by the . + + The sender. + A that contains events data. + + + + Occurs when any control is removed from the control which has the theme settings that is set by the . + + The sender. + A contains events data. + + + + Wires the and + events of the given control and its child controls. + + The control. + + + + Unwires the and + events of the given controls. + + The control. + + + + Releases all resources used by the class. + + True to release both managed and unmanaged resources; + false to release only unmanaged resources. + + + + + 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. + + + + + + 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. + + + + + 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. + + + + + + + + + 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. + + + + + 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. + + + + + + Creates a new instance of the PopupHost class. + + + + + Overridden. See . + + + + + + 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. + + + + + Ignore working area when menu begin popup. + + + + + Gets or sets 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. + + + + + 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 + + + + + + Default size of the control + + + + + Indicates whether the control is in design-mode. + + + + + + + + Gets or sets the value for the control. + + + + + 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). + + + + + + 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. + + + + + + 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; + } + + + + + + 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. + + + + + 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. + + + + + + + + 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. + + + + + 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. + + + + + Occurs before a popup is closed. + + + + + Hides a popup with the specified mode. + + A PopupCloseType value. + + + + Overridden. See . + + + + + + + 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. + + + + + Overridden. . + + + + + + Sets focus on the popup parent control. + + + + + Focuses first visible parent. + + + + + Specifies whether the control is in set focus. + + + + + + gets or sets the touchmode + + + + + + + + + + + + + applies the scaling + + + + + font changed + + + + + + + + + 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. + + + + // 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(); + + + + + + Get the parent control of the popupcontrol container. + + The control + Returns the popup of the parent control + + + + Checks whether the control is a related control. + + + + + + + + Indicates whether the popup is currently dropped down. + + True indicates popup is dropped down; False otherwise. + + + + 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. + + + + 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. + + + + + Accessibility class to provide Coded UI support. + + + + + Variable for PopupControlContainer. + + + + + Constructor. + + PopupControlContainer + + + + 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. + + + + + 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. + + + + 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 + + + + + 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. + + + + + 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. + + + + + Cleans up any resources being used. + + + + + Required method for designer support - do not modify + the contents of this method with the code editor. + + + + + 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. + + + + Subclass window that allowing attaching of + message filters classes into Message processing. + + + Value that represent invalid window handle. + + + Reference on message filter instance. + + + Gets and Sets 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. + + + + SR provides localized access to string resources specific + from the assembly manifest Syncfusion.Windows.Forms.Localization.SR.resources + + + + + Gets the localized text. + + Current UI culture. + String that has to be localized. + Control name. + The localized string + + + + Gets the localized text. + + String that has to be localized. + The localized string + + + + Gets the localized text. + + String that has to be localized. + Control name. + The localized string + + + + Gets the localized text. + + String that has to be localized. + Control name. + The localized string + + + + Gets the localized text. + + Current UI culture. + String that has to be localized. + The localized string + + + + Gets the localized object. + + Current UI culture. + String that has to be localized. + The localized object + + + + Gets the localized object. + + String that has to be localized. + The localized object + + + + Gets the localized boolean object. + + Current UI culture. + String that has to be localized. + The localized boolean object + + + + Gets the localized boolean object. + + String that has to be localized. + The localized boolean object + + + + Gets the localized byte object. + + Current UI culture. + String that has to be localized. + The localized byte object + + + + Gets the localized byte object. + + String that has to be localized. + The localized byte object + + + + Gets the localized char object. + + Current UI culture. + String that has to be localized. + The localized char object + + + + Gets the localized char object. + + String that has to be localized. + The localized char object + + + + Gets the localized double object. + + Current UI culture. + String that has to be localized. + The localized double object + + + + Gets the localized double object. + + String that has to be localized. + The localized double object + + + + Gets the localized float object. + + Current UI culture. + String that has to be localized. + The localized float object + + + + Gets the localized float object. + + String that has to be localized. + The localized float object + + + + Gets the localized int object. + + String that has to be localized. + The localized int object + + + + Gets the localized int object. + + Current UI culture. + String that has to be localized. + The localized int object + + + + Gets the localized long object. + + String that has to be localized. + The localized long object + + + + Gets the localized long object. + + Current UI culture. + String that has to be localized. + The localized long object + + + + Gets the localized short object. + + Current UI culture. + String that has to be localized. + The localized short object + + + + Gets the localized short object. + + String that has to be localized. + The localized short object + + + + 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. + + + + + Color table to customize the buttons,captions and text color in MessageBoxAdv + + + + + Default constructor for MetroStyleColorTable + + + + + Variable for CaptionBarColor + + + + + Gets/sets the captionbarcolor + + + + + Variable for CaptionForeColor + + + + + Gets/sets the captionforecolor. + + + + + Variable for closeButtonColor + + + + + Gets/sets the CloseButton color of MessageBoxAdv. + + + + + Variable for closeButtonHoverColor + + + + + Gets/sets the CloseButtonHoverColor. + + + + + Variable for BackColor + + + + + Gets/sets the backcolor. + + + + + variable for ForeColor + + + + + Gets/sets the forecolor. + + + + + Variable for BorderColor + + + + + Gets/sets the bordercolor + + + + + Variable for OKButtonBackColor + + + + + Gets/sets the OKButtonBackColor + + + + + Variable for OKButtonForeColor + + + + + Gets/sets the OKButtonForeColor + + + + + Variable for Details Button ForeColor + + + + + Gets/sets the Details Button ForeColor + + + + + Variable for Details Button BackColor + + + + + Gets/sets the Details Button BackColor + + + + + Variable for YesButtonBackColor + + + + + Gets/sets the YesButtonBackColor. + + + + + Variable for YesButtonForeColor + + + + + Gets/sets the YesButtonForeColor. + + + + + Variable for AbortButtonBackColor + + + + + Gets/sets the AbortButtonBackColor. + + + + + Variable for AbortButtonForeColor + + + + + Gets/sets the AbortButtonForeColor. + + + + + Variable for RetryButtonBackColor + + + + + Gets/sets the RetryButtonBackColor + + + + + Variable for RetryButtonForeColor + + + + + Gets/sets the RetryButtonForeColor + + + + + Variable for IgnoreButtonBackColor + + + + + Gets/sets the IgnoreButtonBackColor. + + + + + Variable for IgnoreButtonForeColor + + + + + Gets/sets the IgnoreButtonForeColor. + + + + + Variable for NoButtonBackColor + + + + + Gets/sets the NoButtonBackColor. + + + + + Variable for NoButtonForeColor + + + + + Gets/sets the NoButtonForeColor. + + + + + Variable for CancelButtonBackColor + + + + + Gets/sets the CancelButtonBackColor + + + + + Variable for CancelButtonForeColor + + + + + Gets/sets the 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 + + + + + Holds the height of the before the detail view is collapsed. + + + + + Holds the height of the before the detail view expand. + + + + + Holds the Button height + + + + + + Custom Button Collection + + + + + + Variable which indicates whether custom buttons are already initialized or not + + + + + detailButtonSpace control using for increase the space in flow layout panel inbetween the detail button and message box buttons in while resizing. + + + + + Method to set same width for all Buttons in the MessageBoxAdv + + Collection of buttons + Greater width + + + + + Method to calculate the height of the panel of MessageBoxAdv + + Panel height + + + + 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. + + + + + Validate the messagebox height in while initialize the control + + + + + Handle the size of the message box while closing and expanding the details view. + + + + + Normal font weight + + + + + Maintains the value indicating whether the caption height should retain or not. + + + + + Constructor for Office2007form with empty arguments + + + + + Variable to Gets or Set Value to Drop Shadow to the form. + + + + + Gets or sets the managed color table value. + + + + + Indicates whether to enable dpiaware or not. + + + + + Value to store the title padding. + + + + + Indicates whether to allow rounded corners or not. + + + + + + Gets or sets a value indicating whether dpi aware should be enabled or not. + + + + + Gets or Sets whether to enable Drop Shadow to the Office2007form + + + + + Gets or sets a value indicating whether the rounded corners are enabled. + + The default value is false. + This option is only in effect with Windows 11. + + + + Reset the value of the DropShadow + + + + + Serializing the value of the DropShadow + + + + + + 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 Office2007 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 Office2007 + + + + + + + + + + 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 + + + + + To Hold the CaptionButtons visibility + + + + + Gets / Sets whether to hide the CaptionButtons, when displayed in Secondary Monitor + + + + + Hold to apply the Multi Monitor appearance + + + + + 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/Sets touch enabled + + + + + applies the scaling + + + + + + Gets the value indicating whether the current operating system is windows7 or not. + + + + + Updates the title padding. + + Updates to retain the title bar height in maximized state. + + + + applies the scaling + + + + + + Method to determine whether the operating system is Windows 11. + + true if the operating system is Windows 11; otherwise false. + + + + Apply rounded corners for the form. + + The handle to the window + Corner style for the round corners + + + + 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 + + + + + Gets the closebox + + + + + + + To define whether the customization needs to be applied + + + + + Raises the System.Windows.Forms.Form.Shown event. + + Event args that contains the event data + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + DPI Scaling + + + + + DeviceCap + + + + + Defines whether the DPI setting is enabled. + + + + + Defines the dpi scaling + + + + + To retrieve DPI Value + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Gets border width of the Office2007Form instance. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Border width of the Office2007Form instance. + + + + + Constructor for CaptionManager + + + + + + Provides information about a control that can be used by an accessibility application. + + + + + Office2007Form + + + + + Constructor + + The RibbonControlAdv instance. + + + + 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. + + + + 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. + + + + 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. + + + + + + + + + + + + + + Initializes a new . + + + + + Occurs when the user clicks on an arrow button. + + + + + Raises the event. + + An that contains the event data. + + + + Occurs when Arrow button is changed. + + + + + Indicates whether themes are enabled for this control. + + + + + Fired when the ThemesEnabled property changes. + + + + + + + + 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. + + + + + 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. + + + + + Resets to default. + + + + + Gets or sets the color of arrows in disabled buttons. + + + + + Resets to default. + + + + + 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). + + + + + Draw the arrows in VisualStyle based theme. + 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). + + + + + 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. + + + + + This is a specialized version of the that draws an arrow. Used by in + and . + + + + + 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. + + + + + Occurs when the current record is changing. + + + + + Occurs when the current record is changed. + + + + + Initializes a new . + + + + + Gets or sets the value for the control. + + + + + + + + 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. + + + + + + + + + + + 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. + + + + + 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. + + + + Gets or sets the current record position. + + + + + 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. + + + + 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. + + + + + + + + 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. + + + + 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. + + + + + Occurs when the current record is changed. + + + + + Occurs when the current record is changing. + + + + + Occurs when the user clicks an arrow button. + + + + + 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 . + + + + + + + + + + + + + + + + + Returns the with record information and scroll buttons. + + + + + + + + + + + Forces the control to invalidate its client area and immediately redraw itself and any child controls. + + + + + Gets / sets the current record position. + + + + + Gets or sets the minimum record position. + + + + + Resets to default. + + + + + Gets or sets the maximum record position. + + + + + Resets to default. + + + + + Indicates whether adding new records is enabled. + + + + + Resets to default. + + + + + 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. + + + + + Resets the property to its default value. + + + + + Gets or sets the backcolor of the navigation bar. + + + + + Resets the property to its default value. + + + + + Gets or sets the width of the navigation bar. + + + + + Gets or sets the color of arrows in enabled buttons. + + + + + Resets the property to its default value. + + + + + Gets or sets the color of arrows in disabled buttons. + + + + + 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. + + + + Provides the control name. + + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + 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. + + + + + + + + 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. + + + + + + + + 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. + + + + + + + + + + Gets or sets bounds an ScrollControl. + + + + + Gets or sets bounds of an ScrollControl in screen coordinates. + + + + + Gets or sets clipping region of an ScrollControl. + + + + + + + + + + + Bounds an ScrollControl. + + + + + Bounds of an ScrollControl in screen coordinates. + + + + + 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. + + + + + 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. + + + + + + + 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. + + + + + + + + + + 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". + + + + + + + + + + + Creates the handler. Overridden to help set up scrollbar information. + + + + + + + + + + + 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. + + + + + Resets the backcolor of the scroll bar. + + + + + Gets / sets the scroll bar style. Default is Flat style. + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + 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 . + + + + 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; + } + + + + + + 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. + + + + + 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. + + + + Indicates whether to toggle the Intelli-Mouse feature on or off. + + + + + + + + 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. + + + + + + + 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. + + + + + 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. + + + + + 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. + + + + 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. + + + + + 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. + + + + + Apply Office2016Black color settings for scrollbar. + + + + + Apply Office2016DarkGray color settings for scrollbar. + + + + + Apply Office2016White color settings for scrollbar. + + + + + Apply Office2016Colorful color settings for 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + 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 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. + + + + + Updates the scrollbar with latest changes to current position and scrollable range. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + The style info of the scrollbar. + + + + + Gets or sets the with settings that control the appearance of the scroll bar. + + + + + Implements the method and releases all managed resource for this object. + + + + + 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. + + + + + Copies all information to another object. + + The to receive all copied information. + + + + 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. + + + + + Raises the event. + + . + An that contains the event data. + + + + Suspends updating the scrollbar until is called. + + + + + Resumes updating the scrollbar after a call. + + + + + Indicates whether updating is locked. See . + + + + + 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. + + + + + 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. + + + + + 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. + + + + + + Returns a reference to the parent control. + + + + + Gets / sets ScrollButton highlighted state. + + + + + + + + + + + + + + Blend 30% of menu selection color. + + + + + Gets / sets for correctly GradientBrush creation, so that background + is same as Parent's background. + + + + + + + + + + + + + + + + + It contains the value of the property. + + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Helps to apply the ControlName settings in control + + ThemeName + + + + Helps to apply the CanOverriderStyle settings in control + + CanOverriderStyle + + + + Helps to apply the CanApplyTheme settings in control + + CanApplyTheme + + + + Helps to apply the ThemeName settings in control + + ThemeName + + + + Represents the class to define the style of control. + + + + + Maintains the default style of the . + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default ScrollButtonsStyleInfo value. + + + + + + + + + + + + + + + + + + + Provide the default style of the . + + Default style object. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Represents the class holds the plain data for a style object excluding identity information. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Maintains the static data. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Populates the SerializationInfo store with the name, type, and value of each piece of information it wants to serialize + Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. + + + + Overridden to get the static data source. + + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the ScrollButtons for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + This interface provides properties for accessing a vertical and horizontal + and an method. + + + + + 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. + + + + + Updates scrollbars to reflect recent changes in scroll position, minimum and maximum scroll position values. + + + + + 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. + + + + 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. + + + + + + + + + + + + Gets / sets the border style of the control. + + + + Gets / sets the text layout information for the text in the ScrollTip. + + + + + 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. + + + + 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; + } + + + + + + + + + + + + + + + + + + + + Occurs when an exception was cached within the framework and was notified. + + + + + Lets you disable caching exceptions altogether by setting to True. + + + + 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. + + + + + + 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. + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Internal only. + + + + + Internal only. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Indicates the shared behavior of the vertical scrollbar + + + + + Indicate the shared behavior of the horizontal scrollbar + + + + + Holds the style info collection for the scroll control elements. + + + + + The SizeGripStyle behavior has been changed after version 6.1. + For old behavior set this to true. Default value is false. + + + + + 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. + + + + + Gets or sets a style of the ScrollControl components. + + + + + 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. + + + + + 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. + + + + + Overridden. Changes to show or hide scrollbars and also consider the control's + setting. + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + Gets or sets the touch mode. + + + + + 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 + + + + 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. + + + + + 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. + + + + + Gets or sets the Office2016 Scrollbars + + + + + Toggles between standard and Office2007 scrollbars. + + + + + Raises the event. + + A that contains the event data. + + + + Get or Set of Skin Manager Interface + + + + + Gets or sets the style of Office2007 scroll bars. + + + + + Raises the event. + + Event data. + + + + Occurs when the property has changed. + + + + + Raises the event. + + Event data. + + + + Occurs when the property has changed. + + + + + Raises the event. + + Event data. + + + + Occurs when the property has changed. + + + + + Raises the event + + Office scrollbar type + + + + Provides the data about event of a . + + + + + Initializes a new . + + The record index. + + + + Gets or sets the Office scroll bars + + + + + 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. + + + + + Checks whether current theme is VisualStyle based theme or not. + + + + + Helps to set the scrollbars based on visual style. + + + + + + Apply the color scheme for Office2016 scrollbar. + + + + + 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. + + + + + + + + + + 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 + + + + Gets or sets the boolean value for enhanching the apperance settings for DpiAware enabled Application. + + + + + 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. + + + + + Delegate for ScrollControlMouseDown, OnBeforeMouseMove and ScrollControlMouseUp methods. + + + + + + + + + + + + + + + + + + + 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. + + + + + + + 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. + + + + + + + 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 + + + + + Specifies the visual style for the ScrollerFrame. + + + + 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. + + + + + Holds Metro thumb size + + + + + Gets/Sets the size of Metro Scroller Thumb + + + + + Gets or sets a style of the ScrollFrame components. + + + + + Holds whether to show Metro Arrow Button + + + + + 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. + + + + Applies the color table based on the scrollbar styles. + + Get the scroll control details + Get the scrollbar styles. + + + + 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. + + + + + 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 + + + + + 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. + + + + 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. + + + + Occurs when the theme name is changed. + + The theme name. + + + + Overridden to gets the control name of the scroll frame. + + The control name. + Returns the name of the control. + + + + To update the Small Increment speed when ScrollersFrame is attached with ListView control + + + + + Gets or Sets custom renderer to customize the scroll bars + + + + 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. + + + + + 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. + + + + + Gets or sets value indicating 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. + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + + + + 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 metro renderer for scrollbar + + + + + 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. + + + + Indicates whether scrollBar style is EnableOffice2013Style + + + + + 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. + + + + 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 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. + + + + + ButtonBar is a base class for displaying several buttons in one bar. It is used by + and . + + + + + Occurs when a WM_CANCELMODE is received. + + + + + Occurs when is changed. + + + + + Occurs before the event is raised. + + + + + 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. + + + + Indicates whether was called. + + + + + + + + + + + + + + + + + + + + Raises the event. + + Event data. + + + + Forces the control to invalidate its client area and immediately redraw itself and any child controls. + + + + + + + + Returns the default size of the control. + + + + + Returns the bounds for the button bar. + + A indicating where the bar should be drawn. + + + + Gets or sets a that holds an array of buttons. + + + + + Creates an instance of the and initializes it with the layout information. + + The initialized . + + + + Indicates whether ToolTips are being shown for tabs that have ToolTips set on them. + + + + + + + + Reinitializes and hides ToolTips. + + + + + Gets or sets the button look for the arrow buttons. + + + + + Raises the event. + + Event data. + + + + 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. + + + + + 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 . + + + + + 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. + + + + + 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. + + + + Gets / sets the active pane in the splitter control. + + + + + 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. + + + + 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. + + + + + Provides a property support for using the control + inside a dynamic splitter window and sharing scrollbars + with the parent window. + + + + + Toggles 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. + + + + + Indicates whether the splitter control is closing the pane with this control. + + + + + Indicates whether the splitter control has closed the pane with this control. + + + + + 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. + + + + 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). + + + + + + + + + + + + + + + + + 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. + + + + + Gets or sets the visual style of the control. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + + + + + + + + + + + + + + + + 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. + + + + + Resets hovered state for all buttons. + + + + + Indicates whether any button is in pushed state. + + + + + Resets pushed state for all buttons. + + + + + 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 + + + + + Draw the AddNewSymbol and Ellipsis in VisualStyle based theme. + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Specifies office 2007 color scheme. + + + + + Style of the control. + + + + + Color table for Office2007 visual style. + + + + + Default splitter value. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Gets or sets the visual style of the tabBarSplitterControl. + + + + + Gets or sets the style for Splitter. + + + + + + + + + + Gets or sets office 2007 color scheme. + + + + + Gets color table for Office2007 visual style. + + + + + + + + Draw splitterBar in VisualStyle based theme. + + + + + Improve the Tabbarsplittersontrol appearance to draw the dotted icon in splitterbar. + + To handle the graphics objects. + Position to draw the dottedrectangle. + Vertical splitter bar position value in percentage. + Horizontal splitter bar position value in percentage. + + + + Draw the Dotted icon on Horizontal splitter button. + + To handle the graphic objects. + Position of the dotted rectangle. + Dotted rectangle fore color. + + + + Draw the Dotted icon on Vertical splitter button. + + To handle the graphic objects. + Position of the dotted rectangle. + Dotted rectangle fore color. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + 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. + + + + + 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. + + + + + Default size of the control + + + + + Return the bool value if BaseThemeName is Office2019Colorful or HighContrastBlack. + + + + + + Initializes a new splitter 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 + + + + + + + Scale the control based on the scale factor passed in the argument. + + value to scale the factor based upon. + + + + Font changed + + + + + + + + + Returns the number of visible row panes. + + + + + Returns the number of visible column panes. + + + + + 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. + + + + + + + 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. + + + + + Raises the event. + + A that contains the event data. + + + + 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. + + + + + 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. + + + + Gets or sets the active pane in the splitter control. + + + + + 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. + + + + Returns the default size of the control. + + + + + + + + Activates the next or previous pane. + + True if previous pane should be activated; False if next pane should be activated. + + + + + + + + + + Gets or sets the border style of the Splitter Control. + + + + + 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. + + + + + Indicates whether themes are enabled for this control. + + + + + Indicates whether ToolTips are being shown for tabs that have ToolTips set on + them. + + + + + Raises the event. + + Event Data. + + + + + + + Reinitializes and hides ToolTips. + + + + + + + + + + + Gets or sets the button look for the arrow buttons. + + + + + Raises the event. + + Event data. + + + + holds information about the current vertical and horizontal split positions. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + + + + Gets or sets a value indicating what split behavior is supported. Rows, Columns or Both. + + + + + Resets the property to its default value. + + + + + Raises the event. + + Event data. + + + + Gets or sets the horizontal splitter position in percentages of the splitter control's width. + + + + + Raises the event. + + Event data. + + + + Gets or sets the vertical splitter position in percentages of the splitter control's height. + + + + + Raises the event. + + + + + + Forces the control to invalidate its client area and immediately redraw itself and any child controls. + + + + + + + + Gets or sets the that holds information about current vertical and horizontal split positions. + + + + + 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. + + + + + + + Gets or sets the border style of the RecordNavigationControl. + + + + + Occurs when property has changed. + + + + + Raises the event. + + A that contains the event data. + + + + Toggles between standard and flat scrollbars. + + + + + Raises the event. + + A that contains the event data. + + + + Gets or sets the style of flat scrollbars. + + + + + Gets or sets the size factor of this tab bar + + + + + Raises the event. + + Event data. + + + + Gets or sets the Backcolor for flat scrollbars. + + + + + Raises the event. + + + + + + Resets the to default. + + + + + Gets or sets the Office2016Scrollbar. + + + + + Toggles between standard and Office2007 scrollbars. + + + + + Raises the event. + + A that contains the event data. + + + + Get or Set of Skin Manager Interface + + + + + Gets or sets the style of Office2007 scroll bars + + + + + Raises the event. + + Event data. + + + + Occurs when the property has changed. + + + + + Raises the event. + + Event data. + + + + Occurs when the property has changed. + + + + + Raises the event. + + Event data. + + + + Occurs when the property has changed. + + + + + Raises the event + + Office scrollbar type + + + + Provides the data about event of a . + + + + + Initializes a new . + + The record index. + + + + Gets or sets the Office scroll bars + + + + + Gets or sets the Office like scrollbars. + + + + + Reset the GridOfficeScrollBars + + + + + + Serializes the GridOfficeScrollBars + + + + + + 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 + + + + + + Reset the Style of the Splitter control + + + + + + Serializes the Style of the Splitter control + + + + + + Occurs when the style changes + + + + + 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. + + + + + Raises the event. + + A that contains the event data. + + + + Occurs when the property has changed. + + + + + Raises the event. + + A that contains the event data. + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Gets or sets the BaseTheme name of the theme + + + + + Gets or sets a value indicating whether a theme settings + can be applied to the control. + + The default value is true. + + This property must be initialized before applying the VisualTheme /> + + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets the name of the control. + + + + + Gets or sets the theme name of the control. + + + The default value is null. + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Occurs when theme name of the control has changed. + + + + + Gets the active theme of control. + + + + + + Raises the event when theme name changed. + + The sender value. + A contains the event data. + + + + 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. + + + + + 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. + + + + + 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 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. + + + + + 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. + + + + + 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 the default colors. + + + + + 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. + + + + + Initializes default colors based on SystemColors. + + + Calling this will not affect the custom colors set using the properties. + + + + + 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. + + + + + + + + + + + + + + + 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. + + + + + 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. + + + + + 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. + + + + + Initializes colors based on Windows XP color scheme. + + + + + 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 or sets a value indicating whether managed color is alive or not. + + + + + Gets or sets default colors for Office2007 visual style. + + + + + Gets or sets default colorscheme for office2007 visual style. + + + + + + + + + + + + + + + Arguments class for event. + + + + + Initializes instance. + + Container form. + Base color for the managed theme. + + + + Container form. + + + + + Base color for the managed theme. + + + + + Gets color table for Office2007 visual style. + + + + + Applies colors for managed scheme. + + Container form. + Base color for the managed theme. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Initialize colors general for all colorscheme of the Office2007 visual style. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + 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. + + + + + 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. + + + + + + + + + + Gets or sets a value indicating whether managed color is alive or not. + + + + + Default colorscheme for office2010 visual style. + + + + + Base color for managed scheme. + + + + + Gets or sets default colors for Office2010 visual style. + + + + + Gets or sets default colorscheme for office2010 visual style. + + + + + + + + + + + + + + + Arguments class for event. + + + + + Initializes instance. + + Container form. + Base color for the managed theme. + + + + Container form. + + + + + Base color for the managed theme. + + + + + Gets color table for Office2010 visual style. + + + + + Applies colors for managed scheme. + + Container form. + Base color for the managed theme. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Initialize colors general for all 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 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. + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 . + + + + + Specifies to use. + + + + + Enables rendering with . + + + + + Specifies that this object supports . + + + + + Specifies to use. + + + + + Enables rendering with . + + + + + Specifies that this object supports . + + + + + Specifies to use. + + + + + Enables rendering with . + + + + + 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. + + + + + 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. + + + + + 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. + + + + Draws a themed check button. + + + + + Indicates the checked state of the button. + + + + + MetroColor + + + + + Gets or setsthe metrocolor. + + + + + Disposes all resources. + + + + + + Initializes a new object. + + + + + + + + + + + Implement this interface in a derived class to start supporting themes. + + + + + Indicates whether themes are enabled. + + + + + A implementing the interface. + + + + + Fired when the ThemesEnabled property changes. + + + + + + + + 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. + + + + + Indicates whether themes are enabled for this 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 . + + + + + + Returns the current theme handle used to render the parts. + + + + + 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. + + + 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. + + + + + Gets / sets the type of scroll arrow. + + + + + Initializes a new object. + + + + + Disposes all resources being used. + + + + + + + + + + + + Returns the color for paint control background. + + + + + + + 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. + + + + + Gets the current theme name. + + + + + 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. + + + + Creates a new instance of class. + + The current theme name. + + + + 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. + + + + + Gets the current theme name. + + + + + Implements the skin collection for ofice2016 theme(Black, White, DarkGray and Colorful). + + + + + Initialize a new instance of class. + + + + + Intialize the skin collection based on the grid visual styles. + + + + + 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. + + + + Describes the Office2016 theme colors. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + Gets the current theme name. + + + + + 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. + + + + + Gets the current theme name. + + + + + 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. + + + + + Gets the current theme name. + + + + + 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. + + + + + Gets the current theme name. + + + + + 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. + + + + + Gets the current theme name. + + + + + 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. + + + + + Gets the current theme name. + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Used to unwire the ThemeChangeListenerForm class. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Specifies that this object subscribes to event. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + + + + 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. + + + + + Overriden. Displays a dialog or wait cursor during progress and closes the dialog when operation is finished. + + An that contains the event data. + + + + + + + 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. + + + + + 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"; + } + } + + + + + 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. + + + + 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. + + + + 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. + + + + + 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. + + + + + + + + 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. + + + + + 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. + + + + + Returns the name of this mouse controller. + + + + + Returns the cursor to be displayed. + + + + + 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. + + + + + + + + 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. + + + + + 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. + + + + + + + Returns the menu provider instance. + + A instance. + + + + Returns the text representing the context menu item. + + A value. + + + + Creates an instance of the class. + + A instance representing the menu provider. + A value representing the context menu item. + + + + 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. + + + + + + + Gets context menu 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. + + + + + 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. + + + + + 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. + + + + 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. + + + + + + + Returns a reference to the active mouse controller that is receiving MouseDown, MouseMove and MouseUp messages when the user + has pressed a mouse button. + + + + + Changes the active controller and raises an ActiveControllerChanged event. + + + + + + Returns the controller that currently receives mouse hovering messages. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + Property AllowDoubleClickTimer (bool). + + + + + Call this method from your control's MouseMove handler. + + + + + + Returns the cursor to be displayed. + + + + + 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. + + + + + 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)); + } + + + + + + 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. + + + + + Indicates that the value of the TrackMouse property has changed. + + + + + Raises the event. + + A that contains the event data. + + + + 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 . + + + + + Event raised when the ThreadCulture is changed or the system settings + changed the culture. + + + + + 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. + + + + 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. + + + + + Event raised when the form senses that the culture has been changed. + + + + + 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. + + + + 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. + + + + + 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. + + + + + 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. + + + + + + + + + + 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. + + + + + + + + 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. + + + + + + + + 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. + + + + + + + Draws the AddNewSymbol in VisualStyle based theme. + + + + + Handles the or events of an + + + + + Specifies scroll behavior for a tab bar. + + + + + Scroll pixels. + + + + + Scroll tabs. + + + + + Helper class for . Manages items. + + + + + Occurs when a tab has been moved. + + + + + Occurs before a tab is moved. + + + + + 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. + + + + + + + + + + + Indicates whether a button is currently pressed. + + + + + + + + + + + + + + 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. + + + + Returns a value that indicates which buttons to show enabled. Other buttons are disabled. + + + + + + + + + + + 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. + + + + Gets / sets the button list. + + + + + Gets / sets the boundaries of this bar. + + + + + Indicates the flat look status for buttons. + + + + + Initializes ToolTips boundaries. + + + + + Reinitializes and hides ToolTips. + + + + + 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. + + + + + Resets hovered state for all buttons. + + + + + Indicates whether any button is in pushed state. + + + + + Resets pushed state for all buttons. + + + + + Indicates whether any button is in checked state. + + + + + Resets checked state for all buttons. + + + + + Indicates whether any button is in DragTarget state or sets DragTarget state for the specified index. + + + + + Resets DragTarget state for all buttons. + + + + + Gets / sets the scroll behavior of this tab bar: pixel or tabs. + + + + + Gets / sets the current tab. + + + + + Refreshes the current tab and optionally scrolls it into view. + + True if current tab should be scrolled into view. + + + + 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. + + + + Gets / sets the at the specified index. + + + + + 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 metro highight color + + + + + Gets or sets metrohighlight color + + + + + Gets metronormal color. + + + + + Gets or sets metro normal color. + + + + + + + + + Office2016Colorful Renderer + + + + + Holds the Visualstyle + + + + + Constructor + + + + + + + + Gets highight color + + + + + Gets or sets highlight color + + + + + 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 + + + + + Override + + + + + + + Override + + + + + + + + + Static method has VisualStyles + + + + + + + Gets the correcsponding render for Office2016 themes. + + + + + 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 + + + + + Occurs after the selected tab index has changed. + + + + + Creates the ToolTip. + + + + + Creates the text box during edit + + + + + Occurs before the selected tab index is changing. + + + + + + + + + + + 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. + + + + + 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 + + + + + + + Scale the control based on the scale factor passed in the argument. + + value to scale the factor based upon. + + + + + + + + Class to derive the TextBox to Edit + + + + + Assign the text to the TabBar + + + + + Enable the edit mode in TabBarPage + + + + + To Specify EditOnTabPage to be serialized or not + + + + + Occurs when the user clicks on a tab. + + The tab that was clicked. + + Sets the . + + + + + 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 + } + + + + + + 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. + + + + Occurs when the property has changed. + + + + + Raises the event. + + Event data. + + + + Repaints the splitter bar. + + The source of the event. + + + + + + + Handles the WM_SETCURSOR message. + + + + + + + + + + + + + + + Gets/Sets whether to show/hide AddNewButton Image + + + + + Gets/Sets the Hover color for AddButton. + + + + + Resets the AddButtonHoverColor + + + + + ShouldSerialize the AddButtonHoverColor. + + + + + + Gets/Sets AddNewTabBarOption Image in TabBarSplitterControl + + + + + Gets/Sets TabBarPage which is being mouse pointed + + + + + + + + + + + + + + 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. + + + + + + + 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. + + + + + Creates an instance of the and initializes it with the layout information. + + The initialized . + + + + + + + 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 the visual style of the tabBar. + + + + + + + + + + Gets or sets office 2007 color scheme. + + + + + Gets color table for Office2007 visual style. + + + + + + + + + + + + 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. + + + + + 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. + + + + + Raises the event. + + A that contains the event data. + + + + 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. + + + + + + + + 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. + + + + + + + + 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. + + + + + 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. + + + + + 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. + + + + + + + + Returns the parent splitter frame. + + + + + Returns the number of visible row panes. + + + + + Holds TabBar back color + + + + + To Reset TabBarColor + + + + + Indicate whether to serialize TabBarColor + + + + + Returns the number of visible column panes. + + + + + 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. + + + + 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. + + + + + Raises the event. + + A that contains the event data. + + + + 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. + + + + + 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. + + + + Gets / sets the active pane in the splitter control. + + + + + 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. + + + + + + + + + + + + + + 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 + + + + + Raises the event. + + Event data. + + + + Gets or sets the visibility of the control. + + + + + Gets or sets the visibility of the control. + + + + + Gets / sets a value indicating what split behavior is supported. Rows, columns or both. + + + + + Raises the event. + + Event data. + + + + Gets / sets the horizontal splitter position in percentages of the splitter control's width. + + + + + Raises the event. + + Event data. + + + + Gets / sets the vertical splitter position in percentages of the splitter control's height. + + + + + Raises the event. + + + + + + Gets / sets the that holds information about current vertical and horizontal split positions. + + + + + 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. + + + + + + + + Indicates whether themes are enabled for this control. + + + + + Fired when the ThemesEnabled property changes. + + + + + 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. + + + + + + + + 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. + + + + + 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. + + + + + + + + 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. + + + + Gets / sets the icon displayed on the tab. + + An Icon value. + + + + Gets or sets back color for TabBarPage Tab. + + + + + 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 + + + + + Gets the TabBarText + + + + + Cancel args + + + + + 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. + + + + + Gets the Mouse Button + + + + + Holds TabBarPage which is selected. + + + + + Gets the selected TabBarPage. + + + + + Holds bar location. + + + + + Gets the TabBounds bounds. + + + + + TabBarSelectionArgs class initializer + + + + + 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 + + + + + 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 + + + + + Initializes a new . + + + + + Gets or sets a value indicating whether the control should enable its Accessibility support. + + + + + 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 + + + + + + + Scale the control based on the scale factor passed in the argument. + + value to scale the factor based upon. + + + + + + + + + + + + + + + + Overridden method of refresh. + + + + + Returns the tab bar. + + + + + 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. + + + + 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) + + + + + Get or Set of Skin Manager Interface + + + + + Gets or sets office 2007 scroll bars colorScheme. (overridden property) + + + + + + + + + + To raise TabBarPageAdding Event + + + + + + To raise LabelEditEnds Event + + + + + + Cancels the editable state of the Tabpage. + + + + + To raise LabelEditBegin Event + + + + + + To raise TabBarMouseDown Event + + + + + + Gets or sets the index of the active page. + + + + + Specifies the color with which the ActivePageBorder bottom border should be drawn. + + + + + Indicates whether to Serialize ActivePageBorderColor API + + + + + + Resets the ActivePageBorderColor. + + + + + Gets or sets whether to show/hide the Seperator in MetroStyle + + + + + Indicates whether to Serialize ShowMetroSeperator + + + + + + Resets the ShowMetroSeperator. + + + + + Gets or sets value to enable or disable the EnableOffice2013Style in MetroStyle + + + + + Indicates whether to Serialize EnableOffice2013Style API + + + + + + Resets the EnableOffice2013Style. + + + + + Gets or sets the currently visible TabBarPage. + + + + + Raises the event. + + Event data. + + + + Raises the event. + + Event data. + + + + 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. + + + + + Resets to default. + + + + + Gets or sets the color of the arrows in the disabled buttons. + + + + + Resets to default. + + + + + + + + + + + + CurrencyEdit + + + + + Constructor + + The RibbonControlAdv instance. + + + + 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 state for the . + + + + + Gets the description of the TabBarSplitterAccessibilityObject + + A string describing the TabBarSplitterAccessibilityObject. + + + + Retrieves the child object at the specified screen coordinates. + + The horizontal screen coordinate. + The vertical screen coordinate. + An TabBarSplitterAccessibilityObject 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. + + + + Returns the list of TabBarPages displayed in the TabBar. Each TabBarPage + will have a tab associated with it. + + + + + 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. + + + + + + + + + + + + + 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 + + + + + To reset LabelEdit + + + + + To Specify LabelEdit to be serialized or not + + + + + Enable the edit mode in Selected TabBar + + + + + To reset EditOnTab + + + + + To Specify EditOnTab to be serialized or not + + + + + Gets/Sets background image for AddNewTabBarPageButton + + + + + Gets/Sets the Hover color for AddButton. + + + + + Resets the AddButtonHoverColor + + + + + ShouldSerialize the AddButtonHoverColor. + + + + + + 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. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Provides the control name. + + + + + Gets or sets the theme name of the control. + + + The default value is null. + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Apply the theme settings. + + Current theme name + + + + Gets or sets the value used to customize the appearance of the . + + + This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control. + + + + + 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. + + + + Returns the number of pages. + + + + + Removes an item at the specified index. + + The item index. + + + + Returns False. + + + + + 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. + + + + Gets / sets the at the specified index. + + + + + 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. + + + + 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. + + + + Implements the methods to draw the navigate buttons in RecordNavigationControl. + + + + + Initializes the instance for class. + + ThemeStyle + + + + Represents the class to define the style for arrow buttons in . + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Gets the default values of instance. + + + + + Gets or sets the background color of the arrow in normal state. + + + + + Gets or sets the background color of the arrow in hover state. + + + + + Gets or sets the background color of the arrow in pushed state. + + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Represents the class to define the style for . + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value for the control. + + + + + Gets or sets the for tabs. + + + + + Gets or sets the font style of RecordNavigationBar. + + + + + Gets or sets the back color of RecordNavigationBar. + + + + + Gets or sets the fore color of RecordNavigationBar. + + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Maintains the GridControl for create the identity. + + + + + Initializes a new instance of the class. + + + instance to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Represents the class to define the style for control. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Overridden to create a product-specific identity object for the sub object. + + StyleInfoProperty descriptor for this sub object. + Identity for the sub object. + + + + Gets the default values of instance. + + + + + Gets or sets the cell background color. + + + + + Gets or sets the splitter forecolor. + + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Provides information about the property. + + + + + Provide the information about the spitter forecolor property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Initializes a new instance of the class. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents the class to define the style for navigate buttons. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Gets the default values of instance. + + + + + Gets or sets the fore color of the arrow in normal state. + + + + + Gets or sets the fore color of the arrow in hover state. + + + + + Gets or sets the fore color of the arrow in pushed state. + + + + + Gets or sets the fore color of the arrow in disabled state. + + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Initializes a new instance of the class. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents the class to define the style for . + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value for the control. + + + + + Gets or sets the for the horizontal scrollbar of the scroll control. + + + + + Gets or sets the for the vertical scrollbar of the scroll control. + + + + + Gets or sets the value for styles. + + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines whether HorizontalScrollBar has been modified and its contents should be serialized at design-time. + + True if contents were changed; False otherwise. + + + + Determines whether VerticalScrollBar has been modified and its contents should be serialized at design-time. + + True if contents were changed; False otherwise. + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Maintains the GridControl for create the identity. + + + + + Initializes a new instance of the class. + + + instance to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents a class that provides style identity information for nested objects of the + class. + + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Represents the class to define the style for . + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Holds instance of a class. + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + Holds instance of a class + + + + Overridden to create a product-specific identity object for the sub object. + + + StyleInfoProperty descriptor for this sub object. + + + Identity for the sub object. + + + + + Gets the default style value for the control. + + + + + Gets or sets the for tabs. + + + + + Gets or sets the for tabs. + + + + + Gets or sets the back color of the tab bar. + + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Provides information about the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Maintains the GridControl for create the identity. + + + + + Initializes a new instance of the class. + + + instance to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Initializes a new instance of the class. + + + The that owns this sub-object. + + + The descriptor for this expandable + sub-object. + + + + + Represents the class to define the style for control. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + A that holds the identity for this . + The store. + + + + Gets the default style value of the class. + + Returns the default style value. + + + + Overridden to create a product-specific identity object for the sub object. + + StyleInfoProperty descriptor for this sub object. + Identity for the sub object. + + + + Gets the default values of instance. + + + + + Gets or sets the font style of the active tab. + + + + + Gets or sets the font style of the active tab. + + + + + Gets or sets the fore color of the DottedIcon. + + + + + Gets or sets the back color of the tab in normal state. + + + + + Gets or sets the back color of the tab in pushed state. + + + + + Gets or sets the border color of the tab. + + + + + Gets or sets the bottom line color of the active tab. + + + + + Gets or sets the seperator line color of the tabs. + + + + + Gets or sets the fore color of the tab in normal state. + + + + + Gets or sets the fore color of the tab in hover state. + + + + + Gets or sets the fore color of the tab in pushed state. + + + + + Gets or sets the back color of the AddTab button. + + + + + Gets or sets the back color of the tab in normal state. + + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Initializes a new instance of the class. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Constructor + + + + + + Gets the color of PushedTabBackColor + + + + + Gets the border color of PushedTab + + + + + Gets the HoverTabFore Color + + + + + Gets the PushedTabFore Color + + + + + Gets the AddTabButtonHoverColor + + + + + Gets the DottedIconColor + + + + + Override method to draw the TabPage border. + + The Graphics object. + + + + Override + + + + + + + + + + + + + + + + + + + Special graphics for text measuring. + + + + + Default tab font. + + + + + Indent from borders to the text. + + + + + + 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 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. + + + + + 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. + + + + + Gets / sets the view that is displayed in the form. + + + + + 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. + + + + + 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. + + + + + Occurs when the has changed. + + + + + Occurs when the has changed. + + + + + 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. + + + + + + + Returns the collection with items. + + + + + Gets / sets the active for this model. + + + + + Raises the event. + + Event data. + + + + Gets / sets the name for this workbook. + + + + + Raises the event. + + Event data. + + + + + + + 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(); + } + } + + + + + + Occurs when the view is activated. + + + + + Initializes a new for the specified . + + The which holds data to be displayed in this view. + + + + + + + + + + Returns the which holds data to be displayed in this view. + + + + + Creates the . + + The new . + + + + + + + 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 . + + + + + Occurs when the is changed. + + + + + Occurs when the is changed. + + + + + Occurs when the property is changed. + + + + + Occurs when the property is changed. + + + + + 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. + + + + + Gets / sets the name of this worksheet. + + + + + Raises the event. + + EventArgs.Empty. + + + + 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. + + + + + Occurs when the property is changed. + + EventArgs.Empty. + + + + 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. + + + + + Raises the event. + + + + + + Indicates whether this worksheet is visible in the parent workbook. + + + + + Raises the event. + + EventArgs.Empty. + + + + Returns the this sheet is associated with. + + + + + Represents a collection of objects. + + + + + Occurs when the order of sheets has been changed. + + + + + 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. + + + + Gets / sets the at the specified index. + + + + + 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. + + + + + Indicates whether was called. + + + + + Creates a new empty and names it "Sheet #". + + The this new sheet is added to. + The new . + + + + 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. + + + + + 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. + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + 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. + + + + + 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. + + + + + Allows to detect if object is disposed or not. True indicates object is disposed, + otherwise indicates object is still alive and ready for 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. + + + + 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. + + + + + 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. + + + + + 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. + + + + 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. + + + + + + Occurs to indicate the progress of an ongoing operation. + + + + + + + + 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. + + + + Gets / sets the delay in milliseconds before Progress events about an operation should be raised. + + + + + Raises the event. + + An that contains the event data. + + + + 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 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. + + + + + + + + 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. + + + + + A helper class that provides the options to paints window background based on the information. + + + + + Fills the interior of path based on the value. + + A context. + A context. + A value. + + + + Fills the interior of a path based on the information. + + A context. + A context. + A value. + + + + Fills the interior of a path based on the gradient style and color values. + + A context. + A context. + A value. + A array of the value. + + + + Fills the interior of a rectangle based on the information. + + A context. + A structure that represents the rectangle to fill. + object that determines the characteristics of the fill. + + + + Fills the interior of a rectangle based on the gradient style information. + + A context. + A structure that represents the rectangle to fill. + A value. + A used for the fore color of the gradient fill. + A used for the back color gradient fill. + + + + Fills the interior of a rectangle based on the gradient style information. + + A context + A structure that represents the rectangle to fill. + A value. + An array of used for the gradient fill. + + + + Fills the interior of a rectangle based on the pattern style and color values. + + A context + A structure that represents the rectangle to fill. + A information. + A used for the fore color of pattern fill. + A used for the back color of pattern fill. + + + + Fills the interior of a rectangle based on the color value. + + A context. + A structure that represents the rectangle to fill. + A value. + + + + Fills the interior of a region based on the information. + + A context. + A structure that represents the region to fill. + A object that determines the characteristics of the fill. + + + + Fills the interior of a region based on the gradient style. + + A context. + A structure that represents the region to fill. + A value. + An array of used for the gradient fill. + + + + Fills the interior of a region based on the information. + + A context. + A structure that represents the region to fill. + A value. + A used for the fore color of pattern fill. + A used for the back color of pattern fill. + + + + Fills the interior of a region based on the color value. + + A context. + A structure that represents the region to fill. + A value. + + + Fills a rectangle with gradient style based on the foreColors values. + A context. + A value. + A contains the colors details. + + + Fills a rectangle with gradient style based on the foreColors values. + A context. + A value. + A contains the colors details. + Boolean value indicates to draw in vertical or horizontal. + + + Fills the gradient style to rectangle based on the color values. + A context. + A value. + A contains the first color of gradient fill. + A contains the second color the gradient fill.> + + + Fills the gradient style to rectangle based on the color values. + A context. + A value. + A contains the first color of gradient fill. + A contains the second color the gradient fill.> + Boolean value indicates to draw in vertical or horizontal. + + + Draws a border based on the border style and border color information. + A context. + A value. + A context. + A context. + A context. + A context. + + + Draws a border based on the border style and border color. + A context. + A value. + A context. + A used for the border style. + A context. + A context. + A used for the 3-D border style. + + + + Draws the borders based on the specified styles information. + + A context. + A output rectangle. + A 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). + + + + Fills the interior of rectangle based on the information. + + A handle to the device context. + A context. + A context. + + + + Fills the interior of rectangle based on the information. + + A handle to the device context. + A context. + A context. + + + + Fills the gradient style to rectangle based on the color values. + + A handle to the device context. + Rectangle area. + Starting color of the gradient. + Ending color of the gradient. + + + + Fills the gradient style to rectangle based on the color values. + + A handle to the device context. + Rectangle area. + Starting color of the gradient. + Ending color of the gradient. + Boolean value indicates to draw in vertical or horizontal. + + + + Fills the region based on the color information. + + A handle to the device context. + A context. + A context. + + + + Fills the region based on the information. + + A handle to the device context. + A context. + A context. + + + + Fills the interior of a path based on the information. + + A handle to the device context. + A context. + A context. + + + + Fills the interior of a path based on the information. + + A handle to the device context. + A context. + A context. + + + + Draws the line based on the position values. + + A handle to the device context. + A context + Start X position + Start Y position + End X position + End Y position + + + + Draws the rectangle based on the information. + + A handle to the device context. + A context. + Rectangle area. + + + + Converts the ColorRef value into the RGB value. + + The integer value indicates the color value. + Returns the RGB value. + + + + Recalculates the rectangle based on the graphics matrix settings. + + A context. + A context. + Returns the transformed rectangle value. + + + + Converts the value to the value. + + A context. + Returns the value. + + + + Converts the color array to the value. + + A array of the color. + Returns the value. + + + Gets a new instance of the + based on the color values. + A value. + A contains the first color of gradient fill. + A contains the second color the gradient fill.> + Returns a class with the specified points and colors.Returns the value. + + + Returns a new instance of the + based on the color values. + A value. + A contains the first color of gradient fill. + A contains the second color the gradient fill.> + Returns a with the specified points and colors.Returns the value. + + + + Returns the Linear gradient brush value based on the path, gradient style and color collection values. + + The collection of colors used create a brush instance. + The rectangle area used to create a linear gradient brush. + The style of the gradient brush. + Returns the linear gradient brush. + + + + Returns the path gradient brush value based on the given path and color collection. + + The used to initialize the path gradient. + The color collection used to create a path gradient brush. + Returns the path gradient brush. + + + + Holds information on how to fill the background of a window or grid cell. + + + lets you specify a solid back color, gradient or pattern style with both + back and fore color. + + This information can be persisted with serialization. + + You can also convert the information to a string and recreate it from a string. + + is immutable (just like ). You cannot change its values. + Instead you have to create a new object. + + can also be persisted into code when used as a property in a component designer. + + + + + + The separator value. + + + + + The collection of separator values. + + + + + The empty brush value. + + + + + The of the . + + + + + The brush style information of the . + It contains the or + information of the . + + + + + The back color is the first entry in this list and the fore color is the last entry in the list. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class with the specified solid back color. + + A used as solid background. + + + + Initializes a new instance of the class with a solid back color and fore color. + + + The fore Color. + + + The back Color. + + + + + Initializes a new instance of the class with a hatch style and pattern colors. + + A . + A used for fore color of the pattern. + A used for back color the pattern. + + + + Initializes a new instance of the class with a hatch style and pattern colors. + + A value. + List of colors. + + + + Initializes a new instance of the class with a hatch style and pattern colors. + + A . + List of colors. + + + + Initializes a new instance of the class with a gradient style and gradient fill colors. + + A . + A used for fore color of the gradient fill. + A used for back color the gradient fill. + + + + Initializes a new instance of the class with a gradient style and gradient fill colors. + + A . + List of gradient fill colors. + + + + Initializes a new instance of the class with a hatch style and pattern colors. + + A . + List of colors. + + + + Initializes a new instance of the class with any BrushStyle. Internal only. + + + The style. + + + The style Info. + + + The fore Color. + + + The back Color. + + + + + Initializes a new instance of the class with a new alpha-blend value and copies other information from a given . + + + The alpha value that should be applied to the fore color and back color of the new brush. + + + A that holds information for this . + + + + + Initializes a new instance of the class and copies its information from a given . + + A that holds information for this . + + + + Initializes a new instance of the class. + + A serialization information. + A contains the information. + + + + Gets a empty . + + + + + Gets a value indicating whether a brush is an empty object. + + + + + Gets the back color. + + + + + Gets the fore color value. + + + + + Gets the colors list.The first entry in this list will be the same as the back color property, + the last entry will be same as the fore color property. + + A reference to the instance. + + + + Gets the pattern style. + + + + + Gets the gradient style. + + + + + Gets the brush style information (solid, gradient or pattern). + + + + + Creates a new object and initializes it from a string. + + A string in the format BrushStyle;Style;ForeColor;BackColor. + A new object. + + + + Clears the information. + + + + + Overloaded. Returns the string representation of the brush in the format BrushStyle;Style;ForeColor;BackColor. + + + The value. + + + + + 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 value. + + + + Creates a new object that is a copy of the current instance. + + A new object that is a copy of this instance. + + + + Clean up any resources being used. + + + + + Populates a with the data needed to serialize the target object. + + The to populate with data. + The destination for this serialization. + + + + Creates a new object that is a copy of this instance. + + The copy of this will be return. + + + + Serializes the contents of this object into an XML stream. + + Represents the XML stream. + + + + Not implemented and returns NULL. + + Returns a null. + + + + De-serialize the contents of this object from an XML stream. + + Represents the XML stream. + + + + Gets the style of the . + + Returns the information. + + + + Sets the style for the . + + A context. + Returns the value. + + + + Gets the back color value of the . + + Returns the color value. + + + + Sets the back color for . + + A value. + Returns the value. + + + + Gets the pattern style of the . + + Returns the pattern style. + + + + Sets the for . + + The value. + Returns the value. + + + + Gets the of . + + Returns the value. + + + + Sets the of . + + The value. + Returns the value. + + + + Gets the fore color value of the . + + Returns the color value. + + + + Sets the fore color value for . + + A value. + Returns the value. + + + + Initializes the gradient colors based on the foreColor and backColor values. + + A value contains the back color value. + A value contains the fore color value. + + + + Initializes the gradient colors based on the value. + + A context. + + + + Sets the description for the . + + The string value. + Returns the information. + + + + Represents a class that provides options to save list of objects. + + + + + Initializes a new instance of the class. + Overloaded. Creates a new instance of this class. + + + + + Initializes a new instance of the class with some colors. + + An array of color objects + + + + Initializes a new instance of the class 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. + + + + Gets or sets the color at the specified index. + + The index value. + Returns the color value. + + + + Overridden. See . + + The zero-based index at which the new elements should be inserted. + The whose elements should be inserted into the + . The collection itself cannot be null, but it can + contain elements that are null. + + + + Overridden. See . + + + + + Overridden. See . + + The zero-based index at which the new elements should be inserted. + The number of elements to remove.> + + + + Populates a with the data needed to serialize the target object. + + The to populate with data. + The destination for this serialization. + + + + Add the color value in collection. + + A value. + + + + Add the array of color values into the collection. + + A array of the objects. + + + + Populates a with the data needed to serialize the target object. + + The to populate with data. + The destination for this serialization. + + + + Provides a user interface that can edit most types of collections at design time. + + + + + Initializes a new instance of the class base on the specified collection type. + + The type of the collection for this editor to edit. + + + + Overridden. See . + + 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. + + + + Overridden. See . + + The collection to edit. + An array of objects to set as the collection items. + The newly created collection object or, otherwise, the collection indicated by the editValue parameter. + + + + Prevent deleting items when there are only 2 items (or less) in the collection. + + A value. + true if it is permissible to remove this value from the collection; otherwise, + false. The default implementation always returns true. + + + + Gets the items count in ListBox from the CollectionEditor. + + Returns the items count + + + + Provides a unified way of converting types of values to other types. + + + + + Overridden. See . + + An that provides a format context. + A . If null is passed, the current culture is assumed. + The to convert. + The to convert the value parameter to. + An that represents the converted value. + + + + Overridden. See . + + An that provides a format context. + A that represents the type you want to convert to. + true if this converter can perform the conversion; otherwise, false. + + + + Defines the constants that specify the various brush styles. + + + + + The is an empty object. + + + + + The represents a solid fill. + + + + + The represents a pattern fill. + + + + + The represents a gradient fill. + + + + + Defines the constants that specify various pattern styles. + + + + + A none value. + + + + + 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 cross-cross horizontal and vertical lines. + + + + + A pattern of cross-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 anti-aliased. + + + + + 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 anti-aliased. + + + + + 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 anti-aliased. + + + + + 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 anti-aliased. + + + + + 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 anti-aliased. + + + + + 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 anti-aliased. + + + + + 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 anti aliased. + + + + + Specifies a hatch that has the appearance of a checkerboard placed diagonally. + + + + + Defines the constants that specify various gradient styles. + + + + + A none value. + + + + + ForwardDiagonal Gradient. + + + + + BackwardDiagonal Gradient. + + + + + Horizontal Gradient. + + + + + Vertical Gradient. + + + + + PathRectangle Gradient. + + + + + PathEllipse Gradient. + + + + + Defines the constants that specify the gesture option for the control. + + + + + Does not allow to configure any touch gestures to control. + + + + + Allows the control to enable all gesture options. + + + + + Allows the control to enable the panning gesture. + + + + + Allows the control to enable the zooming gesture. + + + + + Allows the control to enable the rotate gesture. + + + + + Allows the control to enable the two finger tap gesture. + + + + + Allows the control to enable the press and tap gesture. + + + + + Defines the constants that specify touch panning option for control. + + + + + Does not allow the control to the perform any panning operations. + + + + + Allows the control to enable all panning options. + + + + + Allows the control to perform the panning operation in vertical direction. + + + + + Allows the control to perform the panning operation in horizontal direction. + + + + + Allows the control to perform the panning operation with gutter. + + + + + Allows the control to perform the panning operation with inertia. + + + + + Defines the constants that specify the shadow option to draw the image with shadow. + + + + + Does not allow to draw shadow for the image. + + + + + Allows to draw the shadow in all sides of the image. + + + + + Allows to draw the shadow at bottom and left sides of the image. + + + + + Allows to draw the shadow at top and right sides of the image. + + + + + Allows to draw the shadow at top and left sides of the image. + + + + + Allows to draw the shadow at bottom and right sides of the image. + + + + + Defines the constants that specifies the direction of the triangle. + + + + + A triangle pointing up. + + + + + A triangle pointing down. + + + + + A triangle pointing to the left. + + + + + A triangle pointing to the right. + + + + + Represents a class that provides support to get the current DPI value and calculate the values based on the current DPI values. + + + + + The which is used to calculate the DPI value. + + + + + Gets the used to calculate the DPI value of the device. + + + + + Gets the image file from given assembly based on the DPI scaling factor. + If the DPI scaling is greater than 175 then returns the high DPI image, otherwise returns the default image. + + The used to read the image file. + The string contains the folder path. + The string value represents the name of the image file. + The imageName must contains the extension like AddNewRowIcon.png or AddNewRowIcon.bmp + Returns the image file from specified folder path. + + + + Converts a logical DPI value to it's equivalent device unit DPI value. + + The logical value to convert. + Returns the equivalent device unit DPI value. + + + + Gets the current DPI value of the device. + + Returns the current DPI value of the device. + + + + Represents a class which contains resource manager that provides convenient access to culture-specific resources at run time. + + + + + The loader. + + + + + The resource manager. + + + + + Initializes a new instance of the class. + + + + + Sets the resource manager based on the assembly and namespace. + It can be used to get the values from the application resource files + when the assembly name and the namespace of the control or application is different. + + The control assembly. + The namespace of the control. + + + + Gets the localized string for the current culture. + + The string that need to be localized. + Returns the localized string. + + + + Gets the static object. + + Returns the value. + + + + Gets the localized ResourceManager. + + The assembly of the control. + The namespace of the control. + Returns the resource manager. + + + + Represents a class that provides the native methods. + + + + + The hook process delegates. + + The code + The window parameter. + The handle parameter. + Returns the pointer. + + + + The GetDC function retrieves a handle to a device context (DC) for the client area of a specified window or for the entire screen. + + A handle to the window whose DC is to be retrieved. If this value is NULL, GetDC retrieves the DC for the entire screen. + If the function succeeds, the return value is a handle to the DC for the specified window's client area. + If the function fails, the return value is NULL. + + + + Updates the position, size, shape, content, and translucency of a layered window. + + A handle to a layered window. A layered window is created by specifying WS_EX_LAYERED when creating the window with the CreateWindowEx function. + A handle to a DC for the screen. + A pointer to a structure that specifies the new screen position of the layered window. + Specifies the new size of the layered window. + A handle to a DC for the surface that defines the layered window. + A pointer to a structure that specifies the location of the layer in the device context. + A structure that specifies the color key to be used when composing the layered window. + A pointer to a structure that specifies the transparency value to be used when composing the layered window. + Use flag as the blend function + If the function succeeds, the return value is nonzero. Otherwise zero + + + + This function creates a rectangular region with rounded corners. + + Specifies the x-coordinate of the upper-left corner of the region in device units. + Specifies the y-coordinate of the upper-left corner of the region in device units. + Specifies the x-coordinate of the lower-right corner of the region in device units. + Specifies the y-coordinate of the lower-right corner of the region in device units. + Specifies the width of the ellipse used to create the rounded corners in device units. + Specifies the height of the ellipse used to create the rounded corners in device units. + If the function succeeds, the return value is the handle to the region. Otherwise return NULL + + + + Calls the next hook process. + + The hook. + The code. + The window handle parameter. + The handle parameter. + Returns the pointer. + + + + Sets the windows hook process. + + The hook id. + The process hook. + The pointer value. + The thread id + Returns the pointer value. + + + + The get window process id. + + The handle. + process id. + Returns the integer value. + + + + Unhook the window handle. + + The hook. + Returns the boolean value. + + + + Translate the message. + + The message. + Returns true if translate success. + + + + Dispatch message. + + The message. + Returns integer value. + + + + Peek the message. + + The message. + The handle. + The message minimum. + The maximum message. + The integer value. + Returns boolean value. + + + + Gets the parent of the given handle. + + The handle. + Returns the parent handle. + + + + The system parameter information. + + The action. + The parameter used to get the system information. + The current action parameter, + Window handle. + returns the integer value. + + + + Checks the focus. + + Returns the handle. + + + + Gets the current thread id. + + Returns the current thread id. + + + + Gets the extra information for the mouse event. + + The extra information provided by Windows API. + + + + Gets the system information. + + The index + Returns the index. + + + + Configures the messages that are sent from a window for Windows Touch gestures. + + A handle to the window to set the gesture configuration. + Its a reserved parameter, must be set to 0. + A count of the gesture configuration structures that are being passed. + An array of gesture configuration structures that specify the gesture configuration. + The size of the gesture configuration (GESTURECONFIG) structure. + Returns true if the configuration succeed, otherwise returns false. + + + + Configures the messages that are sent from a window for Windows Touch gestures. + + A handle to the window to set the gesture configuration. + Its a reserved parameter, must be set to 0. + A count of the gesture configuration structures that are being passed. + An array of gesture configuration structures that specify the gesture configuration. + The size of the gesture configuration (GESTURECONFIG) structure. + Returns true if the configuration succeed, otherwise returns false. + + + + Retrieves a GESTUREINFO structure given a handle to the gesture information. + + The Gesture information handle. + A pointer to the Gesture information structure. + If the function succeeds, the return value is nonzero. + + + + Moves the cursor to the specified screen coordinates. + If the new coordinates are not within the screen rectangle set by the most recent ClipCursor function call, the system automatically adjusts the coordinates so that the cursor stays within the rectangle. + + The new x-coordinate of the cursor, in screen coordinates. + The new y-coordinate of the cursor, in screen coordinates. + Returns nonzero if successful or zero otherwise. + + + + Changes the size, position, and Z order of a child, pop-up, or top-level window. These windows are ordered according to their appearance on the screen. The topmost window receives the highest rank and is the first window in the Z order. + + A Handle to the window. + A handle to the window to precede the positioned window in the Z order. + The new position of the left side of the window, in client coordinates. + The new position of the top of the window, in client coordinates. + The new width of the window, in pixels. + The new height of the window, in pixels. + The window sizing and positioning flags. + Returns the boolean value when position has set. + + + + The ScrollWindowEx function scrolls the contents of the specified window's client area. + + Handle to the window where the client area is to be scrolled. + Specifies the amount, in device units, of horizontal scrolling. This parameter must be a negative value to scroll to the left. + Specifies the amount, in device units, of vertical scrolling. This parameter must be a negative value to scroll up. + The portion of the client area to be scrolled. If this parameter is NULL, the entire client area is scrolled. + Contains the coordinates of the clipping rectangle. Only device bits within the clipping rectangle are affected. Bits scrolled from the outside of the rectangle to the inside are painted; bits scrolled from the inside of the rectangle to the outside are not painted. This parameter may be NULL. + Handle to the region that is modified to hold the region invalidated by scrolling. This parameter may be NULL. + Pointer to a RECT structure that receives the boundaries of the rectangle invalidated by scrolling. This parameter may be NULL. + Specifies flags that control scrolling. + Returns the boolean value. + + + + The SetScrollInfo function sets the parameters of a scroll bar, including the minimum and maximum scrolling positions, the page size, and the position of the scroll box (thumb). The function also redraws the scroll bar, if requested. + + Handle to a scroll bar control or a window with a standard scroll bar, depending on the value of the functionBar parameter. + Specifies the type of scroll bar for which to set parameters. This parameter can be one of the following values. + Pointer to a SCROLLINFO structure. Before calling SetScrollInfo, set the size member of the structure to sizeof(SCROLLINFO), set the fMask member to indicate the parameters to set, and specify the new parameter values in the appropriate members. + Specifies whether the scroll bar is redrawn to reflect the changes to the scroll bar. If this parameter is TRUE, the scroll bar is redrawn, otherwise, it is not redrawn. + The return value is the current position of the scroll box. + + + + The GetScrollInfo function retrieves the parameters of a scroll bar, including the minimum and maximum scrolling positions, the page size, and the position of the scroll box (thumb). + + Handle to a scroll bar control or a window with a standard scroll bar, depending on the value of the functionBar parameter. + Specifies the type of scroll bar for which to retrieve parameters. + Pointer to a SCROLLINFO structure. Before calling GetScrollInfo, set the size member to sizeof(SCROLLINFO), and set the fMask member to specify the scroll bar parameters to retrieve. Before returning, the function copies the specified parameters to the appropriate members of the structure. + If the function retrieved any values, the return value is nonzero otherwise the return zero. + + + + The GetScrollBarInfo function retrieves information about the specified scroll bar. + + Handle to a window associated with the scroll bar whose information is to be retrieved. If the idObject parameter is OBJID_CLIENT, hwnd is a handle to a scroll bar control. Otherwise, hwnd is a handle to a window created with WS_VSCROLL and/or WS_HSCROLL style. + Specifies the scroll bar object. This parameter can be one of the following values. + Pointer to a SCROLLBARINFO structure to receive the information. Before calling GetScrollBarInfo, set the cbSize member to sizeof(SCROLLBARINFO). + If the function succeeds, the return value is nonzero. + + + + The GetRegionData function fills the specified buffer with data describing a region. This data includes the dimensions of the rectangles that make up the region. + + A handle to the region. + The size, in bytes, of the lpRgnData buffer. + A pointer to a RGNDATA structure that receives the information. The dimensions of the region are in logical units. If this parameter is NULL, the return value contains the number of bytes needed for the region data. + If the function succeeds and dwCount specifies an adequate number of bytes, the return value is always dwCount. If dwCount is too small or the function fails, the return value is 0. If lpRgnData is NULL, the return value is the required number of bytes. + If the function fails, the return value is zero. + + + + Changes the parent window of the specified child window. + + A handle to the child window. + A handle to the new parent window. If this parameter is NULL, the desktop window becomes the new parent window. If this parameter is HWND_MESSAGE, the child window becomes a message-only window. + + If the function succeeds, the return value is a handle to the previous parent window. + If the function fails, the return value is NULL. To get extended error information, call GetLastError. + + + + + Retrieves a handle to a window that has the specified relationship (Z-Order or owner) to the specified window. + + A handle to a window. The window handle retrieved is relative to this window, based on the value of the uCmd parameter. + The relationship between the specified window and the window whose handle is to be retrieved. This parameter can be one of the following values. + + If the function succeeds, the return value is a window handle. If no window exists with the specified relationship to the specified window, the return value is NULL. To get extended error information, call GetLastError. + + + + + Retrieves information about the specified window. The function also retrieves the 32-bit (DWORD) value at the specified offset into the extra window memory. + + A handle to the window and, indirectly, the class to which the window belongs. + The zero-based offset to the value to be retrieved. Valid values are in the range zero through the number of bytes of extra window memory, minus four; + + If the function fails, the return value is zero. To get extended error information, call GetLastError. + + + + + Retrieves the dimensions of the bounding rectangle of the specified window. The dimensions are given in screen coordinates that are relative to the upper-left corner of the screen. + + A handle to the window. + A pointer to a RECT structure that receives the screen coordinates of the upper-left and lower-right corners of the window. + If the function succeeds, the return value is nonzero, otherwise return zero. + + + + Draws formatted text in the specified rectangle. + + A handle to the device context. + A pointer to the string that specifies the text to be drawn. If the nCount parameter is -1, the string must be null-terminated. + The length, in characters, of the string. If count is -1, then the textString parameter is assumed to be a pointer to a null-terminated string and DrawText computes the character count automatically. + A pointer to a RECT structure that contains the rectangle (in logical coordinates) in which the text is to be formatted. + The method of formatting the text. + If the function succeeds, the return value is the height of the text in logical units, else return zero. + + + + This function fills a rectangle by using the specified brush. This function includes the left and top borders, but excludes the right and bottom borders of the rectangle. + + A handle to the device context. + A pointer to a RECT structure that contains the logical coordinates of the rectangle to be filled. + A handle to the brush used to fill the rectangle. + If the function succeeds, the return value is nonzero else return zero. + + + + The DeleteObject function 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. + + A handle to a logical pen, brush, font, bitmap, region, or palette. + If the function succeeds, the return value is nonzero, else return zero. + + + + The SelectObject function selects an object into the specified device context (DC). The new object replaces the previous object of the same type. + + A handle to the DC. + A 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. If the selected object is a region and the function succeeds, the return value is one of the following values. + + + + This method used to fill the gradient. + + A handle to the Device Context. + The array of objects. + The index of the vertex to be selected. + The array of objects. + The index of the object array to be selected. + The Gradient fill mode. + If the function fails, the return value is zero else return non zero value. + + + + The CreatePen function creates a logical pen that has the specified style, width, and color. The pen can subsequently be selected into a device context and used to draw lines and curves. + + The pen style. + The width of the pen, in logical units. If nWidth is zero, the pen is a single pixel wide, regardless of the current transformation. + A color reference for the pen color. + If the function succeeds, the return value is a handle that identifies a logical pen. If the function fails, the return value is NULL. + + + + This function fills a region by using the specified brush. + + A handle to the Device Context. + Handle to the region to be filled. The region's coordinates are presumed to be in logical units. + Handle to the brush to be used to fill the region. + If the function fails, the return value is zero else return non zero value. + + + + This function updates the current position to the specified point and optionally returns the previous position. + + A handle to the Device Context. + The x-coordinate of the upper-left corner of the rectangle. + The y-coordinate of the upper-left corner of the rectangle. + Pointer to a POINT structure that receives the previous current position. If this parameter is a NULL pointer, the previous position is not returned. + If the function fails, the return value is zero else return non zero value. + + + + This function draws a line from the current position up to, but not including, the specified point. + + A handle to the Device Context. + The x-coordinate of the upper-left corner of the rectangle. + The y-coordinate of the upper-left corner of the rectangle. + If the function fails, the return value is zero else return non zero value. + + + + This function creates a logical brush that has the specified style, color, and pattern. + + A pointer to a LOGBRUSH structure that contains information about the brush. + If the function succeeds, the return value identifies a logical brush. + If the function fails, the return value is NULL. + + + + This function creates a logical brush that has the specified solid color. + + The color of the brush. + If the function succeeds, the return value identifies a logical brush. If the function fails, the return value is NULL. + + + + This method used to draws the rectangle. + + A handle to the Device Context. + The left position of rectangle. + The top position of rectangle. + The right position of rectangle. + The bottom position of rectangle. + If the function succeeds, the return value is nonzero, else return zero. + + + + Creates a new image (icon, cursor, or bitmap) and copies the attributes of the specified image to the new one. + If necessary, the function stretches the bits to fit the desired size of the new image. + + A handle to the image to be copied. + The type of image to be copied. This parameter can be one of the following values. + The desired width, in pixels, of the image. If this is zero, then the returned image will have the same width as the original hImage. + The desired height, in pixels, of the image. If this is zero, then the returned image will have the same height as the original hImage. + This parameter can be one or more of the following values. + If the function succeeds, the return value is the handle to the newly created image. + If the function fails, the return value is NULL. + + + + This function displays an image and applies a visual effect to indicate a state, such as a disabled or default state. + + A handle to the device context to draw in. + A handle to the brush used to draw the image, if the state specified by the fuFlags parameter is DSS_MONO. This parameter is ignored for other states. + A pointer to an application-defined callback function used to render the image. This parameter is required if the image type in fuFlags is DST_COMPLEX. It is optional and can be NULL if the image type is DST_TEXT. + For all other image types, this parameter is ignored. + Information about the image. The meaning of this parameter depends on the image type. + The Information about the image. The meaning of this parameter depends on the image type. + The horizontal location, in device units, at which to draw the image. + The vertical location, in device units, at which to draw the image. + The width of the image, in device units. + The height of the image, in device units. + The image type and state. This parameter can be one of the following type values. + If the function fails, the return value is zero else return non zero value. + + + + Destroys an icon and frees any memory the icon occupied. + + A handle to the icon to be destroyed. The icon must not be in use. + If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. + + + + This function retrieves the dimensions of the tightest bounding rectangle that can be drawn around the current visible area on the device. + + A handle to the Device Context. + A pointer to a RECT structure that is to receive the rectangle dimensions, in logical units. + If the function succeeds, the return value specifies the clipping box's complexity and can be one of the following values. + + + + This function creates a new clipping region from the intersection of the current clipping region and the specified rectangle. + + A handle to the Device Context. + The x-coordinate, in logical units, of the upper-left corner of the rectangle. + The y-coordinate, in logical units, of the upper-left corner of the rectangle. + The x-coordinate, in logical units, of the lower-right corner of the rectangle. + The y-coordinate, in logical units, of the lower-right corner of the rectangle. + The return value specifies the new clipping region's type and can be one of the following values. + + + + Draws an image list item in the specified device context. + The function uses the specified drawing style and blends the image with the specified color. + + A handle to the image list + The index of the image to draw. + A handle to the destination device context. + The x-coordinate at which to draw within the specified device context. + The y-coordinate at which to draw within the specified device context. + The width of the portion of the image to draw relative to the upper-left corner of the image. + If width and height parameters are zero, the function draws the entire image. + The function does not ensure that the parameters are valid. + The height of the portion of the image to draw, relative to the upper-left corner of the image. + If width and height parameters are zero, the function draws the entire image. + The function does not ensure that the parameters are valid. + The background color of the image. + The foreground color of the image. + The drawing style and, optionally, the overlay image. + If the function fails, the return value is zero else return non zero value. + + + + This function selects a region as the current clipping region for the specified device context. + + A handle to the device context. + A handle to the region to be selected. + The return value specifies the region's complexity and can be one of the following values. + + + + This function creates a memory device context (DC) compatible with the specified device. + + A handle to an existing DC. If this handle is NULL, the function creates a memory DC compatible with the application's current screen. + If the function succeeds, the return value is the handle to a memory DC. If the function fails, the return value is NULL. + + + + This function retrieves the device context (DC) for the entire window, including title bar, menus, and scroll bars. + A window device context permits painting anywhere in a window, + because the origin of the device context is the upper-left corner of the window instead of the client area. + + A handle to the window with a device context that is to be retrieved. + If the function succeeds, the return value is a handle to a device context for the specified window. + If the function fails, the return value is NULL, indicating an error or an invalid windows handle parameter. + + + + Sends the specified message to a window or windows. + The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message. + + A handle to the window whose window procedure will receive the message. + The message to be sent. + Additional message-specific information. + A Additional message-specific information. + The return value specifies the result of the message processing; it depends on the message sent. + + + + Sends the specified message to a window or windows. + The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message. + + A handle to the window whose window procedure will receive the message. + The message to be sent. + Additional message-specific information. + A Additional message-specific information. + The return value specifies the result of the message processing; it depends on the message sent. + + + + Sends the specified message to a window or windows. + The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message. + + A handle to the window whose window procedure will receive the message. + The message to be sent. + Additional message-specific information. + A Additional message-specific information. + The return value specifies the result of the message processing; it depends on the message sent. + + + + This function creates a bitmap compatible with the device that is associated with the specified device context. + + A handle to a device context. + The bitmap width, in pixels. + The bitmap height, in pixels. + If the function succeeds, the return value is a handle to the compatible bitmap (DDB). + If the function fails, the return value is NULL. + + + + Places (posts) a message in the message queue associated with the thread that created + the specified window and returns without waiting for the thread to process the message. + + A handle to the window whose window procedure is to receive the message. + The message to be posted. + Additional message-specific information. + A Additional message-specific information. + If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. + + + + This function sets the text color for the specified device context to the specified color. + + A handle to the device context. + 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. + If the function fails, the return value is CLR_INVALID. + + + + This function sets the fore color for the specified device context to the specified color. + + A handle to the device context. + The background mode. + If the function succeeds, the return value specifies the previous background mode. + If the function fails, the return value is zero. + + + + Loads the specified module into the address space of the calling process. + The specified module may cause other modules to be loaded. + + The name of the module. + This can be either a library module or an executable module (an .exe file). + If the function succeeds, the return value is a handle to the module. + If the function fails, the return value is NULL. + + + + This function disables or enables drawing in the specified window. Only one window can be locked at a time. + + The window in which drawing will be disabled. If this parameter is NULL, drawing in the locked window is enabled. + + If the function succeeds, the return value is nonzero. + If the function fails, the return value is zero, indicating that an error occurred or another window was already locked. + + + + + This function posts messages when the mouse pointer leaves a window or hovers over a window for a specified amount of time. + + A pointer to a TRACKMOUSEEVENT structure that contains tracking information. + Returns zero if the function fails. Otherwise return non zero value + + + + This function creates a new clipping region that consists of the existing clipping region minus the specified rectangle. + + A handle to the device context. + The x-coordinate, in logical units, of the upper-left corner of the rectangle. + The y-coordinate, in logical units, of the upper-left corner of the rectangle. + The x-coordinate, in logical units, of the lower-right corner of the rectangle. + The y-coordinate, in logical units, of the lower-right corner of the rectangle. + The return value specifies the new clipping region's complexity + + + + This method performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source device context into a destination device context. + + A handle to the destination device context. + The x-coordinate, in logical units, of the upper-left corner of the destination rectangle. + The y-coordinate, in logical units, of the upper-left corner of the destination rectangle. + The width, in logical units, of the source and destination rectangles. + The height, in logical units, of the source and the destination rectangles. + A handle to the source device context. + The x-coordinate, in logical units, of the upper-left corner of the source rectangle. + The y-coordinate, in logical units, of the upper-left corner of the source rectangle. + A raster-operation code. These codes define how the color data for the source rectangle is to be combined with the color data for the destination rectangle to achieve the final color. + If the function succeeds the return value is nonzero, otherwise zero + + + + This function creates a rectangular region. + + Specifies the x-coordinate of the upper-left corner of the region. + Specifies the y-coordinate of the upper-left corner of the region. + Specifies the x-coordinate of the lower-right corner of the region. + Specifies the y-coordinate of the lower-right corner of the region. + If the function succeeds, the return value is the handle to the region. + If the function fails, the return value is NULL. + + + + This method determines the area within the window where the system permits drawing. + + A handle to the window whose window region is to be set. + A handle to a region.The function sets the window region of the window to this region. + Specifies whether the system redraws the window after setting the window region. + + If the function succeeds, the return value is the handle to the region. + If the function fails, the return value is NULL. + + + + + The DeleteDC function deletes the specified device context (DC). + + A handle to the device context. + + If the function succeeds, the return value is nonzero. + If the function fails, the return value is zero. + + + + + The RedrawWindow function updates the specified rectangle or region in a window's client area. + + A handle to the window to be redrawn. If this parameter is NULL, the desktop window is updated. + A pointer to a RECT structure containing the coordinates, in device units, of the update rectangle. This parameter is ignored if the region Update parameter identifies a region. + A handle to the update region. If both the region Update and Update parameters are NULL, the entire client area is added to the update region. + One or more redraw flags. This parameter can be used to invalidate or validate a window, control repainting, and control which windows are affected by RedrawWindow. + + If the function succeeds, the return value is nonzero. + If the function fails, the return value is zero. + + + + + The Offset Region function moves a region by the specified offsets. + + Handle to the region to be moved. + Specifies the number of logical units to move left or right. + Specifies the number of logical units to move up or down. + + The return value specifies the new region's complexity. + + + + + The Combine region function combines two regions and stores the result in a third region. The two regions are combined according to the specified mode. + + A handle to a new region with dimensions defined by combining two other regions. + A handle to the first of two regions to be combined. + A handle to the second of two regions to be combined. + A mode indicating how the two regions will be combined. + The return value specifies the type of the resulting region. + + + + Calculates the required size of the window rectangle. + + A pointer to a RECT structure that contains the coordinates of the top-left and bottom-right corners of the desired client area. + The window style of the window whose required size is to be calculated. + Indicates whether the window has a menu. + The extended window style of the window whose required size is to be calculated. + If the function succeeds, the return value is nonzero. + + + + Sets the value of Desktop Window Manager (DWM) non-client rendering attributes for a window. + + The handle to the window for which the attribute value is to be set. + A flag describing which value to set, specified as a value of the DWMWINDOWATTRIBUTE enumeration. + This parameter specifies which attribute to set, and the pvAttribute parameter points to an object containing the attribute value. + A pointer to an object containing the attribute value to set. The type of the value set depends on the value of the dwAttribute parameter. + The DWMWINDOWATTRIBUTE enumeration topic indicates, in the row for each flag, what type of value you should pass a pointer to in the pvAttribute parameter. + The size, in bytes, of the attribute value being set via the pvAttribute parameter. + The type of the value set, and therefore its size in bytes, depends on the value of the dwAttribute parameter. + If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error + + + + The BLENDFUNCTION structure controls blending by specifying the blending functions for source and destination bitmaps. + + + + + The source blend operation. + + + + + Must be zero. + + + + + Specifies an alpha transparency value to be used on the entire source bitmap. + The SourceConstantAlpha value is combined with any per-pixel alpha values in the source bitmap. + If you set SourceConstantAlpha to 0, it is assumed that your image is transparent. + Set the SourceConstantAlpha value to 255 (opaque) when you only want to use per-pixel alpha values. + + + + + This member controls the way the source and destination bitmaps are interpreted. + + + + + Used by the TrackMouseEvent function to track when the mouse pointer leaves a window + or hovers over a window for a specified amount of time. + + + + + The size of the TRACKMOUSEEVENT structure, in bytes. + + + + + The services requested. + + + + + A handle to the window to track. + + + + + The hover time-out (if TME_HOVER was specified in dwFlags), in milliseconds. + Can be HOVER_DEFAULT, which means to use the system default hover time-out. + + + + + The Message. + + + + + The handle. + + + + + The message. + + + + + The window parameter. + + + + + The handle parameter + + + + + The time. + + + + + The x position. + + + + + The y position + + + + + Contains information about the size and position of a window. + + + + + A handle to the window. + + + + + he position of the window in Z order (front-to-back position). + + + + + The position of the left edge of the window. + + + + + The position of the top edge of the window. + + + + + The window width, in pixels. + + + + + The window height, in pixels. + + + + + The window position. + + + + + Flags used by the DwmSetWindowAttribute function to specify the rounded corner preference for a window. + + + + + Options used by the DwmGetWindowAttribute and DwmSetWindowAttribute functions. + + + + + This function is an application-defined callback function that renders a complex image for the DrawState function. + + A handle to the Device Context. + Specifies information about the image, which the application passed to DrawState. + This specifies information about the image, which the application passed to DrawState. + The image width, in device units, as specified by the call to DrawState. + The image height, in device units, as specified by the call to DrawState. + If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE. + + + + Represents a class that provides the native methods for Painting. + + + + + Defines the constants that specify the type of inner and outer edges to draw. + + + + + Raised outer edge. + + + + + Sunken outer edge. + + + + + Raised inner edge. + + + + + Sunken inner edge. + + + + + Combination of BDR_RAISEDOUTER and BDR_SUNKENINNER + + + + + Combination of BDR_SUNKENOUTER and BDR_RAISEDINNER + + + + + Combination of BDR_RAISEDOUTER and BDR_RAISEDINNER. + + + + + Combination of BDR_SUNKENOUTER and BDR_SUNKENINNER. + + + + + Defines the constants that specify the type of border. + + + + + Left side of border rectangle. + + + + + Top of border rectangle. + + + + + Right side of border rectangle. + + + + + Bottom of border rectangle. + + + + + Entire border rectangle. + + + + + If this flag is passed, shrink the rectangle pointed to by the QRC parameter to exclude the edges that were drawn. + If this flag is not passed, then do not change the rectangle pointed to by the QRC parameter. + + + + + Flat border. + + + + + Interior of rectangle to be filled. + + + + + Defines the constants that specify the types of fill options for gradient style. + + + + + In this mode, two endpoints describe a rectangle. The rectangle is defined to have a constant color (specified by the TRIVERTEX structure) for the left and right edges. + GDI interpolates the color from the left to right edge and fills the interior. + + + + + In this mode, two endpoints describe a rectangle. The rectangle is defined to have a constant color (specified by the TRIVERTEX structure) for the top and bottom edges. + GDI interpolates the color from the top to bottom edge and fills the interior. + + + + + In this mode, an array of TRIVERTEX structures is passed to GDI along with a list of array indexes that describe separate triangles. + GDI performs linear interpolation between triangle vertices and fills the interior. Drawing is done directly in 24- and 32-bpp modes. + Dithering is performed in 16-, 8-, 4-, and 1-bpp mode. + + + + + Optional flag. + + + + + Defines the constants that specify the mouse handle types. + + + + + The journal record. + + + + + The journal play back. + + + + + The keyboard. + + + + + The get message. + + + + + The call window process. + + + + + The option + + + + + System message filter. + + + + + The mouse. + + + + + Hardware mode. + + + + + Debug mode. + + + + + The shell mode. + + + + + The fore ground idle mode. + + + + + Call window process. + + + + + Keyboard operations. + + + + + Mouse operations + + + + + Contains the information about the application and used to paint the client area of the window owned by that application. + + + + + Indicates whether the background must be erased. + This value is nonzero if the application should erase the background. + The application is responsible for erasing the background if a window class is created without a background brush. + + + + Left region of the rectangle. + + + Top region of the rectangle. + + + Right region of the rectangle. + + + Bottom region of the rectangle. + + + + Reserved; used internally by the system. + + + + + Reserved; used internally by the system. + + + + reserved value. + + + reserved value. + + + reserved value. + + + reserved value. + + + reserved value. + + + reserved value. + + + reserved value. + + + reserved value. + + + + A handle to the display DC to be used for painting. + + + + + Defines the coordinates of the upper-left and lower-right corners of a rectangle. + + + + + The left coordinate of the rectangle. + + + + + The top coordinate of the rectangle. + + + + + The right coordinate of the rectangle. + + + + + The bottom location of the rectangle. + + + + + Initializes a new instance of the struct. + + The Rectangle that need to convert to the RECT. + + + + Initializes a new instance of the struct. + + The x-coordinate of the upper-left corner of the rectangle. + The y-coordinate of the upper-left corner of the rectangle. + The x-coordinate of the lower-right corner of the rectangle. + The y-coordinate of the lower-right corner of the rectangle. + + + + Gets the width of the RECT. + + + + + Gets the Height of the RECT. + + + + + Convert the RECT to System.Drawing.Rectangle structure. + + The RECT region of the control. + Returns the rectangle. + + + + Return the co-ordinates of the rectangle in a string format. + + The string value of the rectangle region. + + + + Returns the RECT from the given values. + + The x-coordinate of the upper-left corner of the rectangle. + The y-coordinate of the upper-left corner of the rectangle. + The width of the rectangle. + The height of the rectangle. + Returns the new RECT value based on the given values. + + + + Provides the color information and position information. + + + + + The x-coordinate, in logical units, of the upper-left corner of the rectangle. + + + + + The y-coordinate, in logical units, of the upper-left corner of the rectangle. + + + + + The color information at the point of x, y. + + + + + The color information at the point of x, y. + + + + + The color information at the point of x, y. + + + + + The color information at the point of x, y. + + + + + Initializes a new instance of the struct. + + The X position. + The Y position. + The red color value. + The green color value. + The blue color value. + The alpha color value. + + + + Specifies the index of two vertices in the pVertex array in the GradientFill function. + These two vertices form the upper-left and lower-right boundaries of a rectangle. + + + + + The upper-left corner of a rectangle. + + + + + The lower-left corner of a rectangle. + + + + + Initializes a new instance of the struct. + + The top left position. + The bottom right position. + + + + Defines the style, color, and pattern of a physical brush. It is used by the CreateBrushIndirect and ExtCreatePen functions. + + + + + Specifies the brush style. + + + + + Specifies the color in which the brush is to be drawn. If LogBrushStyle is the BS_HOLLOW or BS_PATTERN style, + LogBrushColor is ignored. If LogBrushStyle is BS_DIBPATTERN or BS_DIBPATTERNBT, the low-order word of LogBrushColor specifies + whether the colors members of the BITMAPINFO structure contain explicit red, green, blue (RGB) + values or indices into the currently realized logical palette. + + + + + Specifies a hatch style. The meaning depends on the brush style defined by log brush Style. + + + + + Selects a red, green, blue (RGB) color based on the arguments supplied and the color capabilities of the output device. + + + + + The reserved fields. + + + + + The reserved fields. + + + + + The reserved fields. + + + + + The reserved fields. + + + + + Initializes a new instance of the struct. + + The color value. + + + + Convert the RGB color value to integer value. + + Returns the converted value. + + + + Information that a rich edit control uses to format its output for a particular device. + + + + + A HDC for the device to render to, if EM_FORMATRANGE is being used to send the output to a device. + + + + + An HDC for the target device to format for. + + + + + The area within the page rectangle to render to. + + + + + The entire area of a page on the rendering device. + + + + + The range of characters to format. + + + + + Specifies a range of characters in a rich edit control. + + + + + Character position index immediately preceding the first character in the range. + + + + + Character position immediately following the last character in the range. + + + + + Represents a mouse hook structure. + + + + + The X point + + + + + The y point + + + + + The pointer contains the window handle. + + + + + The hit test code. + + + + + The extra information. + + + + + The mouse hook structure. + + + + + The X position. + + + + + The Y position. + + + + + The mouse data. + + + + + The flags. + + + + + The time + + + + + The extra information. + + + + + Represents a class that provides the native methods for scrolling. + + + + + Defines the constant that used to specifies the scrollbar parameters. + + + + + The range of the scrollbar. + + + + + Page information. + + + + + Scroll position. + + + + + Returns or sets a value that determines whether scroll bars in the RichTextBox control are disabled. + + + + + Returns the position of the scrollbar thumb. + + + + + Specifies all the scrollbar information. + + + + + Defines the constants that used to specify the state of objects in an application UI. + + + + + 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. + + + + + Contains the information about the scroll bar component. + + + + + Specifies the size of the structure. + + + + + Coordinates of the scroll bar as specified in a RECT structure. + + + + + Height or width of the thumb. + + + + + Top/Left position of the thumb. + + + + + Indicates the bottom/right position of the thumb. + + + + + Reserved variable. + + + + + An array of DWORD elements. Each element indicates the state of a scroll bar component. + + + + + Contains the information about the scrollbar parameters that are set by using SetScrollInfo method. + + + + + The size of the scroll info. + + + + + The mask value of the scroll info. + + + + + Specifies the minimum scrolling position. + + + + + Specifies the maximum scrolling position. + + + + + The nPage member contains the page size for a proportional scroll bar. + + + + + This contains the scroll box position, which is not updated while the user drags the scroll box. + + + + + This contains the current position of the scroll box while the user is dragging it. + + + + + Gets the rectangle region for the given offset. + + + + + Cracks the region. + + The pointer to the region. + Returns the RECT array. + + + + Gets the rectangle region. + + The buffer. + The header value. + The count. + Returns the RECT array. + + + + Converts the value to integer. + + The byte array. + The offset value. + Returns the integer value. + + + + Represents a class that provides native methods for Touch support. + + + + + Stores the information about the gesture. + + + + + The size of the structure, in bytes. The caller must set this to sizeof(GESTUREINFO). + + + + + The state of the gesture. + + + + + The identifier of the gesture command. + + + + + handle to window targeted by this gesture. + + + + + Current location of this gesture. These coordinates are always relative to the origin of the screen. + + + + + Internally used identifier for structure. + + + + + Internally used identifier for sequence. + + + + + Arguments for gestures whose arguments fit in 8 BYTES. + + + + + The size, in bytes, of extra arguments that accompany this gesture. + + + + + Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane. + + + + + Gets or sets the x-coordinate of this Point. + + + + + Gets or sets the Y-coordinate value of this Point. + + + + + Converts the x and y coordinate values to the point. + + Returns the point value. + + + + Gets and sets the configuration for enabling gesture messages and the type of this configuration. + + + + + The identifier for the type of configuration that will have messages enabled or disabled. + + + + + Settings related to gesture ID that are to be turned on. + + + + + Settings related to gesture ID that are to be turned off. + + + + + Gets and sets the gesture notification information for enable the gesture. + + + + + The size of the structure. + + + + + Reserved for future use. + + + + + The target window for the gesture notification. + + + + + The location of the gesture in physical screen coordinates. + + + + + A specific gesture instance with gesture messages starting with GID_BEGIN and ending with GID_END. + + + + + Represents a class that provides the options to paint the text and rotated text. + + + + + The flag which is used for drawing the text using the native methods. + + + + + The instance of used to draw the rich text content. + + + + + Draws the text in the specified rectangle based on the value. + + A handle to the device context. + String to measure. + that defines the text format of the string. + that specifies the maximum layout area for the text. + True - we use RTL, otherwise normal drawing. + + + + Draws the text in the specified rectangle based on the and + values. + + A handle to the device context. + String to measure. + that defines the text format of the string. + that specifies the maximum layout area for the text. + The text color. + True - we use RTL, otherwise normal drawing. + + + + Measures the string bounds based on the angle information. + + The actual string size value. + The angle value. + Returns the measured rotated string size value. + + + + Measures the string bounds based on the angle information. + + The graphics. + The string value used to measure the size. + The font value used to calculate the string bounds. + The width value. + A context. + The rotation angle. + Returns the measured string size based on the angle. + + + + Draws the text based on the rotation angle information. + + The graphics. + The String value used to measure the size. + The Font value used to calculate the string bounds. + The Brush information used to draw the string. + The Rectangle value used to draw the rotated string. + A context. + The rotation angle. + + + + Draws the text based on the rotation angle information. + + The graphics. + The string value used to measure the size. + The font value used to calculate the string bounds. + The brush information used to draw the string. + The rectangle value used to draw the rotated string. + A context. + The rotation angle. + + + + Calculates the size of the rich text box based on the font and text values. + + The string value contains rich text. + The preferred size used to draw the rich text. + The value. + A boolean value indicates rich text allows wrap text or not. + A value indicates the right to left mode. + Returns the size of the rich text box. + + + + Draws the rich text on the given graphics based on the text, font, fore color and wrap text mode. + + The graphics context. + The string value contains the rich text content. + The rectangle value used to draw the rich text. + + + + Draws the rich text on the given graphics based on the text, font, fore color and wrap text mode. + + The graphics context. + The string value contains the rich text content. + The rectangle value used to draw the rich text. + The font value used to draw the rich text. + The fore color value used to draw the rich text. + A boolean value indicates rich text allows wrap text or not. + A value indicates the right to left mode. + + + + Calculates the outside rectangle value based on the angle information. + + The actual rectangle value. + The angle value. + Returns the calculated outside rectangle value. + + + + Calculates the center of the rectangle value based on the size information. + + The actual rectangle value. + The size value. + Returns the rectangle value. + + + + Calculates the outside rectangle based on angle value. + + The actual rectangle value. + The angle value. + Returns the calculated outside rectangle value. + + + + Occurs content within the RichTextBox are resized. + + The source of the event. + A that contains the event data. + + + + Returns the rotated point value based on the angle information. + + The Point value. + The angle value. + Returns the calculated point value. + + + + Returns the rotated point value based on the angle and origin point values. + + The point which used to calculate. + The angle. + The origin point. + Returns the calculated point value. + + + + Returns the rotated points for creating the rectangle based on the angle information. + + The actual rectangle value. + The angle which used for calculate. + Returns the array of points. + + + + Returns the rotated points for creating the rectangle based on the angle and origin point values. + + The actual rectangle value. + The angle. + The origin point. + Returns the array point values. + + + + Represents a class that provide options to draw the rich text on the . + + + + + The constant value. + + + + + The constant value for format range. + + + + + The constant value for the transparent range. + + + + + Gets the required creation parameters when the control handle is created. + + + + + Draws the rich text box to the given device context. + + The device context. + The rectangle area to draw the rich text box. + + + + Represents a class that provides the list of window messages that are used in window process callback function. + + + + + One of the fields in GESTUREINFO structure is type of (8 bytes). + The relevant gesture information is stored in lower 4 bytes. This + bit mask is used to get 4 lower bytes from this argument. + + + + + Provides the chance for configure the gestures. + + Handling the WM_GESTURENOTIFY message will change the gesture configuration for the lifetime of the Window, not just for the next gesture. + + + + + + Passes the information about the gesture. + + + + + Indicates all the gestures. + + + + + Indicates generic gesture is begin. + + + + + Indicates generic gesture is end. + + + + + Indicates zoom start, zoom move, or zoom stop. + The first GID_ZOOM command message begins a zoom but does not cause any zooming. + The second GID_ZOOM command triggers a zoom relative to the state contained in the first GID_ZOOM. + + + + + Indicates pan move or pan start. + + + + + Indicates rotate move or rotate start. + + + + + Indicates the two finger tap gesture. + + + + + Indicates the press and tap gesture. + + + + + A gesture is starting. + + + + + Set the gesture is triggered inertia. + + + + + A gesture is finished. + + + + + Indicates all pan gesture. + + + + + Indicates the vertical panning with single finger. + + + + + Indicates the horizontal panning with single finger. + + + + + Limits perpendicular movement to primary direction until a threshold is reached to break out of the gutter. + + + + + Indicates panning with inertia to smoothly slow when pan gestures stop. + + + + + Indicates the window request for the paint. + + + + + Sent to the clipboard owner by a clipboard viewer window when the clipboard contains data in the CF_OWNERDISPLAY format and the clipboard viewer's client area needs repainting. + + + + + The WM_PAINTICON message is sent to a minimized window when the icon is to be painted but only if the application is written for Windows 3.x. + A window receives this message only if a class icon is defined for the window; otherwise, WM_PAINT is sent instead. + + + + + Indicates that the frame must need a paint. + + + + + Indicates the window requests to the redrawn. + + + + + Indicates the invalidate. + + + + + Causes a WM_PAINT message to be posted to the window regardless of whether the window contains an invalid region. + + + + + Causes the window to receive a WM_ERASEBKGND message when the window is repainted. The RDW_INVALIDATE flag must also be specified; otherwise RDW_ERASE has no effect. + + + + + Occurs while validating the entire window. This flag does not affect internal WM_PAINT messages. + + + + + Suppresses any pending internal WM_PAINT messages. This flag does not affect WM_PAINT messages resulting from invalid areas. + + + + + Suppress the pending WM_ERASEBKGND messages. + + + + + Excludes child windows, if any, from the repainting operation + + + + + Includes the child windows in the repainting operation. + + + + + Causes the affected windows (as specified by the RDW_ALLCHILDREN and RDW_NOCHILDREN flags) to receive WM_NCPAINT, WM_ERASEBKGND, and WM_PAINT messages, if necessary, before the function returns. + + + + + Causes the affected windows (as specified by the RDW_ALLCHILDREN and RDW_NOCHILDREN flags) to receive WM_NCPAINT and WM_ERASEBKGND messages, if necessary, before the function returns. + WM_PAINT messages are received at the ordinary time. + + + + + Causes any part of the non-client area of the window that intersects the update region to receive a WM_NCPAINT message. + The RDW_INVALIDATE flag must also be specified; otherwise, RDW_FRAME has no effect. + The WM_NCPAINT message is typically not sent during the execution of RedrawWindow unless either RDW_UPDATENOW or RDW_ERASENOW is specified. + + + + + Causes the window to receive a WM_ERASEBKGND message when the window is repainted. + The RDW_INVALIDATE flag must also be specified; otherwise, RDW_ERASE has no effect. + + + + + Justifies the text to the top of the rectangle + + + + + Aligns text to the left. + + + + + Centers text horizontally in the rectangle. + + + + + Aligns text to the right. + + + + + Centers text vertically. This value is used only with the DT_SINGLELINE value. + + + + + Justifies the text to the bottom of the rectangle. This value is used only with the DT_SINGLELINE value. + + + + + Breaks words. Lines are automatically broken between words if a word would extend past the edge of the + rectangle specified by the rectangle parameter. A carriage return-line feed sequence also breaks the line. + If this is not specified, output is on one line. + + + + + Displays text on a single line only. Carriage returns and line feeds do not break the line. + + + + + Expands tab characters. The default number of characters per tab is eight. The DT_WORD_ELLIPSIS, DT_PATH_ELLIPSIS, and DT_END_ELLIPSIS values cannot be used with the DT_EXPANDTABS value. + + + + + Sets tab stops. Bits 15-8 (high-order byte of the low-order word) of the uFormat parameter specify the number of characters for each tab. The default number of characters per tab is eight. The DT_CALCRECT, DT_EXTERNALLEADING, DT_INTERNAL, DT_NOCLIP, and DT_NOPREFIX values cannot be used with the DT_TABSTOP value. + + + + + Draws without clipping. DrawText is somewhat faster when DT_NOCLIP is used. + + + + + Includes the font external leading in line height. Normally, external leading is not included in the height of a line of text. + + + + + Determines the width and height of the rectangle. If there are multiple lines of text, + DrawText uses the width of the rectangle pointed to by the lpRect parameter and extends the base of the rectangle to bound the last line of text. If the largest word is wider than the rectangle, the width is expanded. If the text is less than the width of the rectangle, the width is reduced. If there is only one line of text, DrawText modifies the right side of the rectangle so that it bounds the last character in the line. In either case, DrawText returns the height of the formatted text but does not draw the text. + + + + + Turns off processing of prefix characters. Normally, DrawText interprets the mnemonic-prefix character as a directive to underscore the character that follows, and the mnemonic-prefix characters as a directive to print a single. By specifying DT_NOPREFIX, this processing is turned off. + + + + + Uses the system font to calculate text metrics. + + + + + Duplicates the text-displaying characteristics of a multi line edit control. Specifically, the average character width is calculated in the same manner as for an edit control, and the function does not display a partially visible last line. + + + + + For displayed text, replaces characters in the middle of the string with ellipses so that the result fits in the specified rectangle. If the string contains backslash (\) characters, DT_PATH_ELLIPSIS preserves as much as possible of the text after the last backslash. + + + + + For displayed text, if the end of a string does not fit in the rectangle, it is truncated and ellipses are added. If a word that is not at the end of the string goes beyond the limits of the rectangle, it is truncated without ellipses. + + + + + Modifies the specified string to match the displayed text. This value has no effect unless DT_END_ELLIPSIS or DT_PATH_ELLIPSIS is specified. + + + + + Layout in right-to-left reading order for bidirectional text when the font selected into the hdc is a Hebrew or Arabic font. The default reading order for all text is left-to-right. + + + + + Truncates any word that does not fit in the rectangle and adds ellipses. + + + + + Prevents a line break at a DBCS (double-wide character string), so that the line breaking rule is equivalent to SBCS strings. For example, this can be used in Korean windows, for more readability of icon labels. This value has no effect unless DT_WORDBREAK is specified. + + + + + Ignores the ampersand prefix character in the text. The letter that follows will not be underlined, but other mnemonic-prefix characters are still processed. + + + + + Draws only an underline at the position of the character following the ampersand prefix character. Does not draw any other characters in the string. + + + + + Occurs when the horizontal scrolling is made on the control or scrollbar. + + + + + Occurs when the window scroll event is occur on the vertical scrollbar. + + + + + Sent to the clipboard owner by a clipboard viewer window when the clipboard contains data in the CF_OWNERDISPLAY format and an event occurs in the clipboard viewer's horizontal scroll bar. The owner should scroll the clipboard image and update the scroll bar values. + + + + + Sent to the clipboard owner by a clipboard viewer window when the clipboard contains data in the CF_OWNERDISPLAY format and an event occurs in the clipboard viewer's vertical scroll bar. The owner should scroll the clipboard image and update the scroll bar values. + + + + + Occurs while the scroll bar is drawn. by handling this message user can customize the background color of the scrollbar. + + + + + Occurs while enable or disable both arrows in scrollbar. + + + + + Occurs when GridScrollPos is called. + + + + + Occurs when GetSCrollRange function is called. + + + + + Sent by an application to retrieve information about the specified scroll bar. + + + + + Occurs when SetScrollPos is called. + + + + + Occurs while setting the min and maximum range of the scroll control. + + + + + Occurs while setting the minimum and maximum position values and to redraw the control. + + + + + Occurs while setting the scroll info. + + + + + Erases the newly invalidated region by sending a WM_ERASEBKGND message to the window when specified with the SW_INVALIDATE flag. + + + + + Invalidates the region identified by the hrgnUpdate parameter after scrolling. + + + + + Scrolls all child windows that intersect the rectangle pointed to by the prcScroll parameter. The child windows are scrolled by the number of pixels specified by the dx and dy parameters. The system sends a WM_MOVE message to all child windows that intersect the prcScroll rectangle, even if they do not move. + + + + + Scrolls using smooth scrolling. Use the HIWORD portion of the flags parameter to indicate how much time, in milliseconds, the smooth-scrolling operation should take. + + + + + The window's vertical scroll bar. + + + + + The window's Horizontal scroll bar. + + + + + A scroll bar control + + + + + The horizontal scroll bar of the specified window. + + + + + The Thumb position of the scroll bar. + + + + + The vertical scroll bar of the specified window. + + + + + Disables the bottom arrow on a vertical scroll bar. + + + + + Disables the left arrow on a horizontal scroll bar. + + + + + Disables the right arrow on a horizontal scroll bar. + + + + + Disables the top arrow on a vertical scroll bar. + + + + + Sets the list-view control first item. + + + + + Scrolls the content of a list-view control. + + + + + Activates the window and displays it as a minimized window. + + + + + Activates the window and displays it as a maximized window. + + + + + Hides the window and activates another window. + + + + + Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time. + + + + + Represents the reflect window message. + + + + + Sent to both the window being activated and the window being deactivated. If the windows use the same input queue, the message is sent synchronously, first to the window procedure of the top-level window being deactivated, then to the window procedure of the top-level window being activated. If the windows use different input queues, the message is sent asynchronously, so the window is activated immediately. + + + + + Sent when a window belonging to a different application than the active window is about to be activated. The message is sent to the application whose window is being activated and to the application whose window is being deactivated. + + + + + Represents the window message Affix first. + + + + + Represents the window message Affix last. + + + + + Used to define private messages, usually of the form WM_APP+x, where x is an integer value. + + + + + Sent to the clipboard owner by a clipboard viewer window to request the name of a CF_OWNERDISPLAY clipboard format. + + + + + Posted to an application when a user cancels the application's journaling activities. The message is posted with a NULL window handle. + + + + + 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. + + + + + Sent to the window that is losing the mouse capture. + + + + + Sent to the first window in the clipboard viewer chain when a window is being removed from the chain. + + + + + An application sends the WM_CHANGEUISTATE message to indicate that the UI state should be changed. + + + + + Posted to the window with the keyboard focus when a WM_KEYDOWN message is translated by the TranslateMessage function. The WM_CHAR message contains the character code of the key that was pressed. + + + + + Sent by a list box with the LBS_WANTKEYBOARDINPUT style to its owner in response to a WM_CHAR message. + + + + + Sent to a child window when the user clicks the window's title bar or when the window is activated, moved, or sized. + + + + + An application sends the WM_CHOOSEFONT_GETLOGFONT message to a Font dialog box to retrieve information about the user's current font selections. + + + + + An application sends a WM_CLEAR message to an edit control or combo box to delete (clear) the current selection, if any, from the edit control. + + + + + Sent as a signal that a window or an application should terminate. + + + + + Sent when the user selects a command item from a menu, when a control sends a notification message to its parent window, or when an accelerator keystroke is translated. + + + + + Represents the common action is performed. + + + + + Sent to all top-level windows when the system detects more than 12.5 percent of system time over a 30- to 60-second interval is being spent compacting memory. This indicates that system memory is low. + + + + + Sent to determine the relative position of a new item in the sorted list of an owner-drawn combo box or list box. Whenever the application adds a new item, the system sends this message to the owner of a combo box or list box created with the CBS_SORT or LBS_SORT style. + + + + + Notifies a window that the user clicked the right mouse button (right-clicked) in the window. + + + + + An application sends the WM_COPY message to an edit control or combo box to copy the current selection to the clipboard in CF_TEXT format. + + + + + An application sends the WM_COPYDATA message to pass data to another application. + + + + + Sent when an application requests that a window be created by calling the CreateWindowEx or CreateWindow function. (The message is sent before the function returns.) The window procedure of the new window receives this message after the window is created, but before the window becomes visible. + + + + + The WM_CTLCOLORBTN message is sent to the parent window of a button before drawing the button. The parent window can change the button's text and background colors. However, only owner-drawn buttons respond to the parent window processing this message. + + + + + Sent to a dialog box before the system draws the dialog box. By responding to this message, the dialog box can set its text and background colors using the specified display device context handle. + + + + + An edit control that is not read-only or disabled sends the WM_CTLCOLOREDIT message to its parent window when the control is about to be drawn. By responding to this message, the parent window can use the specified device context handle to set the text and background colors of the edit control. + + + + + Sent to the parent window of a list box before the system draws the list box. By responding to this message, the parent window can set the text and background colors of the list box by using the specified display device context handle. + + + + + Send to owner window before draws the MessageBox. + + + + + A static control, or an edit control that is read-only or disabled, sends the WM_CTLCOLORSTATIC message to its parent window when the control is about to be drawn. By responding to this message, the parent window can use the specified device context handle to set the text foreground and background colors of the static control. + + + + + An application sends a WM_CUT message to an edit control or combo box to delete (cut) the current selection, if any, in the edit control and copy the deleted text to the clipboard in CF_TEXT format. + + + + + The WM_DDE_ACK message notifies a Dynamic Data Exchange (DDE) application of the receipt and processing of the following messages: WM_DDE_POKE, WM_DDE_EXECUTE, WM_DDE_DATA, WM_DDE_ADVISE, WM_DDE_UNADVISE, WM_DDE_INITIATE, or WM_DDE_REQUEST (in some cases). + + + + + A Dynamic Data Exchange (DDE) client application posts the WM_DDE_ADVISE message to a DDE server application to request the server to supply an update for a data item whenever the item changes. + To post this message, call the PostMessage function with the following parameters. + + + + + A Dynamic Data Exchange (DDE) server application posts a WM_DDE_DATA message to a DDE client application to pass a data item to the client or to notify the client of the availability of a data item. + + + + + A Dynamic Data Exchange (DDE) client application posts a WM_DDE_EXECUTE message to a DDE server application to send a string to the server to be processed as a series of commands. The server application is expected to post a WM_DDE_ACK message in response. + + + + + A Dynamic Data Exchange (DDE) client application posts a WM_DDE_FIRST message to a DDE server application to send a string to the server to be processed as a series of commands. The server application is expected to post a WM_DDE_ACK message in response. + + + + + A Dynamic Data Exchange (DDE) client application sends a WM_DDE_INITIATE message to initiate a conversation with a server application responding to the specified application and topic names. Upon receiving this message, all server applications with names that match the specified application and that support the specified topic are expected to acknowledge it. + + + + + A Dynamic Data Exchange (DDE) client application posts a WM_DDE_LAST message to a DDE server application. + + + + + A Dynamic Data Exchange (DDE) client application posts a WM_DDE_POKE message to a DDE server application. A client uses this message to request the server to accept an unsolicited data item. The server is expected to reply with a WM_DDE_ACK message indicating whether it accepted the data item. + + + + + A Dynamic Data Exchange (DDE) client application posts a WM_DDE_REQUEST message to a DDE server application to request the value of a data item. + + + + + A Dynamic Data Exchange (DDE) application (client or server) posts a WM_DDE_TERMINATE message to terminate a conversation. + + + + + A Dynamic Data Exchange (DDE) client application posts a WM_DDE_UNADVISE message to inform a DDE server application that the specified item or a particular clipboard format for the item should no longer be updated. This terminates the warm or hot data link for the specified item. + + + + + Posted to the window with the keyboard focus when a WM_KEYUP message is translated by the TranslateMessage function. WM_DEADCHAR specifies a character code generated by a dead key. A dead key is a key that generates a character, such as the umlaut (double-dot), that is combined with another character to form a composite character. For example, the umlaut-O character (Ö) is generated by typing the dead key for the umlaut character, and then typing the O key. + + + + + Sent to the owner of a list box or combo box when the list box or combo box is destroyed or when items are removed by the LB_DELETESTRING, LB_RESETCONTENT, CB_DELETESTRING, or CB_RESETCONTENT message. The system sends a WM_DELETEITEM message for each deleted item. The system sends the WM_DELETEITEM message for any deleted list box or combo box item with nonzero item data. + + + + + Sent when a window is being destroyed. It is sent to the window procedure of the window being destroyed after the window is removed from the screen. + This message is sent first to the window being destroyed and then to the child windows (if any) as they are destroyed. During the processing of the message, it can be assumed that all child windows still exist. + + + + + Sent to the clipboard owner when a call to the EmptyClipboard function empties the clipboard. + + + + + Notifies an application of a change to the hardware configuration of a device or the computer. + + + + + The WM_DEVMODECHANGE message is sent to all top-level windows whenever the user changes device-mode settings. + + + + + The WM_DISPLAYCHANGE message is sent to all windows when the display resolution has changed. + + + + + Sent to the first window in the clipboard viewer chain when the content of the clipboard changes. This enables a clipboard viewer window to display the new content of the clipboard. + + + + + Sent to the parent window of an owner-drawn button, combo box, list box, or menu when a visual aspect of the button, combo box, list box, or menu has changed. + + + + + Sent when the user drops a file on the window of an application that has registered itself as a recipient of dropped files. + + + + + Sent when an application changes the enabled state of a window. It is sent to the window whose enabled state is changing. This message is sent before the EnableWindow function returns, but after the enabled state (WS_DISABLED style bit) of the window has changed. + + + + + The WM_ENDSESSION message is sent to an application after the system processes the results of the WM_QUERYENDSESSION message. The WM_ENDSESSION message informs the application whether the session is ending. + + + + + Sent to the owner window of a modal dialog box or menu that is entering an idle state. A modal dialog box or menu enters an idle state when no messages are waiting in its queue after it has processed one or more previous messages. + + + + + Notifies an application's main window procedure that a menu modal loop has been entered. + + + + + Sent one time to a window after it enters the moving or sizing modal loop. The window enters the moving or sizing modal loop when the user clicks the window's title bar or sizing border, or when the window passes the WM_SYSCOMMAND message to the DefWindowProc function and the wParam parameter of the message specifies the SC_MOVE or SC_SIZE value. The operation is complete when DefWindowProc returns. + The system sends the WM_ENTERSIZEMOVE message regardless of whether the dragging of full windows is enabled. + + + + + Sent when the window background must be erased (for example, when a window is resized). The message is sent to prepare an invalidated portion of a window for painting. + + + + + Notifies an application's main window procedure that a menu modal loop has been exited. + + + + + Sent one time to a window, after it has exited the moving or sizing modal loop. The window enters the moving or sizing modal loop when the user clicks the window's title bar or sizing border, or when the window passes the WM_SYSCOMMAND message to the DefWindowProc function and the wParam parameter of the message specifies the SC_MOVE or SC_SIZE value. The operation is complete when DefWindowProc returns. + + + + + An application sends the WM_FONTCHANGE message to all top-level windows in the system after changing the pool of font resources. + + + + + Sent to the window procedure associated with a control. By default, the system handles all keyboard input to the control; the system interprets certain types of keyboard input as dialog box navigation keys. To override this default behavior, the control can respond to the WM_GETDLGCODE message to indicate the types of input it wants to process itself. + + + + + Retrieves the font with which the control is currently drawing its text. + + + + + Sent to determine the hot key associated with a window. + + + + + Sent to a window to retrieve a handle to the large or small icon associated with a window. The system displays the large icon in the ALT+TAB dialog, and the small icon in the window caption. + + + + + Sent to a window when the size or position of the window is about to change. An application can use this message to override the window's default maximized size and position, or its default minimum or maximum tracking size. + + + + + Sent by both Microsoft Active Accessibility and Microsoft UI Automation to obtain information about an accessible object contained in a server application. + + + + + Copies the text that corresponds to a window into a buffer provided by the caller. + + + + + Determines the length, in characters, of the text associated with a window. + + + + + Represents the window message that handled first. + + + + + Represents the window message that handled last. + + + + + Indicates that the user pressed the F1 key. If a menu is active when F1 is pressed, WM_HELP is sent to the window associated with the menu; otherwise, WM_HELP is sent to the window that has the keyboard focus. If no window has the keyboard focus, WM_HELP is sent to the currently active window. + + + + + Posted when the user presses a hot key registered by the RegisterHotKey function. The message is placed at the top of the message queue associated with the thread that registered the hot key. + + + + + This message is sent to a minimized window when the background of the icon must be filled before painting the icon. A window receives this message only if a class icon is defined for the window; otherwise, WM_ERASEBKGND is sent. + + + + + Sent to an application when the IME gets a character of the conversion result. + + + + + Sent to an application when the IME changes composition status as a result of a keystroke. A window receives this message through its WindowProc function. + + + + + Sent to an application when the IME window finds no space to extend the area for the composition window. + + + + + Sent by an application to direct the IME window to carry out the requested command. The application uses this message to control the IME window that it has created. To send this message, the application calls the SendMessage function with the following parameters. + + + + + Sent to an application when the IME ends composition. A window receives this message through its WindowProc function. + + + + + Sent to an application by the IME to notify the application of a key press and to keep message order. + + + + + Sent to an application by the IME to notify the application of a key last and to keep message order. + + + + + Sent to an application by the IME to notify the application of a key release and to keep message order + + + + + Sent to an application to notify it of changes to the IME window. + + + + + Sent to an application when the operating system is about to change the current IME. + + + + + Sent to an application when a window is activated. + + + + + Sent immediately before the IME generates the composition string as a result of a keystroke. + + + + + Sent to the dialog box procedure immediately before a dialog box is displayed. Dialog box procedures typically use this message to initialize controls and carry out any other initialization tasks that affect the appearance of the dialog box. + + + + + Sent when a menu is about to become active. It occurs when the user clicks an item on the menu bar or presses a menu key. This allows the application to modify the menu before it is displayed. + + + + + Sent when a drop-down menu or submenu is about to become active. This allows an application to modify the menu before it is displayed, without changing the entire menu. + + + + + Sent to the topmost affected window after an application's input language has been changed. You should make any application-specific settings and pass the message to the DefWindowProc function, which passes the message to all first-level child windows. These child windows can pass the message to DefWindowProc to have it pass the message to their child windows, and so on. + + + + + Posted to the window with the focus when the user chooses a new input language, either with the hotkey (specified in the Keyboard control panel application) or from the indicator on the system taskbar. An application can accept the change by passing the message to the DefWindowProc function or reject the change (and prevent it from taking place) by returning immediately. + + + + + Posted to the window with the keyboard focus when a nonsystem key is pressed. A nonsystem key is a key that is pressed when the ALT key is not pressed. + + + + + This message filters for keyboard messages. + + + + + This message filters for keyboard messages. + + + + + Posted to the window with the keyboard focus when a nonsystem key is released. A nonsystem key is a key that is pressed when the ALT key is not pressed, or a keyboard key that is pressed when a window has the keyboard focus. + + + + + Sent to a window immediately before it loses the keyboard focus. + + + + + Posted when the user double-clicks the left mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse. + + + + + Posted when the user presses the left mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse. + + + + + Posted when the user releases the left mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse. + + + + + Posted when the user double-clicks the middle mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse. + + + + + Posted when the user presses the middle mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse. + + + + + Posted when the user releases the middle mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse. + + + + + An application sends the WM_MDIACTIVATE message to a multiple-document interface (MDI) client window to instruct the client window to activate a different MDI child window. + + + + + An application sends the WM_MDICASCADE message to a multiple-document interface (MDI) client window to arrange all its child windows in a cascade format. + + + + + An application sends the WM_MDICREATE message to a multiple-document interface (MDI) client window to create an MDI child window. + + + + + An application sends the WM_MDIDESTROY message to a multiple-document interface (MDI) client window to close an MDI child window. + + + + + An application sends the WM_MDIGETACTIVE message to a multiple-document interface (MDI) client window to retrieve the handle to the active MDI child window. + + + + + An application sends the WM_MDIICONARRANGE message to a multiple-document interface (MDI) client window to arrange all minimized MDI child windows. It does not affect child windows that are not minimized. + + + + + An application sends the WM_MDIMAXIMIZE message to a multiple-document interface (MDI) client window to maximize an MDI child window. The system resizes the child window to make its client area fill the client window. The system places the child window's window menu icon in the rightmost position of the frame window's menu bar, and places the child window's restore icon in the leftmost position. + The system also appends the title bar text of the child window to that of the frame window. + + + + + An application sends the WM_MDINEXT message to a multiple-document interface (MDI) client window to activate the next or previous child window. + + + + + An application sends the WM_MDIREFRESHMENU message to a multiple-document interface (MDI) client window to refresh the window menu of the MDI frame window. + + + + + An application sends the WM_MDIRESTORE message to a multiple-document interface (MDI) client window to restore an MDI child window from maximized or minimized size. + + + + + An application sends the WM_MDISETMENU message to a multiple-document interface (MDI) client window to replace the entire menu of an MDI frame window, to replace the window menu of the frame window, or both. + + + + + An application sends the WM_MDITILE message to a multiple-document interface (MDI) client window to arrange all of its MDI child windows in a tile format. + + + + + Sent to the owner window of a combo box, list box, list-view control, or menu item when the control or menu is created. + + + + + Sent when a menu is active and the user presses a key that does not correspond to any mnemonic or accelerator key. This message is sent to the window that owns the menu. + + + + + Sent to a menu's owner window when the user selects a menu item. + + + + + Sent when the cursor is in an inactive window and the user presses a mouse button. The parent window receives this message only if the child window passes it to the DefWindowProc function. + + + + + Specify the first mouse message. + + + + + Posted to a window when the cursor hovers over the client area of the window for the period of time specified in a prior call to TrackMouseEvent. + + + + + Posted to a window to get the last mouse position. + + + + + Posted to a window when the cursor leaves the client area of the window specified in a prior call to TrackMouseEvent. + + + + + Posted to a window when the cursor moves. If the mouse is not captured, the message is posted to the window that contains the cursor. Otherwise, the message is posted to the window that has captured the mouse. + + + + + Sent to the focus window when the mouse wheel is rotated. The DefWindowProc function propagates the message to the window's parent. There should be no internal forwarding of the message, since DefWindowProc propagates it up the parent chain until it finds a window that processes it. + + + + + Sent after a window has been moved. + + + + + Sent while window is in moving. + + + + + Sent to a window when its non client area needs to be changed to indicate an active or inactive state. + + + + + Sent when the size and position of a window's client area must be calculated. By processing this message, an application can control the content of the window's client area when the size or position of the window changes. + + + + + Sent prior to the WM_CREATE message when a window is first created. + + + + + Notifies a window that its non client area is being destroyed. The DestroyWindow function sends the WM_NCDESTROY message to the window following the WM_DESTROY message.WM_DESTROY is used to free the allocated memory object associated with the window. + The WM_NCDESTROY message is sent after the child windows have been destroyed. In contrast, WM_DESTROY is sent before the child windows are destroyed. + + + + + Sent to a window in order to determine what part of the window corresponds to a particular screen coordinate. This can happen, for example, when the cursor moves, when a mouse button is pressed or released, or in response to a call to a function such as WindowFromPoint. If the mouse is not captured, the message is sent to the window beneath the cursor. Otherwise, the message is sent to the window that has captured the mouse. + + + + + Posted when the user double-clicks the left mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. + + + + + Posted when the user presses the left mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. + + + + + Posted when the user releases the left mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. + + + + + Posted when the user double-clicks the middle mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. + + + + + Posted when the user presses the middle mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. + + + + + Posted when the user releases the middle mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. + + + + + Posted to a window when the cursor hovers over the non-client area of the window for the period of time specified in a prior call to TrackMouseEvent. + + + + + Posted to a window when the cursor leaves the non-client area of the window specified in a prior call to TrackMouseEvent. + + + + + Posted to a window when the cursor is moved within the non-client area of the window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. + + + + + Posted when the user double-clicks the right mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. + + + + + Posted when the user presses the right mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. + + + + + Posted when the user releases the right mouse button while the cursor is within the non-client area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. + + + + + Sent to a dialog box procedure to set the keyboard focus to a different control in the dialog box. + + + + + Sent to an application when the right or left arrow key is used to switch between the menu bar and the system menu. + + + + + Sent by a common control to its parent window when an event has occurred or the control requires some information. + + + + + Determines if a window accepts ANSI or Unicode structures in the WM_NOTIFY notification message. WM_NOTIFYFORMAT messages are sent from a common control to its parent window and from the parent window to the common control. + + + + + Performs no operation. An application sends the WM_NULL message if it wants to post a message that the recipient window will ignore. + + + + + The WM_PALETTECHANGED message is sent to all top-level and overlapped windows after the window with the keyboard focus has realized its logical palette, thereby changing the system palette. This message enables a window that uses a color palette but does not have the keyboard focus to realize its logical palette and update its client area. + + + + + The WM_PALETTEISCHANGING message informs applications that an application is going to realize its logical palette. + + + + + Sent to a window when a significant action occurs on a descendant window. This message is now extended to include the WM_POINTERDOWN event. When the child window is being created, the system sends WM_PARENTNOTIFY just before the CreateWindow or CreateWindowEx function that creates the window returns. When the child window is being destroyed, the system sends the message before any processing to destroy the window takes place. + + + + + An application sends a WM_PASTE message to an edit control or combo box to copy the current content of the clipboard to the edit control at the current caret position. Data is inserted only if the clipboard contains data in CF_TEXT format. + + + + + The pend that creates first for the drawing. + + + + + The pend that creates last for the drawing. + + + + + Notifies applications that the system, typically a battery-powered personal computer, is about to enter a suspended mode. + + + + + Notifies applications that a power-management event has occurred. + + + + + The WM_PRINT message is sent to a window to request that it draw itself in the specified device context, most commonly in a printer device context. + + + + + The WM_PRINTCLIENT message is sent to a window to request that it draw its client area in the specified device context, most commonly in a printer device context. + Unlike WM_PRINT, WM_PRINTCLIENT is not processed by DefWindowProc. A window should process the WM_PRINTCLIENT message through an application-defined WindowProc function for it to be used properly. + + + + + Notifies the hook procedure of a Page Setup dialog box, PagePaintHook, that the dialog box is about to draw the envelope-stamp rectangle of the sample page. + + + + + Notifies a PagePaintHook hook procedure of the coordinates of the sample page rectangle in the Page Setup dialog box. The dialog box sends this message when it is about to draw the contents of the sample page. + + + + + Notifies the hook procedure of a Page Setup dialog box, PagePaintHook, that the dialog box is about to draw Greek text inside the margin rectangle of the sample page. + + + + + Notifies the hook procedure of a Page Setup dialog box, PagePaintHook, that the dialog box is about to draw the margin rectangle of the sample page. + + + + + Notifies a PagePaintHook hook procedure of the coordinates of the margin rectangle in the sample page. A Page Setup dialog box sends this message when it is about to draw the contents of the sample page. + + + + + Notifies a PagePaintHook hook procedure that the Page Setup dialog box is about to draw the contents of the sample page. The hook procedure can use this message to carry out initialization tasks related to drawing the contents of the sample page. + + + + + Notifies the hook procedure of a Page Setup dialog box, PagePaintHook, that the dialog box is about to draw the return address portion of an envelope sample page. + + + + + Sent to a minimized (iconic) window. The window is about to be dragged by the user but does not have an icon defined for its class. An application can return a handle to an icon or cursor. The system displays this cursor or icon while the user drags the icon. + + + + + The WM_QUERYENDSESSION message is sent when the user chooses to end the session or when an application calls one of the system shutdown functions. If any application returns zero, the session is not ended. The system stops sending WM_QUERYENDSESSION messages as soon as one application returns zero. + After processing this message, the system sends the WM_ENDSESSION message with the wParam parameter set to the results of the WM_QUERYENDSESSION message. + + + + + The WM_QUERYNEWPALETTE message informs a window that it is about to receive the keyboard focus, giving the window the opportunity to realize its logical palette when it receives the focus. + + + + + Sent to an icon when the user requests that the window be restored to its previous size and position. + + + + + An application sends the WM_QUERYUISTATE message to retrieve the UI state for a window. + + + + + Sent by a computer-based training (CBT) application to separate user-input messages from other messages sent through the WH_JOURNALPLAYBACK procedure. + + + + + Indicates a request to terminate an application, and is generated when the application calls the PostQuitMessage function. This message causes the GetMessage function to return zero. + + + + + Posted when the user double-clicks the right mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse. + + + + + Posted when the user presses the right mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse. + + + + + Posted when the user releases the right mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse. + + + + + Sent to the clipboard owner before it is destroyed, if the clipboard owner has delayed rendering one or more clipboard formats. For the content of the clipboard to remain available to other applications, the clipboard owner must render data in all the formats it is capable of generating, and place the data on the clipboard by calling the SetClipboardData function. + + + + + Sent to the clipboard owner if it has delayed rendering a specific clipboard format and if an application has requested data in that format. The clipboard owner must render data in the specified format and place it on the clipboard by calling the SetClipboardData function. + + + + + Sent to a window if the mouse causes the cursor to move within a window and mouse input is not captured. + + + + + Sent to a window after it has gained the keyboard focus. + + + + + Sets the font that a control is to use when drawing text. + + + + + Sent to a window to associate a hot key with the window. When the user presses the hot key, the system activates the window. + + + + + Associates a new large or small icon with a window. The system displays the large icon in the ALT+TAB dialog box, and the small icon in the window caption. + + + + + Sets the text of a window. + + + + + A message that is sent to all top-level windows when the SystemParametersInfo function changes a system-wide setting or when policy settings have changed. + + + + + Sent to a window when the window is about to be hidden or shown. + + + + + Sent to a window after its size has changed. + + + + + Sent to the clipboard owner by a clipboard viewer window when the clipboard contains data in the CF_OWNERDISPLAY format and the clipboard viewer's client area has changed size. + + + + + Sent to a window that the user is resizing. By processing this message, an application can monitor the size and position of the drag rectangle and, if needed, change its size or position. + + + + + The WM_SPOOLERSTATUS message is sent from Print Manager whenever a job is added to or removed from the Print Manager queue. + + + + + Sent to a window after the SetWindowLong function has changed one or more of the window's styles. + + + + + Sent to a window when the SetWindowLong function is about to change one or more of the window's styles. + + + + + Posted to the window with the keyboard focus when a WM_SYSKEYDOWN message is translated by the TranslateMessage function. It specifies the character code of a system character key — that is, a character key that is pressed while the ALT key is down. + + + + + The WM_SYSCOLORCHANGE message is sent to all top-level windows when a change is made to a system color setting. + + + + + A window receives this message when the user chooses a command from the Window menu (formerly known as the system or control menu) or when the user chooses the maximize button, minimize button, restore button, or close button. + + + + + Sent to the window with the keyboard focus when a WM_SYSKEYDOWN message is translated by the TranslateMessage function. WM_SYSDEADCHAR specifies the character code of a system dead key — that is, a dead key that is pressed while holding down the ALT key. + + + + + Posted to the window with the keyboard focus when the user presses the F10 key (which activates the menu bar) or holds down the ALT key and then presses another key. It also occurs when no window currently has the keyboard focus; in this case, the WM_SYSKEYDOWN message is sent to the active window. The window that receives the message can distinguish between these two contexts by checking the context code in the lParam parameter. + + + + + Posted to the window with the keyboard focus when the user releases a key that was pressed while the ALT key was held down. It also occurs when no window currently has the keyboard focus; in this case, the WM_SYSKEYUP message is sent to the active window. The window that receives the message can distinguish between these two contexts by checking the context code in the lParam parameter. + + + + + Sent to an application that has initiated a training card with Windows Help. The message informs the application when the user clicks an authorable button. An application initiates a training card by specifying the HELP_TCARD command in a call to the WinHelp function. + + + + + A message that is sent whenever there is a change in the system time. + + + + + Posted to the installing thread's message queue when a timer expires. The message is posted by the GetMessage or PeekMessage function. + + + + + An application sends a WM_UNDO message to an edit control to undo the last operation. When this message is sent to an edit control, the previously deleted text is restored or the previously added text is deleted. + + + + + An application sends the WM_UPDATEUISTATE message to change the UI state for the specified window and all its child windows. + + + + + Used to define private messages for use by private window classes, usually of the form WM_USER+x, where x is an integer value. + + + + + Sent to all windows after the user has logged on or off. When the user logs on or off, the system updates the user-specific settings. The system sends this message immediately after updating the settings. + + + + + Sent by a list box with the LBS_WANTKEYBOARDINPUT style to its owner in response to a WM_KEYDOWN message. + + + + + Sent to a window whose size, position, or place in the Z order has changed as a result of a call to the SetWindowPos function or another window-management function. + + + + + Sent to a window whose size, position, or place in the Z order is about to change as a result of a call to the SetWindowPos function or another window-management function. + + + + + An application sends the WM_WININICHANGE message to all top-level windows after making a change to the WIN.INI file. The SystemParametersInfo function sends this message after an application uses the function to change a setting in WIN.INI. + + + + + The window is an overlapped window. An overlapped window has a title bar and a border. Same as the WS_TILED style. + + + + + The windows is a pop-up window. This style cannot be used with the WS_CHILD style. + + + + + The window is a child window. A window with this style cannot have a menu bar. This style cannot be used with the WS_POPUP style. + + + + + The window is initially minimized. Same as the WS_ICONIC style. + + + + + The window is initially visible. + This style can be turned on and off by using the ShowWindow or SetWindowPos function. + + + + + The window is initially disabled. A disabled window cannot receive input from the user. To change this after a window has been created, use the EnableWindow function. + + + + + Clips child windows relative to each other; that is, when a particular child window receives a WM_PAINT message, the WS_CLIPSIBLINGS style clips all other overlapping child windows out of the region of the child window to be updated. If WS_CLIPSIBLINGS is not specified and child windows overlap, it is possible, when drawing within the client area of a child window, to draw within the client area of a neighboring child window. + + + + + Excludes the area occupied by child windows when drawing occurs within the parent window. This style is used when creating the parent window. + + + + + The window is initially maximized. + + + + + The window has a title bar (includes the WS_BORDER style). + + + + + The window has a thin-line border. + + + + + The window has a border of a style typically used with dialog boxes. A window with this style cannot have a title bar. + + + + + The window has a vertical scroll bar. + + + + + The window has a horizontal scroll bar. + + + + + The window has a window menu on its title bar. The WS_CAPTION style must also be specified. + + + + + The window has a sizing border. Same as the WS_SIZEBOX style. + + + + + The window is a control that can receive the keyboard focus when the user presses the TAB key. Pressing the TAB key changes the keyboard focus to the next control with the WS_TABSTOP style. + + + + + The window has a minimize button. Cannot be combined with the WS_EX_CONTEXTHELP style. The WS_SYSMENU style must also be specified. + + + + + The window has a maximize button. Cannot be combined with the WS_EX_CONTEXTHELP style. The WS_SYSMENU style must also be specified. + + + + + The window has a double border; the window can, optionally, be created with a title bar by specifying the WS_CAPTION style in the dwStyle parameter. + + + + + The window is a MDI child window. + + + + + The window is intended to be used as a floating toolbar. A tool window has a title bar that is shorter than a normal title bar, and the window title is drawn using a smaller font. A tool window does not appear in the taskbar or in the dialog that appears when the user presses ALT+TAB. If a tool window has a system menu, its icon is not displayed on the title bar. However, you can display the system menu by right-clicking or by typing ALT+SPACE. + + + + + The window has a border with a sunken edge. + + + + + The title bar of the window includes a question mark. When the user clicks the question mark, the cursor changes to a question mark with a pointer. If the user then clicks a child window, the child receives a WM_HELP message. The child window should pass the message to the parent window procedure, which should call the WinHelp function using the HELP_WM_HELP command. The Help application displays a pop-up window that typically contains help for the child window. + WS_EX_CONTEXTHELP cannot be used with the WS_MAXIMIZEBOX or WS_MINIMIZEBOX styles. + + + + + The window has generic "right-aligned" properties. This depends on the window class. This style has an effect only if the shell language is Hebrew, Arabic, or another language that supports reading-order alignment; otherwise, the style is ignored. + + + + + The window has generic left-aligned properties. This is the default. + + + + + If the shell language is Hebrew, Arabic, or another language that supports reading-order alignment, the window text is displayed using right-to-left reading-order properties. For other languages, the style is ignored. + + + + + If the shell language is Hebrew, Arabic, or another language that supports reading order alignment, the vertical scroll bar (if present) is to the left of the client area. For other languages, the style is ignored. + + + + + The window itself contains child windows that should take part in dialog box navigation. If this style is specified, the dialog manager recursive into children of this window when performing navigation operations such as handling the TAB key, an arrow key, or a keyboard mnemonic. + + + + + The window has a three-dimensional border style intended to be used for items that do not accept user input. + + + + + Forces a top-level window onto the task-bar when the window is visible. + + + + + The window is a layered window. This style cannot be used if the window has a class style of either CS_OWNDC or CS_CLASSDC. + + + + + The window should be placed above all non-topmost windows and should stay above them, even when the window is deactivated. To add or remove this style, use the SetWindowPos function. + + + + + The window has a border with a raised edge. + + + + + The window has a border with a raised edge. + + + + + If the shell language is Hebrew, Arabic, or another language that supports reading order alignment, the horizontal origin of the window is on the right edge. Increasing horizontal values advance to the left. + + + + + Sizes the window. + + + + + Moves the window. + + + + + Minimizes the window. + + + + + Maximizes the window. + + + + + Closes the window. + + + + + Retrieves the window menu as a result of a mouse click. + + + + + Retrieves the window menu as a result of a keystroke. For more information, see the Remarks section. + + + + + Restores the window to its normal position and size. + + + + + Changes the cursor to a question mark with a pointer. If the user then clicks a control in the dialog box, the control receives a WM_HELP message. + + + + + Selects the default item; the user double-clicked the window menu. + + + + + Activates the window associated with the application-specified hot key. The lParam parameter identifies the window to activate. + + + + + This message enables or disables the OK button for the Browse For Folder dialog box. + + + + + This message indicates that the selection in the dialog box changed. + + + + + This message sets the status text in the Browse For Folder dialog box. + + + + + Sets the text that is displayed on the dialog box's OK button. + + + + + Specifies the path of a folder to expand in the Browse dialog box. The path can be specified as a Unicode string or a PIDL. + + + + + The dialog box has finished initializing. + + + + + This message indicates that the selection in the dialog box changed. + + + + + The user typed an invalid name into the dialog's edit box. A nonexistent folder is considered an invalid name. + + + + + An IUnknown interface is available to the dialog box. + + + + + The retrieved handle identifies the window of the same type that is highest in the Z order. + + + + + The retrieved handle identifies the window of the same type that is lowest in the Z order. + + + + + The retrieved handle identifies the window below the specified window in the Z order. + + + + + The retrieved handle identifies the window above the specified window in the Z order. + + + + + The retrieved handle identifies the specified window's owner window, if any. For more information, see Owned Windows. + + + + + The retrieved handle identifies the child window at the top of the Z order, if the specified window is a parent window; otherwise, the retrieved handle is NULL. The function examines only child windows of the specified window. It does not examine descendant windows. + + + + + The retrieved handle identifies the enabled popup window owned by the specified window (the search uses the first such window found using GW_HWNDNEXT); otherwise, if there are no enabled popup windows, the retrieved handle is that of the specified window. + + + + + Sets a new address for the window procedure. + You cannot change this attribute if the window does not belong to the same process as the calling thread. + + + + + Index to change the parent of a child window. + + + + + Sets a new window style. + + + + + Sets a new extended window style. + + + + + Sets a new identifier of the child window. The window cannot be a top-level window. + + + + + Enables the drop shadow effect on a window. + + + + + Copies the source rectangle directly to the destination rectangle. + + + + + Returns a DC that corresponds to the window rectangle rather than the client rectangle. + + + + + Returns a DC from the cache, rather than the OWNDC or CLASSDC window. Essentially overrides CS_OWNDC and CS_CLASSDC. + + + + + The clipping region identified by hrgnClip is intersected with the visible region of the returned DC. + + + + + Allows drawing even if there is a LockWindowUpdate call in effect that would otherwise exclude this window. Used for drawing during tracking. + + + + + Uses the visible region of the parent window. The parent's WS_CLIPCHILDREN and CS_PARENTDC style bits are ignored. The origin is set to the upper-left corner of the window identified by hWnd. + + + + + Excludes the visible regions of all sibling windows above the window identified by hWnd. + + + + + Excludes the visible regions of all child windows below the window identified by hWnd. + + + + + The clipping region identified by hrgnClip is excluded from the visible region of the returned DC. + + + + + Creates the intersection of the two combined regions. + + + + + Creates the union of two combined regions. + + + + + Creates the union of two combined regions except for any overlapping areas. + + + + + Combines the parts of hrgnSrc1 that are not part of hrgnSrc2. + + + + + Creates a copy of the region identified by hrgnSrc1. + + + + + Gets the formatting rectangle of an edit control. + + + + + Gets information about the character closest to a specified point in the client area of an edit control. + + + + + A WM_KEYUP, WM_KEYDOWN, WM_SYSKEYUP, or WM_SYSKEYDOWN message is in the queue. + + + + + A WM_MOUSEMOVE message is in Queue. + + + + + A mouse-button message (WM_LBUTTONUP, WM_RBUTTONDOWN, and so on). + + + + + A posted message (other than those listed here) is in the queue. + + + + + A WM_TIMER message is in the queue. + + + + + A WM_PAINT message is in the queue. + + + + + A message sent by another thread or application is in the queue. + + + + + A WM_HOTKEY message is in the queue. + + + + + A posted message (other than those listed here) is in the queue. + + + + + A raw input message is in the queue. For more information, see Raw Input. + + + + + A WM_MOUSEMOVE message or mouse-button message (WM_LBUTTONUP, WM_RBUTTONDOWN, and so on). + + + + + An input message is in the queue. + + + + + An input, WM_TIMER, WM_PAINT, WM_HOTKEY, or posted message is in the queue. + + + + + Any message is in the queue. + + + + + The state of the specified object is signaled. + + + + + The time-out interval elapsed, and the object's state is non-signaled. + + + + + A constant used to specify an infinite waiting period, for threading methods that accept an Int32 parameter. + + + + + Retains the current size (ignores the cx and cy parameters). + + + + + Retains the current position (ignores X and Y parameters). + + + + + Retains the current Z order (ignores the hWndInsertAfter parameter). + + + + + Does not redraw changes. If this flag is set, no repainting of any kind occurs. This applies to the client area, the non-client area (including the title bar and scroll bars), and any part of the parent window uncovered as a result of the window being moved. When this flag is set, the application must explicitly invalidate or redraw any parts of the window and parent window that need redrawing. + + + + + Does not activate the window. If this flag is not set, the window is activated and moved to the top of either the topmost or non-topmost group (depending on the setting of the hWndInsertAfter parameter). + + + + + Applies new frame styles set using the SetWindowLong function. Sends a WM_NCCALCSIZE message to the window, even if the window's size is not being changed. If this flag is not specified, WM_NCCALCSIZE is sent only when the window's size is being changed. + + + + + Displays the window. + + + + + Hides the window. + + + + + Discards the entire contents of the client area. If this flag is not specified, the valid contents of the client area are saved and copied back into the client area after the window is sized or repositioned. + + + + + Does not change the owner window's position in the Z order. + + + + + Prevents the window from receiving the WM_WINDOWPOSCHANGING message. + + + + + Retrieves the bounding rectangle of the Windows task bar. + + + + + Retrieves the size of the work area on the primary display monitor. + + + + + Bottom edge. + + + + + Left edge. + + + + + Right edge. + + + + + Top edge. + + + + + Provides a representation of an object so it can be displayed as an embedded object inside of a container. + This value is typically specified for compound document objects. + The presentation can be provided for the screen or printer. + + + + + Represents the transparent or irregular parts of on object, typically parts that are expensive or impossible to clip out. + Objects may or may not support this aspect. + + + + + Represents the opaque, easy to clip parts of an object. Objects may or may not support this aspect. + + + + + Represents the bits per pixel. + + + + + Represents the adding of pixel in horizontal. + + + + + Represents the adding of pixel in vertical. + + + + + Represents the planes. + + + + + Activates the window, and does not discard the mouse message. + + + + + Activates the window, and discards the mouse message. + + + + + Does not activate the window, and does not discard the mouse message. + + + + + Does not activate the window, but discards the mouse message. + + + + + On the screen background or on a dividing line between windows (same as HTNOWHERE, except that the DefWindowProc function produces a system beep to indicate an error). + + + + + On the screen background or on a dividing line between windows. + + + + + In a client area. + + + + + In a title bar. + + + + + In a window menu or in a Close button in a child window. + + + + + In a size box (same as HTSIZE). + + + + + In a menu. + + + + + In a Minimize button. + + + + + In a Maximize button. + + + + + In the lower-left corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally). + + + + + In the lower-right corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally). + + + + + In the lower corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally). + + + + + In the right corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally). + + + + + In the top corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally). + + + + + In the top-left corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally). + + + + + In the top-right corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally). + + + + + In the left corner of a border of a re-sizable window (the user can click the mouse to resize the window diagonally). + + + + + In the border of a window that does not have a sizing border. + + + + + In a Close button. + + + + + In a Help button. + + + + + Places the window at the top of the Z order. + + + + + Places the window at the bottom of the Z order. If the hWnd parameter identifies a topmost window, the window loses its topmost status and is placed at the bottom of all other windows. + + + + + Places the window above all non-topmost windows. The window maintains its topmost position even when it is deactivated. + + + + + Places the window above all non-topmost windows (that is, behind all topmost windows). This flag has no effect if the window is already a non-topmost window. + + + + + The left mouse button is down. + + + + + The right mouse button is down. + + + + + The middle mouse button is down. + + + + + The CTRL key is down. + + + + + The middle mouse button is down. + + + + + Indicates the deactivated. + + + + + Activated by some method other than a mouse click (for example, by a call to the SetActiveWindow function or by use of the keyboard interface to select the window). + + + + + Activated by a mouse click. + + + + + A Notification is delivered as a WM_MOUSELEAVE message. + If the mouse is not over the specified window or area, + a leave notification is generated immediately and no further tracking is performed. + + + + + If the mouse is hover on or leave from the non client areas + a notification is delivered as WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages. + + + + + The constant value for scroll. + + + + + Specifies the change in the ListProperty. Used by Changing and Changed 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. + + + + + Defines the constants that specifies the style of the tooltip. + + + + + Indicates that the tooltip should be drawn as regular rectangle. + + + + + Indicates that the tooltip should be drawn as balloon. + + + + + Defines the constants that specifies the options of image alignment. + + + + + Image is aligned at the left. + + + + + Image is aligned at the right. + + + + + Defines the constants that specifies the location of the tooltip. + + + + + Indicates that the tooltip will be shown in its mouse position. If ToolTipStyle is Balloon, will be shown in TopRight of mouse position. Otherwise, BottomRight of the mouse position. + + + + + Indicates that the tooltip should be shown in TopLeft of the mouse position. + + + + + Indicates that the tooltip should be shown in TopRight of the mouse position. + + + + + Indicates that the tooltip should be shown in TopCenter of the mouse position. + + + + + Indicates that the tooltip should be shown in BottomLeft of the mouse position. + + + + + Indicates that the tooltip should be shown in BottomRight of the mouse position. + + + + + Indicates that the tooltip should be shown in BottomCenter of the mouse position. + + + + + Indicates that the tooltip should be shown in RightCenter of the mouse position. + + + + + Indicates that the tooltip should be shown in LeftCenter of the mouse position. + + + + + Defines the constants that specifies the type of auto scrolling. + + + + + An user has dragged the mouse outside the auto scroll bounds. + + + + + An user is moving the mouse over the control during OLE drag-and-drop operation. + + + + + Defines the constants that specifies auto scrolling direction. + + + + + No auto scrolling. + + + + + Only horizontal auto scrolling. + + + + + Only vertical auto scrolling. + + + + + Both horizontal and vertical auto scrolling. + + + + + Defines the constants that specifies the scrollbar regions. + + + + + Sets no region. + + + + + Indicates the minimum button region. + + + + + Indicates the Maximum button region. + + + + + Indicates the Thumb region. + + + + + Indicates the up or left rectangle of the scrollbar thumb. + + + + + Indicates the right or bottom rectangle of the scrollbar thumb. + + + + + Defines the length of the scrollbar regions. + + + + + Specifies the state of a button. + + + + + The button has its normal appearance. + + + + + The button appears pressed. + + + + + The button is inactive. + + + + + The mouse hover on the button. + + + + + The focus state of the button. + + + + + Represents the class that provides the accessibility object for the SfForm. + + + + + Specifies the SfForm for the accessibility object. + + + + + Initializes a new instance of the class. + + The SfForm. + + + + Gets the AccessibleRole of the . + + + + + Gets the AccessibleName of the . + + + + + Gets the accessibility object of the parent. + + + + + Gets the AccessibleDescription of the . + + + + + Gets the bounds of the . + + + + + Overridden to update the child count of the SfForm. + + Returns the child count of the Form. + + + + Overridden to return the inner elements of the form. + + The index of the child. + Returns the accessibility object of the child. + + + + Represents the class that provides the accessibility object for the SfForm TitleBar. + + + + + Specifies the parent form of the title bar. + + + + + Initializes a new instance of the class. + + The parent of the title bar. + + + + Gets the AccessibleRole of the . + + + + + Gets the AccessibleName of the . + + + + + Gets the accessibility object of the parent. + + + + + Gets the AccessibleDescription of the . + + + + + Gets the bounds of the . + + + + + Gets the child count of the form. + + Returns the count of the accessibility object. + + + + Gets the child accessibility object of the TitleBar. + + The index of the child. + Returns the accessibility object of the child control with the given index. + + + + Represents the class that provides the accessibility object for the SfForm TitleBar. + + + + + Specifies the parent for the Title bar. + + + + + Specifies the index of the child. + + + + + Initializes a new instance of the class. + + The parent form of the title bar. + The index of the child. + + + + Gets the AccessibleRole of the . + + + + + Gets the AccessibleName of the . + + + + + Gets the accessibility object of the parent. + + + + + Gets the AccessibleDescription of the . + + + + + Gets the bounds of the . + + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Represents the class that defines the MDI style information for the control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + 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. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Gets the default style of the MDI form. + + + + + Gets or sets the background color of the MDI form titlebar. + + + + + Gets or sets the backcolor for the MDI form icon. + + + + + Gets or sets the horizontal alignment of the MDI form title bar icon. + + The default value is left. + + + + Gets or sets the vertical alignment of the MDI form title bar icon. + + The default value is center. + + + + Gets or sets the fore color of the MDI form close button. + + + + + Gets or sets the fore color of the MDI form maximize button. + + + + + Gets or sets the fore color of the MDI form minimize button. + + + + + Gets or sets the fore color of the MDI form help button. + + + + + Gets or sets the hover fore color for the MDI form close button. + + + + + Gets or sets the hover fore color for the MDI form maximize button. + + + + + Gets or sets the hover fore color for the MDI form minimize button. + + + + + Gets or sets the hover fore color for the MDI form help button. + + + + + Gets or sets the hover back color for the MDI form close button. + + + + + Gets or sets the hover back color for the MDI form maximize button. + + + + + Gets or sets the hover back color for the MDI form minimize button. + + + + + Gets or sets the hover back color for the MDI help button. + + + + + Gets or sets the pressed fore color of the MDI form close button. + + + + + Gets or sets the pressed fore color of the MDI form maximize button. + + + + + Gets or sets the pressed fore color of the MDI form minimize button. + + + + + Gets or sets the pressed fore color of the MDI form help button. + + + + + Gets or sets the pressed background color of the MDI form close button. + + + + + Gets or sets the pressed background color of the MDI form maximize button. + + + + + Gets or sets the pressed background color of the MDI form minimize button. + + + + + Gets or sets the pressed background color of the MDI form help button. + + + + + Gets or sets the image for the MDI form close button. + + The default value is null. + + + + Gets or sets the hover image for the MDI form close button. + + The default value is null. + + + + Gets or sets the pressed image for the MDI form close button. + + The default value is null. + + + + Gets or sets the image for the MDI form maximize button. + + The default value is null. + + + + Gets or sets the hover image for the MDI form maximize button. + + The default value is null. + + + + Gets or sets the pressed image for the MDI form maximize button. + + The default value is null. + + + + Gets or sets the image for the MDI form minimize button. + + The default value is null. + + + + Gets or sets the hover image for the MDI form minimize button. + + The default value is null. + + + + Gets or sets the pressed image for the MDI form minimize button. + + The default value is null. + + + + Gets or sets the image for the MDI form help button. + + The default value is null. + + + + Gets or sets the hover image for the MDI form help button. + + The default value is null. + + + + Gets or sets the pressed image for the MDI form help button. + + The default value is null. + + + + Gets or sets the height of the MDI form title bar. + + + + + Gets or sets the size of the MDI form close button. + + + + + Gets or sets the size of the MDI form maximize button. + + + + + Gets or sets the size of the MDI form minimize button. + + + + + Gets or sets the size of the MDI form help button. + + + + + Determines a value that indicates whether to serialize the CloseButtonSize property or not. + + returns true if serialized; Otherwise false + + + + Determines a value that indicates whether to serialize the MaximizeButtonSize property or not. + + returns true if serialized; Otherwise false + + + + Determines a value that indicates whether to serialize the MinimizeButtonSize property or not. + + returns true if serialized; Otherwise false + + + + Determines a value that indicates whether to serialize the HelpButtonSize property or not. + + returns true if serialized; Otherwise false + + + + 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. + + + + Provide the default style of the MDI form. + + Default style object. + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + + + + + Represents the class to define the style for control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Gets the default style of the form. + + + + + Gets or sets the style information of the MDI form. + + + + + Gets or sets the style information of the caption bar. + + + + + Gets or sets the back color of the control. + + + + + Gets or sets the fore color of the control. + + + + + Gets or sets the selected state border of the control. + + + The width of the active state border and inactive state border should be same. + + + + + Gets or sets the inactive state border of the control. + + + The width of the active state border and inactive state border should be same. + + + + + Gets or sets the opacity of the form's shadow in selected state. + + The value should be from 0 to 255. + + + + Gets or sets the opacity of the form's shadow in normal state. + + The value should be from 0 to 255. + + + + Gets or sets the active state border of the control. + + + + + Gets or sets the inactive state border of the control. + + + + + Override this method to create a product-specific identity object for a sub object. + + An identity object for a sub object of this style. + + The following code is an example how Essential form creates FormVisualStyleInfoSubObjectIdentity: + + public override StyleInfoSubObjectIdentity CreateSubObjectIdentity(StyleInfoProperty sip) + { + return new FormVisualStyleInfoSubObjectIdentity(this, sip); + } + + + The . + + + + Provide the default style of the form. + + Default style object. + + + + Defines a class that provides style identity information for nested objects of the VisualStyleInfo class of the control. + + + + + Initializes a new instance of the class and associates it with a specified. + + The that owns this sub-object. + The descriptor for this expandable sub-object. + + + + Implements the class that provide the identity information of + using . + + + + + Maintains the SfDataGrid for create the identity. + + + + + Initializes a new instance of the class. + + + to create an identity. + + + + + Loops through all base styles until it finds a style that has a specific property initialized. + + A instance of + + Returns the . + + + + + Occurs when a property in the has changed. + + The instance that has changed. + A that identifies the property to operate on. + + + + Represents the class that defines the title bar style information for the control. + + + + + It contains the value of the property. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + + Initializes a new instance of the class and associates it with an existing . + + A that holds the identity for this . + + + + Gets the default style of the TitleBar bar. + + + + + Gets or sets a value indicating whether rich text can be provided as caption or not. + + The default value is false. + + + this.Style.TitleBar.AllowRichText = true; + // Set rich text for the Form.Text property. + this.Text = "{\\rtf\\ansi \\b Form1}"; + + + + + + Gets or sets the pressed fore color of the close button. + + + + + Gets or sets the pressed fore color of the maximize button. + + + + + Gets or sets the pressed fore color of the minimize button. + + + + + Gets or sets the pressed fore color of the help button. + + + + + Gets or sets the pressed background color of the close button. + + + + + Gets or sets the pressed background color of the maximize button. + + + + + Gets or sets the pressed background color of the minimize button. + + + + + Gets or sets the pressed background color of the help button. + + + + + Gets or sets the hover fore color for the close button. + + + + + Gets or sets the hover fore color for the maximize button. + + + + + Gets or sets the hover fore color for the minimize button. + + + + + Gets or sets the hover fore color for the help button. + + + + + Gets or sets the hover back color for the close button. + + + + + Gets or sets the hover back color for the maximize button. + + + + + Gets or sets the hover back color for the minimize button. + + + + + Gets or sets the hover back color for the help button. + + + + + Gets or sets the fore color of the close button. + + + + + Gets or sets the fore color of the maximize button. + + + + + Gets or sets the fore color of the minimize button. + + + + + Gets or sets the fore color of the help button. + + + + + Gets or sets the foreground color of the TitleBar. + + + + + Gets or sets the background color of the TitleBar. + + + + + Gets or sets the bottom border color of the TitleBar. + + + + + Gets or sets the height of the TitleBar. + + + + + Gets or sets the padding for the . + + + + + Gets or sets the backcolor for the icon + + + + + Gets or sets the horizontal alignment of the title bar icon. + + The default value is left. + + + + Gets or sets the vertical alignment of the title bar icon. + + The default value is center. + + + + Gets or sets the horizontal alignment of the title bar text. + + The default value is left. + + + + Gets or sets the vertical alignment of the title Bar text. + + The default value is center. + + + + Gets or sets the image for the close button. + + The default value is null. + + + + Gets or sets the hover image for the close button. + + The default value is null. + + + + Gets or sets the pressed image for the close button. + + The default value is null. + + + + Gets or sets the image for the maximize button. + + The default value is null. + + + + Gets or sets the hover image for the maximize button. + + The default value is null. + + + + Gets or sets the pressed image for the maximize button. + + The default value is null. + + + + Gets or sets the image for the minimize button. + + The default value is null. + + + + Gets or sets the hover image for the minimize button. + + The default value is null. + + + + Gets or sets the pressed image for the minimize button. + + The default value is null. + + + + Gets or sets the image for the help button. + + The default value is null. + + + + Gets or sets the hover image for the help button. + + The default value is null. + + + + Gets or sets the image to the caption bar. + + The default value is null. + + + + Gets or sets the location to the caption image. + + + + + Gets or sets the pressed image for the help button. + + The default value is null. + + + + Gets or sets the size of the close button. + + + + + Gets or sets the size of the maximize button. + + + + + Gets or sets the size of the minimize button. + + + + + Gets or sets the size of the help button. + + + + + Gets or sets the Font used to display text in the title bar. + + + + this.Style.TitleBar.Font = new Font("Segoe UI", 15, FontStyle.Bold); + + + + + + Gets a value indicating whether Font has been initialized for the TitleBar. + + + + + Determines a value that indicates whether to serialize the Font property or not. + + returns true if serialized; Otherwise false + + + + Determines a value that indicates whether to serialize the CloseButtonSize property or not. + + returns true if serialized; Otherwise false + + + + Determines a value that indicates whether to serialize the MaximizeButtonSize property or not. + + returns true if serialized; Otherwise false + + + + Determines a value that indicates whether to serialize the MinimizeButtonSize property or not. + + returns true if serialized; Otherwise false + + + + Determines a value that indicates whether to serialize the HelpButtonSize property or not. + + returns true if serialized; Otherwise false + + + + 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. + + + + Provide the default style of the TitleBar bar. + + Default style object. + + + + Determines a value that indicates whether to serialize the property or not. + + returns true if serialized; Otherwise false + + + + Determines a value that indicates whether to serialize the property or not. + + returns true if serialized; Otherwise false + + + + Determines a value that indicates whether to serialize the property or not. + + returns true if serialized; Otherwise false + + + + Provides storage for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + It contains the value of the property value. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets the static data value of the class. + + + + + Initializes the , if is null. + + Returns the property value. + + + + Represents a store which holds the properties of the object. + + + + + Provides information about the BorderColor property. + + + + + Provides information about the BorderThickness property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the BeakBackColor property. + + + + + Provides the StaticData of the . + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Provides the StaticData of the . + + + + + Initializes the StaticData, if is null. + + Returns the StaticData. + + + + Implements the functionalities that holds all information stored for a . + + + + + The default ToolTipStyleInfo. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + A that holds the identity for this . + + + + Initializes a new instance of the class. + + 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. + + + + + Gets the default style of the . + + + + + Gets or sets the foreground color of the . + + + + + Gets or sets the background color of the . + + + + + Gets or sets the font of the . + + + + + Gets or sets the TextAlignment of the . + + + + + Gets or sets the GradientBrush of the , + if is true. + + + + + Gets or sets the separator color of the to draw separator, + if is true. + + + + + Gets or sets the separator style of the to draw separator, + if is true. + + + + + Gets or sets the separator pattern of the to draw separator, + if is true, + when is set as Custom. + + + + + Gets or sets the alignment of the image on the . + + + If the has both the text and image and is set, + the image will be positioned based on the alignment settings and text will be positioned just opposite alignment. + i.e. if an image is aligned to left, text will be aligned to right position. + + + + + Gets or sets the size of the . + + + + + Gets or sets the offset space between the image and text of the tooltip item. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets a value indicating whether the + property has been modified for the current object. + + + + + Gets or sets the border color of the ToolTipInfo. + + + + + Gets or sets the beak back color of the ToolTipInfo. + + + + + 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. + + + + Override this method to create a product-specific identity object for a sub object. + + An identity object for a sub object 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); + } + + + The . + + + + Gets the default style of the . + + Default style of the . + + + + Determines whether the + property should be serialized or not. + + Returns true when it need to be serialized otherwise return false. + + + + Determines whether the + property should be serialized or not. + + Returns true when it need to be serialized otherwise return false. + + + + Determines whether the + property should be serialized or not. + + Returns true when it need to be serialized otherwise return false. + + + + Determines whether the + property should be serialized or not. + + Returns true when it need to be serialized otherwise return false. + + + + Provides style identity information for nested expandable objects of the ToolTipVisualStyle class. + + + + + Initializes a new instance of the class. + + The that owns this sub-object. + The descriptor for this expandable sub-object. + + + + Represents a window or dialog box that makes up an application's user interface with options to customize its appearance. + + + + + Indicates the close button of the form. + + + + + Indicates the maximize/restore button of the form. + + + + + Indicates the minimize button of the form. + + + + + Indicates the help button of the form. + + + + + Indicates the close button for the maximized MDI child. + + + + + Indicates the restore button of the maximized MDI child. + + + + + Indicates the minimize button of the maximized MDI child. + + + + + Indicates the help button of the maximized MDI child. + + + + + Indicates the scaling value for 100% dpi + + + + + Indicates the scaling value for 125% dpi + + + + + Indicates the scaling value for 150% dpi + + + + + Indicates the scaling value for 175% dpi + + + + + Indicates the scaling value for 200% dpi + + + + + Indicates the scaling value for 225% dpi + + + + + Indicates the scaling value for 250% dpi + + + + + Indicates the scaling value for 275% dpi + + + + + Indicates the scaling value for 300% dpi + + + + + It stores the value of property. + + + + + It stores the height of the title bar. + + + + + It stores the height of the mdi parent's title bar. + + + + + It stores the value of the Style property. + + + + + To track the mouse event. + + + + + Represents the width between the border and the client area in DesignMode + + + + + Represents the instance of the class. + + + + + Used to set bound for the form. + + + + + It stores the update count value. + + + + + It stores the TitleBarTextControl. + + + + + Represents the form shadow window. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Maintains the value indicating whether the title height should retain or not. + + + + + Value to store the title padding. + + + + + Value to indicate whether the form is disposed or not. + + + + + Indicates whether to allow rounded corners or not. + + + + + Initializes a new instance of the class. + + + + + Sends the specified message to a window or windows. + The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message. + + A handle to the window whose window procedure will receive the message. + The message to be sent. + Additional message-specific information. + A Additional message-specific information. + The return value specifies the result of the message processing; it depends on the message sent. + + + + + Gets or sets padding within the form. + + + + + Gets or sets the control to be displayed in the title bar of the form instead of the title bar text. + + + + //Loads a Button control to the title bar of the form. + TitleBarTextControl = new Button(); + //Sets the text for the TitleBarTextControl. + TitleBarTextControl.Text = "Control1"; + + + Form.Text property value will be displayed on the title bar only when this property value is equal to null. + The default value is null. + + + + Gets the value used to customize the appearance of the form. + + + + + Gets or sets a value indicating whether the close button is displayed in the caption bar of the form. + + The default value is true. + + + + Gets or sets a value indicating the size of the form icon. + + + + + Gets or sets a value indicating whether the tooltip for the title bar button is enabled. + + The default value is true. + + + + Gets or sets a value indicating whether the rounded corners are enabled. + + The default value is false. + This option is only in effect with Windows 11. + + + + Gets or sets the back color of the form. + + + + + Gets or sets the fore color of the form. + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Gets or sets a value indicating whether the accessibility is enabled for the Form or not. + + + + + Gets or sets the instance of the TitleBar. + + + + + Gets or sets the initial width of the TitleBarTextControl. + + + + + Gets or sets a value indicating whether the form is active or not. + + + + + Gets the value indicating whether the current operating system is Windows11 or not. + + + + + Gets or sets the caption bar button on which the mouse pointer is hovered. + + + + + Gets the value indicating whether the current operating system is windows7 or not. + + + + + Occurs when theme name of the has been changed. + + + + + Gets or sets a value indicating whether a theme style settings can be applied to the control. + + The default value is true. + + + + Gets or sets the theme name of the . + + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + Default value is false. + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets or sets the base theme name of the . + + + + + Gets or sets the VisualTheme of the . + + + + + Gets or sets the visual theme, which holds the applied from . + + + + + Gets the name of the control. + + + + + Gets the active theme name of the . + + Returns the active theme name. + + + + Gets the control name. + + + + + Raises the event. + + The sender value. + A contains the event data. + + + + Suspends the painting of the control until the method is called. + + + + //Call BeginUpdate() to ensure the form is painted only once. + this.BeginUpdate(); + //Change the appearance of the form. + this.Style.TitleBar.ForeColor = Color.Red; + this.Style.TitleBar.BackColor = Color.SkyBlue; + //Call EndUpdate() when finish changing the appearance of the form. + this.EndUpdate(); + + + + + + Resumes the painting of the control suspended by calling the method. + + + + //Call BeginUpdate() to ensure the form is painted only once. + this.BeginUpdate(); + //Change the appearance of the form. + this.Style.TitleBar.ForeColor = Color.Red; + this.Style.TitleBar.BackColor = Color.SkyBlue; + //Call EndUpdate() when finish changing the appearance of the form. + this.EndUpdate(); + + + + + + Gets the height of the title bar. + + Returns the height of the caption bar + + + + Gets the height of the mdichild title bar. + + Returns the height of the mdi caption bar + + + + Gets the size of the close button. + + Returns the size of the close button + + + + Gets the size of the maximum button. + + Returns the size of the maximum button + + + + Gets the size of the minimum button. + + Returns the size of the minimum button + + + + Gets the size of the help button + + Returns the size of the help button + + + + Gets the size of the mdi close button + + Returns the size of the mdi close button + + + + Gets the size of the mdi maximum button + + Returns the size of the mdi maximum button + + + + Gets the size of the mdi minimum button + + Returns the size of the minimum button + + + + Get the size of the mdi help button + + Returns the size of the help button + + + + Refresh the form to update the appearance. + + + + + Method to determine whether the operating system is Windows 11. + + true if the operating system is Windows 11; otherwise false. + + + + Occurs when the form handle is created. + + The that contains the event data. + + + + Processes Windows messages. + + Windows message. + + + + Set the specified bound for the form. + + The Left property value of the form. + The Top property value of the form. + The Width property value of the form. + The Height property value of the form. + Specifies the bounds of the form. + + + + Sets the client size of the form. This will adjust the bounds of the form to make the client size the requested size. + + Requested width of the client region. + Requested height of the client region. + + + + Raises the System.Windows.Forms.Form.Load event. + + Event Arguments. + + + + Raises the System.Windows.Forms.Form.Shown event. + + Event args that contains the event data + + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. + + + + Overridden to set the accessibility object for the SfForm. + + Returns the accessibility object of the SfForm. + + + + Updates the title padding. + + Updates to retain the title bar height in maximized state. + + + + Invalidate the frame + + + + + Sets the text of a window. + + Received window message. + + + + Process the WM_NCACTIVATE Windows message. + Occurs when the form is activated or deactivated. + + Received window message. + + + + Process the WM_NCHITTEST Windows message. + To determine what part of the window corresponds to a particular screen coordinate + + Received window message. + + + + Determines the area on the form corresponding to the specified point. + + Specifies the cursor position. + Returns a value that indicates the mouse hit position. + + + + Process the WM_NCLBUTTONDBLCLK Windows message. + Occurs when the left mouse button is double clicked while the cursor is on the non client area of the form. + + Received window message. + + + + Process the WM_NCMOUSELEAVE Windows message + Occurs when the cursor leaves the non client area of the form. + + Received window message. + + + + Process the WM_NCMOUSEMOVE Windows message + Occurs when the cursor is moved within the non client area of the form. + + Received window message. + + + + Process the WM_NCLBUTTONDOWN Windows message + Occurs when the left mouse button is pressed while the cursor is on the non client area of the form. + + Received window message. + + + + Process the WM_NCLBUTTONUP Windows message + Occurs when the left mouse button is released while the cursor is on the non client area of the form. + + Received window message. + + + + Process the WM_NCPaint Windows message + To draw the title bar, border lines and background of the form. + + Received window message. + + + + Draw the non-client area of the form. + + Graphics object + Window rectangle + + + + Draw the border for the form with specified color and thickness. + + Graphics object. + Rectangle to draw border. + + + + Draw the region excluding the caption bar and client area of the form. + + Graphics object + Window rectangle. + + + + Process the WM_NCCALCSIZE Windows message + Calculates the size and position of the form's client area. + + Received window message. + + + + Calculate the client region of the form. + + Window rectangle. + Form border thickness. + Title bar height of the form.param> + Returns the client rectangle of the form. + + + + Calculate the client region of the form. + + Window rectangle. + Window rectangle of the parent form. + Form border thickness. + Returns the client rectangle of the child form. + + + + Process the WM_WINDOWPOSCHANGED Windows message + Occurs when the size, position or place of the form is changed. + + Received window message. + + + + Clip the required visible region within the window rectangle. + + Window Handle. + + + + To get the ID of the button present in the specified point. + + Specifies the cursor position. + Returns button ID. + + + + Get the cursor position. + + Returns the cursor position. + + + + Redraw the button when its state changed. + + Graphics object + + + + Apply rounded corners for the form. + + The handle to the window + Corner style for the round corners + + + + Represents the class that provides the shadow effect for the . + + + + + Represents an instance of class. + + + + + represents the shadow bitmap. + + + + + Represents the width of form shadow. + + + + + Initializes a new instance of the class. + + Base form for which the shadow should be provided. + + + + Returns a that contains the required creation parameters + when the handle to the control is created. + + + + + Set location of the ShadowForm. + + Sender object. + Event arguments. + + + + Draw the shadowForm and clip the region belongs to the Base Form from the ShadowForm. + + + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. + + + + Processes Windows messages. + + Windows message. + + + + Provide the shadow like appearance for the background window. + + Bitmap created from the background window. + + + + Represents the class that draws the title bar of the form. + + + + + Rectangle to draw the close button of the caption bar. + + + + + Rectangle to draw the maximize/restore button of the caption bar. + + + + + Rectangle to draw the minimize button of the caption bar. + + + + + Rectangle to draw the help button of the caption bar. + + + + + Rectangle used to draw the title bar icon of the form. + + + + + Rectangle to draw the MDI close button of the caption bar. + + + + + Rectangle to draw the MDI maximize button of the caption bar. + + + + + Rectangle to draw the MDI minimize button of the caption bar. + + + + + Rectangle to draw the MDI help button of the caption bar. + + + + + Rectangle used to draw the MDI icon on the caption bar. + + + + + Rectangle used to draw the title bar text. + + + + + Rectangle that holds the close icon of the caption bar. + + + + + Rectangle used to draw the maximize icon of the caption bar. + + + + + Rectangle used to draw the restore up icon of the caption bar of minimized mdi child. + + + + + Rectangle that specifies the area in the caption bar that contains MDI buttons and icon. + + + + + Represents an instance of class. + + + + + Initializes a new instance of the class. + + Instance of class. + + + + Gets the value indicating the rectangle to draw the close button. + + + + + Gets the value indicating the rectangle to draw the maximize button. + + + + + Gets the value indicating the rectangle to draw the minimize button. + + + + + Gets the value indicating the rectangle to draw the help button. + + + + + Gets the value indicating the rectangle to draw the form icon. + + + + + Gets the value indicating the rectangle to draw the mdi close button. + + + + + Gets the value indicating the rectangle to draw the mdi maximize button. + + + + + Gets the value indicating the rectangle to draw the mdi minimize button. + + + + + Gets the value indicating the rectangle to draw the mdi help button. + + + + + Clean up the unmanaged resources + + + + + Draw the caption bar of the form. + + Graphics object. + Caption rectangle. + + + + Draw the close button of the caption bar. + + Graphics object + Caption button BackColor + Caption ButtonColor + Button image + + + + Draw the help button button of the caption bar. + + Graphics object + Caption button BackColor + Caption ButtonColor + Button image + + + + Draw the minimize button button of the caption bar. + + Graphics object + Caption button BackColor + Caption ButtonColor + Button image + + + + Draw the maximize button button of the caption bar. + + Graphics object + Caption button BackColor + Caption ButtonColor + Button image + + + + Draw the buttons on the caption bar. + + Graphics object + Caption Rectangle + + + + Draw MDI Help button on the caption bar. + + Graphics object. + ForeColor of the MDI help button. + MDI help button image. + + + + Draw MDI close button on the caption bar. + + Graphics object. + ForeColor of the MDI close button. + MDI close button image. + + + + Draw the MDI maximize button on the caption bar. + + Graphics object. + BackColor of the MDI maximize button. + ForeColor of the MDI maximize button. + MDI maximize button image. + + + + Draw the MDI minimize button on the caption bar. + + Graphics object. + ForeColor of the MDI minimize button. + MDI minimize button image. + + + + Draw the MDI buttons on the caption bar. + + Graphics object. + + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. + + + + Calculate the rectangle to draw the close button. + + Title bar rectangle. + Form border width. + Button Width. + Button height. + Button Y position. + Returns the rectangle to draw the close button. + + + + Calculate the rectangle to draw the maximize button. + + Close button rectangle. + Button width. + Button Height. + Button Y position. + Returns the rectangle to draw the maximize button. + + + + Calculate the rectangle to draw the minimize button. + + Maximize button rectangle. + Button width. + Button height. + Button Y position. + Returns the rectangle to draw the minimize button. + + + + Calculate the rectangle to draw the help button. + + Minimize button rectangle. + Button width. + Button height. + Button Y position. + Returns the rectangle to draw the help button. + + + + Calculate the rectangles to draw the mdi buttons. + + Title bar rectangle. + + + + Calculate the rectangle to draw the title bar of the form. + + Window rectangle. + Height of the title bar. + Returns the rectangle to draw the title bar of the form. + + + + Draw the form icon on the caption bar. + + Graphics object. + Rectangle to draw the form icon. + + + + Calculate the rectangle to draw the title bar icon. + + Title bar rectangle. + Returns the rectangle to draw the title bar icon. + + + + Calculate the rectangle to draw the mdi icon. + + + + + Fill the caption bar with the color specified by CaptionBackColor property. + + Graphics object. + Caption bar rectangle. + Caption bar backcolor. + + + + Draw the text in the caption bar + + Graphics object. + Caption bar rectangle. + + + + Calculate the rectangle to draw the title bar text. + + Title bar rectangle. + Returns the rectangle to draw the title bar text. + + + + Draw the caption image in the caption bar. + + Graphics object + Height of the caption bar. + + + + Draws the rich text on the given graphics. + + Graphics object. + The string value contains the rich text content. + The rectangle value used to draw the rich text. + + + + Represents a window as a tooltip. + + + + + The const for balloon size. + + + + + The object of component. + + + + + The height of the balloon. + + + + + The width of the balloon. + + + + + The value indicating whether shadow should be drawn for the ToolTip. + + + + + Initializes a new instance of the class. + + The object of SfToolTip. + + + + Gets or sets a value indicating whether the tooltip is shown through show method or not. + + + + + Gets or sets the location in which the tooltip to be shown. + Maintained temporarily to change the balloon drawing when the tooltip is clipped in screen bounds case. + + + + + Gets or sets the ToolTipInfo to be shown in the tooltip. + + + + + Gets or sets the point in which the tooltip is to be shown. + + + + + Gets or sets a value indicating whether shadow should be drawn for the ToolTip. + + + + + Gets or sets a value indicating whether the location of the tooltip is changed in tooltip showing event. + + + + + Gets a value indicating whether the window will be activated when it is shown. + + + Overridden to return true to avoid activating the tooltip. If not, parent form will lost focus when the tooltip is activated. + + + + + Gets the required creation parameters when the control handle is created. + + + Overridden to set the tooltip window's extended style as TopMost. + If not, tooltip will not be shown in front as we are not activating the tooltip window. + + + + + Gets the location of the ToolTip based on provided ToolTipLocation option. + + The cursor position. + Returns the Location of the tooltip to be shown. + + + + Adjusts the point respective to the Screen bounds. + + The location of the ToolTip which is to be adjusted with screen bounds. + Returns the adjusted position of the ToolTip. + + + + Raises the Layout event. + + A that contains the event data. + + + + Raises the Paint event. + + A that contains the event data. + + + + Occurs when the Visible property value changes. + + An EventArgs that contains the event data. + + This method is called when the Visible property of the tool tip form is changed. + It is called after the Visible property is set and before the form is shown or hidden. + + + + + Draws the background appearance of the . + + An object that graphics data. + The rectangle of the . + An object. + + + + Gets the based on the + property of the + + An object. + Returns the . + + + + Checks whether valid image is available in or not. + + An object. + true if valid image is available, otherwise false. + + + + Gets the image size of the . + + An object. + Returns the specified size if ImageSize is set, otherwise returns the size of the image itself. + + + + Sets the location of the . + + The current size of the tooltip. + The object of ToolTipItem. + The location in which the tooltip is to be shown. + The value indicating that the separator for previous item is enabled or not. + + + + Gets the GraphicsPath based on the tooltip location for balloon drawing. + + Value indicating to get graphics path based on region updating. + Returns the GraphicsPath for balloon drawing. + + + + Gets the GraphicsPath of the ballon beak area. + + Returns the GraphicsPath of the ballon beak area. + + + + Draws the appearance of the . + + An object that graphics data. + The rectangle of the . + An object. + The value indicating that the separator for previous item is enabled or not. + + + + Draws the ToolTip text of the . + + An object that graphics data. + The rectangle of the . + An object. + The value indicating that the separator for previous item is enabled or not. + + + + Draws the separator line of the , + if is true. + + An object that graphics data. + The rectangle of the . + An object. + + + + Draws the ToolTip image of the . + + An object that graphics data. + The rectangle of the . + An object. + The value indicating that the separator for previous item is enabled or not. + + + + Gets the rectangle of . + + The rectangle of the . + An object. + The value indicating that the separator for previous item is enabled or not. + Returns the rectangle of the . + + + + Gets the rectangle of the . + + The rectangle of the . + An object. + The value indicating that the separator for previous item is enabled or not. + Returns the rectangle of the . + + + + Used by Changing and Changed events of strong typed collections. + + The sender that contains the object of . + An object of that contains event data. + + + + Represents a class used by Changed event of strong typed collections. + + + + + The changed type of the List property. + + + + + The index. + + + + + The item object. + + + + + The property name. + + + + + The tag object. + + + + + Initializes a new instance of the class. + + ListPropertyChangedType value. + Index in which the list gets affected. + Item which affects the collection. + Property in which the collection gets affected. + + + + Initializes a new instance of the class. + + ListPropertyChangedType value. + Index in which the list gets affected. + Item which affects the collection. + Property in which the collection gets affected. + Tag for additional information. + + + + Gets the type in which the list changed. + + + + + Gets the index of the item that is changed. + + + + + Gets the reference to the affected item. + + + + + Gets the name of the affected property. + + + + + Gets the . + + If tag is EventArgs, then it returns the Tag casted to EventArgs. + + + + Gets or sets a tag. + + + + + Represents the method that will handles the event. + + The sender that contains the v. + An object that contains event data. + + + + Represents the method that will handles the event. + + The Sender that contains the v. + An object that contains event data. + + + + Represents the method that will handle the event. + + The sender that contains the v. + An object that contains event data. + + + + Provides data about the cancelable event when the tooltip is showing. + + + To abort the showing of tooltip, set to True. + + To change the of the tooltip, + use the property. + + To change the location of the tooltip, use the property. + + In order to set the location or ToolTipInfo of the tooltip, then the must be set to true. + + + + + The ToolTipInfo of the tooltip. + + + + + The location of the tooltip. + + + + + The control which shows the tooltip. + + + + + Initializes a new instance of the class. + + The control which shows the tooltip. + The of the tooltip to be shown. + The location of the that the tooltip is set to be shown. + + + + Gets a control which shows the tooltip. + + + + + Gets or sets the specified of the tooltip. + + + + + Gets or sets the location that the tooltip is to be shown. + + + + + Provides data sbout the event after the tooltip is shown. + + + The of the tooltip can be from property. + + The location that the tooltip was shown can be get from property. + + + + + The control which shown the tooltip. + + + + + The ToolTipInfo displayed in the tooltip. + + + + + The location that the tooltip was shown. + + + + + Initializes a new instance of the class. + + The control which shown the tooltip. + The of the tooltip shown. + The location that the tooltip was shown. + + + + Gets a control which shown tooltip. + + + + + Gets the of the shown tooltip. + + + + + Gets the location that the tooltip was shown. + + + + + Provides data about the event on drawing the tooltip item. + + + To abort the default drawing of the tooltip item, set property to true. + + + + + The graphics of the tooltip control. + + + + + The rectangle of the tooltip item. + + + + + The tooltip item. + + + + + Initializes a new instance of the class. + + An object that contains graphics data of tooltip. + The rectangle of the tooltip item. + An object. + + + + Gets the graphics of the tooltip. + + + + + Gets the rectangle of the tooltip item. + + + + + Gets the to be drawn. + + + + + Represents a class that contains the information to be displayed in the ToolTip. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + An object of ToolTipInfo. + + + + Gets or sets the . + + + + + Gets or sets the BorderColor of the v. + + + + + Gets or sets the Minimum width of the v. + + + If is lesser than + , then the value of + will be considered as a maximum width for the ToolTip. + + + + + Gets or sets the Maximum width of the v. + + + If is lesser than + , then the value of + will be considered as a maximum width for the ToolTip. + + + + + Gets or sets a value indicating whether v + elements are aligned to support locales using right-to-left fonts. + + + + + Gets or sets the location of the ToolTip based on the mouse pointer. + + + If the Balloon tooltip style is enabled, the balloon beak will be shown near to the mouse pointer based on the corresponding tooltip location. + + + + + Gets or sets the style of the ToolTip. + + + + + Gets or sets the border thickness of the tooltip. + + + + + Gets or sets the beak background color of the balloon tooltip. + + + By default, beak back color will not be applied based on the corresponding ToolTip item's back color. + Beak back color can be applied manually based on the corresponding ToolTip item. + + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Releases the unmanaged resources used by the collection and optionally releases the managed resources. + + true to release both managed and unmanaged resources; false to release only unmanaged resources. + + + + Determines whether the + property should be serialized or not. + + Returns true when it need to be serialized otherwise return false. + + + + Determines whether the + property should be serialized or not. + + Returns true when it need to be serialized otherwise return false. + + + + Determines whether the + property should be serialized or not. + + Returns true when it need to be serialized otherwise return false. + + + + Determines whether the + property should be serialized or not. + + Returns true when it need to be serialized otherwise return false. + + + + Implements a type converter for . + + + + + Returns whether this converter can convert the object to the specified type, using the specified context. + + An that provides a format context. + A that represents the type you want to convert to. + true if this converter can perform the conversion; otherwise, false. + + + + Converts the given value object to the specified type, using the specified context and culture information. + + An that provides a format context. + A . If null is passed, the current culture is assumed. + The to convert. + The to convert the value parameter to. + An that represents the converted value. + + + + Represents a class that maintains the information of the . + + + + + Initializes a new instance of the class. + + + + + Gets or sets the ToolTip text of the . + + + + + Gets or sets the with settings that control the appearance of the . + + + + + Gets or sets a value indicating whether gradient background drawing + for the should be enabled or not. + + + The gradient brush can be set to the tooltip item by using the property + which is available in the property. + + + + + Gets or sets a value indicating whether separator line between the + should be enabled or not. + + + If the is enabled for the tooltip item, the line will be drawn to the bottom of that tooltip item. + The separator line cannot be drawn for the last tooltip item. + + + + + Gets or sets the image of the tooltip item. + + + + + Gets or sets the of the tooltip item. + + + If the is specified, the tooltip will not consider the image from ImageList collection. + + ImageList collection will be only considered when is not specified. + + + + + Gets or sets the zero-based index of an image in a + collection to be displayed in a tooltip item. + + + + + Gets or sets a control to be added on the . + + + If the control is set to the tooltip item, the text, image and other customization cannot be applied to the tooltip item. + The assigned control only will be displayed in the tooltip item. + + + + + Gets or sets the padding of the tooltip item. + + + The padding is applicable for entire tooltip item i.e. tooltip item's image, text and control will be drawn based on the padding. + + + + + Gets or sets the size of the . + + + + + Gets or sets the text size of the . + + + + + Gets or sets the name of the tooltip item. + + + + + Overriden. To return a string which represents the object instance. + + Returns a string which represents the objecr instance. + + + + Determines whether the + property should be serialized or not. + + Returns true when it need to be serialized otherwise return false. + + + + Determines whether the + property should be serialized or not. + + Returns true when it need to be serialized otherwise return false. + + + + Represents the editor for Image of the tooltip item. + + + + + Gets the editor style used by the EditValue method. + + An that can be used to gain additional context information. + A value that indicates the style of editor used by the EditValue method. + If the does not support this method, then it will return None. + + + + Edits the specified object's value using the editor style indicated by the + method. + + An that can be used to gain additional context information. + An that this editor can use to obtain services. + The object to edit. + The new value of the object. If the value of the object has not changed, this should return the same object it was passed. + + + + Represents a collection of . + + + + + The list of ToolTipItem. + + + + + Initializes a new instance of the class. + + + + + Occurs after a property in the collection is changed. + + + + + Gets a value indicating whether the has a fixed size. + + + + + Gets a value indicating whether the is read-only. + + + + + Gets the number of elements actually contained in the . + + + + + Gets a value indicating whether access to the is synchronized. + + + + + Gets an object that can be used to synchronize access to the Collection. + + + + + Gets or sets the at the specified index. + + The index of the element to get or set. + The element at the specified index. + + + + 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. + + + + Adds the in the + . + + An object of . + Returns the index in which the item is added. + + + + Adds the range of in the + . + + Collection of objects. + + + + Inserts the in the specified index. + + The index in which the element has to be inserted. + An object of . + + + + Inserts the range of in the specified index. + + The index in which the range of elements has to be inserted. + Collection of objects. + + + + Removes the from the + . + + An object of . + + + + Removes the at the specified index from the + . + + The index of the element to be removed. + + + + Removes the range of from the + . + + Collection of objects. + + + + Gets the index of the in the + . + + An object of . + Returns the index of the . + + + + Removes all the elements from the . + + + + + Determines whether an element exists in the . + + An object of . + true if item is found; otherwise, false. + + + + Overriden. To return the count of the collection. + + Returns the count of the collection. + + + + Copies the elements of the collection to an Array, starting at a particular index. + + The one-dimentioanl Array that is the destination of the elements copied from Collection. + Index in array at which copying begins. + + + + Returns an enumerator that iterates through a . + + An IEnumerator object that can be used to iterate through + the . + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Creates a new object that is a copy of the current instance. + + A new object that is a copy of this instance. + + + + Determines whether the contains a specific value. + + The object to locate in the . + true if the value is found in the ; otherwise, false. + + + + Determines the index of a specific item in the . + + The object to locate in the . + The index of value if found in the list; otherwise, -1. + + + + Inserts an item to the at the specified index. + + The zero-based index at which value should be inserted. + The object to insert into the . + + + + Removes the first occurrence of a specific object from the . + + The object to remove from the . + + + + Adds an item to the . + + The object to add to the . + The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection. + + + + Releases the unmanaged resources used by the collection and optionally releases the managed resources. + + true to release both managed and unmanaged resources; false to release only unmanaged resources. + + + + Raises the changed event of . + + An object of that contains event data. + + + + Provides a user interface that can edit collections of tooltip items at design-time. + + + + + Initializes a new instance of the class. + + The type of the collection for this editor to edit. + + + + Gets the data type that this collection contains. + + The data type of the items in the collection. + + + + Indicates whether multiple collection items can be selected at once. + + true if it multiple collection members can be selected at the same time; otherwise, false. By default, this returns true. + + + + Implements a type converter for . + + + + + Returns whether this converter can convert the object to the specified type, using the specified context. + + An that provides a format context. + A that represents the type you want to convert to. + true if this converter can perform the conversion; otherwise, false. + + + + Converts the given value object to the specified type, using the specified context and culture information. + + An that provides a format context. + A . If null is passed, the current culture is assumed. + The to convert. + The to convert the value parameter to. + An that represents the converted value. + + + + Provide a user interface for representing and editing the values of objects. + + + + + Gets the editor style used by the EditValue method. + + An that can be used to gain additional context information. + A value that indicates the style of editor used by the EditValue method. + If the does not support this method, then it will return None. + + + + Edits the specified object's value using the editor style indicated by the + method. + + An that can be used to gain additional context information. + An that this editor can use to obtain services. + The object to edit. + The new value of the object. If the value of the object has not changed, this should return the same object it was passed. + + + + Provides a window for editing the objects. + + + Provides a window for editing the objects. + + + + + The property grid for showing the properties of ToolTipInfo. + + + + + Initializes a new instance of the class. + + An object of . + An object of . + + + + Gets or sets the ToolTipInfo of the editor form. + + + + + Initializes the design surface of the ToolTipEditorForm with related ToolTipInfo. + + An object of . + An object of . + + + + Occurs when OK button in the ToolTipEditorForm is clicked. + + The sender that contains the OK button. + An object of that contains event data. + + + + Occurs when Cancel button in the ToolTipEditorForm is clicked. + + The sender that contains the Cancel button. + An object of that contains event data. + + + + Required designer variable. + + + + + The design panel of the ToolTipEditorForm. + + + + + The button panel of the ToolTipEditorForm. + + + + + The Cancel button of the ToolTipEditorForm. + + + + + The Ok button of the ToolTipEditorForm. + + + + + 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 class to define the FontFamily settings for the Controls + + + + + It contains the value of the property. + + + + + It contains the value of the property. + + + + + Gets or sets the FontFamily used to display text in the Control. + + + + FontHelper.FontFamily = new FontFamily("Times New Roman"); + + + + + + Handles the refresh operation for all open forms in the application. + + + + + Gets or sets a value indicating whether control FontFamily can be overridden by settings. + + Default value is false. + + By default, the control's Font will not be overridden by settings if the Font is set in sample level. + If this property is enabled, control's Font will be overridden by settings event if it is set in sample level. + This property should be enabled or disabled before applying the property. + + + + + Represents the CustomAttribute class used to validate the property information that needs to be displayed in Theme Studio + + + + + It contains the value of + + + + + Initialize the instance of + + + + + + Initialize the instance of + + + + + Gets / Sets whether the marked property can be displayed in Theme Studio. + + + + + Provides the functionalities for the control to provide theme support. + + + + + Occurs when theme is changed. + + + + + Gets or sets the name of the theme. + + + + + Gets the name of the control. + + + + + Gets or sets the Base ThemeName of the theme + + + + + Gets or sets a value indicating whether the theme should be applied to the control. + Default value is true. + + + If true, will be applied to control. + Otherwise will be applied to control. + + + + + Gets or sets a value indicating whether control elements styles can be overridden by theme style settings. + + + By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. + If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. + This property should be enabled or disabled before calling the ThemeName property of the control. + + + + + Gets a value indicating whether the visual style based theme is applied to the control and + also indicates whether the theme files are referred from external assemblies or not. + + Return true, if the visual style based theme is applied to the control. Otherwise returns false. + + + + Gets the name of the active theme that is currently applied to the control. + + + + + A helper class that provides the functionality to merge the styles from the XML configuration to the element style. + + + + + Gets or sets the themes collection. + + + + + Gets or sets the assemblies to read the image resources. + + + + + Loads the assembly to register the theme XML configured files. + + An assembly that has the theme XML configuration file. + + + + Reads the control tag elements. + + The . + The object that needs to be merged. + The xml reader. + + + + Combines the styles defined in the XML document to the target style. + + The + The target object to combine. + + + + Combines the styles defined in the XML document to the target style. + + Name of control + The target object to combine. + + + + Helps to retrieve the Theme resource stream + + ThemeName of the Control + Control name. + Stream + + + + Reads the control tag elements. + + Name of the control. + The object that needs to be merged. + The xml reader. + + + + Reads the properties tag elements. + + The object that needs to be merged. + The xml reader. + + + + Reads the Attributes of the Elements tags of the control. + + The object that needs to be merged. + The xml reader. + + + + Sets the style objects properties from the XML attribute. + + The object that needs to be merged. + The property to set the property value of object. + The XmlReader. + + + + Reads the element tag attributes. + + The object that needs to be merged. + The xml reader. + + + + Reads the Attributes of the Elements. + + The object that needs to be merged. + The xml reader. + + + + Reads the Attributes of the Elements. + + The object that needs to be merged. + The xml reader. + + + + Read the inner elements of the XmlReader. + + The style info object. + The XmlReader. + + + + Read the font attributes of inner elements in the XmlReader. + + The object that needs to be merged. + The xml reader. + + + + Helps to retrieve the Theme resource stream + + ThemeName of the Control + Control + Stream + + + + Reads the properties tag elements. + + The . + The xml reader. + + + + Reads the element tag attributes. + + The . + The object that needs to be merged. + The xml reader. + + + + Reads the Attributes of the Elements. + + The . + The object that needs to be merged. + The object. + The xml reader. + + + + Reads the Attributes of the Elements. + + The . + The object that needs to be merged. + The xml reader. + + + + Read the inner elements of the XmlReader. + + The provider. + The style info object. + The XmlReader. + + + + Reads the Attributes of the Elements tags of the control. + + The . + The object that needs to be merged. + The xml reader. + + + + Read the font attributes of inner elements in the XmlReader. + + The . + The object that needs to be merged. + The xml reader. + + + + Sets the style objects properties from the XML attribute. + + The . + The object that needs to be merged. + The property to set the property value of object. + The XmlReader. + + + + Gets the Font + + The attribute value + The font + + + + Gets the color. + + The attribute value. + The color. + + + + Gets the brush. + + The attribute value. + The brush. + + + + Checks whether given string is Hex color code or not. + + The Hex color code string. + True if given string is Hex color code otherwise false. + + + + Gets the image from the XML configured file. + + The provider. + The image resource file name. + Name of the theme. + An image. + + + + Get the image from given assembly. + + The used to get the image. + The string value contains the image name. + Returns the image. + + + + Helps to retrieve whether the applied Theme is built-in or VisualStyle based theme. + + IThemeProvider + Whether the applied theme is VisualStyle based theme or not + + + + 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. + + + + + + + + + + + + + + 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. + + + + + 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. + + + + A list deriving from with a strongly-typed indexer of type int. + + + + + 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. + + + + Custom indexer of type int. See for more information. + + + + + 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. + + + + 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. + + + + Custom indexer of type int. See for more information. + + + + + Lets you add an array of integers into the list. + + An integer array. + Available to enable serialization via AddRange in designer. + + + + + + + + + + + + + + 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. + + + + + + + + + + + + + + Gets / sets the associated parent. + + + + + Gets / sets the incremental changes done at design-time. + + + + + 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 . + + + + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + The underlying DataTable. + + + + + Initializes a new object and attaches it to the wrapped DataTable. + + The DataTable to be wrapped. + + + + Not implemented. + + + + + + Always True. + + + + + Not implemented. + + + + + Not implemented. Returns -1. + + + + + + + + Always False. + + + + + Always False. + + + + + Always True. + + + + + Always False. + + + + + Not implemented. + + + + + Broadcasts the event. + + + + + Always True. + + + + + Not implemented. + + + + + Adds a new row (calling DataTable.NewRow) and returns the new object. + + + + + + Always True. + + + + + Not implemented. + + + + + + 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. + + + + + 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. + + + + Always False since this collection has no fixed size. + + + + + Not implemented. + + + + + Returns the number of elements contained in the collection. + + + + + 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. + + + + Not implemented. + + + + + Returns an enumerator. + + + + + + Returns a PropertyDescriptorCollection that represents the DataTable.Columns collection. + + + + + + + Returns DataTable.TableName. + + + + + + + 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. + + + + + 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. + + + + 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 . + + + + + Returns the from all rows. + + + + + Creates and returns a new . + + A new + + + + Creates a collection of cells for a row. + + An or derived object for the cell collection. + + + + 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. + + + + + 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. + + + + + 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. + + + + + Gets / sets the parent branch. + + + + + 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. + + + + + + A branch with left and right leaves or branches. + + + + + Gets / sets the left node. + + + + + 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. + + + + + Gets / sets the right node. + + + + + 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. + + + + + + Gets / sets the Red-Black tree color. + + + + + 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. + + + + + A leaf with value and optional sort key. + + + + + Returns the sort key of this leaf. + + + + + Gets / sets the value attached to this leaf. + + + + + Creates a branch that can hold this entry when new leaves are inserted into the tree. + + + + + + + A branch or leaf in the tree. + + + + + Gets / sets the tree this node belongs to. + + + + + Gets / sets the parent branch. + + + + + 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. + + + + + + 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. + + + + + + Gets / sets Red-Black tree algorithm helper. + + + + + Returns the left node cast to ITreeTableBranch. + + + + + + Returns the right node cast to ITreeTableBranch. + + + + + + Gets / sets the left leaf or branch. + + + + + 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. + + + + + Gets / sets the right tree or branch. + + + + + 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. + + + + + 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. + + + + Gets / sets the value attached to this leaf. + + + + + 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. + + + + + + An empty node. + + + + + Tree table interface definition. + + + + + Indicates whether this is a sorted tree. + + + + + A comparer used by sorted trees. + + + + + Returns the root node. + + + + + Indicates whether BeginInit was called. + + + + + 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. + + + + + + + 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. + + + + Gets / sets the comparer used by sorted trees. + + + + + Gets / sets the tag that can be associated with this object. + + + + + Initializes a new . + + + + + + Indicates whether tree is sorted. + + + + + Gets / sets the root node. + + + + + Gets / sets an item at the specified index. + + + + + 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. + + + + + Indicates whether BeginInit was called. + + + + + 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. + + + + Indicates whether the tree is Read-only. + + + + + Gets / sets the item with the specified index. + + Index value of the item. + + + + + 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. + + + + + + + Indicates whether the nodes can be added or removed. + + + + + Not supported. + + + + + Returns the number of leaves. + + + + + 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. + + + + Not implemented. + + + + + Returns an enumerator. + + + + + + Returns a . + + + + + + Strongly typed enumerator for . + + + + + Initializes a new . + + + + + + Resets the enumerator. + + + + + Returns the current enumerator. + + + + + Returns the current node. + + + + + Indicates whether to move to the next 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 . + + + + + Indicates whether BeginInit was called. + + + + + 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. + + + + + Gets / sets an at a specific position. + + + + + 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. + + + + Indicates whether tree is Read-only. + + + + + Gets / sets the item at the specified index. + + Index of the item. + The item at the specified index. + + + + 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. + + + + + Indicates whether the nodes can be added or removed. + + + + + Not supported. + + + + + Returns the number of objects in this collection. + + + + + Copies elements to destination array. + + Destination array. + Starting index of the destination array. + + + + Returns an enumerator. + + Enumerator. + + + + A strongly typed enumerator for the . + + + + + Initializes the . + + + + + + Resets the enumerator. + + + + + Returns the current enumerator. + + + + + Returns the current object. + + + + + Indicates whether to move to the next object in the collection. + + + + + + Interface definition for a node that has counters and 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. + + + + The Counter Kind. + + + + + 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 . + + + + + A tree table branch with a counter. + + + + + Initializes a new . + + + + + + Returns the tree this branch belongs to. + + + + + Gets / sets the parent branch. + + + + + 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. + + + + A tree leaf with value, sort key and counter information. + + + + + Returns the tree this leaf belongs to. + + + + + Gets / sets the parent branch. + + + + + 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. + + + + A balanced tree with entries. + + + + + 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. + + + + + Gets / sets a TreeTableWithCounterEntry. + + + + + 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. + + + + + + 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. + + + + + Interface definition for a node that has one or more summaries. + + + + + Indicates whether node has 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. + + + + 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 tree table branch with a counter. + + + + + Initializes a new . + + + + + + Returns the tree this branch belongs to. + + + + + Gets / sets the parent branch. + + + + + Returns the left branch node cast to ITreeTableSummaryNode. + + + + + + Returns the right branch node cast to ITreeTableSummaryNode. + + + + + + Indicates whether this node has summaries. + + + + + 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. + + + + A tree leaf with value and summary information. + + + + + Returns the tree this leaf belongs to. + + + + + Gets / sets the parent branch. + + + + + Creates a branch that can hold this entry when new leaves are inserted into the tree. + + + + + + + Indicates whether the node has summaries. + + + + + 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. + + + + A balanced tree with entries. + + + + + Initializes a new . + + + + + + Marks all summaries dirty. + + if set to true notify summaries source. + + + + Indicates whether the tree has summaries. + + + + + Returns an array of summary objects. + + + + + Gets / sets a TreeTableWithSummaryEntry. + + + + + 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. + + + + + + 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 . + + + + + 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. + + + + + Provides predefined switches for enabling / disabling trace + output or code instrumentation in the Syncfusion shared library. + + + + General switch for Shared Library. + + + + Returns the General Tracing level for the Grid 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. + + + + 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()); + } + + + + + + Returns the time since Reset in microseconds. + + + + + 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. + + + + + 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. + + + + + 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; + + + + + + + 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. + + + + 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. + + + + + 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. + + + + 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. + + + + + 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. + + + + + An empty BrushInfo. + + + + + 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. + + + + 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). + + + + + 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. + + + + 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. + + + + + + + + + + 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. + + + + + Returns virtual graphics context object. + + + + + Returns virtual rectangle. + + + + + Returns virtual Graphics path object. + + + + + Indicates whether additional bitmap is needed. + + + + + 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. + + + + + 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. + + + + + Called after a new object was created and gives the handler + a chance to initialize the graphics context. + + + + + 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 . + + + + + + + + Creates and returns a cached graphics object. + + + + + Raises the event. + + A that contains the event data. + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Represents a class that contains the properties for customizing the styles of the check box. + + + + + Maintains the default style of the currentcell to read. + + + + + Maintains the default style of the CurrentCellStyleInfo. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The that need to be initialized. + + + + Initializes a new instance of the class. + + The . + + + + Initializes a new instance of the class. + + . + + + + Initializes a new instance of the class. + + . + The . + + + + Gets the default style of the . + + + + + Gets or sets the size of the check box. + + + + + Gets or sets the border color of the unchecked state check box. + + + + + Gets or sets the back color of the unchecked state check box. + + + + + Gets or sets the back color of the checked state check box. + + + + + Gets or sets the border color of the checked state check box. + + + + + Gets or sets the tick color of the checked state check box. + + + + + Gets or sets the color of the indeterminate state check box. + + + + + Gets or sets the border color of the indeterminate state check box. + + + + + Gets or sets the back color of the indeterminate state check box. + + + + + Gets or sets a value indicating the alignment of the check box. + + + + + Gets a value indicating whether padding has been initialized for the control. + + + + + 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. + + + + Retrieves the default style of the current cell. + + Returns the default style of the current cell. + + + + Determines a value indicating whether to serialize property. + + True if the property was modified; Otherwise False. + + + + Implements the data store for the object. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Provides information about the property. + + + + + Maintains the static data for the CheckBoxCellStyleInfo. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Populates the SerializationInfo store with the name, type, and value of each piece of information it wants to serialize + Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. + + + + Overridden to gets the static data. + + + + + Overridden to create the exact copy of the current instance. + + Returns the copied object. + + + + Initializes the , if is null. + + + + + + Represents the base class for visual styles to define the elements style. + + + + + Initializes a new instance of the class and associates it with an existing . + + + + + Initializes a new instance of the class 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 instance of the class 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. + + + + + Updates the styles from the XML configured file to the target style. + + The control that is defined with the . + + + + Provide the default style of the . + + Default style object. + + + + Provides storage for the object. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class 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. + + + + Gets a 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). + + + + + Provides style identity information for nested expandable objects of the GridStyleInfo and TreeStyleInfo classes. + + + + + 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. + + + + + Indicates whether the style is empty. + + + + + Indicates whether any properties for this object have changed since it was applied last time. + + + + + 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. + + + + Returns the object that holds all the data for this style object. + + + + + 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. + + + + defines an interface for classes + used as sub-objects in a . + + + implements this interface. + + + + + 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. + + + + + 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. + + + + 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. + + + + + + + Gets / sets the identity information for the current . + + + + + + + + + + + The object that holds all the data for this style object. + + + + + Sets 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. + + + + Clears the cache. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + Indicates whether was called for this object. + + + + + 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. + + + + Indicates whether the style is empty. + + + + + Indicates whether any properties for this object have changed since it was applied last time. + + + + + 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. + + + + 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 a property is shown in the ToString result. + + + + + Indicates whether the has been set for the property. + + A + True if property has a ; False otherwise. + + + + 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 a property should be cloned if the assigned object implements ICloneable. + + + + + Indicates whether the has been set for the property. + + A + True if property has a ; false otherwise. + + + + 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 a property should be disposed if the assigned object implements IDisposeable. + + + + + 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. + + + + 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. + + + + Returns the apply button. You should set up a listener for a Click event. + + + + + Cleans up any resources being used. + + + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + + + + + This is an abstract base class that provides identity information + for objects. + + + + + Gets / sets another identity object to be used for determining base styles. + GetBaseStyle will call InnerIdentity.GetBaseStyle if this object is not NULL. + + + + + 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. + + + + Gets or sets a value indicating whether this object is disposable. + + + true if this object is disposable; otherwise, false. + + + + + 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. + + + + + + + Clears the style objects from the storage. + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Handles parse requests for this property. + + + + + Handles formatting requests for 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 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. + + + + Indicates whether should trim whitespace characters from + the end of the formatted text. + + + + + 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. + + + + + + + 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. + + + + + Gets type of StyleInfo which is parent of store with current staticdata + + + + + Returns a collection with objects. + + + + + 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. + + + + + + + + + + + + + + Indicates whether properties have been registered. Returns True if not registered; False otherwise. + + + + + 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. + + + + 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. + + + + 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). + + + + + 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. + + + + The class checks this property + to find out about the sort order of the properties in this . + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Indicates whether this is an empty object and no properties have been initialized. + + + + + Indicates whether any properties have been changed. + + + + + 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. + + + + + + + + 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. + + + + + Returns the with identity information about this object. + + + + + Releases all the resources used by the component. + + + + + 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. + + + + + + + + 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. + + + + Provides style identity information for subobjects. + + + + + Releases all the resources used by the component. + + + + + Returns the owner style of the subobject. + + + + + Returns the identifier of the subobject in the owner object. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + 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. + + + + + Flags used by the DwmSetWindowAttribute function to specify the rounded corner preference for a window. + + + + + Options used by the DwmGetWindowAttribute and DwmSetWindowAttribute functions. + + + + + Sets the value of Desktop Window Manager (DWM) non-client rendering attributes for a window. + + The handle to the window for which the attribute value is to be set. + A flag describing which value to set, specified as a value of the DWMWINDOWATTRIBUTE enumeration. + This parameter specifies which attribute to set, and the pvAttribute parameter points to an object containing the attribute value. + A pointer to an object containing the attribute value to set. The type of the value set depends on the value of the dwAttribute parameter. + The DWMWINDOWATTRIBUTE enumeration topic indicates, in the row for each flag, what type of value you should pass a pointer to in the pvAttribute parameter. + The size, in bytes, of the attribute value being set via the pvAttribute parameter. + The type of the value set, and therefore its size in bytes, depends on the value of the dwAttribute parameter. + If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error + + + + 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 + + + + + Interop call to get the LCID of the current culture. + + + + + Native Matrix Object. + + + + + 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. + + + + 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. + + + + + 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; + } + + + + Serializing using Singleton: + + // To Save + AppStateSerializer.GetSingleton().SerializeObject("MyLabel", mydata, true); + // To Load + object loadedObj = AppStateSerializer.GetSingleton().DeserializeObject("MyLabel"); + + + + + + + Gets or sets the value to serialize or deserialize the properties based on either current UI culture or invariant culture. + Default value is null. + + + This is applicable only for Grid Control. + + + + + 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. + + + + 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); + } + + + + + + + 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(); + } + + + 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 . + + + + + + Occurs just before the contents of the are persisted. + + + + + Writes the 's contents to the persistent storage. + + + If is False, then this method will not persist. + + + + + 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. + + + + Encapsulates a type's name and exposes it to the class. + + + + + Occurs when the TypeFullName property has changed. + + + + + Gets / sets the type's full name. + + + + + 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. + + + + 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. + + + + + + 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 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. + + + + Returns the static member name to invoke. + + + + + 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. + + + + 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. + + + + Returns the static member name to invoke. + + + Call + to reset this property. + + + + + 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. + + + + + Specifies the containing the list of s + to load. + + + + + 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 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. + + + + + 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. + + + + + 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. + + + + + Get or Set of Skin Manager Interface + + + + + Serializing the ChangeAllText property + + + + + + Serializing the IsSpreadsheetLikeSpellChecker property + + + + + + Serializing the CloseReason property + + + + + + Determines whether VisualStyle has been modified and its contents should be serialized at design-time. + + True if VisualStyle were changed; False otherwise. + + + + Resets the VisualStyle back to its default value. + + + + + Determines whether MetroColor has been modified and its contents should be serialized at design-time. + + True if MetroColor were changed; False otherwise. + + + + Resets the MetroColor back to its default value. + + + + + 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 Upper case. + + + + + Checks for the First letter captial. + + + + + 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 + + + + + Raised when there is an exception in the . + + + + + 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. + + + + Defines a interface that provides methods to interact with the editor. + + + + + Gets or sets the whose is to be spell checked. + + + + + Gets or sets the current misspelled word. + + + + + 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 Text to be spell checked by the + + + + + Implements interface to interact with instance of . + + + + + Initializes a new instance of class that hosts the control. + + + + + + Gets or sets the whose is to be spell checked. + + + + + Gets or sets the current misspelled word. + + + + + 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 Text to be spell checked by the + + + + + 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. + +
+
diff --git a/ZZ_Signature_C/bin/Debug/ZZ_Signature_C.exe b/ZZ_Signature_C/bin/Debug/ZZ_Signature_C.exe index 1badd20e..8f80d544 100644 Binary files a/ZZ_Signature_C/bin/Debug/ZZ_Signature_C.exe and b/ZZ_Signature_C/bin/Debug/ZZ_Signature_C.exe differ diff --git a/ZZ_Signature_C/bin/Debug/ZZ_Signature_C.pdb b/ZZ_Signature_C/bin/Debug/ZZ_Signature_C.pdb index 74deff8e..0266eeec 100644 Binary files a/ZZ_Signature_C/bin/Debug/ZZ_Signature_C.pdb and b/ZZ_Signature_C/bin/Debug/ZZ_Signature_C.pdb differ diff --git a/ZZ_Signature_C/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/ZZ_Signature_C/obj/Debug/DesignTimeResolveAssemblyReferences.cache index 5a13ae12..63b0ba03 100644 Binary files a/ZZ_Signature_C/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/ZZ_Signature_C/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/ZZ_Signature_C/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/ZZ_Signature_C/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index ed305edd..4c1f630c 100644 Binary files a/ZZ_Signature_C/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/ZZ_Signature_C/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.Form1.resources b/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.Form1.resources index 6c05a977..89f860da 100644 Binary files a/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.Form1.resources and b/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.Form1.resources differ diff --git a/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.csproj.AssemblyReference.cache b/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.csproj.AssemblyReference.cache index ba9aaa8c..bc52fb7b 100644 Binary files a/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.csproj.AssemblyReference.cache and b/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.csproj.AssemblyReference.cache differ diff --git a/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.csproj.CoreCompileInputs.cache b/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.csproj.CoreCompileInputs.cache index 1cee3b3b..ef55662b 100644 --- a/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.csproj.CoreCompileInputs.cache +++ b/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -c5e0a67c338d91c60458655067804fc07f716251ea18832e51dffe103703dbc3 +9be0c4dad5675a80e399e12d2bafaaa3fc8755cd98f9cb8d883dd7eedd1c3dff diff --git a/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.csproj.FileListAbsolute.txt b/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.csproj.FileListAbsolute.txt index 8ab17457..6ffdea9a 100644 --- a/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.csproj.FileListAbsolute.txt +++ b/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.csproj.FileListAbsolute.txt @@ -16,3 +16,17 @@ E:\Software-Projekte\OnDoc\OnDoc\ZZ_Signature_C\bin\Debug\Syncfusion.DocIO.Base. E:\Software-Projekte\OnDoc\OnDoc\ZZ_Signature_C\bin\Debug\Syncfusion.Compression.Base.xml E:\Software-Projekte\OnDoc\OnDoc\ZZ_Signature_C\bin\Debug\Syncfusion.OfficeChart.Base.xml E:\Software-Projekte\OnDoc\OnDoc\ZZ_Signature_C\obj\Debug\ZZ_Signa.F139EF8B.Up2Date +E:\Software-Projekte\OnDoc\OnDoc\ZZ_Signature_C\bin\Debug\Syncfusion.DocToPdfConverter.Base.dll +E:\Software-Projekte\OnDoc\OnDoc\ZZ_Signature_C\bin\Debug\Syncfusion.Pdf.Base.dll +E:\Software-Projekte\OnDoc\OnDoc\ZZ_Signature_C\bin\Debug\Syncfusion.PdfToImageConverter.Base.dll +E:\Software-Projekte\OnDoc\OnDoc\ZZ_Signature_C\bin\Debug\Syncfusion.PdfViewer.Windows.dll +E:\Software-Projekte\OnDoc\OnDoc\ZZ_Signature_C\bin\Debug\Syncfusion.Shared.Base.dll +E:\Software-Projekte\OnDoc\OnDoc\ZZ_Signature_C\bin\Debug\Syncfusion.DocToPdfConverter.Base.xml +E:\Software-Projekte\OnDoc\OnDoc\ZZ_Signature_C\bin\Debug\Syncfusion.Pdf.Base.xml +E:\Software-Projekte\OnDoc\OnDoc\ZZ_Signature_C\bin\Debug\Syncfusion.PdfToImageConverter.Base.xml +E:\Software-Projekte\OnDoc\OnDoc\ZZ_Signature_C\bin\Debug\Syncfusion.PdfViewer.Windows.xml +E:\Software-Projekte\OnDoc\OnDoc\ZZ_Signature_C\bin\Debug\Syncfusion.Shared.Base.xml +E:\Software-Projekte\OnDoc\OnDoc\ZZ_Signature_C\bin\Debug\Syncfusion.OfficeChartToImageConverter.WPF.dll +E:\Software-Projekte\OnDoc\OnDoc\ZZ_Signature_C\bin\Debug\Syncfusion.SfChart.WPF.dll +E:\Software-Projekte\OnDoc\OnDoc\ZZ_Signature_C\bin\Debug\Syncfusion.OfficeChartToImageConverter.WPF.xml +E:\Software-Projekte\OnDoc\OnDoc\ZZ_Signature_C\bin\Debug\Syncfusion.SfChart.WPF.xml diff --git a/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.csproj.GenerateResource.cache b/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.csproj.GenerateResource.cache index 1cc29a02..44a150ab 100644 Binary files a/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.csproj.GenerateResource.cache and b/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.csproj.GenerateResource.cache differ diff --git a/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.exe b/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.exe index 1badd20e..8f80d544 100644 Binary files a/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.exe and b/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.exe differ diff --git a/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.pdb b/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.pdb index 74deff8e..0266eeec 100644 Binary files a/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.pdb and b/ZZ_Signature_C/obj/Debug/ZZ_Signature_C.pdb differ diff --git a/vbBarcodes/bin/Debug/Database.dll b/vbBarcodes/bin/Debug/Database.dll index 0278a7eb..3b6a758b 100644 Binary files a/vbBarcodes/bin/Debug/Database.dll and b/vbBarcodes/bin/Debug/Database.dll differ diff --git a/vbBarcodes/bin/Debug/Database.pdb b/vbBarcodes/bin/Debug/Database.pdb index 2e8e9602..86f5f0be 100644 Binary files a/vbBarcodes/bin/Debug/Database.pdb and b/vbBarcodes/bin/Debug/Database.pdb differ diff --git a/vbBarcodes/obj/Debug/vbBarcodes.vbproj.AssemblyReference.cache b/vbBarcodes/obj/Debug/vbBarcodes.vbproj.AssemblyReference.cache index 35c35cd8..0889a9d3 100644 Binary files a/vbBarcodes/obj/Debug/vbBarcodes.vbproj.AssemblyReference.cache and b/vbBarcodes/obj/Debug/vbBarcodes.vbproj.AssemblyReference.cache differ