Contents

color

Sets the color used for the drawing of a selection in both active and inactive states.

Declaration

@NSCopying var color: UIColor? { get set }
@NSCopying var color: NSColor? { get set }

Discussion

When no color has been specified for the PDFSelection objects in a document, the selections are drawn using [NSColor selectedTextBackgroundColor] for the active state and [NSColor secondarySelectedControlColor] for the inactive state. Use the setColor method to supply a color you want to be used for the drawing of both active and inactive selections.

See Also

Related Documentation

Getting Information About a Selection