Class BaseTextItemHandler
Inheritance
System.Object
BaseTextItemHandler
Implements
System.ICloneable
System.IDisposable
Inherited Members
ShapeItemHandler.DrawShape(RenderingContext, Graphics, IImageParams, DrawItemParams, IRenderingColorSettings, IColorProfilesProvider, Boolean, Boolean, Boolean, Boolean, Boolean)
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Aurigma.DesignAtoms.dll
Syntax
public abstract class BaseTextItemHandler : RectangleItemHandler, ICloneable, IDisposable
Constructors
BaseTextItemHandler(IConfiguration, IFileCache, IColorManagement, ILogger, IFontService, IUnsupportedGlyphService, IGmColorConverter, IColorPreviewService, BaseTextItem)
Declaration
protected BaseTextItemHandler(IConfiguration configuration, IFileCache fileCache, IColorManagement colorManagement, ILogger ccLogger, IFontService fontService, IUnsupportedGlyphService unsupportedGlyphService, IGmColorConverter gmColorConverter, IColorPreviewService colorPreviewService, BaseTextItem item)
Parameters
Fields
_fontService
Declaration
protected readonly IFontService _fontService
Field Value
_handlingTransformChanged
Declaration
protected bool _handlingTransformChanged
Field Value
| Type |
Description |
| System.Boolean |
|
_methodMeasurer
Declaration
protected IMethodMeasurer _methodMeasurer
Field Value
CurrentTextImage
Declaration
public BaseTextItemHandler.TextImageData CurrentTextImage
Field Value
Properties
ActualAngle
Declaration
public double ActualAngle { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
Alignment
Declaration
public TextAlignment Alignment { get; set; }
Property Value
Bounds
Declaration
public override RectangleF Bounds { get; }
Property Value
| Type |
Description |
| System.Drawing.RectangleF |
|
Overrides
CheckTextCrop
Declaration
public bool CheckTextCrop { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
ControlPoints
Declaration
public override PointF[] ControlPoints { get; set; }
Property Value
Overrides
Font
Declaration
public IFontSettings Font { get; }
Property Value
HorizontalScale
Declaration
public virtual float HorizontalScale { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
IsEmpty
Declaration
public override bool IsEmpty { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Overrides
IsFormatted
Declaration
protected bool IsFormatted { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
IsStrokeSet
Declaration
public bool IsStrokeSet { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Item
Declaration
public BaseTextItem Item { get; }
Property Value
Leading
Declaration
public float Leading { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
PreventUpdate
Declaration
public bool PreventUpdate { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
PreviewScale
Declaration
public float PreviewScale { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
RenderingMargin
Declaration
protected virtual int RenderingMargin { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Shadow
Declaration
public ShadowSettings Shadow { get; set; }
Property Value
Stroke
Declaration
public StrokeSettings Stroke { get; set; }
Property Value
Text
Declaration
public virtual string Text { get; set; }
Property Value
| Type |
Description |
| System.String |
|
TextMode
Declaration
protected TextMode TextMode { get; set; }
Property Value
Tracking
Declaration
public float Tracking { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
Underline
Declaration
public bool Underline { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
ValidRect
Declaration
protected bool ValidRect { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
VerticalScale
Declaration
public virtual float VerticalScale { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
Methods
ApplyTransform(Transform)
Declaration
protected abstract void ApplyTransform(Transform transform)
Parameters
CalcMaxSideLengthOfCharBoundsPx(Single)
Declaration
protected int CalcMaxSideLengthOfCharBoundsPx(float dpi)
Parameters
| Type |
Name |
Description |
| System.Single |
dpi |
|
Returns
| Type |
Description |
| System.Int32 |
|
CreateAdvancedText(String, Graphics, Boolean, FontRegistry)
Declaration
protected abstract Text CreateAdvancedText(string text, Graphics graphics, bool isVector, FontRegistry fontRegistry)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| Aurigma.GraphicsMill.AdvancedDrawing.Graphics |
graphics |
|
| System.Boolean |
isVector |
|
| Aurigma.GraphicsMill.AdvancedDrawing.FontRegistry |
fontRegistry |
|
Returns
| Type |
Description |
| Aurigma.GraphicsMill.AdvancedDrawing.Text |
|
CreateGmFont(Graphics, FontRegistry, Boolean, ref String)
Declaration
protected Font CreateGmFont(Graphics graphics, FontRegistry fontRegistry, bool isVector, ref string text)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.AdvancedDrawing.Graphics |
graphics |
|
| Aurigma.GraphicsMill.AdvancedDrawing.FontRegistry |
fontRegistry |
|
| System.Boolean |
isVector |
|
| System.String |
text |
|
Returns
| Type |
Description |
| Aurigma.GraphicsMill.AdvancedDrawing.Font |
|
CreateText(Graphics, FontRegistry, IRenderingColorSettings, Nullable<PixelFormat>, Func<String, Graphics, Boolean, FontRegistry, Text>, String, Boolean)
Declaration
protected Text CreateText(Graphics graphics, FontRegistry fontRegistry, IRenderingColorSettings colorSettings = null, PixelFormat? destinationPixelFormat = null, Func<string, Graphics, bool, FontRegistry, Text> createAdvancedText = null, string text = null, bool renderOnPdf = false)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.AdvancedDrawing.Graphics |
graphics |
|
| Aurigma.GraphicsMill.AdvancedDrawing.FontRegistry |
fontRegistry |
|
| IRenderingColorSettings |
colorSettings |
|
| System.Nullable<PixelFormat> |
destinationPixelFormat |
|
| System.Func<System.String, Aurigma.GraphicsMill.AdvancedDrawing.Graphics, System.Boolean, Aurigma.GraphicsMill.AdvancedDrawing.FontRegistry, Aurigma.GraphicsMill.AdvancedDrawing.Text> |
createAdvancedText |
|
| System.String |
text |
|
| System.Boolean |
renderOnPdf |
|
Returns
| Type |
Description |
| Aurigma.GraphicsMill.AdvancedDrawing.Text |
|
GetAdvancedTextLeading()
Declaration
protected float GetAdvancedTextLeading()
Returns
| Type |
Description |
| System.Single |
|
GetBasicTextAlignment(TextAlignment)
Declaration
protected TextAlignment GetBasicTextAlignment(TextAlignment alignment)
Parameters
| Type |
Name |
Description |
| Aurigma.GraphicsMill.AdvancedDrawing.TextAlignment |
alignment |
|
Returns
| Type |
Description |
| Aurigma.GraphicsMill.AdvancedDrawing.TextAlignment |
|
GetBytes()
Declaration
protected virtual List<byte> GetBytes()
Returns
| Type |
Description |
| System.Collections.Generic.List<System.Byte> |
|
GetDrawingPath(Single)
Declaration
protected override Path GetDrawingPath(float dpi = 72F)
Parameters
| Type |
Name |
Description |
| System.Single |
dpi |
|
Returns
| Type |
Description |
| Aurigma.GraphicsMill.AdvancedDrawing.Path |
|
Overrides
GetDrawingRotationCenter(Single)
Declaration
protected abstract PointF GetDrawingRotationCenter(float dpi = 72F)
Parameters
| Type |
Name |
Description |
| System.Single |
dpi |
|
Returns
GetItemHandlerData()
Declaration
public override ItemHandlerData GetItemHandlerData()
Returns
Overrides
GetItemHandlerDataType()
Declaration
public override string GetItemHandlerDataType()
Returns
| Type |
Description |
| System.String |
|
Overrides
GetTextColor(IColorProfilesProvider)
Declaration
public Color GetTextColor(IColorProfilesProvider profilesProvider)
Parameters
Returns
| Type |
Description |
| Aurigma.GraphicsMill.Color |
|
GetTextWithColors()
Declaration
protected string GetTextWithColors()
Returns
| Type |
Description |
| System.String |
|
MeasureText(out Nullable<Boolean>, Single, Boolean)
Declaration
protected virtual RectangleF MeasureText(out bool? textCropped, float dpi = 72F, bool includeMargins = false)
Parameters
| Type |
Name |
Description |
| System.Nullable<System.Boolean> |
textCropped |
|
| System.Single |
dpi |
|
| System.Boolean |
includeMargins |
|
Returns
| Type |
Description |
| System.Drawing.RectangleF |
|
MeasureText(Single, Boolean, Func<String, Graphics, Boolean, FontRegistry, Text>, Boolean)
Declaration
protected virtual RectangleF MeasureText(float dpi = 72F, bool includeMargins = false, Func<string, Graphics, bool, FontRegistry, Text> createAdvancedText = null, bool withShadowAndStroke = true)
Parameters
| Type |
Name |
Description |
| System.Single |
dpi |
|
| System.Boolean |
includeMargins |
|
| System.Func<System.String, Aurigma.GraphicsMill.AdvancedDrawing.Graphics, System.Boolean, Aurigma.GraphicsMill.AdvancedDrawing.FontRegistry, Aurigma.GraphicsMill.AdvancedDrawing.Text> |
createAdvancedText |
|
| System.Boolean |
withShadowAndStroke |
|
Returns
| Type |
Description |
| System.Drawing.RectangleF |
|
OnTransformChanged(Object, EventArgs)
Declaration
protected override void OnTransformChanged(object sender, EventArgs e)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
| System.EventArgs |
e |
|
Overrides
ScaleItem(Single)
Declaration
protected void ScaleItem(float scale)
Parameters
| Type |
Name |
Description |
| System.Single |
scale |
|
UpdateMask(Transform, PointF)
Declaration
protected virtual void UpdateMask(Transform transform, PointF controlCenter = null)
Parameters
UpdateSize()
Declaration
public virtual void UpdateSize()
Implements
System.ICloneable
System.IDisposable