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

C# PaletteContentStyle类代码示例

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

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



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

示例1: PaletteTripleJustImageRedirect

 /// <summary>
 /// Initialize a new instance of the PaletteTripleJustImageRedirect class.
 /// </summary>
 /// <param name="redirect">Inheritence redirection instance.</param>
 /// <param name="backStyle">Initial background style.</param>
 /// <param name="borderStyle">Initial border style.</param>
 /// <param name="contentStyle">Initial content style.</param>
 public PaletteTripleJustImageRedirect(PaletteRedirect redirect,
                                       PaletteBackStyle backStyle,
                                       PaletteBorderStyle borderStyle,
                                       PaletteContentStyle contentStyle)
     : this(redirect, backStyle, borderStyle, contentStyle, null)
 {
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:14,代码来源:PaletteTripleJustImageRedirect.cs


示例2: PaletteTreeNodeTripleRedirect

        /// <summary>
        /// Initialize a new instance of the PaletteTreeNodeTripleRedirect class.
        /// </summary>
        /// <param name="redirect">Inheritence redirection instance.</param>
        /// <param name="backStyle">Initial background style.</param>
        /// <param name="borderStyle">Initial border style.</param>
        /// <param name="contentStyle">Initial content style.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public PaletteTreeNodeTripleRedirect(PaletteRedirect redirect,
									         PaletteBackStyle backStyle,
									         PaletteBorderStyle borderStyle,
                                             PaletteContentStyle contentStyle,
                                             NeedPaintHandler needPaint)
        {
            Debug.Assert(redirect != null);
            _nodeRedirect = new PaletteTripleRedirect(redirect, backStyle, borderStyle, contentStyle, needPaint);
        }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:17,代码来源:PaletteTreeNodeTripleRedirect.cs


示例3: PaletteTripleToPalette

        /// <summary>
        /// Initialize a new instance of the PaletteTripleToPalette class.
        /// </summary>
        /// <param name="palette">Inheritence of values.</param>
        /// <param name="backStyle">Initial background style.</param>
        /// <param name="borderStyle">Initial border style.</param>
        /// <param name="contentStyle">Initial content style.</param>
        public PaletteTripleToPalette(IPalette palette,
									  PaletteBackStyle backStyle,
									  PaletteBorderStyle borderStyle,
									  PaletteContentStyle contentStyle)
        {
            // Store the inherit instances
            _back = new PaletteBackToPalette(palette, backStyle);
            _border = new PaletteBorderToPalette(palette, borderStyle);
            _content = new PaletteContentToPalette(palette, contentStyle);
        }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:17,代码来源:PaletteTripleToPalette.cs


示例4: KryptonPaletteHeader

 /// <summary>
 /// Initialize a new instance of the KryptonPaletteHeader class.
 /// </summary>
 /// <param name="redirect">Redirector to inherit values from.</param>
 /// <param name="backStyle">Background style.</param>
 /// <param name="borderStyle">Border style.</param>
 /// <param name="contentStyle">Content style.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public KryptonPaletteHeader(PaletteRedirect redirect,
                             PaletteBackStyle backStyle,
                             PaletteBorderStyle borderStyle,
                             PaletteContentStyle contentStyle,
                             NeedPaintHandler needPaint)
 {
     // Create the storage objects
     _stateCommon = new PaletteHeaderRedirect(redirect, backStyle, borderStyle, contentStyle, needPaint);
     _stateDisabled = new PaletteTripleMetric(_stateCommon, needPaint);
     _stateNormal = new PaletteTripleMetric(_stateCommon, needPaint);
 }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:19,代码来源:KryptonPaletteHeader.cs


示例5: GetContentLongTextColor2

        /// <summary>
        /// Gets the second back color for the long text.
        /// </summary>
        /// <param name="style">Content style.</param>
        /// <param name="state">Palette value should be applicable to this state.</param>
        /// <returns>Color value.</returns>
        public override Color GetContentLongTextColor2(PaletteContentStyle style, PaletteState state)
        {
            // We only want to override buttons specs that are drawing in normal mode
            if ((style == PaletteContentStyle.ButtonButtonSpec) && (state == PaletteState.Normal))
            {
                // If the ribbon is showing in office 2010 style and using glass
                if (_ribbon.CaptionArea.DrawCaptionOnComposition && (_ribbon.RibbonShape == PaletteRibbonShape.Office2010))
                    return LightBackground(base.GetContentLongTextColor2(style, state));
            }

            return base.GetContentLongTextColor2(style, state);
        }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:18,代码来源:PaletteRedirectRibbonAeroOverride.cs


示例6: KryptonPaletteLabel

 /// <summary>
 /// Initialize a new instance of the KryptonPaletteLabel class.
 /// </summary>
 /// <param name="redirect">Redirector to inherit values from.</param>
 /// <param name="contentStyle">Content style.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public KryptonPaletteLabel(PaletteRedirect redirect,
                            PaletteContentStyle contentStyle,
                            NeedPaintHandler needPaint)
 {
     // Create the storage objects
     _stateInherit = new PaletteContentInheritRedirect(redirect, contentStyle);
     _stateCommon = new PaletteContent(_stateInherit, needPaint);
     _stateDisabled = new PaletteContent(_stateCommon, needPaint);
     _stateNormal = new PaletteContent(_stateCommon, needPaint);
     _stateFocus = new PaletteContent(_stateInherit, needPaint);
     _stateVisited = new PaletteContent(_stateInherit, needPaint);
     _stateNotVisited = new PaletteContent(_stateInherit, needPaint);
     _statePressed = new PaletteContent(_stateInherit, needPaint);
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:20,代码来源:KryptonPaletteLabel.cs


示例7: PaletteHeaderPaddingRedirect

        /// <summary>
        /// Initialize a new instance of the PaletteHeaderPaddingRedirect class.
        /// </summary>
        /// <param name="redirect">Inheritence redirection instance.</param>
        /// <param name="backStyle">Initial background style.</param>
        /// <param name="borderStyle">Initial border style.</param>
        /// <param name="contentStyle">Initial content style.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public PaletteHeaderPaddingRedirect(PaletteRedirect redirect,
											PaletteBackStyle backStyle,
											PaletteBorderStyle borderStyle,
											PaletteContentStyle contentStyle,
                                            NeedPaintHandler needPaint)
            : base(redirect, backStyle, borderStyle, contentStyle, needPaint)
        {
            Debug.Assert(redirect != null);

            // Remember the redirect reference
            _redirect = redirect;

            // Set default value for padding property
            _headerPadding = CommonHelper.InheritPadding;
        }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:23,代码来源:PaletteHeaderPaddingRedirect.cs


示例8: KryptonPaletteTabButton

 /// <summary>
 /// Initialize a new instance of the KryptonPaletteTabButton class.
 /// </summary>
 /// <param name="redirect">Redirector to inherit values from.</param>
 /// <param name="backStyle">Background style.</param>
 /// <param name="borderStyle">Border style.</param>
 /// <param name="contentStyle">Content style.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public KryptonPaletteTabButton(PaletteRedirect redirect,
                                PaletteBackStyle backStyle,
                                PaletteBorderStyle borderStyle,
                                PaletteContentStyle contentStyle,
                                NeedPaintHandler needPaint)
 {
     // Create the storage objects
     _stateFocus = new PaletteTabTripleRedirect(redirect, backStyle, borderStyle, contentStyle, needPaint);
     _stateCommon = new PaletteTabTripleRedirect(redirect, backStyle, borderStyle, contentStyle, needPaint);
     _stateDisabled = new PaletteTabTriple(_stateCommon, needPaint);
     _stateNormal = new PaletteTabTriple(_stateCommon, needPaint);
     _stateTracking = new PaletteTabTriple(_stateCommon, needPaint);
     _statePressed = new PaletteTabTriple(_stateCommon, needPaint);
     _stateSelected = new PaletteTabTriple(_stateCommon, needPaint);
 }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:23,代码来源:KryptonPaletteTabButton.cs


示例9: PaletteTripleMetricRedirect

        /// <summary>
        /// Initialize a new instance of the PaletteTripleMetricRedirect class.
        /// </summary>
        /// <param name="redirect">Inheritence redirection instance.</param>
        /// <param name="backStyle">Style for the background.</param>
        /// <param name="borderStyle">Style for the border.</param>
        /// <param name="contentStyle">Style for the content.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public PaletteTripleMetricRedirect(PaletteRedirect redirect,
                                           PaletteBackStyle backStyle,
                                           PaletteBorderStyle borderStyle,
                                           PaletteContentStyle contentStyle,
                                           NeedPaintHandler needPaint)
            : base(redirect,
                   backStyle,
                   borderStyle,
                   contentStyle,
                   needPaint)
        {
            Debug.Assert(redirect != null);

            // Remember the redirect reference
            _redirect = redirect;
        }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:24,代码来源:PaletteTripleMetricRedirect.cs


示例10: PaletteDataGridViewTripleRedirect

        /// <summary>
        /// Initialize a new instance of the PaletteDataGridViewTripleRedirect class.
        /// </summary>
        /// <param name="redirect">Inheritence redirection instance.</param>
        /// <param name="backStyle">Initial background style.</param>
        /// <param name="borderStyle">Initial border style.</param>
        /// <param name="contentStyle">Initial content style.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public PaletteDataGridViewTripleRedirect(PaletteRedirect redirect,
									             PaletteBackStyle backStyle,
									             PaletteBorderStyle borderStyle,
									             PaletteContentStyle contentStyle,
                                                 NeedPaintHandler needPaint)
        {
            Debug.Assert(redirect != null);

            // Store the provided paint notification delegate
            NeedPaint = needPaint;

            // Store the inherit instances
            _backInherit = new PaletteBackInheritRedirect(redirect, backStyle);
            _borderInherit = new PaletteBorderInheritRedirect(redirect, borderStyle);
            _contentInherit = new PaletteContentInheritRedirect(redirect, contentStyle);

            // Create storage that maps onto the inherit instances
            _back = new PaletteBack(_backInherit, needPaint);
            _border = new PaletteBorder(_borderInherit, needPaint);
            _content = new PaletteDataGridViewContentCommon(_contentInherit, needPaint);
        }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:29,代码来源:PaletteDataGridViewTripleRedirect.cs


示例11: VisualPopupToolTip

        /// <summary>
        /// Initialize a new instance of the VisualPopupTooltip class.
        /// </summary>
        /// <param name="redirector">Redirector for recovering palette values.</param>
        /// <param name="contentValues">Source of content values.</param>
        /// <param name="renderer">Drawing renderer.</param>
        /// <param name="backStyle">Style for the tooltip background.</param>
        /// <param name="borderStyle">Style for the tooltip border.</param>
        /// <param name="contentStyle">Style for the tooltip content.</param>
        public VisualPopupToolTip(PaletteRedirect redirector,
                                  IContentValues contentValues,
                                  IRenderer renderer,
                                  PaletteBackStyle backStyle,
                                  PaletteBorderStyle borderStyle,
                                  PaletteContentStyle contentStyle)
            : base(renderer, true)
        {
            Debug.Assert(contentValues != null);

            // Remember references needed later
            _contentValues = contentValues;

            // Create the triple redirector needed by view elements
            _palette = new PaletteTripleMetricRedirect(redirector, backStyle, borderStyle, contentStyle, NeedPaintDelegate);

            // Our view contains background and border with content inside
            _drawDocker = new ViewDrawDocker(_palette.Back, _palette.Border, null);
            _drawContent = new ViewDrawContent(_palette.Content, _contentValues, VisualOrientation.Top);
            _drawDocker.Add(_drawContent, ViewDockStyle.Fill);

            // Create the view manager instance
            ViewManager = new ViewManager(this, _drawDocker);
        }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:33,代码来源:VisualPopupTooltip.cs


示例12: GetContentLongTextColorAlign

        /// <summary>
        /// Gets the color alignment for the long text.
        /// </summary>
        /// <param name="style">Content style.</param>
        /// <param name="state">Palette value should be applicable to this state.</param>
        /// <returns>Color alignment style.</returns>
        public override PaletteRectangleAlign GetContentLongTextColorAlign(PaletteContentStyle style, PaletteState state)
        {
            IPaletteContent inherit = GetContentInherit(state);

            if (inherit != null)
                return inherit.GetContentLongTextColorAlign(state);
            else
                return Target.GetContentLongTextColorAlign(style, state);
        }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:15,代码来源:PaletteRedirectRibbonTabContent.cs


示例13: GetContentShortTextV

        /// <summary>
        /// Gets the vertical relative alignment of the short text.
        /// </summary>
        /// <param name="style">Content style.</param>
        /// <param name="state">Palette value should be applicable to this state.</param>
        /// <returns>RelativeAlignment value.</returns>
        public override PaletteRelativeAlign GetContentShortTextV(PaletteContentStyle style, PaletteState state)
        {
            // We do not provide override values
            if (CommonHelper.IsOverrideState(state))
                return PaletteRelativeAlign.Inherit;

            switch (style)
            {
                case PaletteContentStyle.HeaderPrimary:
                case PaletteContentStyle.HeaderDockInactive:
                case PaletteContentStyle.HeaderDockActive:
                case PaletteContentStyle.HeaderCalendar:
                case PaletteContentStyle.HeaderSecondary:
                case PaletteContentStyle.HeaderForm:
                case PaletteContentStyle.HeaderCustom1:
                case PaletteContentStyle.HeaderCustom2:
                case PaletteContentStyle.LabelNormalControl:
                case PaletteContentStyle.LabelBoldControl:
                case PaletteContentStyle.LabelItalicControl:
                case PaletteContentStyle.LabelTitleControl:
                case PaletteContentStyle.LabelNormalPanel:
                case PaletteContentStyle.LabelBoldPanel:
                case PaletteContentStyle.LabelItalicPanel:
                case PaletteContentStyle.LabelTitlePanel:
                case PaletteContentStyle.LabelGroupBoxCaption:
                case PaletteContentStyle.LabelToolTip:
                case PaletteContentStyle.LabelKeyTip:
                case PaletteContentStyle.LabelCustom1:
                case PaletteContentStyle.LabelCustom2:
                case PaletteContentStyle.LabelCustom3:
                case PaletteContentStyle.ContextMenuHeading:
                case PaletteContentStyle.ContextMenuItemImage:
                case PaletteContentStyle.ContextMenuItemTextStandard:
                case PaletteContentStyle.ContextMenuItemTextAlternate:
                case PaletteContentStyle.ContextMenuItemShortcutText:
                case PaletteContentStyle.InputControlStandalone:
                case PaletteContentStyle.InputControlRibbon:
                case PaletteContentStyle.InputControlCustom1:
                case PaletteContentStyle.TabHighProfile:
                case PaletteContentStyle.TabStandardProfile:
                case PaletteContentStyle.TabLowProfile:
                case PaletteContentStyle.TabOneNote:
                case PaletteContentStyle.TabDock:
                case PaletteContentStyle.TabDockAutoHidden:
                case PaletteContentStyle.TabCustom1:
                case PaletteContentStyle.TabCustom2:
                case PaletteContentStyle.TabCustom3:
                case PaletteContentStyle.ButtonStandalone:
                case PaletteContentStyle.ButtonGallery:
                case PaletteContentStyle.ButtonAlternate:
                case PaletteContentStyle.ButtonLowProfile:
                case PaletteContentStyle.ButtonBreadCrumb:
                case PaletteContentStyle.ButtonListItem:
                case PaletteContentStyle.ButtonCommand:
                case PaletteContentStyle.ButtonButtonSpec:
                case PaletteContentStyle.ButtonCalendarDay:
                case PaletteContentStyle.ButtonCluster:
                case PaletteContentStyle.ButtonNavigatorMini:
                case PaletteContentStyle.ButtonNavigatorStack:
                case PaletteContentStyle.ButtonNavigatorOverflow:
                case PaletteContentStyle.ButtonForm:
                case PaletteContentStyle.ButtonFormClose:
                case PaletteContentStyle.ButtonCustom1:
                case PaletteContentStyle.ButtonCustom2:
                case PaletteContentStyle.ButtonCustom3:
                case PaletteContentStyle.ButtonInputControl:
                case PaletteContentStyle.GridHeaderColumnList:
                case PaletteContentStyle.GridHeaderColumnSheet:
                case PaletteContentStyle.GridHeaderColumnCustom1:
                case PaletteContentStyle.GridHeaderRowList:
                case PaletteContentStyle.GridHeaderRowSheet:
                case PaletteContentStyle.GridHeaderRowCustom1:
                case PaletteContentStyle.GridDataCellList:
                case PaletteContentStyle.GridDataCellSheet:
                case PaletteContentStyle.GridDataCellCustom1:
                    return PaletteRelativeAlign.Center;
                case PaletteContentStyle.LabelSuperTip:
                    return PaletteRelativeAlign.Near;
                default:
                    throw new ArgumentOutOfRangeException("style");
            }
        }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:88,代码来源:PaletteOffice2007Base.cs


示例14: GetContentShortTextNewFont

 /// <summary>
 /// Gets the font for the short text by generating a new font instance.
 /// </summary>
 /// <param name="style">Content style.</param>
 /// <param name="state">Palette value should be applicable to this state.</param>
 /// <returns>Font value.</returns>
 public override Font GetContentShortTextNewFont(PaletteContentStyle style, PaletteState state)
 {
     DefineFonts();
     return GetContentShortTextFont(style, state);
 }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:11,代码来源:PaletteOffice2007Base.cs


示例15: GetContentShortTextFont

        /// <summary>
        /// Gets the font for the short text.
        /// </summary>
        /// <param name="style">Content style.</param>
        /// <param name="state">Palette value should be applicable to this state.</param>
        /// <returns>Font value.</returns>
        public override Font GetContentShortTextFont(PaletteContentStyle style, PaletteState state)
        {
            if (CommonHelper.IsOverrideState(state))
            {
                if ((state == PaletteState.BoldedOverride) && (style == PaletteContentStyle.ButtonCalendarDay))
                    return _calendarBoldFont;
                else
                    return null;
            }

            switch (style)
            {
                case PaletteContentStyle.HeaderForm:
                    return _headerFormFont;
                case PaletteContentStyle.LabelTitleControl:
                case PaletteContentStyle.LabelTitlePanel:
                case PaletteContentStyle.HeaderPrimary:
                case PaletteContentStyle.HeaderCustom1:
                case PaletteContentStyle.HeaderCustom2:
                case PaletteContentStyle.ButtonCommand:
                    return _header1ShortFont;
                case PaletteContentStyle.LabelSuperTip:
                case PaletteContentStyle.ContextMenuHeading:
                    return _superToolFont;
                case PaletteContentStyle.LabelNormalControl:
                case PaletteContentStyle.LabelNormalPanel:
                case PaletteContentStyle.LabelGroupBoxCaption:
                case PaletteContentStyle.LabelToolTip:
                case PaletteContentStyle.LabelKeyTip:
                case PaletteContentStyle.LabelCustom1:
                case PaletteContentStyle.LabelCustom2:
                case PaletteContentStyle.LabelCustom3:
                case PaletteContentStyle.InputControlStandalone:
                case PaletteContentStyle.InputControlRibbon:
                case PaletteContentStyle.InputControlCustom1:
                case PaletteContentStyle.HeaderSecondary:
                case PaletteContentStyle.HeaderDockInactive:
                case PaletteContentStyle.HeaderDockActive:
                case PaletteContentStyle.ContextMenuItemImage:
                case PaletteContentStyle.ContextMenuItemTextStandard:
                case PaletteContentStyle.ContextMenuItemShortcutText:
                    return _header2ShortFont;
                case PaletteContentStyle.LabelBoldControl:
                case PaletteContentStyle.LabelBoldPanel:
                    return _boldFont;
                case PaletteContentStyle.LabelItalicControl:
                case PaletteContentStyle.LabelItalicPanel:
                    return _italicFont;
                case PaletteContentStyle.ContextMenuItemTextAlternate:
                    return _superToolFont;
                case PaletteContentStyle.TabLowProfile:
                case PaletteContentStyle.TabDock:
                case PaletteContentStyle.TabDockAutoHidden:
                    return _tabFontNormal;
                case PaletteContentStyle.TabHighProfile:
                case PaletteContentStyle.TabStandardProfile:
                case PaletteContentStyle.TabOneNote:
                case PaletteContentStyle.TabCustom1:
                case PaletteContentStyle.TabCustom2:
                case PaletteContentStyle.TabCustom3:
                    switch (state)
                    {
                        case PaletteState.CheckedNormal:
                        case PaletteState.CheckedPressed:
                        case PaletteState.CheckedTracking:
                            return _tabFontSelected;
                        default:
                            return _tabFontNormal;
                    }
                case PaletteContentStyle.ButtonStandalone:
                case PaletteContentStyle.ButtonGallery:
                case PaletteContentStyle.ButtonAlternate:
                case PaletteContentStyle.ButtonLowProfile:
                case PaletteContentStyle.ButtonBreadCrumb:
                case PaletteContentStyle.ButtonListItem:
                case PaletteContentStyle.ButtonButtonSpec:
                case PaletteContentStyle.ButtonCluster:
                case PaletteContentStyle.ButtonForm:
                case PaletteContentStyle.ButtonFormClose:
                case PaletteContentStyle.ButtonCustom1:
                case PaletteContentStyle.ButtonCustom2:
                case PaletteContentStyle.ButtonCustom3:
                case PaletteContentStyle.ButtonInputControl:
                    return _buttonFont;
                case PaletteContentStyle.ButtonNavigatorStack:
                case PaletteContentStyle.ButtonNavigatorOverflow:
                    return _buttonFontNavigatorStack;
                case PaletteContentStyle.ButtonNavigatorMini:
                    return _buttonFontNavigatorMini;
                case PaletteContentStyle.GridHeaderColumnList:
                case PaletteContentStyle.GridHeaderColumnSheet:
                case PaletteContentStyle.GridHeaderColumnCustom1:
                case PaletteContentStyle.GridHeaderRowList:
                case PaletteContentStyle.GridHeaderRowSheet:
//.........这里部分代码省略.........
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:101,代码来源:PaletteOffice2007Base.cs


示例16: GetContentShortTextColorAngle

        /// <summary>
        /// Gets the color background angle for the short text.
        /// </summary>
        /// <param name="style">Content style.</param>
        /// <param name="state">Palette value should be applicable to this state.</param>
        /// <returns>Angle used for color drawing.</returns>
        public override float GetContentShortTextColorAngle(PaletteContentStyle style, PaletteState state)
        {
            IPaletteContent inherit = GetContentInherit(state);

            if (inherit != null)
                return inherit.GetContentShortTextColorAngle(state);
            else
                return Target.GetContentShortTextColorAngle(style, state);
        }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:15,代码来源:PaletteRedirectRibbonTabContent.cs


示例17: GetContentShortTextColor2

        /// <summary>
        /// Gets the second back color for the short text.
        /// </summary>
        /// <param name="style">Content style.</param>
        /// <param name="state">Palette value should be applicable to this state.</param>
        /// <returns>Color value.</returns>
        public override Color GetContentShortTextColor2(PaletteContentStyle style, PaletteState state)
        {
            // Only override system palette if a recognized office 2003 color scheme is used
            if (_usingOffice2003)
            {
                if (state == PaletteState.Disabled)
                    return SystemColors.ControlDark;

                switch (style)
                {
                    case PaletteContentStyle.HeaderDockInactive:
                        return SystemColors.ControlText;
                    case PaletteContentStyle.HeaderDockActive:
                        return SystemColors.ActiveCaptionText;
                }
            }

            // Get everything else from the base class implementation
            return base.GetContentShortTextColor2(style, state);
        }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:26,代码来源:PaletteProfessionalOffice2003.cs


示例18: GetContentDraw

        /// <summary>
        /// Gets a value indicating if content should be drawn.
        /// </summary>
        /// <param name="style">Content style.</param>
        /// <param name="state">Palette value should be applicable to this state.</param>
        /// <returns>InheritBool value.</returns>
        public override InheritBool GetContentDraw(PaletteContentStyle style, PaletteState state)
        {
            // We do not provide override values
            if (CommonHelper.IsOverrideState(state))
                return InheritBool.Inherit;

            // Always draw everything
            return InheritBool.True;
        }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:15,代码来源:PaletteOffice2007Base.cs


示例19: GetContentLongTextPrefix

        /// <summary>
        /// Gets the prefix drawing setting for long text.
        /// </summary>
        /// <param name="style">Content style.</param>
        /// <param name="state">Palette value should be applicable to this state.</param>
        /// <returns>PaletteTextPrefix value.</returns>
        public override PaletteTextHotkeyPrefix GetContentLongTextPrefix(PaletteContentStyle style, PaletteState state)
        {
            IPaletteContent inherit = GetContentInherit(state);

            if (inherit != null)
                return inherit.GetContentLongTextPrefix(state);
            else
                return Target.GetContentLongTextPrefix(style, state);
        }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:15,代码来源:PaletteRedirectRibbonTabContent.cs


示例20: GetContentLongTextImageStyle

        /// <summary>
        /// Gets the background image style for the long text.
        /// </summary>
        /// <param name="style">Content style.</param>
        /// <param name="state">Palette value should be applicable to this state.</param>
        /// <returns>Image style value.</returns>
        public override PaletteImageStyle GetContentLongTextImageStyle(PaletteContentStyle style, PaletteState state)
        {
            IPaletteContent inherit = GetContentInherit(state);

            if (inherit != null)
                return inherit.GetContentLongTextImageStyle(state);
            else
                return Target.GetContentLongTextImageStyle(style, state);
        }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:15,代码来源:PaletteRedirectRibbonTabContent.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# PaletteState类代码示例发布时间:2022-05-24
下一篇:
C# PaletteButtonSpecStyle类代码示例发布时间: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