示例#1
0
        private eImagePosition GetImageLocation(ImageDisplayLocation location)
        {
            switch (location)
            {
            case ImageDisplayLocation.Top:
                return(eImagePosition.Top);

            case ImageDisplayLocation.Bottom:
                return(eImagePosition.Bottom);

            case ImageDisplayLocation.Left:
                return(eImagePosition.Left);

            case ImageDisplayLocation.Right:
                return(eImagePosition.Right);

            default:
                throw new ArgumentOutOfRangeException("location");
            }
        }
 public RibbonButton SetImageLocation(ImageDisplayLocation location)
 {
     ImageLocation = location; return this;
 }
 private eImagePosition GetImageLocation(ImageDisplayLocation location)
 {
     switch (location)
     {
         case ImageDisplayLocation.Top:
             return eImagePosition.Top;
         case ImageDisplayLocation.Bottom:
             return eImagePosition.Bottom;
         case ImageDisplayLocation.Left:
             return eImagePosition.Left;
         case ImageDisplayLocation.Right:
             return eImagePosition.Right;
         default:
             throw new ArgumentOutOfRangeException("location");
     }
 }
示例#4
0
 public RibbonButton SetImageLocation(ImageDisplayLocation location)
 {
     ImageLocation = location; return(this);
 }