GetParentContentControl

GetParentContentCorderApiBlocklvlSt......

返回内容控件包含当前表

参数:

这种方法没有任何参数

返回时间 :

类型
ApiBlocklvlSt空区

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvar oblocklvlStvar表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!varo表=api.Criate表(3,3)oTable.SetWidth("percent", 100)!oTable.SetStyle(oTableStyle)!oBlockLvlSdt.AddElement(oTable, 0)!oDocument.AddElement(0, oBlockLvlSdt)!var oParentContentControl = oTable.GetParentContentControl()!oParentContentControl.SetAlias("№1")!builder.SaveFile("docx", "GetParentContentControl.docx")!builder.CloseFile();

结果文档