|
of_gettextstyle
|
|
Full name
|
pfc_u_rte.of_gettextstyle
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_gettextstyle(ref n_cst_textstyleattrib)
|
public function integer of_gettextstyle (ref n_cst_textstyleattrib anv_textstyle);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_GetTextStyle
//
// Access: public
//
// Arguments:
// anv_textstyle object which will contain all textstyle settings
// of currently selected text in RTE
//
// Returns: integer
// 1 = success
// -1 = error
//
// Description: Calculates all text style settings for the currently
// selected text in the RTE
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
if IsValid (anv_textstyle) then
anv_textstyle.ib_bold = GetTextStyle (bold!)
anv_textstyle.ib_italic = GetTextStyle (italic!)
anv_textstyle.ib_strikeout = GetTextStyle (strikeout!)
anv_textstyle.ib_subscript = GetTextStyle (subscript!)
anv_textstyle.ib_superscript = GetTextStyle (superscript!)
anv_textstyle.ib_underlined = GetTextStyle (underlined!)
return 1
else
return -1
end if
end function
Name
|
Owner
|
richtextedit.gettextstyle |
richtextedit
|
systemfunctions.isvalid |
systemfunctions
|