コード例 #1
0
 /// <summary>
 /// Sets the content of the region.
 /// </summary>
 /// <param name="screen">The screen.</param>
 /// <param name="vrName">Name of the region (viewRange).</param>
 /// <param name="content">The content.</param>
 /// <param name="renderer">The renderer to use to transform the content into a matrix.</param>
 /// <returns>true if the content could be set, otherwise false</returns>
 public bool SetRegionContent(BrailleIOScreen screen, String vrName, Object content, IBrailleIOContentRenderer renderer)
 {
     if (screen != null)
     {
         BrailleIOViewRange vr = screen.GetViewRange(vrName);
         if (vr != null)
         {
             if (content != null)
             {
                 vr.SetOtherContent(content, renderer);
             }
             else
             {
                 vr.SetMatrix(null);
             }
         }
     }
     return(false);
 }