PartPainted (c#)在vb.net中的等效过程或功能或代码是什么?下面是c#中代码的一个示例片段,但是当我将它转换为vb.net代码时,PartPainted是未知函数。
if (PartPainted(paintParts, DataGridViewPaintParts.ContentForeground))发布于 2013-08-14 07:16:15
其外观与示例为NumericUpDown控件构建自定义DataGridView单元格和列文章中的代码非常相似:
// If the cell is in editing mode, there is nothing else to paint
if (!cellEdited)
{
if (PartPainted(paintParts, DataGridViewPaintParts.ContentForeground))
{
// Paint a NumericUpDown control
// Take the borders into account如果是这样的话,它不是一个框架/内置函数--它只是同一个类中的另一个方法:
/// <summary>
/// Little utility function called by the Paint function to see if a particular part needs to be painted.
/// </summary>
private static bool PartPainted(DataGridViewPaintParts paintParts, DataGridViewPaintParts paintPart)
{
return (paintParts & paintPart) != 0;
}这应该是微不足道的转换为VB。
https://stackoverflow.com/questions/18225323
复制相似问题