centerSelectionInVisibleArea:
選択している範囲をスクロールビューの中心にもって来ます
-(void)centerSelectionInVisibleArea:(id)sender:
解説
選択している範囲をスクロールビューの中心にもって来ます。
NSTextViewで実装されます。
返り値
( void )
なし
引数
( id )sender
送信オブジェクト
フレームワーク
ApplicationKit
クラス
NSResponder
Instance Methods
使用可能
10.0
参照
- scrollLineDown:
- scrollLineUp:
- scrollPageDown:
- scrollPageUp:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { [myOutlet centerSelectionInVisibleArea:nil]; } @end