public Document GetDocument (uint rid) { if (rid < 1 || rid > Documents.Length) return null; return Documents [rid - 1]; }