MarketDepthControl
以引文显示订单本的视觉控制(IOrderBookMessage.
继承自: BaseGridControl
构造函数
public MarketDepthControl()
marketDepthControl = MarketDepthControl()
初始化了 & ##MarketDepthControl+#的新实例.
属性
public bool AllowOwnOrderDragDrop { get; set; }
value = marketDepthControl.AllowOwnOrderDragDrop
marketDepthControl.AllowOwnOrderDragDrop = value
允许自己命令拖放 。
public bool AllowSpreadToMove { get; set; }
value = marketDepthControl.AllowSpreadToMove
marketDepthControl.AllowSpreadToMove = value
获取或设置一个值,表示是否允许扩展。当 时,扩展可以上下移动。当 时,扩展会停留在中间。
public TimeSpan AnimationDuration { get; set; }
value = marketDepthControl.AnimationDuration
marketDepthControl.AnimationDuration = value
动画持续时间.
public bool AutoUpdateFormat { get; set; }
value = marketDepthControl.AutoUpdateFormat
marketDepthControl.AutoUpdateFormat = value
自动更新金融工具格式。默认情况下,该格式已打开。
public Color CancelAnimationColor { get; set; }
value = marketDepthControl.CancelAnimationColor
marketDepthControl.CancelAnimationColor = value
取消动画颜色 。
public IOrderBookMessage DepthData { get; set; }
value = marketDepthControl.DepthData
marketDepthControl.DepthData = value
绑定深度数据。 设置此属性可更新命令书显示 。
public Security DepthSecurity { get; set; }
value = marketDepthControl.DepthSecurity
marketDepthControl.DepthSecurity = value
深度数据约束金融工具。
public Color ErrorAnimationColor { get; set; }
value = marketDepthControl.ErrorAnimationColor
marketDepthControl.ErrorAnimationColor = value
错误的动画颜色 。
public Color FillBuyAnimationColor { get; set; }
value = marketDepthControl.FillBuyAnimationColor
marketDepthControl.FillBuyAnimationColor = value
填充购买动画颜色 。
public Color FillSellAnimationColor { get; set; }
value = marketDepthControl.FillSellAnimationColor
marketDepthControl.FillSellAnimationColor = value
充入销售动画色彩.
public Color FillTextAnimationColor { get; set; }
value = marketDepthControl.FillTextAnimationColor
marketDepthControl.FillTextAnimationColor = value
填入文字颜色.
public decimal? GroupRange { get; set; }
value = marketDepthControl.GroupRange
marketDepthControl.GroupRange = value
十进制范围 。
public bool IsBidsOnTop { get; set; }
value = marketDepthControl.IsBidsOnTop
marketDepthControl.IsBidsOnTop = value
是否显示上面的出价。 默认已关闭 。
public bool IsOwnOrderDragging { get; private set; }
value = marketDepthControl.IsOwnOrderDragging
marketDepthControl.IsOwnOrderDragging = value
如果用户拖曳命令, 则为真 。
public decimal MaxBuyVolume { get; set; }
value = marketDepthControl.MaxBuyVolume
marketDepthControl.MaxBuyVolume = value
所有出价的最大数量。
public int MaxDepth { get; set; }
value = marketDepthControl.MaxDepth
marketDepthControl.MaxDepth = value
命令簿显示的最大深度。默认值为 DefaultDepth 。
public decimal MaxSellVolume { get; set; }
value = marketDepthControl.MaxSellVolume
marketDepthControl.MaxSellVolume = value
所问所出之最大量.
public decimal MaxVolume { get; set; }
value = marketDepthControl.MaxVolume
marketDepthControl.MaxVolume = value
所有引出之所出出之所出之所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所
public string PriceTextFormat { get; set; }
value = marketDepthControl.PriceTextFormat
marketDepthControl.PriceTextFormat = value
价格格式。
public Color RegisterAnimationColor { get; set; }
value = marketDepthControl.RegisterAnimationColor
marketDepthControl.RegisterAnimationColor = value
注册动画颜色.
public MarketDepthExecuteOn RegisterOrderOn { get; set; }
value = marketDepthControl.RegisterOrderOn
marketDepthControl.RegisterOrderOn = value
执行命令登记触发器 。
public QuoteChange? SelectedQuote { get; }
value = marketDepthControl.SelectedQuote
所选引文.
public bool ShowBoardColumn { get; set; }
value = marketDepthControl.ShowBoardColumn
marketDepthControl.ShowBoardColumn = value
显示棋盘栏 。
public bool ShowOwnVolumeColumns { get; set; }
value = marketDepthControl.ShowOwnVolumeColumns
marketDepthControl.ShowOwnVolumeColumns = value
显示自己的音量列 。
public bool ShowSingleVolumeColumn { get; set; }
value = marketDepthControl.ShowSingleVolumeColumn
marketDepthControl.ShowSingleVolumeColumn = value
显示单卷列。默认值为 。
public decimal? SparseRange { get; set; }
value = marketDepthControl.SparseRange
marketDepthControl.SparseRange = value
距离Int32, 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离为: 距离: 距离为: 距离为: 距离: 距离为距: 距离为距: 距离为距: 距离为距: 距离为距: 距离为距为距为距为距为距为距: 距离为距为距为距为距为: 距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距为距
public bool UseOrderAnimations { get; set; }
value = marketDepthControl.UseOrderAnimations
marketDepthControl.UseOrderAnimations = value
用户拥有订单状态动画.
public string VolumeTextFormat { get; set; }
value = marketDepthControl.VolumeTextFormat
marketDepthControl.VolumeTextFormat = value
卷出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出出
方法
public void CancelOrders(Func<Order, bool> predicate)
marketDepthControl.CancelOrders(predicate)
取消添加到此实例的 & ###MarketDepthControl\\\\\\ 命令。 这种方法本身并不取消命令, 它只是通知订阅者 & ##CancelingOrder\\ 事件 。
public MarketDepthColumns GetColumnIndex(GridColumn column)
result = marketDepthControl.GetColumnIndex(column)
以得到列类型按单元格。
- column
- 栏.
返回值: 专栏类型.
public IEnumerable<Order> GetOrders(decimal price, Sides? side, OrderTypes? type)
result = marketDepthControl.GetOrders(price, side, type)
以指定标准获取活动命令 。
- price
- 订价.
- side
- 订购方(买卖)。
- type
- 秩序类型。
返回值: 找到命令了 找到命令了 找到命令了
public void InitializeComponent()
marketDepthControl.InitializeComponent()
InitializeComponent
protected override void OnLostMouseCapture(MouseEventArgs e)
marketDepthControl.OnLostMouseCapture(e)
处理鼠标捕获丢失时的事件 。
- e
protected override void OnPreviewKeyDown(KeyEventArgs e)
marketDepthControl.OnPreviewKeyDown(e)
public void ProcessOrder(Order order, decimal price, decimal balance, OrderStates state)
marketDepthControl.ProcessOrder(order, price, balance, state)
处理一个命令。
- order
- 肃静
- price
- 订价.
- balance
- 订单合同余额。
- state
- 令发相相.
public void ProcessOrderFail(OrderFail fail, OrderStates state)
marketDepthControl.ProcessOrderFail(fail, state)
处理命令登记/移动/取消失败。
public void ShowOrderFill(Sides side, decimal price, decimal volume)
marketDepthControl.ShowOrderFill(side, price, volume)
显示顺序填充动画 。
public void UpdateDepth(IOrderBookMessage message, Security security)
marketDepthControl.UpdateDepth(message, security)
以续订出.
- message
- 市场深度.
- security
- 金融工具。
public void UpdateFormat(Security security)
marketDepthControl.UpdateFormat(security)
更新PriceTextFormat和VolumeTextFormat.
- security
- 金融工具。
事件
public event Action<Order> CancelingOrder
marketDepthControl.CancelingOrder += handler
取消订单 。
public event Action<Order, decimal> MovingOrder
marketDepthControl.MovingOrder += handler
向新价位移动
public event Action<Sides, decimal> RegisteringOrder
marketDepthControl.RegisteringOrder += handler
登记令.
public event Action<QuoteChange?> SelectedQuoteChanged
marketDepthControl.SelectedQuoteChanged += handler
SelectedQuote changed event.
字段
public static readonly DependencyProperty AllowOwnOrderDragDropProperty
value = MarketDepthControl.AllowOwnOrderDragDropProperty
DependencyProperty 为AllowOwnOrderDragDrop.
public static readonly DependencyProperty AllowSpreadToMoveProperty
value = MarketDepthControl.AllowSpreadToMoveProperty
DependencyProperty 为AllowSpreadToMove.
public static readonly DependencyProperty AnimationDurationProperty
value = MarketDepthControl.AnimationDurationProperty
动画持续时间.
public static readonly DependencyProperty CancelAnimationColorProperty
value = MarketDepthControl.CancelAnimationColorProperty
取消动画颜色 。
public static readonly DependencyProperty DepthDataProperty
value = MarketDepthControl.DepthDataProperty
DependencyProperty 为DepthData.
public static readonly DependencyProperty DepthSecurityProperty
value = MarketDepthControl.DepthSecurityProperty
DependencyProperty 为DepthSecurity.
public static readonly DependencyProperty ErrorAnimationColorProperty
value = MarketDepthControl.ErrorAnimationColorProperty
错误的动画颜色 。
public static readonly DependencyProperty FillBuyAnimationColorProperty
value = MarketDepthControl.FillBuyAnimationColorProperty
填充购买动画颜色 。
public static readonly DependencyProperty FillSellAnimationColorProperty
value = MarketDepthControl.FillSellAnimationColorProperty
充入销售动画色彩.
public static readonly DependencyProperty FillTextAnimationColorProperty
value = MarketDepthControl.FillTextAnimationColorProperty
填入文字颜色.
public static readonly RoutedCommand GroupCommand
value = MarketDepthControl.GroupCommand
集团市场深度指令.
public static readonly DependencyProperty GroupRangeProperty
value = MarketDepthControl.GroupRangeProperty
DependencyProperty 为GroupRange.
public static readonly RoutedCommand GroupResetCommand
value = MarketDepthControl.GroupResetCommand
重置分组市场深度的命令 。
public static readonly DependencyProperty IsBidsOnTopProperty
value = MarketDepthControl.IsBidsOnTopProperty
DependencyProperty 为IsBidsOnTop.
public static readonly DependencyPropertyKey IsOwnOrderDraggingKey
value = MarketDepthControl.IsOwnOrderDraggingKey
如果用户拖曳命令, 则为真 。
public static readonly DependencyProperty MaxBuyVolumeProperty
value = MarketDepthControl.MaxBuyVolumeProperty
DependencyProperty 为MaxBuyVolume.
public static readonly DependencyProperty MaxDepthProperty
value = MarketDepthControl.MaxDepthProperty
DependencyProperty 为MaxDepth.
public static readonly DependencyProperty MaxSellVolumeProperty
value = MarketDepthControl.MaxSellVolumeProperty
DependencyProperty 为MaxSellVolume.
public static readonly DependencyProperty MaxVolumeProperty
value = MarketDepthControl.MaxVolumeProperty
DependencyProperty 为MaxVolume.
public static readonly DependencyProperty PriceTextFormatProperty
value = MarketDepthControl.PriceTextFormatProperty
DependencyProperty 为PriceTextFormat.
public static readonly DependencyProperty RegisterAnimationColorProperty
value = MarketDepthControl.RegisterAnimationColorProperty
注册动画颜色.
public static readonly DependencyProperty RegisterOrderOnProperty
value = MarketDepthControl.RegisterOrderOnProperty
执行命令登记触发器 。
public static readonly DependencyProperty ShowBoardColumnProperty
value = MarketDepthControl.ShowBoardColumnProperty
DependencyProperty 为ShowBoardColumn.
public static readonly DependencyProperty ShowOwnVolumeColumnsProperty
value = MarketDepthControl.ShowOwnVolumeColumnsProperty
DependencyProperty 为ShowOwnVolumeColumns.
public static readonly DependencyProperty ShowSingleVolumeColumnProperty
value = MarketDepthControl.ShowSingleVolumeColumnProperty
DependencyProperty 为ShowSingleVolumeColumn.
public static readonly RoutedCommand SparseCommand
value = MarketDepthControl.SparseCommand
命令市场深度稀疏。
public static readonly DependencyProperty SparseRangeProperty
value = MarketDepthControl.SparseRangeProperty
DependencyProperty 为SparseRange.
public static readonly RoutedCommand SparseResetCommand
value = MarketDepthControl.SparseResetCommand
重置垃圾邮件市场深度的命令 。
public static readonly DependencyProperty UseOrderAnimationsProperty
value = MarketDepthControl.UseOrderAnimationsProperty
DependencyProperty 为UseOrderAnimations.
public static readonly DependencyProperty VolumeTextFormatProperty
value = MarketDepthControl.VolumeTextFormatProperty
DependencyProperty 为VolumeTextFormat.