123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace HTEXLib
- {
- public class Fill
- {
- public Fill() {
- grad = new List<string>();
- }
- /// <summary>
- /// [a:noFill, solidFill, gradFill, blipFill, pattFill, grpFill]
- ///0,无填充 1.纯色填充 2.渐变填充 3.图片或纹理填充 4.图案填充
- /// </summary>
- public int type { get; set; }
- public string color { get; set; }
- public string image { get; set; }
- public FillStyle style { get; set; }
- //[Newtonsoft.Json.JsonIgnore]
- //[System.Text.Json.Serialization.JsonIgnore]
- //public string SvgText { get; set; }
- //[Newtonsoft.Json.JsonIgnore]
- //[System.Text.Json.Serialization.JsonIgnore]
- //public string HtmlText { get; set; }
- //渐变填充投射方向
- public double rot { get; set; }
- //渐变填充 以及前景色 背景色 的图案填充 颜色列表
- public List<string> grad { get; set; }
- /// <summary>
- /// 图案填充的内置图形 ltDnDiag 等 48种内置图案
- /// </summary>
- public string patt { get; set; }
- /// <summary>
- /// 不透明度
- /// </summary>
- public double opacity { get; set; }
- }
- /// <summary>
- /// 填充图片偏移量px
- /// </summary>
- public class FillStyle {
- public int left { get; set; } = 0;
- public int top { get; set; } = 0;
- public int right { get; set; } = 0;
- public int bottom { get; set; } = 0;
- }
- }
|