Edytuj

Udostępnij za pośrednictwem


PdfPage.GetSelection Method

Definition

Overloads

GetSelection(CGRect)

Returns the text in the specified rectangle.

GetSelection(NSRange)

Returns a selection for the specified range.

GetSelection(CGPoint, CGPoint)

Returns the text in the rectangle that is specified by the user-coordinate-space start and end points.

GetSelection(CGRect)

Returns the text in the specified rectangle.

[Foundation.Export("selectionForRect:")]
public virtual PdfKit.PdfSelection GetSelection (CoreGraphics.CGRect rect);
abstract member GetSelection : CoreGraphics.CGRect -> PdfKit.PdfSelection
override this.GetSelection : CoreGraphics.CGRect -> PdfKit.PdfSelection

Parameters

rect
CGRect

The rectangle, in user coordinates, for which to get the selection.

Returns

Attributes

Applies to

GetSelection(NSRange)

Returns a selection for the specified range.

[Foundation.Export("selectionForRange:")]
public virtual PdfKit.PdfSelection GetSelection (Foundation.NSRange range);
abstract member GetSelection : Foundation.NSRange -> PdfKit.PdfSelection
override this.GetSelection : Foundation.NSRange -> PdfKit.PdfSelection

Parameters

range
NSRange

The text range to select.

Returns

Attributes

Applies to

GetSelection(CGPoint, CGPoint)

Returns the text in the rectangle that is specified by the user-coordinate-space start and end points.

[Foundation.Export("selectionFromPoint:toPoint:")]
public virtual PdfKit.PdfSelection GetSelection (CoreGraphics.CGPoint startPoint, CoreGraphics.CGPoint endPoint);
abstract member GetSelection : CoreGraphics.CGPoint * CoreGraphics.CGPoint -> PdfKit.PdfSelection
override this.GetSelection : CoreGraphics.CGPoint * CoreGraphics.CGPoint -> PdfKit.PdfSelection

Parameters

startPoint
CGPoint

The first point of the selection rectangle.

endPoint
CGPoint

The final point of the selection rectangle.

Returns

Attributes

Applies to