Characters#
object
is a Range or Shape object.
- class Characters(impl)#
The characters object can be accessed as an attribute of the range or shape object.
mysheet['A1'].characters
mysheet.shapes[0].characters
注釈
On macOS,
characters
are currently not supported due to bugs/lack of support in AppleScript.バージョン 0.23.0 で追加.
- property api#
使用しているエンジンのネイティブ オブジェクト(
pywin32
オブジェクトまたはappscript
オブジェクト)を返します。バージョン 0.23.0 で追加.
- property font#
Returns or sets the text property of a
characters
object.>>> sheet['A1'].characters[1:3].font.bold = True >>> sheet['A1'].characters[1:3].font.bold True
バージョン 0.23.0 で追加.
- property text#
Returns or sets the text property of a
characters
object.>>> sheet['A1'].value = 'Python' >>> sheet['A1'].characters[:3].text Pyt
バージョン 0.23.0 で追加.