文檔
聯絡我們
-
學生
-
老師
-
編程
-
-
-
-
- 將文字轉換為 DateTimeOffset 格式
- 以不同單位創建 DateTimeOffset
- 以 Unix 時間創建 DateTimeOffset
- 使用當前時間創建DateTimeOffset
- 將 DateTimeOffset 與新的協調世界時偏移量合併
- 設定協調世界時偏移量
- 將 DateTimeOffset 變更成字串格式
- 轉換DateTimeOffset為字串
- 將間距加到dateTimeOffset
- 計算兩個DateTimeOffsets之間的間距
- 檢查兩個DateTimeOffsets是否相同
- 以毫秒顯示DateTimeOffset
- 以其他格式顯示時間
- 檢查DateTimeOffset是否在正確的數據類型
-
Print
文字主軸排列屬性
Layout設定主軸排列 延伸
{"blocks":"CssJustification.Stretch layout "}
這積木是用作設定佈局內容垂直排列。要顯示它的作用,必須使用「設定彈性速記增強和縮小」積木。
參數:
- 螢幕項目(佈局)
- 情況:延伸/置中/間隔/環繞空間/空間均勻
輸出: N/A
示例代碼:
{"blocks":"mainLayout mainScreen text1 text2 mainLayout 0 mainScreen 0 Main mainLayout CssJustification.Stretch mainLayout FlexShorthand.Auto mainLayout mainLayout 255 165 0 text1 0 This is text 1 text1 148 0 211 text1 255 255 255 mainLayout text1 text2 0 This is text 2 text2 0 71 171 text2 255 255 255 mainLayout text2 "}
當「mainLayout」被設為「延伸」時的輸出結果:
當「mainLayout」被設為「置中」時的輸出結果:
當「mainLayout」被設為「間隔」時的輸出結果:
當「mainLayout」被設為「環繞空間」時的輸出結果:
當「mainLayout」被設為「空間均勻」時的輸出結果: