PdfPage.GetSelection 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetSelection(CGRect) |
返回指定矩形中的文本。 |
GetSelection(NSRange) |
返回指定区域的选定内容。 |
GetSelection(CGPoint, CGPoint) |
返回由用户坐标空间起点和终点指定的矩形中的文本。 |
GetSelection(CGRect)
返回指定矩形中的文本。
[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
参数
- rect
- CGRect
要获取其选定内容的矩形(以用户坐标为单位)。
返回
- 属性
适用于
GetSelection(NSRange)
返回指定区域的选定内容。
[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
参数
- range
- NSRange
要选择的文本范围。
返回
- 属性
适用于
GetSelection(CGPoint, CGPoint)
返回由用户坐标空间起点和终点指定的矩形中的文本。
[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
参数
- startPoint
- CGPoint
选择矩形的第一个点。
- endPoint
- CGPoint
选择矩形的最后一个点。
返回
- 属性