示例#1
0
 void PlaceResizeVisuals(IPositionalElement element)
 {
     FirstResizeVisual.Offset  = element.Layout.Location.ToWinVector();
     SecondResizeVisual.Offset = Vector.Add(element.Layout.Location.ToWinVector(),
                                            new Vector(element.Layout.Orientation == Orientation.Horizontal ? element.Layout.Size : 0.0,
                                                       element.Layout.Orientation == Orientation.Vertical ? element.Layout.Size : 0.0));
 }
示例#2
0
        public Vector<String> makeVectorStringFromArray(RubyArray ar)
        {
            Vector<String> arRes = new Vector<String>();
            for (int i = 0; ar != null && i < ar.Count; i++)
            {
                Object item = ar[i];
                if (item != null && item is MutableString)
                    arRes.Add( ((MutableString)item).ToString() );
                else
                    arRes.Add(String.Empty);
            }

            return arRes;
        }