本文整理汇总了C#中GridPanel.GetInsertRowImage方法的典型用法代码示例。如果您正苦于以下问题:C# GridPanel.GetInsertRowImage方法的具体用法?C# GridPanel.GetInsertRowImage怎么用?C# GridPanel.GetInsertRowImage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GridPanel
的用法示例。
在下文中一共展示了GridPanel.GetInsertRowImage方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RenderInsertIndicator
private void RenderInsertIndicator(
Graphics g, GridPanel panel, Rectangle r)
{
Image image = panel.GetInsertRowImage();
if (image != null)
{
Rectangle u = r;
u.Size = image.Size;
if (r.Width > u.Width)
u.X = r.X + (r.Width - u.Width) / 2;
if (r.Height > u.Height)
u.Y += (r.Height - u.Height) / 2;
u.Intersect(r);
g.DrawImageUnscaledAndClipped(image, u);
}
}
示例2: MeasureRowHeader
private Size MeasureRowHeader(GridPanel panel)
{
Size size = panel.RowHeaderSize;
if (size.IsEmpty == true)
{
if (NeedsMeasured == true)
{
size.Width = panel.RowHeaderWidth;
if (GetRowHeight() == 0)
{
RowHeaderVisualStyle style = GetEffectiveRowStyle().RowHeaderStyle;
if (panel.ActiveRowIndicatorStyle == ActiveRowIndicatorStyle.Image ||
panel.ActiveRowIndicatorStyle == ActiveRowIndicatorStyle.Both)
{
MaxImageHeight(style.GetActiveRowImage(panel), ref size);
}
if (panel.ShowEditingImage == true)
MaxImageHeight(style.GetEditingRowImage(panel), ref size);
if (panel.ShowInsertRow == true)
MaxImageHeight(panel.GetInsertRowImage(), ref size);
}
_RowHeaderSize = size;
}
size = _RowHeaderSize;
}
return (size);
}