public static object GetStyleValueBase(string styleName, AspNetCore.ReportingServices.ReportProcessing.Style styleDef, object[] styleAttributeValues)
 {
     if (styleDef != null)
     {
         AttributeInfo attributeInfo = styleDef.StyleAttributes[styleName];
         if (attributeInfo != null)
         {
             object obj = null;
             if (attributeInfo.IsExpression)
             {
                 if (styleAttributeValues != null)
                 {
                     Global.Tracer.Assert(0 <= attributeInfo.IntValue && attributeInfo.IntValue < styleAttributeValues.Length);
                     obj = styleAttributeValues[attributeInfo.IntValue];
                 }
                 else
                 {
                     obj = null;
                 }
             }
             else
             {
                 obj = ((!("NumeralVariant" == styleName)) ? attributeInfo.Value : ((object)attributeInfo.IntValue));
             }
             if (obj != null)
             {
                 return(StyleBase.CreateStyleProperty(styleName, obj));
             }
         }
     }
     return(null);
 }
 private object CreatePropertyOrReturnDefault(string styleName, object styleValue)
 {
     if (styleValue == null)
     {
         return(this.m_styleDefaults[styleName]);
     }
     return(StyleBase.CreateStyleProperty(styleName, styleValue));
 }
 private object CreateProperty(string styleName, object styleValue)
 {
     if (styleValue == null)
     {
         return(null);
     }
     return(StyleBase.CreateStyleProperty(styleName, styleValue));
 }
        public static object GetStyleValue(string styleName, AspNetCore.ReportingServices.ReportProcessing.Style styleDef, object[] styleAttributeValues, bool returnDefaultStyle)
        {
            object styleValueBase = StyleBase.GetStyleValueBase(styleName, styleDef, styleAttributeValues);

            if (styleValueBase != null)
            {
                return(styleValueBase);
            }
            if (returnDefaultStyle)
            {
                return(Style.NormalStyleDefaults[styleName]);
            }
            return(null);
        }