Edit() public method

public Edit ( HexBufferPoint position, int cellPosition, char c ) : PositionAndData?
position HexBufferPoint
cellPosition int
c char
return PositionAndData?
コード例 #1
0
 public override PositionAndData?EditValueCell(HexCell cell, int cellPosition, char c)
 {
     if (cell == null)
     {
         throw new ArgumentNullException(nameof(cell));
     }
     if (cell.BufferSpan.Buffer != Buffer)
     {
         throw new ArgumentException();
     }
     if ((uint)cellPosition >= (uint)cell.CellSpan.Length)
     {
         throw new ArgumentOutOfRangeException(nameof(cellPosition));
     }
     if (!cell.HasData)
     {
         return(null);
     }
     return(valueFormatter.Edit(cell.BufferStart, cellPosition, c));
 }