Open XML SDK を使用して SdtBlock 要素の図形 (テキスト ボックス) のリストを取得するにはどうすればよいですか?
よろしく。
Open XML SDK を使用して SdtBlock 要素の図形 (テキスト ボックス) のリストを取得するにはどうすればよいですか?
よろしく。
a 内のすべての形状を取得するために、WordProcessingDocument
linq を使用して body のすべての子孫をトラバースできます。
using (WordprocessingDocument wordDoc = WordprocessingDocument.Open(stream, true))
{
IEnumerable<DocumentFormat.OpenXml.Vml.Shape> shapes = wordDoc.MainDocumentPart.Document.Body.Descendants<DocumentFormat.OpenXml.Vml.Shape>();
}