2条回答 默认 最新
Greless 2018-11-27 09:21关注CString _strbuffer; CDocumentWindow documentWindow= App.get_ActiveWindow(); CSelection selection= documentWindow.get_Selection(); //CSlideRange SlideRange= selection.get_SlideRange(); // CShapes shapes = SlideRange.get_Shapes(); CTextRange textrange = selection.get_TextRange(); // long _count= shapes.get_Count(); // CShape shape = shapes.Range(COleVariant((short)_count)); // CTextFrame textframe = shape.get_TextFrame(); // CTextRange textrange = textframe.get_TextRange(); AfxMessageBox(textrange.get_Text()); CFont0 font0 =textrange.get_Font( ); AfxMessageBox(font0.get_Name());// CFonts fonts = Presentation.get_Fonts();
// font0 =fonts.Item(COleVariant((short)1));font0.put_Name(_T("楷体")); font0.put_NameAscii(_T("楷体")); font0.put_NameFarEast(_T("楷体")); AfxMessageBox(font0.get_Name());解决 无用评论 打赏 举报
