使用HorizontalLineFormat 属性返回一个 HorizontalLineFormat 对象。 本示例设置新的水平线的对齐方式。VB 复制 Selection.InlineShapes.AddHorizontalLineStandard ActiveDocument.InlineShapes(1) _ .HorizontalLineFormat.Alignment = _ wdHorizontalLineAlignLeft
expression。AddHorizontalLine(_FileName_,_Range_) 需要expression。 代表 'InlineShapes' 集合的變數。 參數 名稱必要/選用資料類型描述 FileName必要String您想要用於水平線的圖像名稱。 Range選用Variant讓 Microsoft Word 在上面放置水平線的範圍。 如果省略此引數,Word 就會在目前的選取項目上方放置水平線。
返回或设置一个 WdHorizontalLineAlignment 常量,该常量表示指定水平线的对齐方式。 读/写。语法表达式。对准expression 是必需的。 一个代表“HorizontalLineFormat”对象的变量。另请参阅HorizontalLineFormat 对象支持和反馈有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收...
本方法在当前文档中添加一条横线。 expression.AddHorizontalLineStandard(Range) expression 必需。该表达式返回一个 InlineShapes 对象。 Range Var…
wdHorizontalLineFixedWidth-2Microsoft Word 會以固定值 (以點為單位) 顯示指定的水平線寬度 (高度)。 這是使用AddHorizontalLine方法來加入水平規線的預設值。 設定一條水平線相關聯的InlineShape物件的Width屬性會將WidthType屬性將此值。 wdHorizontalLinePercentWidth-1Word 會以螢幕寬度百分比顯示指定的水平線寬度...
Adding a Microsoft horizontal line is just as easy, but does take a few more steps. In this post, we will show you how to insert a horizontal line into your Microsoft Word Document. Adding Horizontal Lines to your Microsoft Word Document ...
wdHorizontalLineAlignCenter1置中對齊。 wdHorizontalLineAlignLeft0靠左對齊。 wdHorizontalLineAlignRight2靠右對齊。 支援和意見反應 有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱Office VBA 支援與意見反應。
Microsoft.Office.Interop.Word HorizontalLineFormat C# 使用英语阅读 保存 添加到集合 添加到计划 Share via Facebookx.comLinkedIn电子邮件 打印 参考 定义 命名空间: Microsoft.Office.Interop.Word 程序集: Microsoft.Office.Interop.Word.dll 返回或设置一个WdHorizontalLineAlignment常量,该常量代表指定水平线的对齐方...
Word 将指定的横线的宽度 (长度) 解释为屏幕宽度的百分比。 这是水平线添加了AddHorizontalLineStandard方法的默认值。 在一条水平线上设置PercentWidth属性将WidthType属性设置为此值。 适用于 产品版本 Word primary interop assemblyLatest 反馈 此页面是否有帮助?
InlineShapes (InlineShape) HorizontalLineFormat 代表横线的格式设置。 使用 HorizontalLineFormat 对象 用 HorizontalLineFormat 属性可返回 Horiz…