Can i show pattern by setting value programmatically. If so can you guide me how ? Because i don't see any method for this.