Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / StrokeDescriptor.cs / 1 / StrokeDescriptor.cs
//------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class StrokeDescriptor { private System.Collections.Generic.List_strokeDescriptor = new System.Collections.Generic.List (); private uint _Size = 0; public uint Size { get { return _Size; } set { _Size = value; } } public System.Collections.Generic.List Template { get { return _strokeDescriptor; } } public StrokeDescriptor() { } public bool IsEqual(StrokeDescriptor strd) { // If the no of templates in them are different return false if( _strokeDescriptor.Count != strd.Template.Count ) return false; // Compare each tag in the template. If any one of them is different, return false; for( int i = 0; i < _strokeDescriptor.Count; i++ ) if( _strokeDescriptor[i] != strd.Template[i] ) return false; return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class StrokeDescriptor { private System.Collections.Generic.List_strokeDescriptor = new System.Collections.Generic.List (); private uint _Size = 0; public uint Size { get { return _Size; } set { _Size = value; } } public System.Collections.Generic.List Template { get { return _strokeDescriptor; } } public StrokeDescriptor() { } public bool IsEqual(StrokeDescriptor strd) { // If the no of templates in them are different return false if( _strokeDescriptor.Count != strd.Template.Count ) return false; // Compare each tag in the template. If any one of them is different, return false; for( int i = 0; i < _strokeDescriptor.Count; i++ ) if( _strokeDescriptor[i] != strd.Template[i] ) return false; return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Menu.cs
- SchemaImporterExtensionElement.cs
- CompilerHelpers.cs
- externdll.cs
- GridViewRow.cs
- SortKey.cs
- ZoneLinkButton.cs
- ObjectDataSourceEventArgs.cs
- ASCIIEncoding.cs
- HashCodeCombiner.cs
- SwitchElementsCollection.cs
- ToolStripPanelRenderEventArgs.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- ToolStripItemCollection.cs
- OleDbInfoMessageEvent.cs
- TextRunProperties.cs
- AmbientProperties.cs
- PrePostDescendentsWalker.cs
- TaskFormBase.cs
- Bind.cs
- RightsManagementInformation.cs
- TypedReference.cs
- ConditionalExpression.cs
- DeclarativeCatalogPart.cs
- AQNBuilder.cs
- GridItemCollection.cs
- DbDataAdapter.cs
- StringPropertyBuilder.cs
- MaskedTextProvider.cs
- DataGridViewSelectedCellCollection.cs
- EnumMember.cs
- SqlConnection.cs
- WindowsClaimSet.cs
- GridView.cs
- TextSelectionHelper.cs
- OleDbCommandBuilder.cs
- SoapTypeAttribute.cs
- FixedTextSelectionProcessor.cs
- RequestCacheEntry.cs
- PropertyValueChangedEvent.cs
- DbParameterCollectionHelper.cs
- XsdDataContractExporter.cs
- LinqDataSource.cs
- WizardForm.cs
- SqlClientPermission.cs
- LocalIdKeyIdentifierClause.cs
- CodeTypeReferenceCollection.cs
- ObjectMemberMapping.cs
- BlobPersonalizationState.cs
- SignatureToken.cs
- ProjectionNode.cs
- DocumentApplicationJournalEntryEventArgs.cs
- XsltCompileContext.cs
- ButtonAutomationPeer.cs
- UDPClient.cs
- Delegate.cs
- InputMethodStateChangeEventArgs.cs
- _OverlappedAsyncResult.cs
- Panel.cs
- IgnoreDeviceFilterElement.cs
- FtpWebResponse.cs
- ContextMenuService.cs
- EntityDataReader.cs
- RegexCompiler.cs
- XmlSchemaSimpleContentExtension.cs
- DSASignatureDeformatter.cs
- MouseEvent.cs
- DesignOnlyAttribute.cs
- ScrollEvent.cs
- VirtualPath.cs
- NativeMethods.cs
- PrimitiveXmlSerializers.cs
- EventNotify.cs
- LoadWorkflowCommand.cs
- RbTree.cs
- SuppressMergeCheckAttribute.cs
- nulltextnavigator.cs
- webproxy.cs
- InternalControlCollection.cs
- BCLDebug.cs
- SoapElementAttribute.cs
- RoleBoolean.cs
- UrlMapping.cs
- SqlDataSource.cs
- CmsUtils.cs
- EventSourceCreationData.cs
- __Filters.cs
- SiteMapNodeCollection.cs
- SeekStoryboard.cs
- PageAsyncTask.cs
- XmlIgnoreAttribute.cs
- ReliableDuplexSessionChannel.cs
- SimpleLine.cs
- AsyncPostBackTrigger.cs
- ProcessRequestArgs.cs
- SQLInt64Storage.cs
- DataFormat.cs
- LineServicesRun.cs
- ProfileEventArgs.cs
- MergeLocalizationDirectives.cs