c# pdf viewer open source : How to reorder pdf pages software control dll windows web page html web forms World%20of%20Warcraft%20Programming%20(2nd%20Edition)125-part1790

Chapter 29
Widget Reference 1209
GetFontObject
ReturnstheFont
object from whichthe properties of afont used in the frame
are inherited.
font =SimpleHTML:GetFontObject([“element“])
Arguments:
element(optional)—NameofanHTMLelementforwhichtoreturnfontinfor-
mation (e.g.p,h1); if omitted, returns information about the frame’sdefault font
(string)
Returns:
font—ReferencetotheFontobjectfromwhichfontpropertiesareinherited,or
nilifnopropertiesareinherited(font)
GetHyperlinkFormat
Returnsthe format string used for displaying hyperlinksinthe frame.
format =SimpleHTML:GetHyperlinkFormat()
See:SetHyperlinkFormat() for details.
Returns:
format—Formatstringusedfordisplayinghyperlinksintheframe(string)
GetHyperlinksEnabled
Returnswhether hyperlinks inthe frame’stext are interactive.
enabled=SimpleHTML:GetHyperlinksEnabled()
Returns:
enabled1ifhyperlinksintheframe’stextareinteractive;otherwise nil
(1nil)
GetIndentedWordWrap
Returnswhether long linesof text are indented whenwrapping.
indent =SimpleHTML:GetIndentedWordWrap([“element“])
Arguments:
element(optional)—NameofanHTMLelementforwhichtoreturntextstyle
information (e.g.p,h1); if omitted, returns information about the frame’sdefault
text style (string)
Returns:
indent1iflonglinesoftextareindentedwhenwrapping;otherwise nil
(1nil)
GetJustifyH
Returnsthe horizontal alignment style for text inthe frame.
justify=SimpleHTML:GetJustifyH([“element“])
Arguments:
element(optional)—NameofanHTMLelementforwhichtoreturntextstyle
information (e.g.p,h1); if omitted, returns information about the frame’sdefault
text style (string)
How to reorder pdf pages - re-order PDF pages in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Support Customizing Page Order of PDF Document in C# Project
move pages in pdf reader; rearrange pages in pdf file
How to reorder pdf pages - VB.NET PDF Page Move Library: re-order PDF pages in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Sort PDF Document Pages Using VB.NET Demo Code
how to reorder pages in pdf online; pdf rearrange pages
1210 Part IV
Reference
Returns:
justify—Horizontaltextalignmentstyle(string,justifyH)
CENTER
LEFT
RIGHT
GetJustifyV
Returns the verticalalignment style for text in the frame.
justify =SimpleHTML:GetJustifyV([“element“])
Arguments:
element(optional)—NameofanHTMLelementforwhichtoreturntextstyle
information (e.g.p,h1); if omitted, returns informationabout the frame’s default
text style (string)
Returns:
justify—Verticaltextalignmentstyle(string,justifyV)
BOTTOM
MIDDLE
TOP
GetShadowColor
Returns the shadow color for text inthe frame.
shadowR,shadowG,shadowB,shadowAlpha =i
SimpleHTML:GetShadowColor([“element“])
Arguments:
element(optional)—NameofanHTMLelementforwhichtoreturnfontinfor-
mation (e.g.p,h1); if omitted, returns informationabout the frame’s default font
(string)
Returns:
shadowR—Redcomponentoftheshadowcolor(0.0-1.0)(number)
shadowG—Greencomponentoftheshadowcolor(0.0-1.0)(number)
shadowB—Bluecomponentoftheshadowcolor(0.0-1.0)(number)
shadowAlpha—Alpha(opacity)ofthetext’sshadow(0.0=fully
transparent, 1.0 = fully opaque) (number)
GetShadowOffset
Returns the offset of text shadow from text inthe frame.
xOffset,yOffset =SimpleHTML:GetShadowOffset([“element“])
Arguments:
element(optional)—NameofanHTMLelementforwhichtoreturnfontinfor-
mation (e.g.p,h1); if omitted, returns informationabout the frame’s default font
(string)
Returns:
xOffset—Horizontaldistancebetweenthetextanditsshadow(in
pixels) (number)
C# TIFF: How to Reorder, Rearrange & Sort TIFF Pages Using C# Code
Reorder, Rearrange and Sort TIFF Document Pages in C#.NET Application. C# TIFF Page Sorting Overview. Reorder TIFF Pages in C#.NET Application.
reorder pages of pdf; pdf rearrange pages online
C# PDF: C# Code to Process PDF Document Page Using C#.NET PDF
just following attached links. C# PDF: Add, Delete, Reorder PDF Pages Using C#.NET, C# PDF: Merge or Split PDF Files Using C#.NET.
how to rearrange pages in a pdf file; reorder pdf pages reader
Chapter 29
Widget Reference 1211
yOffset—Verticaldistancebetweenthetextanditsshadow(inpixels)
(number)
GetSpacing
Returnsthe amount of spacing between linesof text inthe frame.
spacing=SimpleHTML:GetSpacing([“element“])
Arguments:
element(optional)—NameofanHTMLelementforwhichtoreturnfontinfor-
mation (e.g.p,h1); if omitted, returns information about the frame’sdefault font
(string)
Returns:
spacing—Amountofspacebetweenlinesoftext(inpixels)
(number)
GetTextColor
Returnsthe color of text inthe frame.
textR, textG,textB,textAlpha=SimpleHTML:GetTextColor([“element“])
Arguments:
element(optional)—NameofanHTMLelementforwhichtoreturnfontinfor-
mation (e.g.p,h1); if omitted, returns information about the frame’sdefault font
(string)
Returns:
textR—Redcomponentofthetextcolor(0.0-1.0)(number)
textG—Greencomponentofthetextcolor(0.0-1.0)(number)
textB—Bluecomponentofthetextcolor(0.0-1.0)(number)
textAlpha—Alpha(opacity)ofthetext(0.0=fullytransparent,1.0=fully
opaque) (number)
SetFont
Setsbasic properties of a font used inthe frame.
isValid=SimpleHTML:SetFont([“element“,]i
“filename“, fontHeight,“flags“)
Arguments:
element(optional)—NameofanHTMLelementforwhichtosetfontproperties
(e.g.p,h1); if omitted, sets propertiesfor the frame’s default font (string)
filename—Path toafontfile(string)
fontHeight—Height(pointsize)ofthefonttobedisplayed(inpixels)(number)
flags—Additionalpropertiesforthefontspecifiedbyoneormore(separated
by commas) of the following tokens: (string)
MONOCHROME-Fontisrenderedwithoutanti-aliasing
OUTLINE-Fontisdisplayedwithablackoutline
THICKOUTLINE-Fontisdisplayedwithathickblackoutline
Returns:
isValid1if filenamereferstoavalidfontfile;otherwise nil(1nil)
VB.NET PowerPoint: Sort and Reorder PowerPoint Slides by Using VB.
Sort and Reorder PowerPoint Slides Range with VB amount of robust PPT slides/pages editing methods powerful & profession imaging controls, PDF document, image
how to move pdf pages around; how to move pages in pdf reader
VB.NET PDF: Create PDF Document Viewer in C#.NET for Document
Support navigating to the previous or next page of the PDF document; Able to insert, delete or reorder PDF document page in VB.NET document viewer;
how to reorder pdf pages in reader; rearrange pages in pdf reader
1212 Part IV
Reference
SetFontObject
SetstheFont object from whichthe properties of afont used in the frame are
inherited.
SimpleHTML:SetFontObject([“element“,]font)ori
SimpleHTML:SetFontObject([“element“,]“name“)
Thismethod allowsfor easy standardization and reuse of font styles. For
example, aSimpleHTML frame’s normal font canbe set to appear inthe same
style asmany default UIelementsby setting itsfont to
“GameFontNormal“—ifBlizzardchangesthemainUIfontinafuturepath,or
if the user installsanother addon that changes the mainUIfont, the button’s
font willautomatically change to match.
Arguments:
element(optional)—NameofanHTMLelementforwhichtosetfontproperties
(e.g.p
,h1); if omitted, setsproperties for the frame’sdefault font (string)
font—ReferencetoaFontobject(table)
name—GlobalnameofaFontobject(string)
SetHyperlinkFormat
Setsthe format string used for displaying hyperlinksinthe frame.
SimpleHTML:SetHyperlinkFormat(“format“)
Hyperlinksare specified via HTML inthe text input to aSimpleHTML frame,
but inorder to be handledashyperlinksby the game’s
text engine they needto be formatted like the hyperlinksused elsewhere.
Thisproperty specifiesthe translation betweenformats: its default value of
|H%s|h%s|hprovidesminimalformatting,turning(forexample)<a
href=“achievement:892“>The Right Stuff</a>into
|Hachievement:892|hThe Right Stuff|h.Usinga colorStringorother
formatting may be usefulfor making hyperlinksdistinguishable from other
text.
Arguments:
format—Formatstringusedfordisplayinghyperlinksintheframe(string)
SetHyperlinksEnabled
Enables or disables hyperlink interactivity in the frame.
SimpleHTML:SetHyperlinksEnabled(enable)
The frame’s hyperlink-related script handlerswill only be runif hyperlinksare
enabled.
Arguments:
enableTruetoenablehyperlinkinteractivityintheframe; falseto
disable (boolean)
SetIndentedWordWrap
Setswhether long linesof text are indented whenwrapping.
SimpleHTML:SetIndentedWordWrap([“element“,]indent)
C# PDF Page Rotate Library: rotate PDF page permanently in C#.net
page, it is also featured with the functions to merge PDF files using C# .NET, add new PDF page, delete certain PDF page, reorder existing PDF pages and split
rearrange pdf pages online; how to move pages in a pdf file
VB.NET TIFF: Modify TIFF File by Adding, Deleting & Sort TIFF
Users can use it to reorder TIFF pages in ''' &ltsummary> ''' Sort TIFF document pages in designed powerful & profession imaging controls, PDF document, image
how to rearrange pages in a pdf reader; rearrange pages in pdf online
Chapter 29
Widget Reference 1213
Arguments:
element(optional)—NameofanHTMLelementforwhichtosetfontproperties
(e.g.p,h1); if omitted, sets propertiesfor the frame’s default font (string)
indentTruetoindentwrappedlinesoftext;falseotherwise(boolean)
SetJustifyH
Setsthe horizontal alignment style for text inthe frame.
SimpleHTML:SetJustifyH([“element“,] “justify“)
Arguments:
element(optional)—NameofanHTMLelementforwhichtosetproperties
(e.g.p,h1); if omitted, sets propertiesof the frame’sdefault text style (string)
justify—Horizontaltextalignmentstyle(string,justifyH)
CENTER
LEFT
RIGHT
SetJustifyV
Setsthe vertical alignment style for text inthe frame.
SimpleHTML:SetJustifyV([“element“,] “justify“)
Arguments:
element(optional)—NameofanHTMLelementforwhichtoreturntextstyle
information (e.g.p,h1); if omitted, returns information about the frame’sdefault
text style (string)
justify—Verticaltextalignmentstyle(string,justifyV)
BOTTOM
MIDDLE
TOP
SetShadowColor
Setsthe shadowcolor for text inthe frame.
SimpleHTML:SetShadowColor([“element“,] shadowR, shadowG,i
shadowB,shadowAlpha)
Arguments:
element(optional)—NameofanHTMLelementforwhichtosetfontproperties
(e.g.p,h1); if omitted, sets propertiesfor the frame’s default font (string)
shadowR—Redcomponentoftheshadowcolor(0.0-1.0)(number)
shadowG—Greencomponentoftheshadowcolor(0.0-1.0)(number)
shadowB—Bluecomponentoftheshadowcolor(0.0-1.0)(number)
shadowAlpha—Alpha(opacity)ofthetext’sshadow(0.0=fullytransparent,1.0
=fully opaque) (number)
SetShadowOffset
Returnsthe offset of text shadow from text inthe frame.
SimpleHTML:SetShadowOffset([“element“,]xOffset,yOffset)
VB.NET PDF: VB.NET Guide to Process PDF Document in .NET Project
It can be used to add or delete PDF document page(s), sort the order of PDF pages, add image to PDF document page and extract page(s) from PDF document in VB
how to reverse pages in pdf; how to change page order in pdf document
.NET Multipage TIFF SDK| Process Multipage TIFF Files
SDK, developers are easily to access, extract, swap, reorder, insert, mark up and delete pages in any multi upload to SharePoint and save to PDF documents.
how to reorder pdf pages in; reorder pages in a pdf
1214 Part IV
Reference
Arguments:
element(optional)—NameofanHTMLelementforwhichtosetfontproperties
(e.g.p,h1); if omitted, setsproperties for the frame’sdefault font (string)
xOffset—Horizontaldistancebetweenthetextanditsshadow(in
pixels) (number)
yOffset—Verticaldistancebetweenthetextanditsshadow(inpixels)
(number)
SetSpacing
Setsthe amount of spacing betweenlinesof text in the frame.
SimpleHTML:SetSpacing([“element“,] spacing)
Arguments:
element(optional)—NameofanHTMLelementforwhichtosetfontproperties
(e.g.p,h1); if omitted, setsproperties for the frame’sdefault font (string)
spacing—Amountofspacebetweenlinesoftext(inpixels)(number)
SetText
Setsthe text to be displayedinthe SimpleHTML frame.
SimpleHTML:SetText(“text“)
Text for display inthe frame canbe formatted using a simplifiedversion of
HTML markup:
For HTML formatting, the entire text must be enclosed in<html><body>
and</body></html> tags.
All tags must be closed (img andbr must use self-closing syntax; e.g.<br/>,
not <br>).
Tagsare case insensitive, but closing tags must match the case of opening
tags.
Attribute values must be enclosed insingle or double quotation marks ( or
‘).
Characters occurring in HTML markup must be entity-escaped
(&quot;&lt;&gt;&amp;); no other entity-escapesare supported.
Unrecognized tags and their contents are ignored (e.g. given
<h1><foo>bar</foo>baz</h1>,only‘‘baz’’willappear).
Any HTML parsing error will result in the raw HTML markup being dis-
played.
Only the following tags and attributes are supported:
p, h1, h2, h3-Blockelements;e.g. <p align=“left“>
align-Textalignmentstyle(optional);allowedvaluesare left, center
andright.
img-Image;mayonlybeusedasablockelement(notinlinewith
text); e.g.<imgsrc=“Interface\Icons\INV_Misc_Rune_01“/>.
Chapter 29
Widget Reference 1215
src-Pathtotheimagefile(filenameextensionomitted).
align-Alignmentoftheimageblockintheframe(optional);allowed
values areleft,center andright.
width-Widthatwhichtodisplaytheimage(inpixels;optional).
height-Heightatwhichtodisplaytheimage(inpixels;optional).
a-Inlinehyperlink;e.g. <a href=“aLink“>text</a>
href-Stringidentifyingthelink;passedasargumentto
hyperlink-related scripts when the player interacts with the link.
br-Explicitlinebreakintext;e.g. <br />.
Inline escape sequencesused inFontStrings(e.g.colorStrings) may also be
used.
Arguments:
text—Text(withHTMLmarkup)tobedisplayed(string)
SetTextColor
Setsthe color of text in the frame.
SimpleHTML:SetTextColor([“element“,] textR,textG, textB,textAlpha)
Arguments:
element(optional)—NameofanHTMLelementforwhichtosetfontproperties
(e.g.p,h1); if omitted, sets propertiesfor the frame’s default font (string)
textR—Redcomponentofthetextcolor(0.0-1.0)(number)
textG—Greencomponentofthetextcolor(0.0-1.0)(number)
textB—Bluecomponentofthetextcolor(0.0-1.0)(number)
textAlpha—Alpha(opacity)ofthetext(0.0=fullytransparent,1.0=fully
opaque) (number)
Slider
Slidersare elementsintendedto display or allow the user to choose a value ina range.
They are often used for configuration, to choose scale, camera distance and similar
settings.
Like Buttons, Sliders can be enabled or disabled, but unlike Buttons, they include
nosupport for automatically changing appearance whenthisisdone. You canset both
their minimum and maximum values (one function returns or accepts both), and the
stepby whichdragging changestheir value. Sliderscanbe orientedeitherhorizontally
or vertically.
While you do not have to provide any code to manage the dragging of a slider’s
‘‘thumb’’, you dohave to provide atexture that willrepresentit, whichthe engine will
positionanddrawautomatically.InXML,youdothisbyproviding a<ThumbTexture>
elementasadirect childofthe<Slider> element, whichcanhave anyof the attributes
or children allowed to any<Texture> element.
Sliderscome intwo common forms: thintracks witha wide thumb, used for setting
scalar options, or scroll barsused for positioning the contents of aframe.
Slider hasall the methods from Frame, plusthe following:
1216 Part IV
Reference
Disable
Disallowsuser interaction with the slider.
Slider:Disable()
Doesnot automatically change the visual state of the slider; directly making a
visible change is recommended inorder to communicate the change in state to
the user.
Enable
Allowsuser interactionwiththe slider.
Slider:Enable()
GetMinMaxValues
Returns the minimum and maximum valuesfor the slider.
minValue,maxValue =Slider:GetMinMaxValues()
Returns:
minValue—Lowerboundaryforvaluesrepresentedbythesliderposition
(number)
maxValue—Upperboundaryforvaluesrepresentedbythesliderposition
(number)
GetOrientation
Returns the orientationof the slider.
orientation= Slider:GetOrientation()
Returns:
orientation—Tokendescribingtheorientationanddirectionoftheslider
(string)
HORIZONTAL-Sliderthumbmovesfromlefttorightastheslider’svalue
increases
VERTICAL-Sliderthumbmovesfromtoptobottomastheslider’svalue
increases
GetThumbTexture
Returns the texture for the slider thumb.
texture =Slider:GetThumbTexture()
Returns:
texture—ReferencetotheTextureobjectusedforthesliderthumb(texture)
GetValue
Returns the value representing the current positionof the slider thumb.
value= Slider:GetValue()
Returns:
value—Valuerepresentingthecurrentpositionofthesliderthumb
(betweenminValue andmaxValue, whereminValue,maxValue=
slider:GetMinMaxValues())(number)
Chapter 29
Widget Reference 1217
GetValueStep
Returnsthe minimum increment betweenallowedslider values.
step =Slider:GetValueStep()
Returns:
step—Minimumincrementbetweenallowedslidervalues(number)
IsEnabled
Returnswhether user interactionwiththe slider is allowed.
enabled=Slider:IsEnabled()
Returns:
enabled1ifuserinteractionwiththesliderisallowed;otherwise nil(1nil)
SetMinMaxValues
Setsthe minimum andmaximum valuesfor the slider.
Slider:SetMinMaxValues(minValue,maxValue)
Arguments:
minValue—Lowerboundaryforvaluesrepresentedbythesliderposition
(number)
maxValue—Upperboundaryforvaluesrepresentedbythesliderposition
(number)
SetOrientation
Setsthe orientation of the slider.
Slider:SetOrientation(“orientation“)
Arguments:
orientation—Tokendescribingtheorientationanddirectionoftheslider
(string)
HORIZONTAL-Sliderthumbmovesfromlefttorightastheslider’svalue
increases
VERTICAL-Sliderthumbmovesfromtoptobottomastheslider’svalue
increases (default)
SetThumbTexture
Setsthe texture for the slider thumb.
Slider:SetThumbTexture(texture[, “layer“])ori
Slider:SetThumbTexture(“filename“ [, “layer“])
Arguments:
texture—ReferencetoanexistingTextureobject(texture)
filename—Pathtoatextureimagefile(string)
layer(optional)—Graphicslayerinwhichthetextureshouldbe
drawn; defaults toARTWORK if not specified (string, layer)
SetValue
Setsthe value representing the position of the slider thumb.
Slider:SetValue(value)
1218 Part IV
Reference
Arguments:
value—Valuerepresentingthenewpositionofthesliderthumb
(betweenminValue andmaxValue, whereminValue,maxValue=
slider:GetMinMaxValues())(number)
SetValueStep
Setsthe minimum increment betweenallowedslider values.
Slider:SetValueStep(step)
The portion of the slider frame’sarea in which the slider thumb moves isits
width (or height, for verticalsliders) minus 16 pixels oneither end. If the
number of possible valuesdetermined by the slider’sminimum, maximum and
step valuesis lessthanthe width (or height) of this area, the step value also
affects the movement of the slider thumb; see example for details.
Arguments:
step—Minimumincrementbetweenallowedslidervalues(number)
Example:
-- creates asample horizontal slider
-- (also gives it thedefaultUI’s standard sliderbackground,
-- since sliders don’t automatically comewithone)
CreateFrame(“Slider“,“S“,UIParent)
S:SetPoint(“CENTER“)
S:SetWidth(132)
S:SetHeight(17)
S:SetOrientation(“HORIZONTAL“)
S:SetThumbTexture(“Interface\\Buttons\\UI-SliderBar-Button-
Horizontal“)
S:SetMinMaxValues(0,100)
S:SetValue(50)
S:SetBackdrop({
bgFile =“Interface\\Buttons\\UI-SliderBar-Background“,
edgeFile= “Interface\\Buttons\\UI-SliderBar-Border“,
tile =true, tileSize =8,edgeSize= 8,
insets ={ left= 3, right =3,top =6,bottom= 6 }})
-- noticethe sliderthumbmovessmoothlyacross the slider’s
-- lengthwhen dragged and S:GetValue() often returnsnon-integer
-- results whendragging
-- now, restrict theslider’svaluestep abit:
S:SetValueStep(1)
-- noticethe sliderthumbstillmovessmoothlywhen dragged
-- butS:GetValue()nowreturns only integerresults
-- further restrictingtheslider’svaluestep:
S:SetValueStep(25)
-- nowtheslider thumb canonly be dragged toone of
-- five differentpositions:0, 25,50,75, or 100
Documents you may be interested
Documents you may be interested