跳到主要内容

Api

表示 Api 类。

方法

方法返回值描述
CentimetersToPointsnumber将厘米转换为磅。
CreateBlipFillApiFill创建图片填充,使用所选图像作为对象背景应用于对象。
CreateBulletApiBullet使用 sSymbol 参数指定的字符或符号为段落创建项目符号。
CreateCaretAnnotApiCaretAnnotation创建插入符号批注。
CreateChartApiChart使用指定的参数创建图表。
CreateCheckboxFieldApiCheckboxField创建复选框字段。
CreateCircleAnnotApiCircleAnnotation创建圆形批注。
CreateComboboxFieldApiComboboxField创建组合框字段。
CreateCustomGeometryApiGeometry创建新的自定义几何图形。
CreateDateFieldApiTextField创建文本日期字段。
CreateFreeTextAnnotApiFreeTextAnnotation创建自由文本批注。
CreateGradientStopApiGradientStop创建用于不同类型渐变的渐变光圈。
CreateHighlightAnnotApiHighlightAnnotation创建高亮批注。
CreateImageApiImage使用指定的参数创建图像。
CreateImageFieldApiButtonField创建图像字段。
CreateInkAnnotApiInkAnnotation创建墨迹批注。
CreateLineAnnotApiLineAnnotation创建线条批注。
CreateLinearGradientFillApiFill创建线性渐变填充,使用所选线性渐变作为对象背景应用于对象。
CreateListboxFieldApiListboxField创建列表框字段。
CreateNoFillApiFill创建无填充并移除元素的填充。
CreateNumberingApiBullet使用 numType 参数指定的编号字符或符号为段落创建项目符号。
CreateParagraphApiParagraph创建新段落。
CreatePatternFillApiFill创建图案填充,使用所选图案作为对象背景应用于对象。
CreatePolyLineAnnotApiPolyLineAnnotation创建折线批注。
CreatePolygonAnnotApiPolygonAnnotation创建多边形批注。
CreatePresetColorApiPresetColor从可用的颜色预设中选择创建颜色。
CreatePresetGeometryApiGeometry | null使用可用的预设形状之一创建几何图形。
CreateRGBColorApiRGBColor通过设置红、绿、蓝颜色分量的适当值来创建 RGB 颜色。
CreateRadialGradientFillApiFill创建径向渐变填充,使用所选径向渐变作为对象背景应用于对象。
CreateRadiobuttonFieldApiRadiobuttonField创建单选按钮字段。
CreateRedactAnnotApiRedactAnnotation创建涂黑批注。
CreateRichParaPrApiParaPr创建空的富文本段落属性。
CreateRichParagraphApiRichParagraph创建新的富文本段落。
CreateRichRunApiRichRun创建新的富文本文字部分。
CreateRichTextPrApiTextPr创建空的富文本属性。
CreateRunApiRun创建要插入到当前段落或表格中的新的较小文本块。
CreateSchemeColorApiSchemeColor从可用的配色方案中选择创建复杂配色方案。
CreateShapeApiShape使用指定的参数创建形状。
CreateSolidFillApiFill创建纯色填充,使用所选纯色作为对象背景应用于对象。
CreateSquareAnnotApiSquareAnnotation创建方形批注。
CreateStampAnnotApiStampAnnotation创建图章批注。
CreateStrikeoutAnnotApiStrikeoutAnnotation创建删除线批注。
CreateStrokeApiStroke创建为元素添加阴影的笔触。
CreateTableApiTable创建表格。
CreateTextAnnotApiTextAnnotation创建文本批注。
CreateTextFieldApiTextField创建文本字段。
CreateTextPrApiTextPr创建空的文本属性。
CreateUnderlineAnnotApiUnderlineAnnotation创建下划线批注。
EmusToMillimetersmm将英制度量单位 (EMU) 转换为毫米。
EmusToPointsnumber将 EMU(英制度量单位)转换为磅。
GetDocumentApiDocument使用指定的文本字段属性创建文本字段。
GetFullNamestring返回当前打开文件的完整名称。
HexColorApiColor从十六进制字符串创建颜色。
InchesToPointsnumber将英寸转换为磅。
LinesToPointsnumber将行转换为磅(1 行 = 12 磅)。
MillimetersToEmusEMU将毫米转换为英制度量单位 (EMU)。结果为整数值。
MillimetersToPixelsnumber将毫米转换为像素。
MillimetersToPointsnumber将毫米转换为磅。
PicasToPointsnumber将派卡转换为磅。
PixelsToEmusnumber将像素转换为 EMU(英制度量单位)。
PixelsToPointsnumber将像素转换为磅。
PointsToCentimetersnumber将磅转换为厘米。
PointsToEmusnumber将磅转换为 EMU(英制度量单位)。
PointsToInchesnumber将磅转换为英寸。
PointsToLinesnumber将磅转换为行(1 行 = 12 磅)。
PointsToMillimetersnumber将磅转换为毫米。
PointsToPicasnumber将磅转换为派卡(1 派卡 = 12 磅)。
PointsToPixelsnumber将磅转换为像素。
PointsToTwipsnumber将磅转换为缇。
RGBApiColor从红、绿、蓝分量创建 RGB 颜色。
RGBAApiColor从红、绿、蓝和透明度分量创建 RGBA 颜色。
ThemeColorApiColor创建主题颜色。
TwipsToPointsnumber将缇转换为磅。