MonobjcMonobjc Documented Class Library
DrawTitleWithFrameInView Method (title, frame, controlView)
NamespacesMonobjc.AppKitNSButtonCellDrawTitleWithFrameInView(NSAttributedString, NSRect, NSView)

Draws the button’s title centered vertically in a specified rectangle.

Original signature is '- (NSRect)drawTitle:(NSAttributedString *)title withFrame:(NSRect)frame inView:(NSView *)controlView'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSRect DrawTitleWithFrameInView(
	NSAttributedString title,
	NSRect frame,
	NSView controlView
Public Overridable Function DrawTitleWithFrameInView ( _
	title As NSAttributedString, _
	frame As NSRect, _
	controlView As NSView _
) As NSRect
virtual NSRect DrawTitleWithFrameInView(
	NSAttributedString^ title, 
	NSRect frame, 
	NSView^ controlView
title (NSAttributedString)
The title of the button.
frame (NSRect)
The rectangle in which to draw the title.
controlView (NSView)
The control being drawn.
Return Value
The bounding rectangle for the text of the title.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)