本文整理汇总了C#中StyleType类的典型用法代码示例。如果您正苦于以下问题:C# StyleType类的具体用法?C# StyleType怎么用?C# StyleType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StyleType类属于命名空间,在下文中一共展示了StyleType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: DummyRtfStyle
/// ------------------------------------------------------------------------------------
/// <summary>
/// Construct a dummy RTF style with the given name and type. Everything else is
/// inherited/default.
/// </summary>
/// ------------------------------------------------------------------------------------
public DummyRtfStyle(string styleName, StyleType styleType)
: base(-1)
{
m_name = styleName;
m_usage = null;
m_styleType = styleType;
}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:13,代码来源:ExportRtfTests.cs
示例2: AddToRTB
public static void AddToRTB(RichTextBox rtb, string strText, StyleType style, enumIcon icon)
{
switch (style)
{
case StyleType.bodyBlack:
AddToRTB(rtb, strText, Color.Black, 8, false, icon);
break;
case StyleType.bodyBlackBold:
AddToRTB(rtb, strText, Color.Black, 8, true, icon);
break;
case StyleType.bodyBlue:
AddToRTB(rtb, strText, Color.Blue, 8, false, icon);
break;
case StyleType.bodyBlueBold:
AddToRTB(rtb, strText, Color.Blue, 8, true, icon);
break;
case StyleType.bodyChocolate:
AddToRTB(rtb, strText, Color.Chocolate, 8, false, icon);
break;
case StyleType.bodyChocolateBold:
AddToRTB(rtb, strText, Color.Chocolate, 8, true, icon);
break;
case StyleType.bodyDarkGray:
AddToRTB(rtb, strText, Color.DarkGray, 8, false, icon);
break;
case StyleType.bodyMidnightBlue:
AddToRTB(rtb, strText, Color.MidnightBlue, 8, false, icon);
break;
case StyleType.bodyOrange:
AddToRTB(rtb, strText, Color.Orange, 8, false, icon);
break;
case StyleType.bodyPurple:
AddToRTB(rtb, strText, Color.Purple, 8, false, icon);
break;
case StyleType.bodyRed:
AddToRTB(rtb, strText, Color.Red, 8, false, icon);
break;
case StyleType.bodySeaGreen:
AddToRTB(rtb, strText, Color.SeaGreen, 8, false, icon);
break;
case StyleType.bodySeaGreenBold:
AddToRTB(rtb, strText, Color.SeaGreen, 8, true, icon);
break;
case StyleType.titleBlack:
AddToRTB(rtb, strText, Color.Black, 14, true, icon);
break;
case StyleType.titleBlue:
AddToRTB(rtb, strText, Color.Blue, 14, true, icon);
break;
case StyleType.titleChocolate:
AddToRTB(rtb, strText, Color.Chocolate, 14, true, icon);
break;
case StyleType.titleSeagreen:
AddToRTB(rtb, strText, Color.SeaGreen, 14, true, icon);
break;
default:
AddToRTB(rtb, strText, Color.Black, 8, false, icon);
break;
}
}
开发者ID:iasanders,项目名称:sushi,代码行数:60,代码来源:SmartStepsUtil.cs
示例3: CreateStyle
public static Style CreateStyle(StyleType styleType)
{
var styleCard = new StyleCard();
styleCard._styleType = styleType;
styleCard.ShowDialog();
return styleCard._style;
}
开发者ID:poolsar,项目名称:LotCreator,代码行数:8,代码来源:StyleCard.cs
示例4: ApplyStyleEx
protected override void ApplyStyleEx(TextRowVisualStyle style, StyleType[] css)
{
foreach (StyleType cs in css)
{
style.ApplyStyle(SuperGrid.BaseVisualStyles.FooterStyles[cs]);
style.ApplyStyle(SuperGrid.DefaultVisualStyles.FooterStyles[cs]);
style.ApplyStyle(GridPanel.DefaultVisualStyles.FooterStyles[cs]);
}
}
开发者ID:huamanhtuyen,项目名称:VNACCS,代码行数:9,代码来源:GridFooter.cs
示例5: ChooseStyle
public static Style ChooseStyle(StyleType? styleType = null)
{
var stylesDictForm = new StylesDictForm();
stylesDictForm._styleType = styleType;
if (stylesDictForm.ShowDialog() != DialogResult.OK)
{
return null;
}
return stylesDictForm._style;
}
开发者ID:poolsar,项目名称:LotCreator,代码行数:13,代码来源:StylesDictForm.cs
示例6: GetImageWithCache
public Image GetImageWithCache(Rectangle r, StyleType style, StyleType? overlayStyle = null) {
var key = new CacheKey { OverlayStyle = overlayStyle, Rectangle = r, Style = style };
Image img;
if (cachedImages.TryGetValue(key, out img)) return img;
var bmp = new Bitmap(r.Width, r.Height);
using (var g = Graphics.FromImage(bmp))
{
RenderToGraphics(g, r, style);
if (overlayStyle != null) RenderToGraphics(g, r, overlayStyle.Value);
}
cachedImages[key] = bmp;
return bmp;
}
开发者ID:DeinFreund,项目名称:Zero-K-Infrastructure,代码行数:15,代码来源:FrameBorderRenderer.cs
示例7: StyleInfo
/// ------------------------------------------------------------------------------------
/// <summary>
/// Initializes a new instance of the <see cref="StyleInfo"/> class. Creates a new
/// style of a given type.
/// </summary>
/// <param name="name">new style name</param>
/// <param name="basedOnStyle">style to be based on</param>
/// <param name="styleType"></param>
/// <param name="cache">FDO cache</param>
/// ------------------------------------------------------------------------------------
public StyleInfo(string name, StyleInfo basedOnStyle, StyleType styleType,
FdoCache cache) : base(cache)
{
Name = name;
m_styleType = styleType;
m_basedOnStyle = basedOnStyle;
if (basedOnStyle != null)
m_basedOnStyleName = basedOnStyle.Name;
else if (styleType == StyleType.kstParagraph)
{
throw new ArgumentNullException("basedOnStyle",
"New paragraph styles are required to be based on an existing style.");
}
m_nextStyleName = name;
}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:25,代码来源:StyleInfo.cs
示例8: Style
public Style(RTF rtf) {
num = -1;
type = StyleType.Paragraph;
based_on = NoStyleNum;
next_par = -1;
lock (rtf) {
if (rtf.Styles == null) {
rtf.Styles = this;
} else {
Style s = rtf.Styles;
while (s.next != null)
s = s.next;
s.next = this;
}
}
}
开发者ID:nlhepler,项目名称:mono,代码行数:17,代码来源:Style.cs
示例9: ApplyStyleEx
protected virtual void ApplyStyleEx(TextRowVisualStyle style, StyleType[] css)
{
}
开发者ID:huamanhtuyen,项目名称:VNACCS,代码行数:3,代码来源:GridTextRow.cs
示例10: DisplayImage
public static void DisplayImage( Gump gump, StyleType style )
{
switch ( style )
{
case StyleType.Scroll:{ break; }
default:{ gump.AddImage( 30, 50, 10440 ); gump.AddImage( 648, 50, 10441 ); break; }
}
}
开发者ID:brodock,项目名称:genova-project,代码行数:8,代码来源:MasterControl.cs
示例11: GetEffectiveStyle
internal TextRowVisualStyle GetEffectiveStyle(StyleType type)
{
ValidateRowStyle();
return (GetStyleEx(type));
}
开发者ID:huamanhtuyen,项目名称:VNACCS,代码行数:6,代码来源:GridTextRow.cs
示例12: GetStyleEx
private TextRowVisualStyle GetStyleEx(StyleType e)
{
if (_EffectiveRowStyles.IsValid(e) == false)
{
TextRowVisualStyle style = GetNewVisualStyle();
StyleType[] css = style.GetApplyStyleTypes(e);
if (css != null)
ApplyStyleEx(style, css);
SuperGrid.DoGetTextRowStyleEvent(this, e, ref style);
if (style.Background == null || style.Background.IsEmpty == true)
style.Background = new Background(Color.White);
if (style.Font == null)
style.Font = SystemFonts.CaptionFont;
_EffectiveRowStyles[e] = style;
}
return (_EffectiveRowStyles[e]);
}
开发者ID:huamanhtuyen,项目名称:VNACCS,代码行数:24,代码来源:GridTextRow.cs
示例13: GetArgsList
private void GetArgsList()
{
MessagesTitle = (string) ArgsList[2];
Messages = (string) ArgsList[4];
HideSpawnerList = (ArrayList) ArgsList[6];
MSGCheckBoxesList = (ArrayList) ArgsList[13];
megaSpawner = (MegaSpawner) ArgsList[19];
fromSpawnerList = (bool) ArgsList[20];
PersonalConfigList = (ArrayList) ArgsList[28];
StyleTypeConfig = (StyleType) PersonalConfigList[0];
BackgroundTypeConfig = (BackgroundType) PersonalConfigList[1];
DefaultTextColor = (TextColor) PersonalConfigList[4];
TitleTextColor = (TextColor) PersonalConfigList[5];
}
开发者ID:evildude807,项目名称:kaltar,代码行数:15,代码来源:ConfirmDeleteSpawnerGump.cs
示例14: GetArgsList
private void GetArgsList()
{
MessagesTitle = (string) ArgsList[2];
Messages = (string) ArgsList[4];
MSGCheckBoxesList = (ArrayList) ArgsList[13];
PersonalConfigList = (ArrayList) ArgsList[28];
StyleTypeConfig = (StyleType) PersonalConfigList[0];
BackgroundTypeConfig = (BackgroundType) PersonalConfigList[1];
DefaultTextColor = (TextColor) PersonalConfigList[4];
TitleTextColor = (TextColor) PersonalConfigList[5];
}
开发者ID:cynricthehun,项目名称:UOLegends,代码行数:12,代码来源:RemoveOverrideSettingGump.cs
示例15: DeleteStyleType
partial void DeleteStyleType(StyleType instance);
开发者ID:cab-codespring,项目名称:LitTravMaint,代码行数:1,代码来源:LittleTraveller.designer.cs
示例16: GetArgsList
private void GetArgsList()
{
Help = (bool) ArgsList[0];
DisplayMessages = (bool) ArgsList[1];
MessagesTitle = (string) ArgsList[2];
OldMessagesTitle = (string) ArgsList[3];
Messages = (string) ArgsList[4];
OldMessages = (string) ArgsList[5];
PageInfoList = (ArrayList) ArgsList[12];
AVSArgsList = (ArrayList) ArgsList[22];
PersonalConfigList = (ArrayList) ArgsList[28];
AITCCheckBoxesList = (ArrayList) ArgsList[31];
SEGArgsList = (ArrayList) ArgsList[32];
cpg = (int) PageInfoList[30];
pg = (int) PageInfoList[31];
StyleTypeConfig = (StyleType) PersonalConfigList[0];
BackgroundTypeConfig = (BackgroundType) PersonalConfigList[1];
ActiveTEBGTypeConfig = (BackgroundType) PersonalConfigList[2];
InactiveTEBGTypeConfig = (BackgroundType) PersonalConfigList[3];
DefaultTextColor = (TextColor) PersonalConfigList[4];
TitleTextColor = (TextColor) PersonalConfigList[5];
MessagesTextColor = (TextColor) PersonalConfigList[6];
CommandButtonsTextColor = (TextColor) PersonalConfigList[7];
PageNumberTextColor = (int) PersonalConfigList[8];
ActiveTextEntryTextColor = (int) PersonalConfigList[9];
InactiveTextEntryTextColor = (int) PersonalConfigList[10];
addItem = (string) AVSArgsList[23];
InsideItemList = (ArrayList) AVSArgsList[27];
}
开发者ID:cynricthehun,项目名称:UOLegends,代码行数:32,代码来源:AddItemsToContainerGump.cs
示例17: ImportStyleProxy
/// ------------------------------------------------------------------------------------
/// <summary>
/// Constructor with ContextValues and MarkerDomain as a parameters.
/// </summary>
/// <param name="sStyleName">Name of the style.</param>
/// <param name="styleType">kstCharacter or kstParagraph</param>
/// <param name="ws">character or paragraph writing system</param>
/// <param name="context">Context that will be used if this is a new style (otherwise existing
/// context in DB will be used), see ContextValues for possible types</param>
/// <param name="domain">The marker domain to use</param>
/// <param name="styleSheet">The style sheet</param>
/// ------------------------------------------------------------------------------------
public ImportStyleProxy(string sStyleName, StyleType styleType, int ws,
ContextValues context, MarkerDomain domain, FwStyleSheet styleSheet)
{
m_FwStyleSheet = styleSheet;
m_domain = domain;
Debug.Assert(m_FwStyleSheet != null);
m_ttpFormattingProps = null;
m_fIsScriptureStyle = true; //default
m_sEndMarker = null; //default
if (context == ContextValues.EndMarker)
{ // this proxy represents an end marker - not a style; set bogus info
sStyleName = "End"; //name does not matter
styleType = StyleType.kstCharacter;
}
else if (sStyleName != null)
{
// Determine whether style exists in the StyleSheet
Debug.Assert(ws != 0);
m_style = m_FwStyleSheet.FindStyle(sStyleName);
if (m_style != null)
{
// If this is an existing style, the actual type, context, structure, and
// function always override the requested values.
styleType = m_style.Type;
context = (ContextValues)m_style.Context;
m_structure = (StructureValues)m_style.Structure;
m_function = (FunctionValues)m_style.Function;
}
}
m_sStyleName = sStyleName;
m_StyleType = styleType;
m_ws = ws;
m_Context = context;
// //force StartOfFootnote marker to be processed as a para style proxy having para props
// if (context == StyleRole.StartOfFootnote)
// m_StyleType = StyleType.kstParagraph;
//set the text property vars for this proxy
SetTextProps();
}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:56,代码来源:ImportStyleProxy.cs
示例18: Style
public Style(String name, StyleType type)
{
this.Name = name;
this.Type = type;
}
开发者ID:amilasurendra,项目名称:pdf-generator,代码行数:5,代码来源:Style.cs
示例19: GetArgsList
private void GetArgsList()
{
MessagesTitle = (string) ArgsList[2];
Messages = (string) ArgsList[4];
FileName = (string) ArgsList[7];
Changed = (bool) ArgsList[10];
ChangedSpawnerList = (ArrayList) ArgsList[11];
PersonalConfigList = (ArrayList) ArgsList[28];
StyleTypeConfig = (StyleType) PersonalConfigList[0];
BackgroundTypeConfig = (BackgroundType) PersonalConfigList[1];
DefaultTextColor = (TextColor) PersonalConfigList[4];
TitleTextColor = (TextColor) PersonalConfigList[5];
}
开发者ID:cynricthehun,项目名称:UOLegends,代码行数:14,代码来源:ConfirmAbandonChangesGump.cs
示例20: GetArgsList
private void GetArgsList()
{
MessagesTitle = (string) ArgsList[2];
Messages = (string) ArgsList[4];
MSEGCheckBoxesList = (ArrayList) ArgsList[14];
megaSpawner = (MegaSpawner) ArgsList[19];
ESGArgsList = (ArrayList) ArgsList[21];
PersonalConfigList = (ArrayList) ArgsList[28];
index = (int) ESGArgsList[1];
StyleTypeConfig = (StyleType) PersonalConfigList[0];
BackgroundTypeConfig = (BackgroundType) PersonalConfigList[1];
DefaultTextColor = (TextColor) PersonalConfigList[4];
TitleTextColor = (TextColor) PersonalConfigList[5];
}
开发者ID:evildude807,项目名称:kaltar,代码行数:16,代码来源:ConfirmDeleteEntryGump.cs
注:本文中的StyleType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论