Example #1
0
        public StiTextGeom DrawString(string text, StiFontGeom font, object brush, RectangleF rect, StiStringFormatGeom sf)
        {
            StiTextGeom textGeom = new StiTextGeom(text, font, brush, rect, sf, false);

            geoms.Add(textGeom);
            return(textGeom);
        }
Example #2
0
        public StiTextGeom DrawRotatedString(string text, StiFontGeom font, object brush, RectangleF rect, StiStringFormatGeom sf, float angle, bool antialiasing)
        {
            StiTextGeom textGeom = new StiTextGeom(text, font, brush, rect, sf, angle, antialiasing, true);

            geoms.Add(textGeom);
            return(textGeom);
        }
Example #3
0
        public StiTextGeom DrawRotatedString(string text, StiFontGeom font, object brush, PointF pos, StiStringFormatGeom sf, StiRotationMode mode,
                                             float angle, bool antialiasing)
        {
            StiTextGeom textGeom = new StiTextGeom(text, font, brush, pos, sf, angle, antialiasing, mode, true);

            geoms.Add(textGeom);
            return(textGeom);
        }
Example #4
0
        public StiTextGeom DrawRotatedString(string text, StiFontGeom font, object brush, RectangleF rect, StiStringFormatGeom sf, StiRotationMode mode,
                                             float angle, bool antialiasing, int maximalWidth)
        {
            StiTextGeom textGeom = new StiTextGeom(text, font, brush, rect, sf, angle, antialiasing, maximalWidth, mode, true);

            geoms.Add(textGeom);
            return(textGeom);
        }
 public StiTextGeom(string text, StiFontGeom font, object brush, object location, StiStringFormatGeom stringFormat, float angle, bool antialiasing, int?maximalWidth, StiRotationMode?rotationMode, bool isRotatedText)
 {
     this.IsRotatedText = isRotatedText;
     this.Text          = text;
     this.Font          = font;
     this.Brush         = brush;
     this.Location      = location;
     this.StringFormat  = stringFormat;
     this.Angle         = angle;
     this.Antialiasing  = antialiasing;
     this.MaximalWidth  = maximalWidth;
     this.RotationMode  = rotationMode;
 }
 public StiLabelAnimationGeom(string text, StiFontGeom font, object textBrush, object LabelBrush, StiPenGeom penBorder, Rectangle rect, StiStringFormatGeom sf, StiRotationMode rotationMode,
                              float angle, bool drawBorder, TimeSpan duration, TimeSpan?beginTime) : base(duration, beginTime)
 {
     this.Text         = text;
     this.Font         = font;
     this.TextBrush    = textBrush;
     this.LabelBrush   = LabelBrush;
     this.PenBorder    = penBorder;
     this.Rectangle    = rect;
     this.StringFormat = sf;
     this.RotationMode = rotationMode;
     this.Angle        = angle;
     this.DrawBorder   = drawBorder;
 }
 public StiTextGeom(string text, StiFontGeom font, object brush, object location, StiStringFormatGeom stringFormat, bool isRotatedText)
     :
     this(text, font, brush, location, stringFormat, 0f, false, null, null, isRotatedText)
 {
 }
Example #8
0
 public void DrawAnimationLabel(string text, StiFontGeom font, object textBrush, object labelBrush, StiPenGeom penBorder, Rectangle rect, StiStringFormatGeom sf, StiRotationMode mode,
                                float angle, bool drawBorder, TimeSpan duration, TimeSpan?beginTime)
 {
     geoms.Add(new StiLabelAnimationGeom(text, font, textBrush, labelBrush, penBorder, rect, sf, mode, angle, drawBorder, duration, beginTime));
 }
Example #9
0
 public RectangleF MeasureRotatedString(string text, StiFontGeom font, PointF point, StiStringFormatGeom sf, StiRotationMode mode, float angle)
 {
     return(contextPainter.MeasureRotatedString(text, font, point, sf, mode, angle));
 }
 public abstract SizeF MeasureString(string text, StiFontGeom font, int width, StiStringFormatGeom sf);
Example #11
0
 public SizeF MeasureString(string text, StiFontGeom font, int width, StiStringFormatGeom sf)
 {
     return(contextPainter.MeasureString(text, font, width, sf));
 }
Example #12
0
 public SizeF MeasureString(string text, StiFontGeom font)
 {
     return(contextPainter.MeasureString(text, font));
 }
 public abstract RectangleF MeasureRotatedString(string text, StiFontGeom font, PointF point, StiStringFormatGeom sf, StiRotationMode mode, float angle);
 public abstract RectangleF MeasureRotatedString(string text, StiFontGeom font, RectangleF rect, StiStringFormatGeom sf, float angle);
 public StiTextGeom(string text, StiFontGeom font, object brush, object location, StiStringFormatGeom stringFormat, float angle, bool antialiasing, StiRotationMode?rotationMode, bool isRotatedText)
     :
     this(text, font, brush, location, stringFormat, angle, antialiasing, null, rotationMode, isRotatedText)
 {
 }
Example #16
0
 public RectangleF MeasureRotatedString(string text, StiFontGeom font, RectangleF rect, StiStringFormatGeom sf, float angle)
 {
     return(contextPainter.MeasureRotatedString(text, font, rect, sf, angle));
 }
 public abstract SizeF MeasureString(string text, StiFontGeom font);