コード例 #1
0
 /// <summary>
 /// Called when [attach].
 /// </summary>
 /// <param name="target">The target.</param>
 /// <returns></returns>
 protected override bool OnAttach(IRenderHost target)
 {
     factory         = Collect(new Factory(FactoryType.Isolated));
     format          = Collect(new TextFormat(factory, "Arial", 12));
     previousStr     = "";
     this.statistics = target.RenderStatistics;
     return(base.OnAttach(target));
 }
コード例 #2
0
 /// <summary>
 /// Called when [attach].
 /// </summary>
 /// <param name="target">The target.</param>
 /// <returns></returns>
 protected override bool OnAttach(IRenderHost target)
 {
     factory         = new Factory(FactoryType.Isolated);
     format          = new TextFormat(factory, "Arial", 12 * target.DpiScale);
     previousStr     = string.Empty;
     this.statistics = target.RenderStatistics;
     return(base.OnAttach(target));
 }