Add comments sync
authorThomas
Wed, 10 Jul 2019 07:28:23 +0200
branchsync
changeset 2682e16dba4f04d7
parent 2680 c13616f01c2b
child 2683 f6d4bfadf6a6
Add comments
UI/RibbonCustomizations.cs
     1.1 --- a/UI/RibbonCustomizations.cs	Sun Jul 07 20:21:23 2019 +0200
     1.2 +++ b/UI/RibbonCustomizations.cs	Wed Jul 10 07:28:23 2019 +0200
     1.3 @@ -231,6 +231,12 @@
     1.4              return formRegion;
     1.5          }
     1.6  
     1.7 +        /// <summary>
     1.8 +        /// Gets a ribbon property value.
     1.9 +        /// </summary>
    1.10 +        /// <param name="control">The control to get the property value for.</param>
    1.11 +        /// <param name="property">The property to get its value.</param>
    1.12 +        /// <returns>The property value.</returns>
    1.13          private static dynamic GetRibbonProperty(Office.IRibbonControl control, MessageProperties property)
    1.14          {
    1.15              WatchedWindow window = Globals.ThisAddIn?.GetWatchedWindow(control?.Context);
    1.16 @@ -268,6 +274,12 @@
    1.17              return null;
    1.18          }
    1.19  
    1.20 +        /// <summary>
    1.21 +        /// Sets a ribbon property.
    1.22 +        /// </summary>
    1.23 +        /// <param name="control">The control to set its property for.</param>
    1.24 +        /// <param name="property">The property to set.</param>
    1.25 +        /// <param name="value">The value to set.</param>
    1.26          private static void SetRibbonProperty(Office.IRibbonControl control, MessageProperties property, dynamic value)
    1.27          {
    1.28              WatchedWindow window = Globals.ThisAddIn?.GetWatchedWindow(control.Context);