``````// OpenXmlElementList element
``````

``````if (gradientFill.GradientStopList != null)
{

}
``````

``````<p:spPr>
<a:xfrm>
<a:off x="611560" y="1059582"/>
<a:ext cx="2120518" cy="645160"/>
</a:xfrm>
<a:prstGeom prst="rect">
<a:avLst/>
</a:prstGeom>
<a:lin ang="10800000" scaled="1"/>
<a:tileRect/>
</p:spPr>
``````

``````<p:style>
<a:fillRef idx="2">
<a:schemeClr val="accent3"/>
</a:fillRef>
</p:style>
``````

``````// Slide slide
var slidePart = slide.SlidePart;
FormatScheme formatScheme = slidePart?.ThemeOverridePart?.ThemeOverride?.FormatScheme;
``````

``````// FillReference reference, FormatScheme formatScheme
if (reference.Index != null && formatScheme != null)
{
var index = (int) reference.Index.Value;

var openXmlElementList = formatScheme.FillStyleList?.ChildElements;

if (openXmlElementList != null)
{
return GetThemeElement(index, openXmlElementList);
}
}
``````

``````        private static OpenXmlElement GetThemeElement(int index, OpenXmlElementList elements)
{
if (index > 0 && elements != null && elements.Count >= index)
{
//GetItem是0 base的数组，所以需要减去1
var xmlElement = elements.GetItem(index - 1);

return xmlElement;
}

return null;
}
``````

``````<a:fmtScheme name="Office">
<a:fillStyleLst>
<a:solidFill>
<a:schemeClr val="phClr"/>
</a:solidFill>
<a:gsLst>
<a:gs pos="0">
<a:schemeClr val="phClr">
<a:tint val="50000"/>
<a:satMod val="300000"/>
</a:schemeClr>
</a:gs>
<a:gs pos="35000">
<a:schemeClr val="phClr">
<a:tint val="37000"/>
<a:satMod val="300000"/>
</a:schemeClr>
</a:gs>
<a:gs pos="100000">
<a:schemeClr val="phClr">
<a:tint val="15000"/>
<a:satMod val="350000"/>
</a:schemeClr>
</a:gs>
</a:gsLst>
<a:lin ang="16200000" scaled="1"/>
<!-- 忽略代码 -->
`````` 本作品采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可。欢迎转载、使用、重新发布，但务必保留文章署名林德熙（包含链接： https://blog.lindexi.com ），不得用于商业目的，基于本文修改后的作品务必以相同的许可发布。如有任何疑问，请 与我联系

### 以下是广告时间
{"ft_lang_label":"__label__zh","ft_lang_prob":0.75932264,"math_prob":0.68598735,"size":3517,"snap":"2020-34-2020-40","text_gpt3_token_len":1796,"char_repetition_ratio":0.13805863,"word_repetition_ratio":0.042296074,"special_character_ratio":0.27352858,"punctuation_ratio":0.17391305,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9580391,"pos_list":[0,1,2,3,4,5,6,7,8,9,10],"im_url_duplicate_count":[null,6,null,6,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-26T15:05:25Z\",\"WARC-Record-ID\":\"<urn:uuid:82ee76c2-430d-4d3a-bbf5-e5406d4f28c2>\",\"Content-Length\":\"111830\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f8584707-5ea9-40f8-8802-35d7df1eca37>\",\"WARC-Concurrent-To\":\"<urn:uuid:3bce12a2-8594-4a94-a76e-99617a617bc6>\",\"WARC-IP-Address\":\"185.199.111.153\",\"WARC-Target-URI\":\"https://blog.lindexi.com/post/dotnet-OpenXml-SDK-%E5%BD%A2%E7%8A%B6%E5%A1%AB%E5%85%85%E6%B8%90%E5%8F%98%E8%89%B2%E7%9A%84%E4%B8%BB%E9%A2%98%E8%89%B2.html\",\"WARC-Payload-Digest\":\"sha1:VDE4MYA4SKHYQBZUQKQKXMNPOOZUL44E\",\"WARC-Block-Digest\":\"sha1:ZXHVHYP25BLMQF53QKCT6YNY6BKAMVOZ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600400244231.61_warc_CC-MAIN-20200926134026-20200926164026-00749.warc.gz\"}"}