示例#1
0
        public static void AddStyle(ScriptControlDescriptor descriptor, string propertyName, Style style)
        {
            string value = StyleConverter.Convert(style);

            if (!string.IsNullOrEmpty(value))
            {
                descriptor.AddScriptProperty(propertyName, value);
            }
        }
        protected static void AddStyle(GridViewColumnScriptDescriptor descriptor, string propertyName, TableItemStyle style)
        {
            if (descriptor == null)
            {
                throw new ArgumentNullException("descriptor");
            }

            string value = StyleConverter.Convert(style);

            if (!string.IsNullOrEmpty(value))
            {
                descriptor.AddScriptProperty(propertyName, value);
            }
        }