add_word_art方法
add_word_art(style, text, upper_left_row, top, upper_left_column, left, height, width)
自 Excel 2007.s 起添加预设艺术字
返回
def add_word_art(self, style, text, upper_left_row, top, upper_left_column, left, height, width):
...
范围 | 类型 | 描述 |
---|---|---|
style | PresetWordArtStyle | 预设的艺术字样式。 |
text | str | 文本。 |
upper_left_row | int | 左上行索引。 |
top | int | 表示形状从其左行的垂直偏移量,以像素为单位。 |
upper_left_column | int | 左上列索引。 |
left | int | 表示形状与其左列的水平偏移量,以像素为单位。 |
height | int | 表示形状的高度,以像素为单位。 |
width | int | 表示形状的宽度,以像素为单位。 |
例子
from aspose.cells.drawing import PresetWordArtStyle
# add a WordArt
wordArt2 = shapes.add_word_art(PresetWordArtStyle.WORD_ART_STYLE1, "WordArt", 3, 0, 3, 0, 50, 200)