sotextstyle.cpp

来自「用VC+SuperMap开发的校园GIS系统」· C++ 代码 · 共 215 行

CPP
215
字号
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++

// NOTE: Do not modify the contents of this file.  If this class is regenerated by
//  Microsoft Visual C++, your modifications will be overwritten.


#include "stdafx.h"
#include "sotextstyle.h"


/////////////////////////////////////////////////////////////////////////////
// CsoTextStyle properties

long CsoTextStyle::GetAlign()
{
	long result;
	GetProperty(0x1, VT_I4, (void*)&result);
	return result;
}

void CsoTextStyle::SetAlign(long propVal)
{
	SetProperty(0x1, VT_I4, propVal);
}

BOOL CsoTextStyle::GetBold()
{
	BOOL result;
	GetProperty(0x2, VT_BOOL, (void*)&result);
	return result;
}

void CsoTextStyle::SetBold(BOOL propVal)
{
	SetProperty(0x2, VT_BOOL, propVal);
}

unsigned long CsoTextStyle::GetColor()
{
	unsigned long result;
	GetProperty(0x3, VT_I4, (void*)&result);
	return result;
}

void CsoTextStyle::SetColor(unsigned long propVal)
{
	SetProperty(0x3, VT_I4, propVal);
}

double CsoTextStyle::GetFontHeight()
{
	double result;
	GetProperty(0x4, VT_R8, (void*)&result);
	return result;
}

void CsoTextStyle::SetFontHeight(double propVal)
{
	SetProperty(0x4, VT_R8, propVal);
}

double CsoTextStyle::GetFontWidth()
{
	double result;
	GetProperty(0x5, VT_R8, (void*)&result);
	return result;
}

void CsoTextStyle::SetFontWidth(double propVal)
{
	SetProperty(0x5, VT_R8, propVal);
}

BOOL CsoTextStyle::GetItalic()
{
	BOOL result;
	GetProperty(0x6, VT_BOOL, (void*)&result);
	return result;
}

void CsoTextStyle::SetItalic(BOOL propVal)
{
	SetProperty(0x6, VT_BOOL, propVal);
}

BOOL CsoTextStyle::GetStroke()
{
	BOOL result;
	GetProperty(0x7, VT_BOOL, (void*)&result);
	return result;
}

void CsoTextStyle::SetStroke(BOOL propVal)
{
	SetProperty(0x7, VT_BOOL, propVal);
}

BOOL CsoTextStyle::GetUnderline()
{
	BOOL result;
	GetProperty(0x8, VT_BOOL, (void*)&result);
	return result;
}

void CsoTextStyle::SetUnderline(BOOL propVal)
{
	SetProperty(0x8, VT_BOOL, propVal);
}

double CsoTextStyle::GetRotation()
{
	double result;
	GetProperty(0x9, VT_R8, (void*)&result);
	return result;
}

void CsoTextStyle::SetRotation(double propVal)
{
	SetProperty(0x9, VT_R8, propVal);
}

CString CsoTextStyle::GetFontName()
{
	CString result;
	GetProperty(0xa, VT_BSTR, (void*)&result);
	return result;
}

void CsoTextStyle::SetFontName(LPCTSTR propVal)
{
	SetProperty(0xa, VT_BSTR, propVal);
}

BOOL CsoTextStyle::GetFixedSize()
{
	BOOL result;
	GetProperty(0xb, VT_BOOL, (void*)&result);
	return result;
}

void CsoTextStyle::SetFixedSize(BOOL propVal)
{
	SetProperty(0xb, VT_BOOL, propVal);
}

BOOL CsoTextStyle::GetTransparent()
{
	BOOL result;
	GetProperty(0xc, VT_BOOL, (void*)&result);
	return result;
}

void CsoTextStyle::SetTransparent(BOOL propVal)
{
	SetProperty(0xc, VT_BOOL, propVal);
}

long CsoTextStyle::GetFixedTextSize()
{
	long result;
	GetProperty(0xd, VT_I4, (void*)&result);
	return result;
}

void CsoTextStyle::SetFixedTextSize(long propVal)
{
	SetProperty(0xd, VT_I4, propVal);
}

BOOL CsoTextStyle::GetShadow()
{
	BOOL result;
	GetProperty(0xe, VT_BOOL, (void*)&result);
	return result;
}

void CsoTextStyle::SetShadow(BOOL propVal)
{
	SetProperty(0xe, VT_BOOL, propVal);
}

BOOL CsoTextStyle::GetOutline()
{
	BOOL result;
	GetProperty(0xf, VT_BOOL, (void*)&result);
	return result;
}

void CsoTextStyle::SetOutline(BOOL propVal)
{
	SetProperty(0xf, VT_BOOL, propVal);
}

unsigned long CsoTextStyle::GetBgColor()
{
	unsigned long result;
	GetProperty(0x10, VT_I4, (void*)&result);
	return result;
}

void CsoTextStyle::SetBgColor(unsigned long propVal)
{
	SetProperty(0x10, VT_I4, propVal);
}

/////////////////////////////////////////////////////////////////////////////
// CsoTextStyle operations

long CsoTextStyle::GetSmObject()
{
	long result;
	InvokeHelper(0x11, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
	return result;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?