DCSCopyTextDefinition

Function DCSCopyTextDefinition 

Source
pub unsafe extern "C-unwind" fn DCSCopyTextDefinition(
    dictionary: Option<&DCSDictionary>,
    text_string: &CFString,
    range: CFRange,
) -> Option<CFRetained<CFString>>
Available on crate feature DictionaryServices only.
Expand description

Copies definition for a specified range of text

Parameter dictionary: This parameter is not supported for Leopard. You should always pass NULL.

Parameter textString: Text that contains the word or phrase to look up

Parameter range: Range of the target word or phrase in textString

Returns: Returns a definition of the specified term in range in plain text