macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

textContainerOrigin

テキストビューのテキストコンテナの起点を返します

解説

テキストビューのテキストコンテナの起点を返します。

返り値

( NSPoint )

起点

引数

フレームワーク

ApplicationKit

クラス

NSTextView

Instance Methods

使用可能

10.0

参照

- invalidateTextContainerOrigin
- textContainerInset
- usedRectForTextContainer:(NSLayoutManager)

例文

[tv1 insertText:[NSString stringWithFormat:@" %.1f",[tv1 textContainerOrigin].x]];