共用方式為


NSSearchField.GetRectForSearchText(Boolean) 方法

定義

[Foundation.Export("rectForSearchTextWhenCentered:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual CoreGraphics.CGRect GetRectForSearchText (bool isCentered);
abstract member GetRectForSearchText : bool -> CoreGraphics.CGRect
override this.GetRectForSearchText : bool -> CoreGraphics.CGRect

參數

isCentered
Boolean

傳回

屬性

適用於