public FormRecognitionAttributes CreateForm(FormsRecognitionMethod method) { FormRecognitionOptions options = new FormRecognitionOptions(); options.RecognitionMethod = method; FormRecognitionAttributes attributes = RecognitionEngine.CreateForm(options); RecognitionEngine.CloseForm(attributes); return(attributes); }