Tải bản đầy đủ - 0 (trang)
Appendix A.  Language Elements by Category

Appendix A.  Language Elements by Category

Tải bản đầy đủ - 0trang

Namespacefeaturemembers.



A.1.ArrayHandling

Element



Description



ArrayClass



Representsanarray



Array.BinarySearch

Method



Searchesforavalueinasortedone-dimensionalarray



Array.CopyMethod



Copiesallorpartofanarray



Array.IndexOfMethod



Searchesforthefirstoccurrenceofavalueinanunsortedonedimensionalarray



Array.LastIndexOf

Method



Searchesforthelastoccurrenceofavalueinanunsortedonedimensionalarray



Array.ReverseMethod Reversestheorderofelementsinanarraydimension

Array.SortMethod



Sortstheelementsofanarraydimension



EraseStatement



Resetsanarraytoitsuninitializedstate



IsArrayFunction



Indicateswhetheravariableisanarray



JoinFunction



Concatenatesanarrayofvaluesintoadelimitedstring



LBoundFunction



Returnsthelowerboundaryofanarray



ReDimStatement



Adjuststheboundsofanarraydimension



UBoundFunction



Returnstheupperboundaryofanarray



VBFixedArray

Attribute



Definesafixed-lengtharray







A.2.Clipboard

Element



Description



ClipboardClass



Encapsulatesfunctionalityrelatedtothesystemclipboard



Clipboard.GetDataObject

Method



Placesdataontheclipboard



Clipboard.SetDataObject

Method



RetrievesanIDataObjectobjectrepresentingdataonthe

clipboard



IDataObjectInterface



Definesaninterfaceforclipboardformatmanagement



IDataObject.GetData

Method



Retrievesdatafromtheclipboardinagivenformat



IDataObject.GetDataPresent Indicateswhethertheclipboardholdsdataofaparticular

Method

format

IDataObject.GetFormats

Method



Retrievesalistofalltheformatswithwhichtheclipboard

dataisassociatedortowhichitcanbeconverted



A.3.CollectionObjects

Element



Description



CollectionClass



ImplementsaCollectionobjectthatmanagesasetofrelated

objects.



Collection.AddMethod



AddsamembertoaCollectionobject.



Collection.Count

Property



IndicatesthenumberofitemsstoredtoaCollectionobject.



Collection.ItemProperty



RetrievesamemberfromaCollectionobjectbasedonitskey

valueorordinalposition.



Collection.Remove

Method



Removesthememberassociatedwithagivenkeyorordinal

positionfromaCollectionobject.



HashtableClass



Encapsulatesahashtablecollection.



Hashtable.AddMethod



Addsakey-valuepairtoaHashtableobject.



Hashtable.ContainsKey

Method



Indicateswhetheragivenkeyexistsamongthehashtable's

items.



Hashtable.ContainsValue Indicateswhetheragivenvalueexistsamongthehashtable's

Method

items.

Hashtable.CopyTo

Method



CopieshashtablevaluesintoanarrayofDictionaryEntry

structures.



Hashtable.ItemProperty RetrievesthevalueofaHashtableitemgivenitskey.



Hashtable.KeysProperty



ReturnsanICollectionobjectthatcontainsthekeysinthe

hashtable.



Hashtable.Remove

Method



Removesakey/valuepairfromaHashtableobject.



Hashtable.Values

Property



ReturnsanICollectionobjectthatcontainsthevaluesinthe

hashtable.



OfKeyword



Newin2005.Enablesgenericsonatypeormemberdefinition.



QueueClass



Encapsulatesaqueue-stylecollection.



Queue.ContainsMethod IndicateswhetheraQueuecontainsaparticularitem.

Queue.CopyToMethod



CopiestheQueueitemstoanarray.



Queue.DequeueMethod RemovesanitemfromaQueueobject.

Queue.EnqueueMethod PlacesanitemattheendofaQueue.

Queue.PeekMethod



ReturnsthefirstiteminaQueue.



Queue.ToArrayMethod



CopiestheQueueitemstoanarray.



StackClass



Encapsulatedastack-stylecollection.



Stack.ContainsMethod



IndicateswhetheraStackcontainsaparticularitem.



Stack.CopyToMethod



CopiestheitemsinaStacktoanarray.



Stack.PeekMethod



ReturnstheitematthetopofaStack.



Stack.PopMethod



RemovesthetopmostitemfromaStack.



Stack.PushMethod



PlacesanitematthetopofaStack.



Stack.ToArrayMethod



CopiestheitemsonaStacktoanarray.







A.4.CommonDialogs

Element



Description



ColorDialogClass



AllowsprogrammaticcontroloftheWindowsCommonColordialog

box



FontDialogClass



AllowsprogrammaticcontroloftheWindowsCommonFontdialogbox



OpenFileDialog

Class



AllowsprogrammaticcontroloftheWindowsFileOpendialogbox



SaveFileDialogClass AllowsprogrammaticcontroloftheWindowsSaveAsdialogbox



A.5.ConditionalCompilation

Element



Description



#ConstDirective



Declaresaconditionalcompilerconstant



#If...Then...#Else Definesablockofcodethatwillonlybecompiledintotheprogramif

Directive

theexpressionevaluatestotrue



A.6.Conversion

A.6.1.DataTypeConversion

Element



Description



CBoolFunction



ConvertsanexpressiontoaBooleandatatype.



CByteFunction



ConvertsanexpressiontoaBytedatatype.



CCharFunction



ConvertsastringexpressiontoaChardatatype.



CDateFunction



ConvertsanexpressiontoaDatedatatype.



CDblFunction



ConvertsanexpressiontoaDoubledatatype.



CDecFunction



ConvertsanexpressiontoaDecimaldatatype.



CIntFunction



ConvertsanexpressiontoanIntegerdatatype.



CLngFunction



ConvertsanexpressiontoaLongdatatype.



CObjFunction



ConvertsanexpressiontoanObjectdatatype.



CSByteFunction



Newin2005.ConvertsanexpressiontoanSBytedatatype.



CShortFunction



ConvertsanexpressiontoaShortdatatype.



CSngFunction



ConvertsanexpressiontoaSingledatatype.



CStrFunction



ConvertsanexpressiontoaStringdatatype.



CTypeFunction



Convertsanexpressiontoanyvaliddatatype,structure,objecttype,

orinterface.



CUIntFunction



Newin2005.ConvertsanexpressiontoaUIntegerdatatype.



CULngFunction



Newin2005.ConvertsanexpressiontoaULongdatatype.



CUShortFunction



Newin2005.ConvertsanexpressiontoaUShortdatatype.



DateValueFunction ConvertsthestringrepresentationofadatetoaDatedatatype.

DirectCastFunction Convertsavariabletoitsruntimetype.

GetTypeOperator



Returnsthetypeofagivenobject.



OptionStrict

Statement



Determineswhethernarrowingoperationsareallowed.



StrFunction



Convertsanumericvaluetoastring.



TimeValueFunction ConvertsastringrepresentationoftimetoaDatedatatype.

TryCastFunction



Newin2005.Convertsavariabletoaspecifiedtype,ifpossible.



ValFunction



Convertsanumericstringtoanumber.



A.6.2.OtherConversion

Element



Description



ErrorToString

Function



Returnsthedescriptiveerrormessagecorrespondingtoaparticular

errorcode



FixFunction



Returnstheintegerportionofanumber



HexFunction



Convertsanumbertoastringrepresentingitshexadecimalequivalent



IntFunction



Returnstheintegerportionofanumber



OctFunction



Convertsanumbertoastringrepresentingitsoctalequivalent



QBColorFunction



ConvertsaQBasiccolorcodetoanRGBcolorvalue



RGBFunction



Returnsasystemcolorcodethatcanbeassignedtoobjectcolor

properties



Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Appendix A.  Language Elements by Category

Tải bản đầy đủ ngay(0 tr)

×