本文整理汇总了C#中GridPanel.GetInsertTempRowImage方法的典型用法代码示例。如果您正苦于以下问题:C# GridPanel.GetInsertTempRowImage方法的具体用法?C# GridPanel.GetInsertTempRowImage怎么用?C# GridPanel.GetInsertTempRowImage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GridPanel
的用法示例。
在下文中一共展示了GridPanel.GetInsertTempRowImage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RenderIndicatorImage
private int RenderIndicatorImage(Graphics g,
GridPanel panel, GridContainer row, Rectangle r)
{
StyleState rowState = GetRowHeaderState(this, r);
RowHeaderVisualStyle style = GetEffectiveRowStyle(this, rowState).RowHeaderStyle;
Image image = null;
GridRow grow = row as GridRow;
if (grow != null)
{
if (grow.IsTempInsertRow == true && grow.IsInsertRow == false)
image = panel.GetInsertTempRowImage();
else
image = style.GetActiveRowImage(panel);
}
if (image != null)
{
if (row.IsActiveRow == true)
{
if (panel.ActiveRowIndicatorStyle == ActiveRowIndicatorStyle.Image ||
panel.ActiveRowIndicatorStyle == ActiveRowIndicatorStyle.Both)
{
Rectangle u = r;
u.Size = image.Size;
if (r.Height > u.Height)
u.Y += (r.Height - u.Height) / 2;
u.Intersect(r);
g.DrawImageUnscaledAndClipped(image, u);
}
}
return (image.Width);
}
return (0);
}