本文介绍了DrawingML是否尊重TableCellProperties对象的Horizo​​ntalOverflow属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 问候我正在编写一个程序来自动在Powerpoint 2007演示文稿中创建DrawingML表。创建表后,我需要返回某些单元格并添加文本注释。I am writing a program to automate the creation of a DrawingML Table within a Powerpoint 2007 presentation. After the table is created, I need to go back into certain cells and add text annotations.我的意图是文本溢出单元格的边界。为此,在我的代码中,我将TableCell的TableCellProperties对象的Horizo​​ntalOverflow属性设置为Overflow;但是,我在表格单元格中提供的文本是在单元格中包装,而不是像我期望的那样在边界上流动。My intention is for the text to overflow outside the cell's boundaries. To that end, in my code, I have set the HorizontalOverflow property of the TableCell's TableCellProperties object to Overflow; however, the text I provide in the table cell is wrapping within the cell, not flowing over the boundary as I expect and need.文档使用SDK进行验证,并且生成的XML似乎是正确的,因为实际的溢出属性在tcPr中呈现。我不知道还有什么可以检查,或者我可能做错了会阻止文本溢出。The document validates with the SDK, and the XML generated appears to be correct insofar as the actual overflow property being rendered within the tcPr. I don't know what else to check, or what I might be doing wrong that would prevent the text from overflowing.对此问题的任何见解将不胜感激。Any insights into this problem would be greatly appreciated. -David   推荐答案 的文档 http://msdn.microsoft.com/ en-us / library / cc845971.aspx horzOverflow(水平溢出)  指定单元格的剪切行为。这里的两个选项允许文本在单元格边界之外被剪裁和不在视图中,或者文本保持可见并溢出单元格之外。 [示例:考虑以下示例: $ < a:tcPr horzOverflow =" overflow"> … < / a:tcPr>  在此示例中,单元格中的文本在单元格边界外自由溢出并始终保持可见。结束示例] 此属性的可能值由ST_TextHorzOverflowType简单类型(§ 20.1.10.69)定义。horzOverflow (Horizontal Overflow) Specifies the clipping behavior of the cell. The two options here allow for the text to be clipped and out of view when outside of the bounds of the cell, or for the text to remain visible and overflow outside of the cell.[Example: Consider the following example:<a:tcPr horzOverflow="overflow">…</a:tcPr> In this example, the text in the cell freely overflows outside of the cell boundaries and always remains visible. end example]The possible values for this attribute are defined by the ST_TextHorzOverflowType simple type (§20.1.10.69).  A进一步描述 A further description of the attribute at http ://msdn.microsoft.com/en-us/library/documentformat.openxml.drawing.bodyproperties.aspx 说 horzOverflow(文本水平溢出)  确定文本是否可以水平流出边界框。这用于确定在形状内的文本对于包含在其中的边界框而言太大的情况下会发生什么。如果省略此属性,则隐含溢出值。 [示例:考虑我们在一个形状中有多个段落而第二个长度更长并导致文本的情况流到外面。通过将horzOverflow属性的剪辑值应用为body属性,现在这个溢出的文本被切断,而不是超出形状的边界。 < p:txBody> < a:bodyPr horzOverflow =" clip" … /> $ … < a:p> … (有些文字) b $ b… < / a:p>     < a:p> … (更多文字) … < / a:p> < / p:txBody>  结束示例] 此属性的可能值由ST_TextHorzOverflowType简单类型(§ 20.1.10.69)。horzOverflow (Text Horizontal Overflow) Determines whether the text can flow out of the bounding box horizontally. This is used to determine what happens in the event that the text within a shape is too large for the bounding box it is contained within. If this attribute is omitted, then a value of overflow is implied.[Example: Consider the case where we have multiple paragraphs within a shape and the second is greater in length and causes text to flow outside the shape. By applying the clip value of the horzOverflow attribute as a body property this overflowing text now is cut off instead of extending beyond the bounds of the shape.<p:txBody><a:bodyPr horzOverflow="clip" … />…<a:p>…(Some text)…</a:p>    <a:p>…(Some more text)…</a:p></p:txBody> end example]The possible values for this attribute are defined by the ST_TextHorzOverflowType simple type (§20.1.10.69).暗示文本作为单元格边缘右侧的直线流动。 也许另一种解释是,如果要插入一个段落,换行会导致段落从单元格的底部流出,或者剪切到底部的边框。 MSDN站点解释了边界框。此外,您插入的文本需要定义为 字符串类型。The implication is the text flows as a straight line to the right of the edge of the cell.  Perhaps another explanation is that if you are inserting a paragraph, wrapping causes the paragraph to flow out of the bottom of the cell, or clip at the bottom border. The MSDN site explains the bounding box. Also, the text you insert needs to be defined as string type.如果这些信息都无法解决您的问题,请发布回复,包括问题XML的文本块和将DrawingML表插入PowerPoint幻灯片的步骤列表。If none of this information helps to resolve your issue please post a response, including a text block of the problem XML and a list of the steps to insert the DrawingML table into the PowerPoint slide. 这篇关于DrawingML是否尊重TableCellProperties对象的Horizo​​ntalOverflow属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
11-01 14:24