public static bool Test(Wd.ContentControl control)
 {
     return control.GetPrecedentInstruction() != null &&
         control.GetPrecedentInstruction().Command == "ContactDelivery";
 }
 public static bool Test(Wd.ContentControl control)
 {
     return control.GetPrecedentInstruction() != null &&
         control.GetPrecedentInstruction().Command == "DeleteControlIf";
 }
        dynamic GetCollection(Wd.ContentControl control)
        {
            var expression = control.GetPrecedentInstruction().Expression;
            var data = control.GetPrecedentInstruction().ExpressionData(control.Range.Document);

            var propertyInfo = data.GetType().GetProperty(expression);
            return propertyInfo.GetValue(data, null);
        }
Esempio n. 4
0
 public static bool Test(Wd.ContentControl control)
 {
     return control.Type == Wd.WdContentControlType.wdContentControlRichText &&
         control.GetPrecedentInstruction() != null &&
         control.GetPrecedentInstruction().Command == "ClearCellIf";
 }
 public static bool Test(Wd.ContentControl control)
 {
     return control.GetPrecedentInstruction() != null &&
         control.GetPrecedentInstruction().Command == "RepeatingControl";
 }