/// <summary> /// Gets the field attributes of the field at the specified coordinates. /// </summary> /// <param name="x"></param> /// <param name="y"></param> /// <returns></returns> public FieldAttributes GetFieldAttribute(int x, int y) { byte b = 0; lock (tn) { b = (byte)tn.Controller.GetFieldAttribute(tn.Controller.CursorAddress); } FieldAttributes fa = new FieldAttributes(); fa.IsHigh = FieldAttribute.IsHigh(b); fa.IsIntense = FieldAttribute.IsIntense(b); fa.IsModified = FieldAttribute.IsModified(b); fa.IsNormal = FieldAttribute.IsNormal(b); fa.IsNumeric = FieldAttribute.IsNumeric(b); fa.IsProtected = FieldAttribute.IsProtected(b); fa.IsSelectable = FieldAttribute.IsSelectable(b); fa.IsSkip = FieldAttribute.IsSkip(b); fa.IsZero = FieldAttribute.IsZero(b); return(fa); }
public static bool IsSkip(byte c) { return(FieldAttribute.IsNumeric(c) && FieldAttribute.IsProtected(c)); }