Package, XPS documents, 731–32
Padding, 981
PageBounds, 662
Page numbers, printing, 663–64
PageScale, 562
PageSettings, 553, 955
Page Setup, 11
PageSetupDialog, 273, 953–55
properties, 954–55
PageUnits, 562
Paint
event handlers, 580–82
Form, 1021
Palette, 638
Panel, 264, 266–67, 955–56
SplitContainer properties, 976
PaperSize, 553
PaperSource, 553
ParagraphInfo, 663–69
Parameter arrays, 201–2
defined, 201
restrictions, 201–2
Parameter declarations, 195–202
array parameters, 197–98
ByRef, 196–97
ByVal, 196–97
events, 468, 1026
features of, 159–62
nonstatic procedure scope of, 159–61
Optional, 199–200
parameter arrays, 201–2
parameter passing and structures, 454–55
parameters, declaring, 160
parenthesized parameters, 198–99
Parent
abstraction, 433
child class derived from. See Inheritance
DirectoryInfo, 793
ParentColumns, 350
ParentKeyConstraints, 350
ParentRelations, 343
ParentTable, 350
shadows, 378–79
Shadows, 434
Parentheses ( )
grouping operator ( ), 176
in order of precedence, 177
parenthesized parameters, 198–99
ParenthesizePropertyName, 192
Parsing
data types, 139
OpenTextFieldParser, 801
Partial
classes, 440–41, 1023
code region function, 112
Passwords
building, 842–45
PasswordBox, 1003
PasswordChar, 986
Paste Button Image, 42–43
Path, 797–99
ChangExtension, 798
Combine, 798
CombinePath, 799
DirectorySeparatorChar, 797
ExecutablePath, 763
Exists, 778
GetDirectoryName, 798
GetExtension, 798
GetFileName, 798
GetFileNameWithoutExtension, 798
GetFullPath, 798
GetParentPath, 800
GetPathRoot, 798
GetTempPath, 798
HasExtension, 799
InvalidPathChar, 797
IsPathRooted, 799
LocalUserAppDataPath, 764
methods, 1098–99
MoveTo, 793
PathData, 610
PathPoints, 610
PathSeparator, 798
PathTypes, 610
properties, 1097–98
StartupPath, 764
ToString, 793
UserAppDataPath, 764
VolumeSeparatorChar, 797
XAML drawing, 720–23
PathGradientBlend, 546
Pattern matching operators, 173–74
Peek
BinaryReader, 773
PeekChar, 773
queue, 524
TextReader, 775, 776
Pen, 583–91, 1035–36
actions of, 542, 583
Alignment, 584, 586–87
CompoundArray, 584, 587–88
constructors, 584
CustomEndCap, 584, 588–90
CustomStartCap, 584, 588–90
graphical transformations, 583–85
properties/methods, 584–85, 1034–35
System.Drawing, 544
thickness, 583–84
transformations, 590–91
PerformanceCounter, 264, 956
PerformanceData, 746
Performance Tools, 38, 46
Performance Wizard, 38
Physical Dimension, 638
PictureBox, 264, 273, 956–58
AutoRedraw, 642–44
values, 956
Pictures
centering and printing, 669–71
fitting to page and printing, 671–73
Pie slice, DrawPie, 554
Pixels
colors, 647–48
GetPixelFormatSize, 638
IsAlphaPixelFormat, 638
PixelFormat, 638
SingleBitPerPixel, 551
SingleBitPerPixelGridFit, 551
See also Bitmap(s)
Placeholders, composite formatting, 1052
Platform constant, 115
PlayRecord, 652, 1040
PNG format, bitmaps, 641
Point
CenterPoint, 601
GetLastPoint, 610
PathPoints, 610
PointCount, 610
PointToClient, 1016
PointToScreen, 1016
System.Drawing, 545
Pointer tool, 262, 902
Point size, fonts, 921
Polygon
DrawPolygon, 554
XAML drawing of, 719
Polyline, XAML drawing of, 719–20
Polymorphism, 435–36
benefits of, 436
defined, 435
Pop, 522
Ports, SerialPort, 265, 974, 1069–71
Position
CurrencyManager, 359
properties, 93–94
Streams, 770
Power Packs. See Microsoft Power Packs
Precedence operators, 175–76
Prefix, 340, 343, 348
Prepare, 337
Preview Data, 34
Previous Method, 13
PrimaryKey, 343
PrintDocument, 273–74, 658–62
events, 658–59
PrintDialog, 264, 273, 660–61, 958–62
PrinterSettings, 553, 955, 962
PrintPage, 658–60, 662, 962
PrintPreviewControl, 265, 273, 274, 660, 962–64
PrintPreviewDialog, 265, 273, 274, 659, 964–65
Printing
drawing/printing combined, 673–76
fitting picture to page, 671–73
gutters, 662–64
image centered on page, 669–71
margins, 662
Print command, 11
PrintDialog properties, 959–61
printer compatibility library, 1005–6
PrinterResolution, 553
PrintLine, 782
print preview, 659–60, 663
simple versus complex output, 657–58
System.Drawing.Printing, 553
text broken across pages, 662–69
value to file, 782
VSTO application, use of, 658
See also PrintDocument
Private
classes, 442
constants, 166
events, 468
multiple variable declarations, 153
namespace scope, 158
subroutines, 195
variable accessibility, 131, 141
PrivateFontCollection, 550
Procedure scope, 157–58
module scope, 158
namespace scope, 158–59
restricting scope, 159
Process
Attach to Process, 31, 36
Processes command, 31
Process object, 965–66
ProcessorCount, 743
ProductName, 764
ProductVersion, 764
Programs, 802
ProgressBar, 265, 271, 966–67, 1003
Project(s)
Add Existing Item, 16
Add New Item, 16
Close Project, 11
defined, 4, 105
Exclude From Project, 16
Existing Project, 11
Export Template, 11
New Items, 16
New Project, 6, 9, 11
Open Project, 9
program files, viewing, 4
Recent Projects, 11
structure of. See Project structure
Project menu commands, 16–21
Projects and Solutions, 46
Project structure
code file structure, 110–22
hidden files, 105–9
Prompt, MaskedTextBox properties, 940
Properties, 79–94
adopted by control on form, 287–88
attributes, listing of, 191–93
collection properties, 84–86
compound properties, 81
control properties, 88–93
defined, 79, 425, 466
display area, 93
display pages, 15, 17–19
find and replace, 12
Form property-changed events, 1022
hiding, 379–80
implementing, custom controls, 372–73
IntelliSense functions, 60–61
modifying at design time, 73, 80–86
modifying at run time, 86–88
My.Settings, 751
ParenthesizePropertyName, 192
Properties window, 8, 80–81, 96
PropertyGrid, 265, 270, 967
Property Pages, 15
read-only, 88
restricted properties, 82–83
setting, 17–20
size and position properties, 93–94
splitting forms, 93
WindowsApplication1 Properties, 17–21
write-only, 88
See also specific types of properties
Property procedures, 162–63
breakpoints in, 162
in code module, 206
for read-only/write-only variables, 163, 886
functions of, 162, 205
implementing, 205–6
in object module, 206
Property Get, 162
Property Set, 162, 377–78
Protected
classes, 441–42
constants, 166
events, 467
namespace scope, 158
subroutines, 195
variable accessibility, 141
Protected Friend
classes, 442
constants, 166
events, 468
namespace scope, 158
subroutines, 195
variable accessibility, 141
Provider, 324
Public
classes, 441–42
constants, 166
events, 467
multiple variable declarations, 153
namespace scope, 158–59
subroutines, 194
variable accessibility, 131, 141
Public interface
defined, 427
encapsulation, 427–28
Public-key encryption, 841
Publish Wizard, 22–23
Publish WindowsApplication1, 22
Push, 522