Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / StrokeDescriptor.cs / 1305600 / 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
- ScrollChangedEventArgs.cs
- FusionWrap.cs
- ResponseBodyWriter.cs
- LineVisual.cs
- Encoding.cs
- HGlobalSafeHandle.cs
- SendActivityDesigner.cs
- Unit.cs
- IsolatedStorageFilePermission.cs
- MemberProjectedSlot.cs
- SystemSounds.cs
- ExpressionBinding.cs
- ToolStripPanelRenderEventArgs.cs
- CompositeDataBoundControl.cs
- VisualStyleTypesAndProperties.cs
- DropDownButton.cs
- NTAccount.cs
- ConfigurationFileMap.cs
- WorkerRequest.cs
- ChildTable.cs
- MultipleViewPatternIdentifiers.cs
- CanonicalXml.cs
- SmtpClient.cs
- AttributeSetAction.cs
- SoapProtocolImporter.cs
- SiteMapSection.cs
- ColumnPropertiesGroup.cs
- ToolStripTextBox.cs
- DataReceivedEventArgs.cs
- FlagsAttribute.cs
- XmlAutoDetectWriter.cs
- StylusDownEventArgs.cs
- TextProperties.cs
- SqlDuplicator.cs
- SystemGatewayIPAddressInformation.cs
- CodeAttributeDeclarationCollection.cs
- CustomErrorsSection.cs
- DataGridViewSelectedCellCollection.cs
- ListViewSortEventArgs.cs
- IncrementalHitTester.cs
- PowerModeChangedEventArgs.cs
- SslStream.cs
- Metadata.cs
- DecoderReplacementFallback.cs
- XmlElementAttributes.cs
- QilSortKey.cs
- TypeDependencyAttribute.cs
- DataBindingCollectionConverter.cs
- PointAnimation.cs
- ItemChangedEventArgs.cs
- PropertyPushdownHelper.cs
- StorageEntityTypeMapping.cs
- MergeEnumerator.cs
- DataGridViewCellEventArgs.cs
- SystemResourceHost.cs
- DatatypeImplementation.cs
- coordinatorfactory.cs
- Attributes.cs
- AddInProcess.cs
- BindingOperations.cs
- oledbmetadatacolumnnames.cs
- CodeNamespaceCollection.cs
- ListenerAdapterBase.cs
- DependencyPropertyChangedEventArgs.cs
- GridSplitter.cs
- PageTheme.cs
- KeyGesture.cs
- RegexFCD.cs
- HTMLTagNameToTypeMapper.cs
- XmlDeclaration.cs
- PartManifestEntry.cs
- _SecureChannel.cs
- DataGridViewCellCancelEventArgs.cs
- FontSourceCollection.cs
- Deflater.cs
- WebPartUtil.cs
- SecurityManager.cs
- SafeReversePInvokeHandle.cs
- OraclePermission.cs
- XPathAncestorIterator.cs
- SQLMoney.cs
- ListSortDescription.cs
- NCryptNative.cs
- ListBoxItemWrapperAutomationPeer.cs
- ColumnBinding.cs
- GlobalItem.cs
- ResourceDisplayNameAttribute.cs
- RegistryDataKey.cs
- ContentIterators.cs
- SystemIPInterfaceStatistics.cs
- DesignerOptionService.cs
- CurrencyWrapper.cs
- DecimalAnimation.cs
- ObjectQueryExecutionPlan.cs
- CriticalFinalizerObject.cs
- Relationship.cs
- UnsafeNativeMethods.cs
- OdbcParameter.cs
- ToolboxBitmapAttribute.cs
- securitymgrsite.cs