CTLine.GetTypographicBounds 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetTypographicBounds() |
傳回線條的印刷寬度。 |
GetTypographicBounds(nfloat, nfloat, nfloat) |
傳回線條的印刷樣式資訊。 |
GetTypographicBounds()
傳回線條的印刷寬度。
public double GetTypographicBounds();
member this.GetTypographicBounds : unit -> double
傳回
行的寬度,如果發生任何錯誤,則為零。
備註
使用 M:CoreText.CTLine.GetTypographicBounds (out float、out float、out float) 方法來擷取線條印刷樣式功能的詳細資訊。
從 iOS 6.0 開始,提供 GetBounds(CTLineBoundsOptions) 比這個方法更精細的印刷資訊。
適用於
GetTypographicBounds(nfloat, nfloat, nfloat)
傳回線條的印刷樣式資訊。
public double GetTypographicBounds(out nfloat ascent, out nfloat descent, out nfloat leading);
member this.GetTypographicBounds : * * -> double
參數
- ascent
- nfloat
傳回線條的中心。
- descent
- nfloat
傳回線條下降。
- leading
- nfloat
傳回行的前置。
傳回
行的寬度,如果發生任何錯誤,則為零。
備註
從 iOS 6.0 開始,提供 GetBounds(CTLineBoundsOptions) 比這個方法更精細的印刷資訊。