3,245
社区成员
发帖
与我相关
我的任务
分享
CRange rng;
rng = wordDoc.get_Content();// wordDoc 是 CDocument0 类型
CFont0 wordFont = rng.get_Font();
float wordSize = wordFont.get_Size();
CFont0 newFont;
newFont.put_Size(wordSize+4);
CRange temptRange;
temptRange.SetRange(0, 10);//选定前10个字符
temptRange.Select();
temptRange.put_Font(LPDISPATCH(newFont));
#include "CApplication.h"
#include "CDocuments.h"
#include "CDocument0.h"
#include "CRange.h"
#include "CBorders.h"
#include "CFont0.h"
#include "CParagraphFormat.h"
#include "CSelection.h"
#include "CTable0.h"
#include "CTables0.h"
#include "CColumns0.h"
#include "CCell.h"
#include "CWords.h"