The last time I checked Masking Regions (the type you use to obscure parts of a model in the Revit user interface) are not accessible via the API.
Setting a fill pattern color would be done as shown here: Setting Filled Region Type Color? - #2 by Alban_de_Chasteigner.