c# pdf viewer open source : Reorder pages in pdf Library application class asp.net html web page ajax World%20of%20Warcraft%20Programming%20(2nd%20Edition)117-part1781

Chapter 29
Widget Reference 1129
VisibleRegion
VisibleRegion is an abstract UI type used to describe the common functionality of
objects that can be placed on the screen, and visible. In particular, methods exist to
show and hide the frame, and change the alphatransparency.
VisibleRegionhasall the methods from Region, plusthe following:
GetAlpha
Returnsthe opacity of the regionrelative to its parent.
alpha= VisibleRegion:GetAlpha()
Returns:
alpha—Alpha(opacity)oftheregion(0.0=fullytransparent,1.0=fully
opaque) (number)
Hide
Hides the region.
VisibleRegion:Hide()
IsShown
Returnswhether the region is shown.
shown= VisibleRegion:IsShown()
Indicates only whether the regionhasbeen explicitly shownor hidden—a
regionmay be explicitly shownbut not appear onscreen because itsparent
regionishidden. SeeVisibleRegion:IsVisible() to test for actual
visibility.
Returns:
shown1iftheregionisshown;otherwise nil(1nil)
IsVisible
Returnswhether the region is visible.
visible=VisibleRegion:IsVisible()
Aregionis‘‘visible’’if it hasbeen explicitly shown(or not explicitly hidden)
and its parent is visible (that is, all of itsancestor frames(parent, parent’s
parent, etc) are also shown).
Aregionmay be ‘‘visible’’ and not appear onscreen—it may not have any
anchor points set, its positionand size may be outside the boundsof the screen,
or it may not draw anything (e.g. aFontString withno text, aTexture with no
image, or aFrame with no visible children).
Returns:
visible1iftheregionisvisible;otherwise nil(1nil)
SetAlpha
Setsthe opacity of the regionrelative to its parent.
VisibleRegion:SetAlpha(alpha)
Reorder pages in pdf - re-order PDF pages in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Support Customizing Page Order of PDF Document in C# Project
how to move pages in pdf converter professional; reorder pdf pages
Reorder pages in pdf - 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
pdf change page order acrobat; how to move pages around in pdf
1130 Part IV
Reference
Arguments:
alpha—Alpha(opacity)oftheregion(0.0=fullytransparent,1.0=fully
opaque) (number)
Show
Shows the region.
VisibleRegion:Show()
LayeredRegion
LayeredRegionis anabstract UI type that groupstogether the functionality of layered
graphical regions, specifically Textures and FontStrings. These objects can be moved
from one layer to another, or can be suppressed by turning off the layer on the frame
to which they are attached. These layeredregions canalso be colorized in the graphics
engine using the:SetVertexColor() method.
LayeredRegionhas allthe methods from VisibleRegion, plus the following:
GetDrawLayer
Returns the layer at whichthe region’s graphics are drawnrelative to othersin
itsframe.
layer= LayeredRegion:GetDrawLayer()
Returns:
layer—Stringidentifyingagraphicslayer;oneofthefollowingvalues:
(string, layer)
ARTWORK
BACKGROUND
BORDER
HIGHLIGHT
OVERLAY
SetDrawLayer
Setsthe layer at whichthe region’s graphics are drawnrelative to others in its
frame.
LayeredRegion:SetDrawLayer(“layer“)
Arguments:
layer—Stringidentifyingagraphicslayer;oneofthefollowingvalues:
(string, layer)
ARTWORK
BACKGROUND
BORDER
HIGHLIGHT
OVERLAY
SetVertexColor
Setsa color shading for the region’s graphics.
LayeredRegion:SetVertexColor(red,green,blue [, alpha])
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.
reordering pages in pdf document; rearrange pdf pages in reader
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
move pages in a pdf; move pages in pdf file
Chapter 29
Widget Reference 1131
The effect of changing thisproperty differs by the type of region:
ForFontStrings, thiscolor overridesthe normal text color (as set by
FontInstance:SetTextColor()).
ForTextures, this color actsasa filter applied to the texture image: eachcolor
component value isa factor by which the corresponding component values in
the image are multiplied. (See examples.)
Arguments:
red—Redcomponentofthecolor(0.0-1.0)(number)
green—Greencomponentofthecolor(0.0-1.0)(number)
blue—Bluecomponentofthecolor(0.0-1.0)(number)
alpha(optional)—Alpha(opacity)forthegraphic(0.0=fullytransparent,1.0=
fully opaque) (number)
Example:
--first,target an elite creatureor NPCsothe“golddragon“target
--borderappearsthen tryrunningthefollowing scripts:
TargetFrameTexture:SetVertexColor(1,0,0)
--omitsthegreenand bluechannels fromtheimage, givingit
--a red tint
TargetFrameTexture:SetVertexColor(0,0,1)
--omitsthered and greenchannelsfrom theimage:notetheimage
--is mostlyblackbecausethe goldcolorofthedragon image comes
--primarily fromred and green channels
TargetFrameTexture:SetVertexColor(0,0,0)
--omitsallcolorchannels,leaving ablackshadow defined by
--theimage’salphachannel
TargetFrameTexture:SetVertexColor(1,1,1)
--removes vertexshading,returningtheimagetoitsoriginal colors
FontInstance
FontInstance isan abstract UI type that groups together the functionality of text-based
frames, suchasButtons,MessageFrames, EditBoxes,SimpleHTMLframesandabstract
Font objects. Methods are provided for setting text color and changing other aspects
of font display like typeface, size, justification, shadow and spacing.
FontInstance hasall the methods from UIObject, plusthe following:
GetFont
Returnsthe font instance’sbasicfont properties.
filename, fontHeight,flags= FontInstance:GetFont()
Returns:
filename—Path toafontfile(string)
Read PDF in Web Image Viewer| Online Tutorials
from PDF documents; Extract images from PDF documents; Add, reorder pages in PDF files; Save and print PDF as you wish; More PDF Reading
how to move pages in pdf reader; move pages in pdf online
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 document; change page order pdf reader
1132 Part IV
Reference
fontHeight—Height(pointsize)ofthefonttobedisplayed(inpixels)(number)
flags—Additionalpropertiesforthefontspecifiedbyoneormore(separated
by commas) of the following tokens: (string)
MONOCHROME-Fontisrenderedwithoutanti-aliasing
OUTLINE-Fontisdisplayedwithablackoutline
THICKOUTLINE-Fontisdisplayedwithathickblackoutline
GetFontObject
Returns theFont object from whichthe font instance’sproperties are inherited.
font =FontInstance:GetFontObject()
SeeFontInstance:SetFontObject() for details.
Returns:
font—ReferencetotheFontobjectfromwhichthefontinstance’sproperties
are inherited, ornil if the font instance has no inherited properties (font)
GetJustifyH
Returns the font instance’shorizontal text alignment style.
justify =FontInstance:GetJustifyH()
Returns:
justify—Horizontaltextalignmentstyle(string,justifyH)
CENTER
LEFT
RIGHT
GetJustifyV
Returns the font instance’svertical text alignment style.
justify =FontInstance:GetJustifyV()
Returns:
justify—Verticaltextalignmentstyle(string,justifyV)
BOTTOM
MIDDLE
TOP
GetShadowColor
Returns the color of the font’stext shadow.
shadowR,shadowG,shadowB,shadowAlpha =FontInstance:GetShadowColor()
Returns:
shadowR—Redcomponentoftheshadowcolor(0.0-1.0)(number)
shadowG—Greencomponentoftheshadowcolor(0.0-1.0)(number)
shadowB—Bluecomponentoftheshadowcolor(0.0-1.0)(number)
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
how to move pages around in a pdf document; how to reorder pages in pdf preview
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.
reverse page order pdf online; pdf reverse page order preview
Chapter 29
Widget Reference 1133
shadowAlpha—Alpha(opacity)ofthetext’sshadow(0.0=fullytransparent,1.0
=fully opaque) (number)
GetShadowOffset
Returnsthe offset of the font instance’s text shadow from its text.
xOffset,yOffset= FontInstance:GetShadowOffset()
Returns:
xOffset—Horizontaldistancebetweenthetextanditsshadow(inpixels)
(number)
yOffset—Verticaldistancebetweenthetextanditsshadow(inpixels)
(number)
GetSpacing
Returnsthe font instance’samount of spacing betweenlines.
spacing=FontInstance:GetSpacing()
Returns:
spacing—Amountofspacebetweenlinesoftext(inpixels)(number)
GetTextColor
Returnsthe font instance’sdefault text color.
textR, textG,textB,textAlpha=FontInstance:GetTextColor()
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
Setsthe font instance’s basic font properties.
isValid=FontInstance:SetFont(“filename“, fontHeight,“flags“)
Font filesincluded with the default WoW client:
Fonts\\FRIZQT__.TTF-FrizQuadrata,usedbydefaultforplayernames
and most UI text
Fonts\\ARIALN.TTF-ArialNarrow,usedbydefaultforchatwindows,
action button numbers, etc
Fonts\\skurri.ttf-Skurri,usedbydefaultforincomingdam-
age/parry/miss/etc indicators on the Player and Pet frames
Fonts\\MORPHEUS.ttf-Morpheus,usedbydefaultforquesttitleheaders,
mail and readable in-game objects.
Font files can also be included inaddons.
Arguments:
filename—Path toafontfile(string)
.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 rearrange pages in pdf document; rearrange pdf pages in preview
C# Word: How to Create Word Document Viewer in C#.NET Imaging
in C#.NET; Offer mature Word file page manipulation functions (add, delete & reorder pages) in document viewer; Rich options to add
pdf rearrange pages; change pdf page order preview
1134 Part IV
Reference
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)
SetFontObject
SetstheFont object from which the font instance’s propertiesare inherited.
FontInstance:SetFontObject(object)or FontInstance:SetFontObject
(“name“)
Thismethod allowsfor easy standardization and reuse of font styles. For
example, abutton’snormal font can be set to appear in the same style as many
default UIelements by setting itsfont to“GameFontNormal“—if Blizzard
changesthe mainUI font ina future path, or if the user installs another addon
which changes the main UIfont, the button’s font willautomatically change
to match.
Arguments:
object—ReferencetoaFontobject(font)
name—GlobalnameofaFontobject(string)
SetJustifyH
Setsthe font instance’shorizontal text alignment style.
FontInstance:SetJustifyH(“justify“)
Arguments:
justify—Horizontaltextalignmentstyle(string,justifyH)
CENTER
LEFT
RIGHT
SetJustifyV
Setsthe font instance’shorizontal text alignment style.
FontInstance:SetJustifyV(“justify“)
Arguments:
justify—Verticaltextalignmentstyle(string,justifyV)
BOTTOM
MIDDLE
TOP
SetShadowColor
Setsthe color of the font’s text shadow.
FontInstance:SetShadowColor(shadowR,shadowG, shadowB,shadowAlpha)
Chapter 29
Widget Reference 1135
Arguments:
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
Setsthe offset of the font instance’stext shadowfrom itstext.
FontInstance:SetShadowOffset(xOffset,yOffset)
Arguments:
xOffset—Horizontaldistancebetweenthetextanditsshadow(inpixels)
(number)
yOffset—Verticaldistancebetweenthetextanditsshadow(inpixels)
(number)
Example:
--Movesthetextshadowinthe defaulttextfont further thannormal
--from thetext (5 pixelsrightand5 pixelsdown instead of
--1 pixel right and 1pixel down)
ChatFontNormal:SetShadowOffset(5,-5)
SetSpacing
Setsthe font instance’s amount of spacing between lines.
FontInstance:SetSpacing(spacing)
Arguments:
spacing—Amountofspacebetweenlinesoftext(inpixels)(number)
SetTextColor
Setsthe font instance’s default text color.
FontInstance:SetTextColor(textR,textG, textB,textAlpha)
Thiscolor is used for otherwise unformatted text displayed using the font
instance; however, portions of the text may be colored differently using the
colorStringformat(commonlyseenin hyperlinks).
Arguments:
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)
FontString
FontStrings are one of the two types of Region that is visible onthe screen. It draws a
block of text on the screen using the characteristics in an associated FontObject. You
1136 Part IV
Reference
canchange the text contentsof it, setit to use anew FontObject, and set how ithandles
text that doesn’t fit initsnormaldimensions, suchashowtowrapthe text andwhether
to indent subsequent lines.
FontStringsare usedwidely throughthe UI, to display labelsoncontrols, the names
of units, keybindings on action buttons, health and mana values and most other text
data.
FontString has all the methods from Region, VisibleRegion, LayeredRegion and
FontInstance, plus the following:
CanNonSpaceWrap
Returns whether long lines of text will wrapwithinor betweenwords.
enabled =FontString:CanNonSpaceWrap()
Returns:
enabled1iflonglinesoftextwillwrapatanycharacterboundary(i.epossi-
bly in the middle of aword);nil to only wrap at whitespace characters (i.e. only
between words) (1nil)
CanWordWrap
Returns whether long lines of text inthe font string can wrap onto subsequent
lines.
enabled =FontString:CanWordWrap()
Returns:
enabled1iflonglinesoftextcanwrapontosubsequentlines;otherwise nil
(1nil)
GetMultilineIndent
Returns whether long lines of text are indented whenwrapping.
enabled =FontString:GetMultilineIndent()
Returns:
enabled1iflonglinesoftextareindentedwhenwrapping;otherwise nil
(1nil)
GetStringHeight
Returns the height of the text displayedin the font string.
height= FontString:GetStringHeight()
Thisvalue isbased onthe text currently displayed; e.g. a long block of text
wrapped to several lines resultsina greater height thanthat for ashort block
of text that fitson fewer lines.
Returns:
height—Heightofthetextcurrentlydisplayedinthefontstring(inpixels)
(number)
GetStringWidth
Returns the widthof the text displayedinthe font string.
width= FontString:GetStringWidth()
Chapter 29
Widget Reference 1137
Thisvalue is based onthe text currently displayed; e.g. a short text labelresults
inasmallerwidth thanalonger block of text. Very long blocksof text that don’t
fit the font string’s dimensions allresult in similar widths, because thismethod
measuresthe widthof the text displayed, whichistruncatedwithanellipsis
(‘‘...’’).
Returns:
width—Widthofthetextcurrentlydisplayedinthefontstring
(in pixels) (number)
GetText
Returnsthe text currently set for display in the font string.
text =FontString:GetText()
Thisis not necessarily the text actually displayed: text that doesnot fit within
theFontString’s dimensionswill be truncated withan ellipsis(‘‘...’’) for
display.
Returns:
text—Texttobedisplayedinthefontstring(string)
SetAlphaGradient
Createsan opacity gradient over the text in the font string.
FontString:SetAlphaGradient(start,length)
Seenin the default UIwhen quest text ispresentedby aquestgiver (if the
‘‘Instant Quest Text’’ feature is not turned on): Thismethod is usedwitha
length of 30 to fade in the letters of the description, starting at the first
character; then the start value is incremented in anOnUpdate script, creating
the animated fade-ineffect.
Arguments:
start—Characterpositioninthefontstring’stextatwhichthegradientshould
begin (between0 andstring.len(fontString:GetText())-6) (number)
length—Widthofthegradientinpixels,or0torestorethetexttofullopacity
(number)
SetFormattedText
Setsthe text displayed inthe font string using format specifiers.
FontString:SetFormattedText(“formatString“, ...)
Equivalent to:SetText(format(format,...)), but doesnot create a
throwaway Luastring object, resulting in greater memory-usage efficiency.
Arguments:
formatString—Astringcontainingformatspecifiers(aswith
string.format())(string)
...—Alistofvaluestobeincludedintheformattedstring(list)
SetMultilineIndent
Setswhether long linesof text are indented when wrapping.
FontString:SetMultilineIndent(enable)
1138 Part IV
Reference
Arguments:
enableTruetoindentwrappedlinesoftext; falseotherwise(boolean)
SetNonSpaceWrap
Setswhether long linesof text will wrapwithinor between words.
FontString:SetNonSpaceWrap(enable)
Arguments:
enableTruetowraplonglinesoftextatanycharacterbound-
ary (i.e possibly in the middle of a word);false to only wrap at
whitespace characters (i.e. only between words) (boolean)
SetText
Setsthe text to be displayedin the font string.
FontString:SetText(“text“)
Arguments:
text—Texttobedisplayedinthefontstring(string)
SetTextHeight
Scales the font string’s rendered text to adifferent height.
FontString:SetTextHeight(height)
Thismethod scalesthe image of the text as already rendered at its existing
height by the game’sgraphicsengine—producing an effect which is efficient
enoughfor use in fast animations, but withreduced visual quality in the text.
To re-render the text at a new point size, see:SetFont().
Arguments:
height—Height(pointsize)towhichthetextshouldbescaled(inpixels)
(number)
SetWordWrap
Setswhether long linesof text inthe font string can wraponto subsequent
lines.
FontString:SetWordWrap(enable)
Arguments:
enableTruetoallowlonglinesoftextinthefontstringtowrapontosubse-
quent lines;false to disallow (boolean)
Texture
Textures are visible areas descended from LayeredRegion, that display either a color
block, agradient, oragraphicrastertakenfroma.tgaor .blp file. Most of their methods
relate to setting their appearance or their source information.
Textures are created as children of Frame elements in XML, or by calling
Frame:CreateTexture()fromLua.Theycannotbereassignedfromoneframeto
another, although you can create another texture on another frame that has the same
source. They canalso be created in XML withthe virtual tag, allowing several similar
textures to be createdeasily.
Documents you may be interested
Documents you may be interested