Example #1
0
    private static void smethod_19(Class581 A_0, CharacterFormat A_1)
    {
        smethod_4(A_0, A_1);
        ShapeBase base2 = Class964.smethod_4(A_0);

        if (base2 != null)
        {
            base2.ApplyCharacterFormat(A_1);
            if (base2.ShapeType == ShapeType.OleObject)
            {
                DocOleObject oleFormat = (base2 as ShapeObject).OleFormat;
                oleFormat.SetOlePicture((base2 as ShapeObject).ImageData);
                A_0.method_9(oleFormat);
                smethod_20(oleFormat, A_0);
            }
            else if (base2.ShapeType == ShapeType.TextBox)
            {
                TextBox internerTextbox = (base2 as ShapeObject).InternerTextbox;
                A_0.method_9(internerTextbox);
            }
            else if ((base2.ShapeType == ShapeType.Image) || (base2 as ShapeObject).HasImage)
            {
                DocPicture imageData = (base2 as ShapeObject).ImageData;
                imageData.IsShape = true;
                A_0.method_9(imageData);
            }
            else
            {
                base2.CharacterFormat.method_25(A_1);
                A_0.method_9(base2);
            }
        }
    }