c# pdf viewer open source : Move pdf pages in preview control Library platform web page asp.net azure web browser World%20of%20Warcraft%20Programming%20(2nd%20Edition)120-part1785

Chapter 29
Widget Reference 1159
Note: despite the name of thismethod, the parametersare offsetsalong the
normal axes—to inset the frame’sclamping areafrom itsedges, the left and
bottom measurementsshould be positive and the right and topmeasurements
should be negative.
Arguments:
left—Offsetfromtheleftedgeoftheframetotheleftedgeofitsclampingarea
(in pixels) (number)
right—Offsetfromtherightedgeoftheframe’sclampingareatotherightedge
of the frame (in pixels) (number)
top—Offsetfromthetopedgeoftheframe’sclampingareatothetopedgeof
the frame (in pixels) (number)
bottom—Offsetfromthebottomedgeoftheframetothebottomedgeofits
clamping area (in pixels) (number)
Example:
--creates adrag-movableframewhichcannot bemovedbeyondi
the edges of the screen
CreateFrame(“Frame“,“Test“,UIParent)
Test:SetWidth(100)
Test:SetHeight(100)
Test:SetPoint(“CENTER“)
Test:EnableMouse(true)
Test:SetClampedToScreen(true)
Test:CreateTexture(“TestBG“)
TestBG:SetAllPoints()
TestBG:SetTexture(1,1,1,0.5)
Title=Test:CreateTitleRegion()
Title:SetAllPoints()
--insettheclamping area, allowing theframeto be moved partially
--offscreen by 50pixels in anydirection
Test:SetClampRectInsets(50,-50,-50,50)
--outsetthe clampingarea,allowingtheframetobemovedi
nocloser than50pixels to any edgeofthe screen
Test:SetClampRectInsets(-50,50,50,-50)
SetClampedToScreen
Setswhether the frame’sboundariesshould be limited to those of the screen.
Frame:SetClampedToScreen(enable)
Appliesto user moving/resizing of the frame (via:StartMoving(),
:StartSizing(),ortitleregion);attemptingtomoveorresizetheframe
beyondthe edgesof the screen willmove/resize it no further than the edge of
the screenclosest to the mouse position. Does not apply to programmatically
setting the frame’spositionor size.
Arguments:
enableTruetolimittheframe’sboundariestothoseofthescreen;false
to allow the frame to be moved/resized without such limits (boolean)
Move pdf pages in preview - re-order PDF pages in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Support Customizing Page Order of PDF Document in C# Project
change page order in pdf reader; reorder pages in pdf
Move pdf pages in preview - 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
move pdf pages online; how to reorder pdf pages
1160 Part IV
Reference
SetDepth
Setsthe 3D depthof the frame (for stereoscopic 3D configurations).
Frame:SetDepth(depth)
Arguments:
depth—Apparent3Ddepthofthisframerelativetothatofitsparentframe
(number)
SetFrameLevel
Setsthe level at which the frame islayeredrelative to others in its strata.
Frame:SetFrameLevel(level)
Frameswith higher frame level are layeredin front of frameswith alower
frame level.
Arguments:
level—LayeringleveloftheframerelativetoothersinitsframeStrata
(number)
SetFrameStrata
Setsthe generallayering strata of the frame.
Frame:SetFrameStrata(“strata“)
Where frame level providesfine control over the layering of frames, frame
strataprovides acoarser levelof layering control: frames in ahigher strata
alwaysappearin front of framesinlower strata regardlessof frame level.
Arguments:
strata—Tokenidentifyingthestratainwhichtheframeshouldbelayered
(string, frameStrata)
SetHitRectInsets
Setsthe insets from the frame’s edges which determine itsmouse-interactable
area.
Frame:SetHitRectInsets(left,right,top, bottom)
Arguments:
left—Distancefromtheleftedgeoftheframetotheleftedgeofits
mouse-interactive area (in pixels) (number)
right—Distancefromtherightedgeoftheframetotherightedgeofits
mouse-interactive area (in pixels) (number)
top—Distancefromthetopedgeoftheframetothetopedgeofits
mouse-interactive area (in pixels) (number)
bottom—Distancefromthebottomedgeoftheframetothebot-
tom edge of its mouse-interactive area (in pixels) (number)
SetID
Setsa numeric identifier for the frame.
Frame:SetID(id)
How to C#: Preview Document Content Using XDoc.Word
How to C#: Preview Document Content Using XDoc.Word. Get Preview From File. You may get document preview image from an existing Word file in C#.net.
how to reorder pages in pdf online; change page order pdf
How to C#: Preview Document Content Using XDoc.PowerPoint
How to C#: Preview Document Content Using XDoc.PowerPoint. Get Preview From File. You may get document preview image from an existing PowerPoint file in C#.net.
rearrange pages in pdf document; pdf change page order
Chapter 29
Widget Reference 1161
Frame IDshave no effect onframe behavior, but canbe a usefulway to keep
track of multiple similar frames, especially in cases where alist of frames is
created from atemplate (suchasfor action buttons, loot slots, or lines ina
FauxScrollFrame).
Arguments:
id—Anumericidentifierfortheframe(number)
SetMaxResize
Setsthe maximum size of the frame for user resizing.
Frame:SetMaxResize(maxWidth,maxHeight)
Applieswhenresizing the frame withthe mouse via:StartSizing().
Arguments:
maxWidth—Maximumwidthoftheframe(inpixels),or0fornolimit(number)
maxHeight—Maximumheightoftheframe(inpixels),or0fornolimit
(number)
SetMinResize
Setsthe minimum size of the frame for user resizing.
Frame:SetMinResize(minWidth,minHeight)
Applieswhenresizing the frame withthe mouse via:StartSizing().
Arguments:
minWidth—Minimumwidthoftheframe(inpixels),or0fornolimit(number)
minHeight—Minimumheightoftheframe(inpixels),or0fornolimit(number)
SetMovable
Setswhether the frame can be moved by the user.
Frame:SetMovable(enable)
Enabling this property does not automatically implement behaviorsallowing
the frame to be dragged by the user—such behavior must be implementedin
the frame’s mouse script handlers. If this property isnot enabled,
Frame:StartMoving()causesaLuaerror.
For simple automatic frame dragging behavior, seeFrame:
CreateTitleRegion().
Arguments:
enableTruetoallowtheframetobemovedbytheuser;falsetodisable
(boolean)
SetResizable
Setswhether the frame can be resized by the user.
Frame:SetResizable(enable)
Enabling this property does not automatically implement behaviorsallowing
the frame to be drag-resized by the user—suchbehavior must be implemented
inthe frame’s mouse script handlers. If this property isnot enabled,
Frame:StartSizing()causesaLuaerror.
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.
pdf page order reverse; how to move pdf pages around
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.
pdf change page order acrobat; reorder pdf page
1162 Part IV
Reference
Arguments:
enableTruetoallowtheframetoberesizedbytheuser;falsetodisable
(boolean)
SetScale
Setsthe frame’s scale factor.
Frame:SetScale(scale)
Aframe’s scale factor affects the size at whichit appears on the screenrelative
to that of its parent. The entire interface may be scaled by changing
UIParent’sscalefactor(ascanbedoneviatheUseUIScalesettinginthe
default interface’sVideo Options panel).
Arguments:
scale—Scalefactorfortheframerelativetoitsparent(number)
Example:
-- creates three concentric squarescoloredred, green andblue
-- each is100 pixelswide accordingtoits own coordinate system
-- buttheactual sizeofeachis determinedby itsscalefactor:
-- - the redsquare isabout50pixels square, or0.5xitsnormal
-- size (assumingUIParent’sscalefactoris1)
-- - the green squareisabout75pixels square,or1.5x thesize
-- of theredsquare
-- - the blue squareis about 19 pixelssquare,or 0.25x thesize
-- of thegreensquare
CreateFrame(“Frame“,“Frame1“, UIParent)
Frame1:SetWidth(100)
Frame1:SetHeight(100)
Frame1:SetPoint(“CENTER“)
Frame1:CreateTexture(“Frame1BG“)
Frame1BG:SetTexture(1,0,0,0.5)
Frame1BG:SetAllPoints()
Frame1:SetScale(0.5)
CreateFrame(“Frame“,“Frame2“, Frame1)
Frame2:SetWidth(100)
Frame2:SetHeight(100)
Frame2:SetPoint(“CENTER“)
Frame2:CreateTexture(“Frame2BG“)
Frame2BG:SetTexture(0,1,0,0.5)
Frame2BG:SetAllPoints()
Frame2:SetScale(1.5)
CreateFrame(“Frame“,“Frame3“, Frame2)
Frame3:SetWidth(100)
Frame3:SetHeight(100)
Frame3:SetPoint(“CENTER“)
Frame3:CreateTexture(“Frame3BG“)
Frame3BG:SetTexture(0,0,1,0.5)
Frame3BG:SetAllPoints()
Frame3:SetScale(0.25)
C# PDF insert text Library: insert text into PDF content in C#.net
adding text to PDF in preview without adobe int pageIndex = 0; // Move cursor to (400F, 100F). outputFilePath = Program.RootPath + "\\" output.pdf"; doc.Save
reorder pages in pdf file; pdf move pages
VB.NET PDF File Compress Library: Compress reduce PDF size in vb.
Remove bookmarks, annotations, watermark, page labels and article threads from PDF while compressing. Also a preview component enables compressing and
pdf reorder pages; how to rearrange pages in pdf using reader
Chapter 29
Widget Reference 1163
SetToplevel
Setswhether the frame should automatically come to the front when clicked.
Frame:SetToplevel(enable)
When aframe withToplevel behavior enabled isclicked, it automatically
changesits frame level suchthat it isgreater than(and therefore drawn ‘‘in
front of’’) all other frames in itsstrata.
Arguments:
enableTruetocausetheframetoautomaticallycometothefrontwhen
clicked;false otherwise (boolean)
SetUserPlaced
Flags the frame for automaticsaving and restoration of position and
dimensions.
Frame:SetUserPlaced(enable)
The positionand size of frames so flagged isautomatically savedwhen the UI
isshut down (as whenquitting, logging out, or reloading) and restoredwhen
the UInext starts up (aswhenlogging inor reloading). As implied by its name,
enabling thisproperty is useful for frames whichcan be moved or resizedby
the user.
Arguments:
enableTruetoenableautomaticsavingandrestorationofthe
frame’s position and dimensions;false to disable (boolean)
StartMoving
Beginsrepositioning the frame via mouse movement.
Frame:StartMoving()
StartSizing
Beginsresizing the frame via mouse movement.
Frame:StartSizing()
StopMovingOrSizing
Ends movement or resizing of the frame initiatedwith:StartMoving() or
:StartSizing().
Frame:StopMovingOrSizing()
UnregisterAllEvents
Unregistersthe frame from any events for which it is registered.
Frame:UnregisterAllEvents()
UnregisterEvent
Unregistersthe frame for an event.
Frame:UnregisterEvent(“event“)
Once unregistered, the frame’sOnEvent script handler will not be called for
that event.
VB.NET PDF insert text library: insert text into PDF content in vb
Add text to PDF in preview without adobe reader Dim pageIndex As Integer = 0 ' Move cursor to (400F As String = Program.RootPath + "\\" output.pdf" doc.Save
how to reorder pdf pages in; move pages in a pdf
How to C#: Preview Document Content Using XDoc.excel
How to C#: Preview Document Content Using XDoc.Excel. Get Preview From File. You may get document preview image from an existing Excel file in C#.net.
how to move pages around in a pdf document; reorder pages in pdf document
1164 Part IV
Reference
Unregistering from notificationsfor anevent canbe useful for improving
addonperformance at timeswhen it’s not necessary to processthe event. For
example, aframe which monitorstarget health does not need to receive the
UNIT_HEALTHeventwhiletheplayerhasnotarget.Anaddonthatsortsthe
contents of the player’s bagscan register for theBAG_UPDATE event to keep
track of when itemsare picked up, but unregister from the event while it
performsits sorting.
Arguments:
event—Nameof anevent(string)
Button
Of all the various subtypes of Frame in the user interface system, Buttons are the
most visible, since users interact withthem frequently during gameplay. They are the
primary meansby whichthe user controls the game and their characters.
ButtonshaveanintrinsicFontStringbuilt-in, sotheysupportboththeSetTextandthe
GetText methods. In addition, a buttonhas three special visual statesthat canbe dec-
orated independently: one when the button is disabled, one whenthe button hasbeen
pushed but not yet released, and one when the mouse is over the button. The changes
to the button’s presentationhappenautomatically basedon the button’s definition.
The most important aspect of a Button is the fact that it can be clicked by the
user. When a button is clicked the PreClick script handler will fire, followed by the
OnClick handler, and finally the PostClick handler. These allow an addon developer
lots of flexibility when creating an addon, especially in the presence of the secure
environment and tainting system introduced in WoW 2.0.
To create a button, call CreateFrame with ‘‘Button’’ as the first argument, or
construct one in an XML file with a <Button> element. Some handy templates
for this include UIPanelButtonTemplate (which provides a standard red button),
UIPanelCloseButton (a small red square with a yellow X in it) and SecureHan-
dlerClickTemplate.
ThemostfamousButtonsareprobablyunitframes, whichmakeuse of the SecureAc-
tionButtonTemplate (or itsderivative, SecureUnitButtonTemplate) tocontrol targeting
and sometimesspell-casting. There are many insecure buttons as well (or more accu-
rately, buttonswhichdo not require security), suchasthe micro buttons on the action
bar for opening various panels and menus, or the buttons around the minimap for
revealing the calendar or displaying the world map.
Button hasall the methodsfrom Frame, plusthe following:
Click
Performsa (virtual) mouse click onthe button.
Button:Click(“button“,down)
Causes any of the button’smouse click-relatedscriptsto be run asif the button
were clicked by the user.
Calling thismethod canresult inan error if the button inherits from a secure
frame template andperforms protected actions.
Chapter 29
Widget Reference 1165
Arguments:
button—Nameofthemousebuttonfortheclickaction(string)
Button4
Button5
LeftButton
MiddleButton
RightButton
downTruefora‘‘mousedown’’clickaction,falsefor‘‘mouseup’’orother
click actions (boolean)
Disable
Disallowsuser interaction with the button.
Button:Disable()
Automatically changesthe visual state of the buttonif its
DisabledTexture, DisabledTextColor or DisabledFontObject
are set.
Enable
Allowsuser interaction withthe button.
Button:Enable()
If adisabled appearance wasspecified for the button, automatically returns the
buttonto its normalappearance.
GetButtonState
Returnsthe button’s current state.
state= Button:GetButtonState()
Returns:
state—Stateofthebutton(string)
DISABLED-Buttonisdisabledandcannotreceiveuserinput
NORMAL-Buttonisinitsnormalstate
PUSHED-Buttonispushed(asduringaclickonthebutton)
GetDisabledFontObject
Returnsthe font object used for the button’sdisabled state.
font =Button:GetDisabledFontObject()
Returns:
font—ReferencetotheFontobjectusedwhenthebuttonisdisabled(font)
GetDisabledTexture
Returnsthe texture usedwhen the button is disabled.
texture=Button:GetDisabledTexture()
Returns:
texture—ReferencetotheTextureobjectusedwhenthebuttonisdisabled
(texture)
1166 Part IV
Reference
GetFontString
Returns theFontString object used for the button’s label text.
fontstring=Button:GetFontString()
Returns:
fontstring—ReferencetotheFontStringobjectusedforthebutton’slabel
text (fontstring)
GetHighlightFontObject
Returns the font object used whenthe buttonishighlighted.
font =Button:GetHighlightFontObject()
Returns:
font—ReferencetotheFontobjectusedwhenthebuttonishighlighted(font)
GetHighlightTexture
Returns the texture used whenthe buttonis highlighted.
texture =Button:GetHighlightTexture()
Returns:
texture—ReferencetotheTextureobjectusedwhenthebuttonishighlighted
(texture)
GetNormalFontObject
Returns the font object used for the button’s normalstate.
font =Button:GetNormalFontObject()
Returns:
font—ReferencetotheFontobjectusedforthebutton’snormalstate(font)
GetNormalTexture
Returns the texture used for the button’s normal state.
texture =Button:GetNormalTexture()
Returns:
texture—ReferencetotheTextureobjectusedforthebutton’snormalstate
(texture)
GetPushedTextOffset
Returns the offset for moving the button’s label text whenpushed.
x, y= Button:GetPushedTextOffset()
Returns:
x—Horizontaloffsetforthetext(inpixels;valuesincreasingtotheright)
(number)
y—Verticaloffsetforthetext(inpixels;valuesincreasingupward)(number)
GetPushedTexture
Returns the texture used whenthe buttonis pushed.
texture =Button:GetPushedTexture()
Chapter 29
Widget Reference 1167
Returns:
texture—ReferencetotheTextureobjectusedwhenthebuttonispushed
(texture)
GetText
Returnsthe text of the button’s label.
text =Button:GetText()
Returns:
text—Textofthebutton’slabel(string)
GetTextHeight
Returnsthe height of the button’s text label.
height =Button:GetTextHeight()
Reflects the height of the rendered text (which increasesif the text wraps onto
two lines), not the point size of the text’s font.
Returns:
height—Heightofthebutton’stext(inpixels)(number)
GetTextWidth
Returnsthe widthof the button’stext label.
width= Button:GetTextWidth()
Returns:
width—Widthofthebutton’stext(inpixels)(number)
IsEnabled
Returnswhether user interactionwith the button is allowed.
enabled=Button:IsEnabled()
Returns:
enabled1ifuserinteractionwiththebuttonisallowed;otherwise nil(1nil)
LockHighlight
Locks the button initshighlight state.
Button:LockHighlight()
When the highlight state is locked, the buttonwill alwaysappear highlighted
regardless of whether it is moused over.
RegisterForClicks
Registersa button to receive mouse clicks.
Button:RegisterForClicks(...)
Arguments:
...—Alistofstrings,eachthecombinationofabuttonnameandclickactionfor
which the button’s click-related script handlers should be run. Possible values:
(list)
1168 Part IV
Reference
Button4Down
Button4Up
Button5Down
Button5Up
LeftButtonDown
LeftButtonUp
MiddleButtonDown
MiddleButtonUp
RightButtonDown
RightButtonUp
AnyDown
AnyUp
AnyDownand AnyUprespondtothedownorupactionofanymousebutton.
SetButtonState
Setsthe button’s state.
Button:SetButtonState(“state“,lock)
Arguments:
state—Stateforthebutton(string)
DISABLED-Buttonisdisabledandcannotreceiveuserinput
NORMAL-Buttonisinitsnormalstate
PUSHED-Buttonispushed(asduringaclickonthebutton)
lock—Locksthebuttoninthegivenstate;e.g.ifNORMAL,thebutton
cannot be clicked but remains in theNORMAL state (boolean)
SetDisabledFontObject
Setsthe font object used for the button’sdisabled state.
Button:SetDisabledFontObject(font)
Arguments:
font—ReferencetoaFontobjecttobeusedwhenthebuttonisdisabled(font)
SetDisabledTexture
Setsthe texture usedwhen the button is disabled.
Button:SetDisabledTexture(texture)ori
Button:SetDisabledTexture(“filename“)
Arguments:
texture—ReferencetoanexistingTextureobject(texture)
filename—Pathtoatextureimagefile(string)
SetFontString
SetstheFontString object usedfor the button’slabel text.
Button:SetFontString(fontstring)
Arguments:
fontstring—ReferencetoaFontStringobjecttobeusedforthebutton’s
label text (fontstring)
SetFormattedText
Setsthe button’s label text using format specifiers.
Button:SetFormattedText(“formatString“, ...)
Equivalent to:SetText(format(format,...)), but doesnot create a
throwaway Lua string object, resulting in greater memory-usage efficiency.
Documents you may be interested
Documents you may be interested