YLSearchResult Class Reference
Inherits from | NSObject |
Declared in | YLSearchResult.h YLSearchResult.m |
Tasks
-
page
Page number of the search result.
property -
shortText
A short text containing the search term. This is used as context information when displaying the results.
property -
boldRange
Range of the search term in shortText.
property -
selection
Special object that holds information about the frame used to select the text on a PDF page.
property -
– initWithPage:shortText:
Initializes a YLSearchResult object and returns it to the caller.
Properties
boldRange
Range of the search term in shortText.
@property (nonatomic, assign) NSRange boldRange
Discussion
Range of the search term in shortText.
Declared In
YLSearchResult.h
page
Page number of the search result.
@property (nonatomic, readonly) NSUInteger page
Discussion
Page number of the search result.
Declared In
YLSearchResult.h
selection
Special object that holds information about the frame used to select the text on a PDF page.
@property (nonatomic, assign) Selection *selection
Discussion
Special object that holds information about the frame used to select the text on a PDF page.
Declared In
YLSearchResult.h
shortText
A short text containing the search term. This is used as context information when displaying the results.
@property (nonatomic, readonly) NSString *shortText
Discussion
A short text containing the search term. This is used as context information when displaying the results.
Declared In
YLSearchResult.h
Instance Methods
initWithPage:shortText:
Initializes a YLSearchResult object and returns it to the caller.
- (id)initWithPage:(NSUInteger)page shortText:(NSString *)text
Parameters
- page
Page number of the search result.
- text
Short text that contains the search term.
Return Value
An initialized YLSearchResult object.
Discussion
Initializes a YLSearchResult object and returns it to the caller.
Declared In
YLSearchResult.h