C# Class WeiranZhang.Metropaper.Controls.NewHtmlBlock

Inheritance: System.Windows.Controls.Control
显示文件 Open project: weiran/Metropaper Class Usage Examples

Public Properties

Property Type Description
BlockQuoteBackgroundProperty System.Windows.DependencyProperty
BookmarkViewModelProperty System.Windows.DependencyProperty
H1FontFamilyProperty System.Windows.DependencyProperty
H1FontSizeProperty System.Windows.DependencyProperty
H1FontStretchProperty System.Windows.DependencyProperty
H1FontStyleProperty System.Windows.DependencyProperty
H1FontWeightProperty System.Windows.DependencyProperty
H1ForegroundProperty System.Windows.DependencyProperty
H2FontFamilyProperty System.Windows.DependencyProperty
H2FontSizeProperty System.Windows.DependencyProperty
H2FontStretchProperty System.Windows.DependencyProperty
H2FontStyleProperty System.Windows.DependencyProperty
H2FontWeightProperty System.Windows.DependencyProperty
H2ForegroundProperty System.Windows.DependencyProperty
H3FontFamilyProperty System.Windows.DependencyProperty
H3FontSizeProperty System.Windows.DependencyProperty
H3FontStretchProperty System.Windows.DependencyProperty
H3FontStyleProperty System.Windows.DependencyProperty
H3FontWeightProperty System.Windows.DependencyProperty
H3ForegroundProperty System.Windows.DependencyProperty
HtmlProperty System.Windows.DependencyProperty
HyperlinkFontFamilyProperty System.Windows.DependencyProperty
HyperlinkFontSizeProperty System.Windows.DependencyProperty
HyperlinkFontStretchProperty System.Windows.DependencyProperty
HyperlinkFontStyleProperty System.Windows.DependencyProperty
HyperlinkFontWeightProperty System.Windows.DependencyProperty
HyperlinkForegroundProperty System.Windows.DependencyProperty
NavigationCommandProperty System.Windows.DependencyProperty

Public Methods

Method Description
IncreaseFontSize ( ) : void
OnApplyTemplate ( ) : void
OnNavigationRequested ( object sender, RoutedEventArgs e ) : void

Private Methods

Method Description
AddParagraph ( ) : void
AddSpan ( ) : void
AddTextBox ( HtmlNode node, int leftMargin, int topMargin, int rightMargin, int bottomMargin ) : void
Append ( ) : void
AppendBold ( HtmlNode node, System.Windows.Documents.Paragraph paragraph, System.Windows.Documents.Span span ) : void
AppendHyperlink ( HtmlNode node, System.Windows.Documents.Paragraph paragraph, System.Windows.Documents.Span span ) : void
AppendImage ( HtmlNode node, System.Windows.Documents.Paragraph paragraph ) : void
AppendItalic ( HtmlNode node, System.Windows.Documents.Paragraph paragraph, System.Windows.Documents.Span span ) : void
AppendLineBreak ( HtmlNode node, System.Windows.Documents.Paragraph paragraph, System.Windows.Documents.Span span, bool traverse ) : void
AppendRun ( HtmlNode node, System.Windows.Documents.Paragraph paragraph, System.Windows.Documents.Span span ) : void
AppendSpan ( HtmlNode node, System.Windows.Documents.Paragraph paragraph, System.Windows.Documents.Span span, string style ) : void
AppendUnderline ( HtmlNode node, System.Windows.Documents.Paragraph paragraph, System.Windows.Documents.Span span ) : void
BookmarkModelChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
DecodeAndCleanupHtml ( string html ) : string
HtmlChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
NavigationCommandChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
NewHtmlBlock ( ) : System
RenderBody ( HtmlNode node ) : void
RenderChildren ( HtmlNode node, System.Windows.Documents.Paragraph paragraph, System.Windows.Documents.Span span ) : void
RenderHtml ( HtmlNode node, System.Windows.Documents.Paragraph paragraph, System.Windows.Documents.Span span ) : void
StripWhitespaceFromBody ( string input ) : string

Method Details

IncreaseFontSize() public method

public IncreaseFontSize ( ) : void
return void

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnNavigationRequested() public method

public OnNavigationRequested ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void

Property Details

BlockQuoteBackgroundProperty public_oe static_oe property

public static DependencyProperty,System.Windows BlockQuoteBackgroundProperty
return System.Windows.DependencyProperty

BookmarkViewModelProperty public_oe static_oe property

public static DependencyProperty,System.Windows BookmarkViewModelProperty
return System.Windows.DependencyProperty

H1FontFamilyProperty public_oe static_oe property

public static DependencyProperty,System.Windows H1FontFamilyProperty
return System.Windows.DependencyProperty

H1FontSizeProperty public_oe static_oe property

public static DependencyProperty,System.Windows H1FontSizeProperty
return System.Windows.DependencyProperty

H1FontStretchProperty public_oe static_oe property

public static DependencyProperty,System.Windows H1FontStretchProperty
return System.Windows.DependencyProperty

H1FontStyleProperty public_oe static_oe property

public static DependencyProperty,System.Windows H1FontStyleProperty
return System.Windows.DependencyProperty

H1FontWeightProperty public_oe static_oe property

public static DependencyProperty,System.Windows H1FontWeightProperty
return System.Windows.DependencyProperty

H1ForegroundProperty public_oe static_oe property

public static DependencyProperty,System.Windows H1ForegroundProperty
return System.Windows.DependencyProperty

H2FontFamilyProperty public_oe static_oe property

public static DependencyProperty,System.Windows H2FontFamilyProperty
return System.Windows.DependencyProperty

H2FontSizeProperty public_oe static_oe property

public static DependencyProperty,System.Windows H2FontSizeProperty
return System.Windows.DependencyProperty

H2FontStretchProperty public_oe static_oe property

public static DependencyProperty,System.Windows H2FontStretchProperty
return System.Windows.DependencyProperty

H2FontStyleProperty public_oe static_oe property

public static DependencyProperty,System.Windows H2FontStyleProperty
return System.Windows.DependencyProperty

H2FontWeightProperty public_oe static_oe property

public static DependencyProperty,System.Windows H2FontWeightProperty
return System.Windows.DependencyProperty

H2ForegroundProperty public_oe static_oe property

public static DependencyProperty,System.Windows H2ForegroundProperty
return System.Windows.DependencyProperty

H3FontFamilyProperty public_oe static_oe property

public static DependencyProperty,System.Windows H3FontFamilyProperty
return System.Windows.DependencyProperty

H3FontSizeProperty public_oe static_oe property

public static DependencyProperty,System.Windows H3FontSizeProperty
return System.Windows.DependencyProperty

H3FontStretchProperty public_oe static_oe property

public static DependencyProperty,System.Windows H3FontStretchProperty
return System.Windows.DependencyProperty

H3FontStyleProperty public_oe static_oe property

public static DependencyProperty,System.Windows H3FontStyleProperty
return System.Windows.DependencyProperty

H3FontWeightProperty public_oe static_oe property

public static DependencyProperty,System.Windows H3FontWeightProperty
return System.Windows.DependencyProperty

H3ForegroundProperty public_oe static_oe property

public static DependencyProperty,System.Windows H3ForegroundProperty
return System.Windows.DependencyProperty

HtmlProperty public_oe static_oe property

public static DependencyProperty,System.Windows HtmlProperty
return System.Windows.DependencyProperty

HyperlinkFontFamilyProperty public_oe static_oe property

public static DependencyProperty,System.Windows HyperlinkFontFamilyProperty
return System.Windows.DependencyProperty

HyperlinkFontSizeProperty public_oe static_oe property

public static DependencyProperty,System.Windows HyperlinkFontSizeProperty
return System.Windows.DependencyProperty

HyperlinkFontStretchProperty public_oe static_oe property

public static DependencyProperty,System.Windows HyperlinkFontStretchProperty
return System.Windows.DependencyProperty

HyperlinkFontStyleProperty public_oe static_oe property

public static DependencyProperty,System.Windows HyperlinkFontStyleProperty
return System.Windows.DependencyProperty

HyperlinkFontWeightProperty public_oe static_oe property

public static DependencyProperty,System.Windows HyperlinkFontWeightProperty
return System.Windows.DependencyProperty

HyperlinkForegroundProperty public_oe static_oe property

public static DependencyProperty,System.Windows HyperlinkForegroundProperty
return System.Windows.DependencyProperty

NavigationCommandProperty public_oe static_oe property

public static DependencyProperty,System.Windows NavigationCommandProperty
return System.Windows.DependencyProperty