c# pdf viewer open source : How to move pages in a pdf SDK software project winforms wpf .net UWP World%20of%20Warcraft%20Programming%20(2nd%20Edition)126-part1791

Chapter 29
Widget Reference 1219
StatusBar
StatusBars are similar to Sliders, but they are generally used for display as they don’t
offer any tools to receive user input. You define them with a bar texture and an
optional color, and they fill aportion of theirareainagivendirectionwiththat texture
according to their value.
StatusBars can be oriented to fill from left to right (HORIZONTAL) or from bottom
to top (VERTICAL). If you need to share the same bar texture between horizontal
and vertical bars, they offer support for rotating the texture automatically to match.
Presently, the StatusBar object does not support right-to-left or top-to-bottom bars.
StatusBars also offer anOnValueChangedhandler toupdate informationassociated
withthe bar, suchasupdating aFontString that displaysthe bar’svalue asa number.
The most famous StatusBarsin the stock UI are the barsthat show your health and
mana, and those of your groupmembersand target.
StatusBar has all the methods from Frame, plus the following:
GetMinMaxValues
Returnsthe minimum and maximum valuesof the statusbar.
minValue, maxValue =StatusBar:GetMinMaxValues()
Returns:
minValue—Lowerboundaryforvaluesrepresentedonthestatusbar(number)
maxValue—Upperboundaryforvaluesrepresentedonthestatusbar(number)
GetOrientation
Returnsthe orientationof the statusbar.
orientation= StatusBar:GetOrientation()
Returns:
orientation—Tokendescribingtheorientationanddirectionofthe
status bar (string)
HORIZONTAL-Fillsfromlefttorightasthestatusbarvalueincreases
VERTICAL-Fillsfromtoptobottomasthestatusbarvalueincreases
GetRotatesTexture
Returnswhether the statusbar’s texture isrotated to match its orientation.
rotate =StatusBar:GetRotatesTexture()
Returns:
rotate1ifthestatusbartextureshouldberotated90degrees
counter-clockwise when the status bar is vertically oriented; otherwisenil
(1nil)
GetStatusBarColor
Returnsthe color shading used for the status bar’s texture.
red, green,blue,alpha= StatusBar:GetStatusBarColor()
Returns:
red—Redcomponentofthecolor(0.0-1.0)(number)
green—Greencomponentofthecolor(0.0-1.0)(number)
How to move pages in a 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; move pages in a pdf file
How to move pages in a 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
reverse page order pdf; reorder pages in pdf reader
1220 Part IV
Reference
blue—Bluecomponentofthecolor(0.0-1.0)(number)
alpha(optional)—Alpha(opacity)forthegraphic(0.0=fullytransparent,1.0=
fully opaque) (number)
GetStatusBarTexture
Returns theTexture object used for drawing the filled-inportion of the status
bar.
texture =StatusBar:GetStatusBarTexture()
Returns:
texture—ReferencetotheTextureobjectusedfordrawingthefilled-inpor-
tion of the status bar (texture)
GetValue
Returns the current value of the statusbar.
value= StatusBar:GetValue()
Returns:
value—Valueindicatingtheamountofthestatusbar’sareato
be filled in (betweenminValue andmaxValue, whereminValue,
maxValue = StatusBar:GetMinMaxValues())(number)
SetMinMaxValues
Setsthe minimum and maximum valuesof the statusbar.
StatusBar:SetMinMaxValues(minValue,maxValue)
Arguments:
minValue—Lowerboundaryforvaluesrepresentedonthestatusbar(number)
maxValue—Upperboundaryforvaluesrepresentedonthestatusbar(number)
SetOrientation
Setsthe orientationof the statusbar.
StatusBar:SetOrientation(“orientation“)
Arguments:
orientation—Tokendescribingtheorientationanddirectionofthestatusbar
(string)
HORIZONTAL-Fillsfromlefttorightasthestatusbarvalueincreases(default)
VERTICAL-Fillsfromtoptobottomasthestatusbarvalueincreases
SetRotatesTexture
Setswhether the statusbar’s texture isrotated to match its orientation.
StatusBar:SetRotatesTexture(rotate)
Arguments:
rotateTruetorotatethestatusbartexture90degreescounter-
clockwise whenthe status bar is vertically oriented;false otherwise (1nil)
SetStatusBarColor
Setsthe color shading for the status bar’stexture.
StatusBar:SetStatusBarColor(red,green, blue[,alpha])
C# TIFF: How to Reorder, Rearrange & Sort TIFF Pages Using C# Code
Using this C#.NET Tiff image management library, you can easily change and move the position of any two or more Tiff file pages or make a totally new order for
change page order pdf acrobat; move pdf pages online
C# Word - Sort Word Pages Order in C#.NET
page reorganizing library control, developers can swap or adjust the order of all or several Word document pages, or just C# DLLs: Move Word Page Position.
how to rearrange pages in a pdf document; move pages in pdf acrobat
Chapter 29
Widget Reference 1221
As with:SetVertexColor(), thiscolor is ashading applied to the texture
image.
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)
SetStatusBarTexture
Setsthe texture used for drawing the filled-inportion of the status bar.
StatusBar:SetStatusBarTexture(texture[,“layer“]) ori
StatusBar:SetStatusBarTexture(“filename“[,“layer“])
The texture image isstretched to fill the dimensions of the entire status bar,
thencropped to show only a portioncorresponding to the status bar’s current
value.
Arguments:
texture—ReferencetoanexistingTextureobject(texture)
filename—Pathtoatextureimagefile(string)
layer(optional)—Graphicslayerinwhichthetextureshouldbe
drawn; defaults toARTWORK if not specified (string, layer)
SetValue
Setsthe value of the status bar.
StatusBar:SetValue(value)
Arguments:
value—Valueindicatingtheamountofthestatusbar’sareato
be filled in (betweenminValue andmaxValue, whereminValue,
maxValue = StatusBar:GetMinMaxValues())(number)
Font
The Font object isthe only type of object thatisnot attachedto aparent widget; indeed,
its purpose isto be shared between other objects that share font characteristics. Inthis
way, changes to the Font object will update the text appearance of all text objects that
have it set as their Font using:SetFontObject()
.This allows a coder to maintain a
consistent appearance between UI elements, as well as simplifying the resources and
work required to update multiple text-based UIelements.
Font has all the methods from
UIObject and FontInstance, plus the
following:
CopyFontObject
Setsthe font’s propertiesto match those of another Font object.
Font:CopyFontObject(object)orFont:CopyFontObject(“name“)
C# PowerPoint - Sort PowerPoint Pages Order in C#.NET
library control, developers can swap or adjust the order of all or several PowerPoint document pages, or just change the C# DLLs: Move PowerPoint Page Position.
move pages in pdf file; change pdf page order reader
C# PDF File & Page Process Library SDK for C#.net, ASP.NET, MVC
RasterEdge XDoc.PDF allows you to easily move PDF document pages position, including sorting pages and swapping two pages. Copying and Pasting Pages.
how to reorder pdf pages; how to reorder pages in pdf file
1222 Part IV
Reference
UnlikeFontInstance:SetFontObject(), thismethod allowsone-time reuse
of another font object’s propertieswithout continuing to inherit future changes
made to the other object’sproperties.
Arguments:
object—ReferencetoaFontobject(font)
name—GlobalnameofaFontobject(string)
GetAlpha
Returns the opacity for text displayedby the font.
alpha= Font:GetAlpha()
Returns:
alpha—Alpha(opacity)ofthetext(0.0=fullytransparent,1.0=fullyopaque)
(number)
GetMultilineIndent
Returns whether long lines of text are indented whenwrapping.
indent= Font:GetMultilineIndent()
Returns:
indent1iflonglinesoftextareindentedwhenwrapping;otherwise nil
(1nil)
SetAlpha
Setsthe opacity for text displayed by the font.
Font:SetAlpha(alpha)
Arguments:
alpha—Alpha(opacity)ofthetext(0.0=fullytransparent,1.0=fullyopaque)
(number)
SetMultilineIndent
Setswhether long linesof text are indented whenwrapping.
Font:SetMultilineIndent(indent)
Arguments:
indentTruetoindentwrappedlinesoftext; falseotherwise
(boolean)
MessageFrame
MessageFrames are used to present series of messages or other lines of text, usually
stackedontopof eachother. Likemost widgetsrelatingtotext display, MessageFrame
inherits from FontInstance as well as Frame to provide methods for setting up text
characteristics. Once the text settings for the frame are configured to your liking,
you can add new messages to the frame with:AddMessage(). MessageFrame also
supports methods for multi-line text display suchasindentedlines, as well asoptions
for controlling how longmessagesshouldbe displayed andhow quickly they fade out
whentheir time isup.
C# PDF insert text Library: insert text into PDF content in C#.net
int pageIndex = 0; // Move cursor to (400F, 100F). String outputFilePath = Program.RootPath + "\\" output.pdf"; doc.Save(outputFilePath);
reordering pages in pdf; rearrange pdf pages in preview
C# PDF Image Extract Library: Select, copy, paste PDF images in C#
Get image information, such as its location, zonal information, metadata, and so on. Able to edit, add, delete, move, and output PDF document image.
pdf move pages; move pages in pdf online
Chapter 29
Widget Reference 1223
The stock UI uses the basic message frame for only one purpose, but it gets a lot
of use; UIErrorsFrame, whichdisplaysmessages like ‘‘Spell not ready yet’’ or ‘‘You’re
too far away’’, is a MessageFrame. MessageFrame also forms the basis for another,
more sophisticated type, ScrollingMessageFrame.
MessageFramehasallthe methodsfromFrame andFontInstance,plusthe following:
AddMessage
Adds amessage to those listed in the frame.
MessageFrame:AddMessage(“text“ [, red [, green [, blue[,alpha]]]])
If the frame was already ‘full’withmessages, then the oldest message is
discardedwhen the newone isadded.
Arguments:
text—Textofthemessage(string)
red(optional)—Redcomponentofthetextcolorforthemessage(0.0-1.0)
(number)
green(optional)—Greencomponentofthetextcolorforthemessage
(0.0 - 1.0) (number)
blue(optional)—Bluecomponentofthetextcolorforthemessage(0.0-1.0)
(number)
alpha(optional)—Alpha(opacity)forthemessage(0.0=fullytransparent,1.0
=fully opaque) (number)
Clear
Removesall messagesdisplayed inthe frame.
MessageFrame:Clear()
GetFadeDuration
Returnsthe duration of the fade-out animation for disappearing messages.
duration= MessageFrame:GetFadeDuration()
For the amount of time amessage remains in the frame before beginning to
fade, see:GetTimeVisible().
Returns:
duration—Durationofthefade-outanimationfordisappearingmessages(in
seconds) (number)
GetFading
Returnswhether messagesadded to the frame automatically fade out after a
period of time.
fading =MessageFrame:GetFading()
Returns:
fading1ifmessagesaddedtotheframeautomaticallyfadeoutafteraperiod
of time; otherwisenil (1nil)
GetIndentedWordWrap
Returnswhether long linesof text are indented whenwrapping.
indent =MessageFrame:GetIndentedWordWrap()
VB.NET PDF insert text library: insert text into PDF content in vb
Dim pageIndex As Integer = 0 ' Move cursor to (400F, 100F). Dim outputFilePath As String = Program.RootPath + "\\" output.pdf" doc.Save(outputFilePath).
change page order pdf preview; pdf reorder pages
VB.NET PDF Library SDK to view, edit, convert, process PDF file
Rapidly and multiple PDF document (pages) creation and edit methods file formats; merge, append, and split PDF files; insert, delete, move, rotate, copy
reordering pages in pdf document; rearrange pdf pages in reader
1224 Part IV
Reference
Returns:
indent1iflonglinesoftextareindentedwhenwrapping;otherwise nil
(1nil)
GetInsertMode
Returns the positionat which new messagesare added to the frame.
position= MessageFrame:GetInsertMode()
Returns:
position—Tokenidentifyingthepositionatwhichnewmessagesareaddedto
the frame (string)
BOTTOM
TOP
GetTimeVisible
Returns the amount of time for which amessage remainsvisible before
beginning to fade out.
time =MessageFrame:GetTimeVisible()
For the duration of the fade-out animation, see:GetFadeDuration().
Returns:
time—Amountoftimeforwhichamessageremainsvisiblebeforebeginningto
fade out (in seconds) (number)
SetFadeDuration
Setsthe duration of the fade-out animation for disappearing messages.
MessageFrame:SetFadeDuration(duration)
For the amount of time amessage remainsin the frame before beginning to
fade, see:SetTimeVisible().
Arguments:
duration—Durationofthefade-outanimationfordisappearingmessages(in
seconds) (number)
SetFading
Setswhether messages added to the frame automatically fade out after a
period of time.
MessageFrame:SetFading(fading)
Arguments:
fadingTruetocausemessagesaddedtotheframetoautomati-
cally fade out after a period of time;false to leave message visible
(boolean)
SetIndentedWordWrap
Setswhether long linesof text are indented whenwrapping.
MessageFrame:SetIndentedWordWrap(indent)
Arguments:
indentTruetoindentwrappedlinesoftext; falseotherwise
(boolean)
Chapter 29
Widget Reference 1225
SetInsertMode
Setsthe position at whichnewmessages are added to the frame.
MessageFrame:SetInsertMode(“position“)
Arguments:
position—Tokenidentifyingthepositionatwhichnewmessagesshouldbe
added to the frame (string)
BOTTOM
TOP
SetTimeVisible
Setsthe amount of time for whichamessage remains visible before beginning
to fade out.
MessageFrame:SetTimeVisible(time)
For the duration of the fade-out animation, see:SetFadeDuration().
Arguments:
time—Amountoftimeforwhichamessageremainsvisiblebeforebeginningto
fade out (in seconds) (number)
ScrollingMessageFrame
ScrollingMessageFrame expands on MessageFrame with the ability to store a much
longerseriesofmessages, andtomoveupanddownthroughthembysettinghorizontal
and verticalscroll values, or by using PageUp and PageDownmethods.
ScrollingMessageFramesalsosupport hyperlinks—suchasthelinkspostedintrade
chat by people with items they want to sell—and provides an OnHyperlinkClicked
script for displaying informationrelated to the contents of the link.
The most commonScrollingMessageFrame in the stock UI is simply the chat frame,
aswell asthe combat log. The raidwarningand bossemote messagesare presented in
aScrollingMessageFrame. The Guild Bank UIalso uses one to display the transaction
history.
ScrollingMessageFrame has allthe methods from Frame and FontInstance, plusthe
following:
AddMessage
Adds amessage to those listed in the frame.
ScrollingMessageFrame:AddMessage(“text“[, red[,greeni
[,blue [, id [, addToTop]]]]])
Arguments:
text—Textofthemessage(string)
red(optional)—Redcomponentofthetextcolorforthemessage(0.0-1.0)
(number)
green(optional)—Greencomponentofthetextcolorforthemessage
(0.0 - 1.0) (number)
blue(optional)—Bluecomponentofthetextcolorforthemessage(0.0-1.0)
(number)
1226 Part IV
Reference
id(optional)—Identifierforthemessage’stype(see :UpdateColor-
ByID()) (number)
addToTop(optional)— Truetoinsertthemessageaboveallothers
listed in the frame, even if the frame’s insert mode is set toBOTTOM
;
falsetoinsertaccordingtotheframe’sinsertmode(boolean)
AtBottom
Returns whether the message frame is currently scrolled to the bottom of its
contents.
atBottom= ScrollingMessageFrame:AtBottom()
Returns:
atBottom1ifthemessageframeiscurrentlyscrolledtothebottomofitscon-
tents; otherwise nil (1nil)
AtTop
Returns whether the message frame is currently scrolled to the top of its
contents.
atTop= ScrollingMessageFrame:AtTop()
Returns:
atTop1ifthemessageframeiscurrentlyscrolledtothetopofits
contents; otherwisenil (1nil)
Clear
Removesall messages stored or displayedinthe frame.
ScrollingMessageFrame:Clear()
GetCurrentLine
Returns a number identifying the last message added to the frame.
lineNum =ScrollingMessageFrame:GetCurrentLine()
Thisnumber starts at0 whenthe frame is created and incrementswith each
message AddMessage to the frame; however, it resets to0 when amessage is
added beyond the frame’sGetMaxLines.
Returns:
lineNum—Anumberidentifyingthelastmessageaddedtotheframe(number)
GetCurrentScroll
Returns the message frame’s current scroll position.
offset= ScrollingMessageFrame:GetCurrentScroll()
Returns:
offset—Numberoflinesbywhichtheframeiscurrentlyscrolledbackfromthe
end of its message history (number)
GetFadeDuration
Returns the duration of the fade-out animation for disappearing messages.
duration= ScrollingMessageFrame:GetFadeDuration()
Chapter 29
Widget Reference 1227
For the amount of time amessage remains in the frame before beginning to
fade, see:GetTimeVisible().
Returns:
duration—Durationofthefade-outanimationfordisappearingmessages(in
seconds) (number)
GetFading
Returnswhether messagesadded to the frame automatically fade out after a
period of time.
fading =ScrollingMessageFrame:GetFading()
Returns:
fading1ifmessagesaddedtotheframeautomaticallyfadeoutafteraperiod
of time; otherwisenil (1nil)
GetHyperlinksEnabled
Returnswhether hyperlinks inthe frame’stext are interactive.
enabled=ScrollingMessageFrame:GetHyperlinksEnabled()
Returns:
enabled1ifhyperlinksintheframe’stextareinteractive;otherwise nil
(1nil)
GetIndentedWordWrap
Returnswhether long linesof text are indented whenwrapping.
indent =ScrollingMessageFrame:GetIndentedWordWrap()
Returns:
indent1iflonglinesoftextareindentedwhenwrapping;otherwise nil
(1nil)
GetInsertMode
Returnsthe position at which new messages are added to the frame.
position= ScrollingMessageFrame:GetInsertMode()
Returns:
position—Tokenidentifyingthepositionatwhichnewmessagesareaddedto
the frame (string)
BOTTOM
TOP
GetMaxLines
Returnsthe maximum number of messageskept in the frame.
ScrollingMessageFrame:GetMaxLines(maxLines)
Arguments:
maxLines—Maximumnumberofmessageskeptintheframe(number)
GetNumLinesDisplayed
Returnsthe number of lines displayed inthe message frame.
count= ScrollingMessageFrame:GetNumLinesDisplayed()
1228 Part IV
Reference
Thisnumber reflectsthe list of messagescurrently displayed, not including
those whichare stored for display if the frame is scrolled.
Returns:
count—Numberofmessagescurrentlydisplayedintheframe(number)
GetNumMessages
Returns the number of messages currently kept inthe frame’s message history.
count= ScrollingMessageFrame:GetNumMessages()
Thisnumber reflectsthe list of messageswhich canbe seenby scrolling the
frame, including (but not limited to) the list of messages currently
displayed.
Returns:
count—Numberofmessagescurrentlykeptintheframe’smessagehistory
(number)
GetTimeVisible
Returns the amount of time for which amessage remainsvisible before
beginning to fade out.
time =ScrollingMessageFrame:GetTimeVisible()
Returns:
time—Amountoftimeforwhichamessageremainsvisiblebeforebeginningto
fade out (in seconds) (number)
PageDown
Scrolls the message frame’s contents downby one page.
ScrollingMessageFrame:PageDown()
One ‘‘page’’ is slightly lessthan the number of linesdisplayed inthe frame.
PageUp
Scrolls the message frame’s contents up by one page.
ScrollingMessageFrame:PageUp()
One ‘‘page’’ is slightly lessthan the number of linesdisplayed inthe frame.
ScrollDown
Scrolls the message frame’s contents downby two lines.
ScrollingMessageFrame:ScrollDown()
ScrollToBottom
Scrolls to the bottom of the message frame’scontents.
ScrollingMessageFrame:ScrollToBottom()
ScrollToTop
Scrolls to the top of the message frame’scontents.
ScrollingMessageFrame:ScrollToTop()
Documents you may be interested
Documents you may be interested