Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created February 9, 2017 16:19
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/16d4e9515469c49b36377b14645356a4 to your computer and use it in GitHub Desktop.
Save bjoerntx/16d4e9515469c49b36377b14645356a4 to your computer and use it in GitHub Desktop.
tx.Load(sFilename, streamType, ls);
TXTextControl.UserDefinedPropertyDictionary userSettings =
new TXTextControl.UserDefinedPropertyDictionary();
if (ls.UserDefinedDocumentProperties != null)
{
userSettings = ls.UserDefinedDocumentProperties;
if (userSettings.Contains("rc_datasource"))
{
template.SelectedDataSource = (string)userSettings["rc_datasource"];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment