rng.Case
Case conversion (all caps, small caps and so on).
Signature
rng.Case
Notes
Case conversion (all caps, small caps and so on).
Python example (runnable)
Requires
pywin32. The example assumes app / doc / page / layer are already connected.
See Connection & InitPython
shape = app.ActiveSelectionRange(1)
ca = shape.Text.Story.Characters.All
try:
ca.Case = 1 # case conversion (1 = all caps; see cdrTextCase)
print("Case converted")
except Exception as e:
print("Case is unsupported in this version: ", e)
About this section: TextRange
TextRange — character ranges inside a text object.
- This section has 7 entries; this is one of them.
- See the full section index: TextRange
Other entries in this section
- rng.FontFont name, read/write. Always read it back after writing (see the warn
- rng.SizeFont size in points, not doc.Unit.
- rng.Bold / .Italic / .UnderlineBold, italic, underline. Booleans.
- rng.CharSpacingCharacter spacing percentage. More precise than setting it on the Stor
- rng.FillText fill, same as a shape's Fill.
- rng.OutlineText outline. This is the core of the yellow-text-with-black-edge look