如何使用linebreak创建VML文本路径/文本框?

时间:2015-06-26 19:48:25

标签: dojo raphael vml dojox.charting

我正在使用Dojo的图表库来创建一个饼图。对于非SVG支持的浏览器,库可以回退到VML。该库正在创建VML文本路径:

private void button1_Click(object sender, EventArgs e)
    {
        int pfSupported;
        string extradata = "test\0";
        IntPtr pvExtraData = Marshal.StringToHGlobalUni(extradata);
        uint cbExtraData = (uint)extradata.Length * sizeof(Char);
        Speechlib._RemotableHandle rh = new Speechlib._RemotableHandle();
        rh = getRemotableHandle(this.Handle);
        ISpObjectToken isot = (ISpObjectToken)new SpObjectToken();

        isot.IsUISupported("AddRemoveWord", pvExtraData, cbExtraData, null, out pfSupported);
        if (pfSupported == 1)
        {
            isot.DisplayUI(ref rh, null, "AddRemoveWord", pvExtraData, cbExtraData, null);
        }
    }
    SpeechLib._RemotableHandle getRemotableHandle(IntPtr handle)
    {
        IntPtr address = Marshal.AllocHGlobal(IntPtr.Size);
        Marshal.WriteIntPtr(address, handle);
        return (SpeechLib._RemotableHandle)Marshal.PtrToStructure(address, typeof(SpeechLib._RemotableHandle));
    }

有谁知道如何在textpaths字符串中添加换行符?谢谢!!!

0 个答案:

没有答案