Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active November 10, 2016 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/f8b40a115926ee671a112dc13024b01c to your computer and use it in GitHub Desktop.
Save bjoerntx/f8b40a115926ee671a112dc13024b01c to your computer and use it in GitHub Desktop.
TXTextControl.UserDefinedPropertyDictionary userSettings =
new TXTextControl.UserDefinedPropertyDictionary();
userSettings.Add("CustomPropertyString", "Custom property string");
userSettings.Add("CustomPropertyInt32", 123);
userSettings.Add("CustomPropertyBoolTrue", true);
userSettings.Add("CustomPropertyBoolFalse", false);
userSettings.Add("CustomPropertyDouble", 123.232);
TXTextControl.SaveSettings saveSettings = new TXTextControl.SaveSettings() {
UserDefinedDocumentProperties = userSettings
};
textControl1.Save("test.rtf",
TXTextControl.StreamType.RichTextFormat,
saveSettings);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment