public override byte[] GetTextBytes(ScreenContent ScreenContent) { var ix = ScreenContent.ToContentIndex(this.RowCol); if (ScreenContent.ContentArray[ix].IsAttrByte() == true) { ix += 1; } return(ScreenContent.ContentArray.SubArray(ix, this.TextLength)); }
public void SetTailAttrByte(ScreenContent ScreenContent, byte?Value) { var ix = ScreenContent.ToContentIndex(this.RowCol, this.LL_Length + 1); if (Value == null) { ScreenContent.ContentArray[ix] = 0x00; } else { ScreenContent.ContentArray[ix] = Value.Value; } }
public byte?GetTailAttrByte(ScreenContent ScreenContent) { var ix = ScreenContent.ToContentIndex(this.RowCol, this.LL_Length + 1); var b1 = ScreenContent.ContentArray[ix]; if (b1.IsAttrByte() == true) { return(b1); } else { return(null); } }
public override byte[] GetTextBytes(ScreenContent ScreenContent) { var ix = ScreenContent.ToContentIndex(this.RowCol, 1); return(ScreenContent.ContentArray.SubArray(ix, this.LL_Length)); }
public void LoadContents(ScreenContent Content) { var ix = Content.ToContentIndex(this.RowCol); this.AttrByte = Content.ContentArray[ix]; }
/// <summary> /// return the index into the content array of the field start row/col. /// </summary> /// <param name="ScreenContent"></param> /// <returns></returns> public int GetContentIndex(ScreenContent ScreenContent) { var ix = ScreenContent.ToContentIndex(this.RowCol); return(ix); }