Exemplo n.º 1
0
 private static ProWrite.UFE.Entity.TextEffect ConvertTextEffect(OutlineShadowType source)
 {
     if (source == OutlineShadowType.NONE)
     {
         return(ProWrite.UFE.Entity.TextEffect.NONE);
     }
     if (source == OutlineShadowType.BubbleSurround)
     {
         return(ProWrite.UFE.Entity.TextEffect.BUBBLE);
     }
     if (source == OutlineShadowType.SHADED)
     {
         return(ProWrite.UFE.Entity.TextEffect.SHADED);
     }
     return(ProWrite.UFE.Entity.TextEffect.NONE);
 }
Exemplo n.º 2
0
        public override void FromTo(ShapeBase shape)
        {
            base.FromTo(shape);

            ShapeLabel other = shape as ShapeLabel;

            if (other != null)
            {
                _text = other._text;
                //_autofittype = other._autofittype;
                _kernAmount    = other._kernAmount;
                _leadAmount    = other._leadAmount;
                _outlineshadow = other._outlineshadow;
                _paintAction   = other._paintAction;
                _textAlign     = other._textAlign;
                _textVAlign    = other._textVAlign;
                _wordWrap      = other._wordWrap;
                _paintAction   = PaintActionType.None;
                if (other._labelImage != null)
                {
                    if (other._innerImagePath != null && other._innerImagePath != string.Empty)
                    {
                        IOHelper.RemoveFile(other._innerImagePath);
                    }
                    _labelImage           = other._labelImage.Clone() as Image;
                    other._innerImagePath = SaveTextImage(_labelImage);
                    _innerImagePath       = other._innerImagePath;
                }
                else
                {
                    _innerImagePath = other._innerImagePath;
                }
                _frameSizeFixed = other.FrameSizeFixed;
                _fontSizeFixed  = other.FontSizeFixed;

                _backColor = other.BackColor;
            }
        }