Returns the bounding rectangle for the specified control glyph with the specified parameters.
Original signature is '- (NSRect)boundingBoxForControlGlyphAtIndex:(NSUInteger)glyphIndex forTextContainer:(NSTextContainer *)textContainer proposedLineFragment:(NSRect)proposedRect glyphPosition:(NSPoint)glyphPosition characterIndex:(NSUInteger)charIndex'
Available in Mac OS X v10.4 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual NSRect BoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex( NSUInteger glyphIndex, NSTextContainer textContainer, NSRect proposedRect, NSPoint glyphPosition, NSUInteger charIndex )
Public Overridable Function BoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex ( _ glyphIndex As NSUInteger, _ textContainer As NSTextContainer, _ proposedRect As NSRect, _ glyphPosition As NSPoint, _ charIndex As NSUInteger _ ) As NSRect
public: virtual NSRect BoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex( NSUInteger glyphIndex, NSTextContainer^ textContainer, NSRect proposedRect, NSPoint glyphPosition, NSUInteger charIndex )
Parameters
- glyphIndex (NSUInteger)
- The index of the control glyph in question.
- textContainer (NSTextContainer)
- The text container to use to calculate the position.
- proposedRect (NSRect)
- The proposed line fragment rectangle.
- glyphPosition (NSPoint)
- The position of the glyph in textContainer.
- charIndex (NSUInteger)
- The character index in textContainer.
Return Value
The bounding rectangle of the control glyph at glyphIndex, at the given glyphPosition and character index charIndex, in textContainer.
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)