123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Media;
- namespace PDFSettings
- {
- public class PDFEditList
- {
- public string mTag { get; set; }= "Custom";
- public string mTagContent { get; set; }
- public static int mFontSize1 { get; set; } = 1;
- public FontFamily mFontFamily { get; set; }
- public FontStyle mFontStyle { get; set; }
- public FontWeight mFontWeight { get; set; }
- public struct PresetFontItem
- {
- public string mTag;
- public string mTagContent;
- public int mFontSize;
- public int mFontSize1;
- public FontFamily mFontFamily;
- public FontStyle mFontStyle;
- public FontWeight mFontWeight;
- }
- public List<PresetFontItem> fontStyleList = new List<PresetFontItem>() {
- new PresetFontItem() {
- mTag = "Custom",
- mTagContent = "PresetTextStyle_Customize",
- mFontSize = 16,
- mFontFamily = new FontFamily("Helvetica"),
- mFontStyle = FontStyles.Normal,
- mFontWeight = FontWeights.Normal
- },
- new PresetFontItem() {
- mTag = "H1",
- mTagContent = "PresetTextStyle_H1Title",
- mFontSize = mFontSize1,
- mFontFamily = new FontFamily("Helvetica"),
- mFontStyle = FontStyles.Normal,
- mFontWeight = FontWeights.Bold
- },
- new PresetFontItem() {
- mTag = "H2",
- mTagContent = "PresetTextStyle_H2Title",
- mFontSize = 24,
- mFontFamily = new FontFamily("Helvetica"),
- mFontStyle = FontStyles.Normal,
- mFontWeight = FontWeights.Bold
- },
- new PresetFontItem() {
- mTag = "H3",
- mTagContent = "PresetTextStyle_H3Title",
- mFontSize = 18,
- mFontFamily = new FontFamily("Helvetica"),
- mFontStyle = FontStyles.Normal,
- mFontWeight = FontWeights.Bold
- },
- new PresetFontItem() {
- mTag = "B1",
- mTagContent = "PresetTextStyle_B1NormalTextStandard",
- mFontSize = 14,
- mFontFamily = new FontFamily("Helvetica"),
- mFontStyle = FontStyles.Normal,
- mFontWeight = FontWeights.Regular
- },
- new PresetFontItem() {
- mTag = "B2",
- mTagContent = "PresetTextStyle_B2NormalTextSmall",
- mFontSize = 12,
- mFontFamily = new FontFamily("Helvetica"),
- mFontStyle = FontStyles.Normal,
- mFontWeight = FontWeights.Regular
- },
- new PresetFontItem() {
- mTag = "B3",
- mTagContent = "PresetTextStyle_B3Description",
- mFontSize = 11,
- mFontFamily = new FontFamily("Helvetica"),
- mFontStyle = FontStyles.Normal,
- mFontWeight = FontWeights.Regular
- }
- };
- }
-
- }
|