当前位置: 首页>>代码示例>>C#>>正文


C# PaletteButtonSpecStyle类代码示例

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


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


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