Exemple #1
0
 public void Dispose()
 {
     if (label != null)
     {
         label.Dispose();
     }
 }
Exemple #2
0
 protected override void OnDispose()
 {
     if (titleLine != null)
     {
         titleLine.Dispose();
     }
 }
Exemple #3
0
 public void Dispose()
 {
     if (textLine != null)
     {
         textLine.Dispose();
     }
 }
Exemple #4
0
 protected override void OnDispose()
 {
     if (label != null)
     {
         label.Dispose();
     }
 }
Exemple #5
0
        protected override void OnDispose()
        {
            lblAmount.Dispose();

            if (dragOffset.HasValue)
            {
                Host.ReleaseMouse();
            }
        }
Exemple #6
0
        void MakeNewText()
        {
            if (fmt == null)
            {
                fmt = TextFormatterFactory.Create(this, provider);
            }

            if (line != null)
            {
                line.Dispose();
            }

            src.UpdateParent(this);
            line = fmt.FormatLine(src.Source, 0, 0, new ParaProps(this), null);
        }
Exemple #7
0
		// Token: 0x060068A0 RID: 26784 RVA: 0x001D8230 File Offset: 0x001D6430
		internal void FormatAndDrawVisual(DrawingContext ctx, LineProperties lineProps, int ur, int vrBaseline)
		{
			bool flag = lineProps.FlowDirection == FlowDirection.RightToLeft;
			this._host.Context = this;
			try
			{
				TextLine textLine = this._host.TextFormatter.FormatLine(this._host, 0, 0.0, lineProps.FirstLineProps, null, new TextRunCache());
				Point origin = new Point(TextDpi.FromTextDpi(ur), TextDpi.FromTextDpi(vrBaseline) - textLine.Baseline);
				textLine.Draw(ctx, origin, flag ? InvertAxes.Horizontal : InvertAxes.None);
				textLine.Dispose();
			}
			finally
			{
				this._host.Context = null;
			}
		}
Exemple #8
0
 protected override void OnDispose()
 {
     textLine.Dispose();
 }
Exemple #9
0
 public void Dispose()
 {
     drawingVisual = null;
     textLine.Dispose();
 }
 public void Remove()
 {
     line.Dispose();
     parent.texts.Remove(this);
 }
Exemple #11
0
 protected override void OnDispose()
 {
     text.Dispose();
     numText.Dispose();
 }
Exemple #12
0
 public void Dispose()
 {
     text.Dispose();
 }