コード例 #1
0
        public override string ConvertToString(object value)
        {
            if (value == null)
            {
                return(string.Empty);
            }

            var    shadow = (Shadow)value;
            string result = shadow.BlurRadius.ToString() + " | " + shadow.Color.ToString();

            result += " | " + (shadow.Offset == null ? "0, 0" : Vector2TypeConverter.ToString(shadow.Offset));
            result += " | " + (shadow.Extents == null ? "0, 0" : Vector2TypeConverter.ToString(shadow.Extents));

            return(result);
        }
コード例 #2
0
        public override string ConvertToString(object value)
        {
            if (value == null)
            {
                return(string.Empty);
            }

            var    imageShadow = (ImageShadow)value;
            string result      = imageShadow.Url;

            result += " / " + (imageShadow.Offset == null ? "0, 0" : Vector2TypeConverter.ToString(imageShadow.Offset));
            result += " / " + (imageShadow.Extents == null ? "0, 0" : Vector2TypeConverter.ToString(imageShadow.Extents));

            return(result);
        }