DevExpress ChartControl 设置它的标题

 private void SetHZTitle(ref ChartControl chartControl, string HTitle)
        {
            chartControl.Titles.Clear();                    //先清除以前的标题

            //横标题设置
            ChartTitle titles = new ChartTitle();            //声明标题

            titles.Text = HTitle;                            //名称
            titles.TextColor = System.Drawing.Color.Yellow;   //颜色
            titles.Indent = 1;                                //设置距离  值越小柱状图就越大
            titles.Font = new Font("Tahoma", 7, FontStyle.Bold);            //设置字体
            titles.Dock = ChartTitleDockStyle.Top;           //设置对齐方式
            titles.Indent = 0;
            titles.Alignment = StringAlignment.Center;       //居中对齐
            chartControl.Titles.Add(titles);                 //添加标题
        }
时间: 2024-08-03 14:23:12

DevExpress ChartControl 设置它的标题的相关文章

[DevExpress]条件设置GridControl RepositoryItem是否可编辑

在项目开发中,并不是每个RepositoryItem都可以编辑,往往是有条件性的,需要譬如当A列等于"AA"的时候,B列才可编辑,实现起来在ShowingEditor事件中最为方便,并且加入toolTip提示显得人性化. 代码如下: private void gvLampConfig_ShowingEditor(object sender, System.ComponentModel.CancelEventArgs e) { GridView _view = sender as Gri

设置导航条标题及背景图片

#import "XMGNavigationViewController.h" @interface XMGNavigationViewController () @end @implementation XMGNavigationViewController + (void)load { UINavigationBar *navBar = [UINavigationBar appearanceWhenContainedIn:self, nil]; // 只要是通过模型设置,都是通过富

【转】iOS中设置导航栏标题的字体颜色和大小

原文网址:http://www.360doc.com/content/15/0417/11/20919452_463847404.shtml iOS中设置导航栏标题的字体颜色和大小,有需要的朋友可以参考下. 在平时开发项目的时候,难免会遇到修改导航栏字体大小和颜色的需求,一般使用自定义视图的方法,其实还存在一种方法. 方法一:(自定义视图的方法,一般人也会采用这样的方式) 就是在导航向上添加一个titleView,可以使用一个label,再设置label的背景颜色透明,字体什么的设置就很简单了.

DevExpress ChartControl大数据加载时有哪些性能优化方法

DevExpress ChartControl加载大数据量数据时的性能优化方法有哪些? 关于图表优化,可从以下几个方面解决: 1.关闭不需要的可视化的元素(如LineMarkers, Labels等): Series.View.LineMarkerOptions.Visible =false. 2. 关闭图表的滚动与缩放功能,手动调整范围,这样将大大减少所需计算的个数. 3. 将 ChartControl.RefreshDataOnRepaint属性设为false 4. 将 ChartContr

iOS设置导航与其标题的颜色及字体大小和系统默认TabBar的相关设置与使用方法

第一步: //在info.plist中添加一个字段:view controller -base status bar 设置为NO://导航颜色[[UINavigationBar appearance] setBarTintColor:[UIColor XXXX]];[[UITableViewCell appearance] setBackgroundColor:[UIColor XXXX]]; //设置状态栏(信号区)白色[[UIApplication sharedApplication] se

设置导航栏标题的文字属性

效果: 源码: UINavigationController+TitleTextAttributes.h 与 UINavigationController+TitleTextAttributes.m // // UINavigationController+TitleTextAttributes.h // NC // // Copyright (c) 2014年 Y.X. All rights reserved. // #import <UIKit/UIKit.h> @class NCTitl

python Tkinter 基础 创建一行文字的窗体并设置窗体的标题 Label,title

# Tkinter 基础 创建一行文字的窗体并设置窗体的标题 Label,title import tkinter as tk app = tk.Tk() # 实例化一个TK 用于容纳整个GUI程序 app.title("test01") # 设置窗体的标题栏 # 设置label主键 , 显示文本,图标与图片 theLabel = tk.Label(app, text = "这是一个窗口") theLabel.pack() # 自动调节 主键的尺寸与位置 # 窗口的

DevExpress ChartControl 样式设置

第三方控件,设置ChartControl的样式,仅供参考 Demo: <Grid> <Grid.Resources> <SolidColorBrush x:Key="GridLineBursh" Color="CornflowerBlue"></SolidColorBrush> </Grid.Resources> <dxc:ChartControl Background="Transpare

[DevExpress]ChartControl之设置Legend位于底部并居中

关键代码: /// <summary> /// 设置Legend位于底部并居中 /// </summary> /// <param name="lengend">Legend</param> public static void SetBottomCenter(this Legend legend) { legend.Direction = LegendDirection.LeftToRight; legend.AlignmentHori