public static void ValidateBorderColorNotTransparent(ObjectType objectType, string objectName, AspNetCore.ReportingServices.ReportIntermediateFormat.Style styleClass, string styleName, ErrorContext errorContext) { ReportColor reportColor = default(ReportColor); AspNetCore.ReportingServices.ReportIntermediateFormat.AttributeInfo attributeInfo = default(AspNetCore.ReportingServices.ReportIntermediateFormat.AttributeInfo); if (styleClass.GetAttributeInfo(styleName, out attributeInfo) && !attributeInfo.IsExpression && ReportColor.TryParse(attributeInfo.Value, true, out reportColor) && reportColor.ToColor().A != 255) { errorContext.Register(ProcessingErrorCode.rsInvalidColor, Severity.Error, objectType, objectName, styleName, attributeInfo.Value); } }
private bool StyleAttributeExpressionBased(AspNetCore.ReportingServices.ReportIntermediateFormat.Style style, string styleName) { AttributeInfo attributeInfo = default(AttributeInfo); if (style.GetAttributeInfo(styleName, out attributeInfo)) { return(attributeInfo.IsExpression); } return(false); }
private void AddAttribute(AutomaticSubtotalContext context, Style originalStyle, Style newStyle, string name, ExpressionInfo meDotValueExpression) { AttributeInfo attributeInfo = default(AttributeInfo); if (originalStyle.GetAttributeInfo(name, out attributeInfo)) { if (attributeInfo.IsExpression) { newStyle.AddAttribute(name, (ExpressionInfo)originalStyle.ExpressionList[attributeInfo.IntValue].PublishClone(context)); } else { newStyle.StyleAttributes.Add(name, attributeInfo.PublishClone(context)); } } }