예제 #1
0
 void SetAlignment()
 {
     Control.ResetWidth();
     Control.Justify = horizontalAlign.ToGtk();
     Control.SetAlignment(horizontalAlign.ToAlignment(), verticalAlign.ToAlignment());
     eventBox.ResizeChildren();
 }
예제 #2
0
파일: LabelHandler.cs 프로젝트: nzysoft/Eto
        void SetAlignment()
        {
            Control.ResetWidth();
            Control.Justify = horizontalAlign.ToGtk();
            Control.Xalign  = horizontalAlign.ToAlignment();
            Control.Yalign  = verticalAlign.ToAlignment();
#if GTK2
            eventBox.ResizeChildren();
#endif
        }