使用字段上的 firstIndent
属性,我可以使段落的开头相对于标准边距缩进,这样,如果换行,则继续从第一个字符的左侧开始在上面一行。
但是如果我为 firstIndent
设置负值,则没有效果。
有没有办法实现该行从左侧开始,但如果换行,则后续行缩进到右侧的效果?
最佳答案
您可以通过设置“leftindent”的值和“firstindent”的负值来做到这一点 (注意设置leftindent时需要指定行号)
set the leftIndent of line 1 of field "A" to 200
set the firstIndent of field "A" to -50
关于user-interface - LiveCode 负 "firstIndent"- 或其他方式来实现效果 ("hanging indent")?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15299002/