Created
October 26, 2023 14:14
-
-
Save bjoerntx/09aa94677f7d990abe26350e59e4eacd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void CopyParagraphFormat(ParagraphFormat source, ParagraphFormat destination) | |
{ | |
foreach (var property in typeof(ParagraphFormat).GetProperties()) | |
{ | |
object value = property.GetValue(source); | |
if (value != null && _positiveListParagraphFormat.Contains(property.Name)) | |
{ | |
property.SetValue(destination, value); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment