• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# PaletteButtonSpecStyle类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中PaletteButtonSpecStyle的典型用法代码示例。如果您正苦于以下问题:C# PaletteButtonSpecStyle类的具体用法?C# PaletteButtonSpecStyle怎么用?C# PaletteButtonSpecStyle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PaletteButtonSpecStyle类属于命名空间,在下文中一共展示了PaletteButtonSpecStyle类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: ButtonSpecFormFixed

        /// <summary>
        /// Initialize a new instance of the ButtonSpecFormFixed class.
        /// </summary>
        /// <param name="form">Reference to owning krypton form.</param>
        /// <param name="fixedStyle">Fixed style to use.</param>
        public ButtonSpecFormFixed(KryptonForm form,
                                   PaletteButtonSpecStyle fixedStyle)
        {
            Debug.Assert(form != null);

            // Remember back reference to owning navigator.
            _form = form;

            // Fix the type
            ProtectedType = fixedStyle;
        }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:16,代码来源:ButtonSpecFormFixed.cs


示例2: ButtonSpecNavFixed

        /// <summary>
        /// Initialize a new instance of the ButtonSpecNavFixed class.
        /// </summary>
        /// <param name="navigator">Reference to owning navigator instance.</param>
        /// <param name="fixedStyle">Fixed style to use.</param>
        public ButtonSpecNavFixed(KryptonNavigator navigator,
                                  PaletteButtonSpecStyle fixedStyle)
        {
            Debug.Assert(navigator != null);

            // Remember back reference to owning navigator.
            _navigator = navigator;

            // Fix the type
            ProtectedType = fixedStyle;

            // Default other properties
            _location = HeaderLocation.PrimaryHeader;
        }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:19,代码来源:ButtonSpecNavFixed.cs


示例3: ButtonSpecCalendar

        /// <summary>
        /// Initialize a new instance of the ButtonSpecCalendar class.
        /// </summary>
        /// <param name="month">Reference to owning view.</param>
        /// <param name="fixedStyle">Fixed style to use.</param>
        /// <param name="edge">Alignment edge.</param>
        public ButtonSpecCalendar(ViewDrawMonth month,
                                  PaletteButtonSpecStyle fixedStyle,
                                  RelativeEdgeAlign edge)
        {
            Debug.Assert(month != null);

            // Remember back reference to owning navigator.
            _month = month;
            _edge = edge;
            _enabled = true;
            _visible = true;

            // Fix the type
            ProtectedType = fixedStyle;
        }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:21,代码来源:ButtonSpecCalendar.cs


示例4: GetButtonSpecEdge

 /// <summary>
 /// Gets the edge to positon the button against.
 /// </summary>
 /// <param name="style">Style of button spec.</param>
 /// <returns>PaletteRelativeEdgeAlign value.</returns>
 public override PaletteRelativeEdgeAlign GetButtonSpecEdge(PaletteButtonSpecStyle style)
 {
     return _inherit.GetButtonSpecEdge(style);
 }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:9,代码来源:PaletteRedirectButtonSpec.cs


示例5: GetButtonSpecImage

 /// <summary>
 /// Gets the image to display for the button.
 /// </summary>
 /// <param name="style">Style of button spec.</param>
 /// <param name="state">State for which image is required.</param>
 /// <returns>Image value.</returns>
 public override Image GetButtonSpecImage(PaletteButtonSpecStyle style,
                                          PaletteState state)
 {
     switch (style)
     {
         case PaletteButtonSpecStyle.Close:
             return _buttonSpecClose;
         case PaletteButtonSpecStyle.Context:
             return _buttonSpecContext;
         case PaletteButtonSpecStyle.Next:
             return _buttonSpecNext;
         case PaletteButtonSpecStyle.Previous:
             return _buttonSpecPrevious;
         case PaletteButtonSpecStyle.ArrowLeft:
             return _buttonSpecArrowLeft;
         case PaletteButtonSpecStyle.ArrowRight:
             return _buttonSpecArrowRight;
         case PaletteButtonSpecStyle.ArrowUp:
             return _buttonSpecArrowUp;
         case PaletteButtonSpecStyle.ArrowDown:
             return _buttonSpecArrowDown;
         case PaletteButtonSpecStyle.DropDown:
             return _buttonSpecDropDown;
         case PaletteButtonSpecStyle.PinVertical:
             return _buttonSpecPinVertical;
         case PaletteButtonSpecStyle.PinHorizontal:
             return _buttonSpecPinHorizontal;
         case PaletteButtonSpecStyle.PendantClose:
             return _buttonSpecPendantClose;
         case PaletteButtonSpecStyle.PendantMin:
             return _buttonSpecPendantMin;
         case PaletteButtonSpecStyle.PendantRestore:
             return _buttonSpecPendantRestore;
         case PaletteButtonSpecStyle.WorkspaceMaximize:
             return _buttonSpecWorkspaceMaximize;
         case PaletteButtonSpecStyle.WorkspaceRestore:
             return _buttonSpecWorkspaceRestore;
         case PaletteButtonSpecStyle.RibbonMinimize:
             return _buttonSpecRibbonMinimize;
         case PaletteButtonSpecStyle.RibbonExpand:
             return _buttonSpecRibbonExpand;
         case PaletteButtonSpecStyle.Generic:
             return null;
         default:
             // Should never happen!
             Debug.Assert(false);
             return null;
     }
 }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:55,代码来源:PaletteOffice2007Base.cs


示例6: GetButtonSpecToolTipTitle

 /// <summary>
 /// Gets the tooltip title text to display for the button.
 /// </summary>
 /// <param name="style">Style of button spec.</param>
 /// <returns>String value.</returns>
 public override string GetButtonSpecToolTipTitle(PaletteButtonSpecStyle style)
 {
     if ((ToolTipTitle.Length > 0) || !AllowInheritToolTipTitle)
         return ToolTipTitle;
     else
         return base.GetButtonSpecToolTipTitle(style);
 }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:12,代码来源:KryptonPaletteButtonSpecTyped.cs


示例7: GetButtonSpecLongText

 /// <summary>
 /// Gets the long text to display for the button.
 /// </summary>
 /// <param name="style">Style of button spec.</param>
 /// <returns>String value.</returns>
 public override string GetButtonSpecLongText(PaletteButtonSpecStyle style)
 {
     if ((ExtraText.Length > 0) || !AllowInheritExtraText)
         return ExtraText;
     else
         return base.GetButtonSpecLongText(style);
 }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:12,代码来源:KryptonPaletteButtonSpecTyped.cs


示例8: GetButtonSpecColorMap

 /// <summary>
 /// Gets the color to remap from the image to the container foreground.
 /// </summary>
 /// <param name="style">Style of button spec.</param>
 /// <returns>Color value.</returns>
 public override Color GetButtonSpecColorMap(PaletteButtonSpecStyle style)
 {
     if (ColorMap != Color.Empty)
         return ColorMap;
     else
         return base.GetButtonSpecColorMap(style);
 }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:12,代码来源:KryptonPaletteButtonSpecTyped.cs


示例9: PopulateFromBase

 /// <summary>
 /// Populate values from the base palette.
 /// </summary>
 /// <param name="style">The style of the button spec instance.</param>
 public virtual void PopulateFromBase(PaletteButtonSpecStyle style)
 {
     Style = _redirector.GetButtonSpecStyle(style);
     Orientation = _redirector.GetButtonSpecOrientation(style);
     Edge = _redirector.GetButtonSpecEdge(style);
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:10,代码来源:KryptonPaletteButtonSpecBase.cs


示例10: GetButtonSpecColorMap

 /// <summary>
 /// Gets the color to remap from the image to the container foreground.
 /// </summary>
 /// <param name="style">Style of button spec.</param>
 /// <returns>Color value.</returns>
 public virtual Color GetButtonSpecColorMap(PaletteButtonSpecStyle style)
 {
     return _redirector.GetButtonSpecColorMap(style);
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:9,代码来源:KryptonPaletteButtonSpecBase.cs


示例11: ButtonSpecMdiChildFixed

 /// <summary>
 /// Initialize a new instance of the ButtonSpecMdiChildFixed class.
 /// </summary>
 /// <param name="fixedStyle">Fixed style to use.</param>
 public ButtonSpecMdiChildFixed(PaletteButtonSpecStyle fixedStyle)
 {
     // Fix the type
     ProtectedType = fixedStyle;
 }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:9,代码来源:ButtonSpecMdiChildFixed.cs


示例12: PaletteTypeToNavigator

 private PaletteNavButtonSpecStyle PaletteTypeToNavigator(PaletteButtonSpecStyle type)
 {
     switch (type)
     {
         case PaletteButtonSpecStyle.Generic:
             return PaletteNavButtonSpecStyle.Generic;
         case PaletteButtonSpecStyle.ArrowUp:
             return PaletteNavButtonSpecStyle.ArrowUp;
         case PaletteButtonSpecStyle.ArrowRight:
             return PaletteNavButtonSpecStyle.ArrowRight;
         case PaletteButtonSpecStyle.ArrowLeft:
             return PaletteNavButtonSpecStyle.ArrowLeft;
         case PaletteButtonSpecStyle.ArrowDown:
             return PaletteNavButtonSpecStyle.ArrowDown;
         case PaletteButtonSpecStyle.DropDown:
             return PaletteNavButtonSpecStyle.DropDown;
         case PaletteButtonSpecStyle.PinVertical:
             return PaletteNavButtonSpecStyle.PinVertical;
         case PaletteButtonSpecStyle.PinHorizontal:
             return PaletteNavButtonSpecStyle.PinHorizontal;
         case PaletteButtonSpecStyle.FormClose:
             return PaletteNavButtonSpecStyle.FormClose;
         case PaletteButtonSpecStyle.FormMax:
             return PaletteNavButtonSpecStyle.FormMax;
         case PaletteButtonSpecStyle.FormMin:
             return PaletteNavButtonSpecStyle.FormMin;
         case PaletteButtonSpecStyle.FormRestore:
             return PaletteNavButtonSpecStyle.FormRestore;
         case PaletteButtonSpecStyle.PendantClose:
             return PaletteNavButtonSpecStyle.PendantClose;
         case PaletteButtonSpecStyle.PendantMin:
             return PaletteNavButtonSpecStyle.PendantMin;
         case PaletteButtonSpecStyle.PendantRestore:
             return PaletteNavButtonSpecStyle.PendantRestore;
         case PaletteButtonSpecStyle.WorkspaceMaximize:
             return PaletteNavButtonSpecStyle.WorkspaceMaximize;
         case PaletteButtonSpecStyle.WorkspaceRestore:
             return PaletteNavButtonSpecStyle.WorkspaceRestore;
         case PaletteButtonSpecStyle.RibbonMinimize:
             return PaletteNavButtonSpecStyle.RibbonMinimize;
         case PaletteButtonSpecStyle.RibbonExpand:
             return PaletteNavButtonSpecStyle.RibbonExpand;
         default:
             // Should never happen!
             Debug.Assert(false);
             return PaletteNavButtonSpecStyle.Generic;
     }
 }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:48,代码来源:ButtonSpecNavigator.cs


示例13: GetButtonSpecLocation

 /// <summary>
 /// Get the location for the button.
 /// </summary>
 /// <param name="style">Style of button spec.</param>
 /// <returns>HeaderLocation value.</returns>
 public override HeaderLocation GetButtonSpecLocation(PaletteButtonSpecStyle style)
 {
     return _inherit.GetButtonSpecLocation(style);
 }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:9,代码来源:PaletteRedirectButtonSpec.cs


示例14: GetButtonSpecImage

 /// <summary>
 /// Gets the image to display for the button.
 /// </summary>
 /// <param name="style">Style of button spec.</param>
 /// <param name="state">State for which image is required.</param>
 /// <returns>Image value.</returns>
 public override Image GetButtonSpecImage(PaletteButtonSpecStyle style,
                                          PaletteState state)
 {
     return _inherit.GetButtonSpecImage(style, state);
 }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:11,代码来源:PaletteRedirectButtonSpec.cs


示例15: GetButtonSpecStyle

 /// <summary>
 /// Gets the button style used for drawing the button.
 /// </summary>
 /// <param name="style">Style of button spec.</param>
 /// <returns>PaletteButtonStyle value.</returns>
 public virtual PaletteButtonStyle GetButtonSpecStyle(PaletteButtonSpecStyle style)
 {
     if (Style != PaletteButtonStyle.Inherit)
         return Style;
     else
         return _redirector.GetButtonSpecStyle(style);
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:12,代码来源:KryptonPaletteButtonSpecBase.cs


示例16: GetButtonSpecEdge

 /// <summary>
 /// Gets the edge to positon the button against.
 /// </summary>
 /// <param name="style">Style of button spec.</param>
 /// <returns>PaletteRelativeEdgeAlign value.</returns>
 public virtual PaletteRelativeEdgeAlign GetButtonSpecEdge(PaletteButtonSpecStyle style)
 {
     if (Edge != PaletteRelativeEdgeAlign.Inherit)
         return Edge;
     else
         return _redirector.GetButtonSpecEdge(style);
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:12,代码来源:KryptonPaletteButtonSpecBase.cs


示例17: GetButtonSpecToolTipTitle

 /// <summary>
 /// Gets the tooltip title text to display for the button.
 /// </summary>
 /// <param name="style">Style of button spec.</param>
 /// <returns>String value.</returns>
 public virtual string GetButtonSpecToolTipTitle(PaletteButtonSpecStyle style)
 {
     return _redirector.GetButtonSpecToolTipTitle(style);
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:9,代码来源:KryptonPaletteButtonSpecBase.cs


示例18: GetButtonSpecIcon

 /// <summary>
 /// Gets the icon to display for the button.
 /// </summary>
 /// <param name="style">Style of button spec.</param>
 /// <returns>Icon value.</returns>
 public virtual Icon GetButtonSpecIcon(PaletteButtonSpecStyle style)
 {
     return _redirector.GetButtonSpecIcon(style);
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:9,代码来源:KryptonPaletteButtonSpecBase.cs


示例19: GetButtonSpecImage

 /// <summary>
 /// Gets the image to display for the button.
 /// </summary>
 /// <param name="style">Style of button spec.</param>
 /// <param name="state">State for which image is required.</param>
 /// <returns>Image value.</returns>
 public override Image GetButtonSpecImage(PaletteButtonSpecStyle style,
                                          PaletteState state)
 {
     switch (style)
     {
         case PaletteButtonSpecStyle.FormClose:
             if (state == PaletteState.Disabled)
                 return _silverCloseI;
             else
                 return _silverCloseA;
         case PaletteButtonSpecStyle.FormMin:
             if (state == PaletteState.Disabled)
                 return _silverMinI;
             else
                 return _silverMinA;
         case PaletteButtonSpecStyle.FormMax:
             if (state == PaletteState.Disabled)
                 return _silverMaxI;
             else
                 return _silverMaxA;
         case PaletteButtonSpecStyle.FormRestore:
             if (state == PaletteState.Disabled)
                 return _silverRestoreI;
             else
                 return _silverRestoreA;
         default:
             return base.GetButtonSpecImage(style, state);
     }
 }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:35,代码来源:PaletteOffice2007Silver.cs


示例20: GetButtonSpecImage

 /// <summary>
 /// Gets the image to display for the button.
 /// </summary>
 /// <param name="style">Style of button spec.</param>
 /// <param name="state">State for which image is required.</param>
 /// <returns>Image value.</returns>
 public virtual Image GetButtonSpecImage(PaletteButtonSpecStyle style,
                                         PaletteState state)
 {
     return _redirector.GetButtonSpecImage(style, state);
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:11,代码来源:KryptonPaletteButtonSpecBase.cs



注:本文中的PaletteButtonSpecStyle类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# PaletteContentStyle类代码示例发布时间:2022-05-24
下一篇:
C# PaletteBorderStyle类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap