久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <small id='gAY2k'></small><noframes id='gAY2k'>

    <i id='gAY2k'><tr id='gAY2k'><dt id='gAY2k'><q id='gAY2k'><span id='gAY2k'><b id='gAY2k'><form id='gAY2k'><ins id='gAY2k'></ins><ul id='gAY2k'></ul><sub id='gAY2k'></sub></form><legend id='gAY2k'></legend><bdo id='gAY2k'><pre id='gAY2k'><center id='gAY2k'></center></pre></bdo></b><th id='gAY2k'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='gAY2k'><tfoot id='gAY2k'></tfoot><dl id='gAY2k'><fieldset id='gAY2k'></fieldset></dl></div>

      <bdo id='gAY2k'></bdo><ul id='gAY2k'></ul>
    <tfoot id='gAY2k'></tfoot>
  • <legend id='gAY2k'><style id='gAY2k'><dir id='gAY2k'><q id='gAY2k'></q></dir></style></legend>

      1. 控制 LTR 和 RTL 語言之間的對齊切換

        Control alignment switching between LTR and RTL languages(控制 LTR 和 RTL 語言之間的對齊切換)

        <small id='RIsD7'></small><noframes id='RIsD7'>

        1. <i id='RIsD7'><tr id='RIsD7'><dt id='RIsD7'><q id='RIsD7'><span id='RIsD7'><b id='RIsD7'><form id='RIsD7'><ins id='RIsD7'></ins><ul id='RIsD7'></ul><sub id='RIsD7'></sub></form><legend id='RIsD7'></legend><bdo id='RIsD7'><pre id='RIsD7'><center id='RIsD7'></center></pre></bdo></b><th id='RIsD7'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='RIsD7'><tfoot id='RIsD7'></tfoot><dl id='RIsD7'><fieldset id='RIsD7'></fieldset></dl></div>
            <tbody id='RIsD7'></tbody>

                • <bdo id='RIsD7'></bdo><ul id='RIsD7'></ul>
                • <tfoot id='RIsD7'></tfoot>

                  <legend id='RIsD7'><style id='RIsD7'><dir id='RIsD7'><q id='RIsD7'></q></dir></style></legend>
                  本文介紹了控制 LTR 和 RTL 語言之間的對齊切換的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  雖然這個問題很籠統,可以應用于網絡,但我對 WinForms 尤其感興趣.

                  Although this question is general enough to apply to the web, I'm interested in WinForms in particular.

                  應用程序 UI 在 LTR 和 RTL 語言之間切換而不會發生意外.唯一的障礙是放置與文本框等輸入控件相關的標簽.

                  The application UI switches between LTR and RTL languages without incident. The only obstacle is placement of labels that are associated with input controls such as text boxes.

                  從左到右:

                  從右到左:

                  RTL 圖像上的標簽位置也應相應更改.

                  The label placement on the RTL image should also change accordingly.

                  是否有一種通用的、程序化的方式來實現這一點?

                  Is there a generalized, programmatic way to achieve this?

                  推薦答案

                  選項 1 - 鏡像表單(也可以鏡像標題欄)??

                  如果 RightToLeftLayoutRightToLeft 屬性都為 true,則會為表單打開鏡像,并且控件放置和文本流將是從右到左的.因此,將 RightToLeftLayout 設置為 true 并將 RightToLeft 設置為 yes 以獲得完整的從右到左布局.

                  If both the RightToLeftLayout and RightToLeft properties are true, mirroring will be turned on for the form, and control placement and text flow will be right-to-left. So set RightToLeftLayout to true and set RightToLeft to yes to have a complete right to left layout.

                  這樣,表單標題欄也將被鏡像,控制框將顯示在左側.

                  This way also the form title bar will be mirrored and control box will be shown at left.

                  選項 2 - 鏡像面板(不鏡像標題欄)??

                  如果您不喜歡從右到左的標題欄和左側的控件框,您應該自己創建從右到左的容器并將控件放入其中,然后設置 RightToLeftLayoutcontainer 為 true 并將容器的 RightToLeft 設置為 yes 以在容器中具有完整的從右到左的布局,而不改變標題欄和控制框的布局:

                  If you don't like to have right to left title bar and the control box at left, you should create your right to left container yourself and put controls in it and then set RightToLeftLayout of the container to true and set RightToLeft of the container to yes to have a complete right to left layout in the container without changing the layout of title bar and control box:

                  using System;
                  using System.ComponentModel;
                  using System.Windows.Forms;
                  public class ExPanel : Panel
                  {
                      const int WS_EX_LAYOUTRTL = 0x400000;
                      const int WS_EX_NOINHERITLAYOUT = 0x100000;
                      private bool rightToLeftLayout = false;
                  
                      [Localizable(true)]
                      public bool RightToLeftLayout
                      {
                          get { return rightToLeftLayout; }
                          set
                          {
                              if (rightToLeftLayout != value)
                              {
                                  rightToLeftLayout = value;
                                  this.RecreateHandle();
                              }
                          }
                      }
                      protected override CreateParams CreateParams
                      {
                          get
                          {
                              CreateParams CP;
                              CP = base.CreateParams;
                              if (this.RightToLeftLayout &&
                                  this.RightToLeft == System.Windows.Forms.RightToLeft.Yes)
                                  CP.ExStyle = CP.ExStyle | WS_EX_LAYOUTRTL | WS_EX_NOINHERITLAYOUT;
                              return CP;
                          }
                      }
                  }
                  

                  截圖

                  這是選項1的屏幕截圖.查看標題欄左側的關閉按鈕:

                  Here is a screenshot of Option 1. Look at Close button at left side of title bar:

                  這是選項2的截圖.查看標題欄右側的關閉按鈕:

                  Here is a screenshot of Option 2. Look at Close button at right side of title bar:

                  這篇關于控制 LTR 和 RTL 語言之間的對齊切換的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Ignore whitespace while reading XML(讀取 XML 時忽略空格)
                  XML to LINQ with Checking Null Elements(帶有檢查空元素的 XML 到 LINQ)
                  Reading XML with unclosed tags in C#(在 C# 中讀取帶有未閉合標簽的 XML)
                  Parsing tables, cells with Html agility in C#(在 C# 中使用 Html 敏捷性解析表格、單元格)
                  delete element from xml using LINQ(使用 LINQ 從 xml 中刪除元素)
                  Parse malformed XML(解析格式錯誤的 XML)

                      <tbody id='jpfwD'></tbody>
                      <bdo id='jpfwD'></bdo><ul id='jpfwD'></ul>
                    • <tfoot id='jpfwD'></tfoot>

                            <i id='jpfwD'><tr id='jpfwD'><dt id='jpfwD'><q id='jpfwD'><span id='jpfwD'><b id='jpfwD'><form id='jpfwD'><ins id='jpfwD'></ins><ul id='jpfwD'></ul><sub id='jpfwD'></sub></form><legend id='jpfwD'></legend><bdo id='jpfwD'><pre id='jpfwD'><center id='jpfwD'></center></pre></bdo></b><th id='jpfwD'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='jpfwD'><tfoot id='jpfwD'></tfoot><dl id='jpfwD'><fieldset id='jpfwD'></fieldset></dl></div>

                            <small id='jpfwD'></small><noframes id='jpfwD'>

                            <legend id='jpfwD'><style id='jpfwD'><dir id='jpfwD'><q id='jpfwD'></q></dir></style></legend>
                            主站蜘蛛池模板: 亚洲色图综合网 | 老熟女毛片 | 国产在线观看一区二区三区 | 粉嫩国产精品一区二区在线观看 | 在线播放日韩 | 国产久| 日日日操 | 久久久精品一区二区三区 | 欧美一二三区 | 欧美激情免费在线 | 一区二区免费在线视频 | 精品国产一区二区三区久久 | 日本一二区视频 | 成人免费av | 色综合av| 欧美综合国产精品久久丁香 | 亚洲欧洲激情 | 免费av毛片 | 一区二区三区欧美在线观看 | 欧美日韩电影免费观看 | 久久激情视频 | 亚洲国产精品一区二区第一页 | 亚洲狠狠爱 | 天天弄 | 成人精品国产一区二区4080 | 一级做a爰片性色毛片视频停止 | 国产高清无av久久 | 在线中文字幕第一页 | 久久久女女女女999久久 | 精品视频在线播放 | 影音先锋中文字幕在线观看 | 久久久久国产一区二区三区 | 欧美一级淫片免费视频黄 | 国产精品一区二区不卡 | 精品国产乱码久久久久久蜜柚 | 亚洲欧美日韩中文字幕一区二区三区 | 欧美精品在线一区二区三区 | 欧美一区二区三区视频在线 | 鸳鸯谱在线观看高清 | 日韩网站在线观看 | 午夜色婷婷 |