ILineBackgroundSpanExtensions.DrawBackground 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在畫布上畫背景。
public static void DrawBackground(this Android.Text.Style.ILineBackgroundSpan self, Android.Graphics.Canvas canvas, Android.Graphics.Paint paint, int left, int right, int top, int baseline, int bottom, string text, int start, int end, int lineNumber);
static member DrawBackground : Android.Text.Style.ILineBackgroundSpan * Android.Graphics.Canvas * Android.Graphics.Paint * int * int * int * int * int * string * int * int * int -> unit
參數
- self
- ILineBackgroundSpan
呼叫字元序列過載的區間。
- canvas
- Canvas
畫布上應繪製跨度。 這個值不可能為零值。
- paint
- Paint
Paint 以前用來畫文字,離開時文字應該保持不變。 這個值不可能為零值。
- left
- Int32
線條相對於輸入畫布的左側位置,以像素為單位。 這個數值的單位是像素。
- right
- Int32
線條相對於輸入畫布的正確位置,以像素為單位。 這個數值的單位是像素。
- top
- Int32
線條相對於輸入畫布的頂點位置,以像素為單位。 這個數值的單位是像素。
- baseline
- Int32
文字相對於輸入畫布的基線,以像素為單位。 這個數值的單位是像素。
- bottom
- Int32
線條相對於輸入畫布的底部位置,以像素為單位。 這個數值的單位是像素。
- text
- String
目前正文。 這個值不可能為零值。
- start
- Int32
該行的開始字元索引
- end
- Int32
該行的字元索引
- lineNumber
- Int32
目前文字版面中的行號
備註
在畫布上畫背景。
Android 參考資料。android.text.style.LineBackgroundSpan.drawBackground
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。