你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DocumentStyleOutput interface

表示观察到的文本样式的对象。

属性

backgroundColor

#rrggbb 十六进制格式的背景色。

color

#rrggbb 十六进制格式的前景色。

confidence

正确标识样式的置信度。

fontStyle

字形。

可能的值:“normal”、“italic”

fontWeight

字体粗细。

可能的值:“normal”、“bold”

isHandwritten

内容是否手写?

similarFontFamily

从受支持的字体系列中直观上最相似的字体,回退字体遵循 CSS 约定(例如“Arial, sans-serif”)。

spans

样式应用于的串联内容中文本元素的位置。

属性详细信息

backgroundColor

#rrggbb 十六进制格式的背景色。

backgroundColor?: string

属性值

string

color

#rrggbb 十六进制格式的前景色。

color?: string

属性值

string

confidence

正确标识样式的置信度。

confidence: number

属性值

number

fontStyle

字形。

可能的值:“normal”、“italic”

fontStyle?: string

属性值

string

fontWeight

字体粗细。

可能的值:“normal”、“bold”

fontWeight?: string

属性值

string

isHandwritten

内容是否手写?

isHandwritten?: boolean

属性值

boolean

similarFontFamily

从受支持的字体系列中直观上最相似的字体,回退字体遵循 CSS 约定(例如“Arial, sans-serif”)。

similarFontFamily?: string

属性值

string

spans

样式应用于的串联内容中文本元素的位置。

spans: DocumentSpanOutput[]

属性值