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
- TextBoxAutomationPeer.cs
- MDIWindowDialog.cs
- TextRenderer.cs
- ConfigurationLoaderException.cs
- Stroke.cs
- Effect.cs
- AnnotationHelper.cs
- StorageEndPropertyMapping.cs
- ExpressionReplacer.cs
- DiffuseMaterial.cs
- EventProvider.cs
- HtmlWindowCollection.cs
- GetTokenRequest.cs
- ConfigurationStrings.cs
- webbrowsersite.cs
- GridViewColumnHeaderAutomationPeer.cs
- UserControlParser.cs
- RecognizeCompletedEventArgs.cs
- PageContentCollection.cs
- XPathAxisIterator.cs
- ImageMapEventArgs.cs
- MessageEncoderFactory.cs
- InputScopeNameConverter.cs
- KeyedCollection.cs
- EditableLabelControl.cs
- HtmlTable.cs
- Signature.cs
- UIElementAutomationPeer.cs
- DbConnectionHelper.cs
- SymbolPair.cs
- DefaultValidator.cs
- HtmlTernaryTree.cs
- DataGridViewCellValueEventArgs.cs
- EditableRegion.cs
- DataGridViewColumnHeaderCell.cs
- PeerCollaboration.cs
- SqlStream.cs
- Style.cs
- XmlSerializationReader.cs
- GC.cs
- XmlDictionaryString.cs
- XmlBinaryWriterSession.cs
- WebBodyFormatMessageProperty.cs
- FormViewRow.cs
- PartialTrustVisibleAssembliesSection.cs
- MetaColumn.cs
- EncoderFallback.cs
- SystemParameters.cs
- DisplayNameAttribute.cs
- X509Chain.cs
- TransformerConfigurationWizardBase.cs
- NumberSubstitution.cs
- ScriptDescriptor.cs
- XmlSiteMapProvider.cs
- ProfilePropertySettings.cs
- Int32CollectionValueSerializer.cs
- CodeBinaryOperatorExpression.cs
- ExternalFile.cs
- COAUTHINFO.cs
- XmlWrappingWriter.cs
- DesignerCommandSet.cs
- ControlCachePolicy.cs
- ManagedCodeMarkers.cs
- TextWriter.cs
- BitmapEffectDrawing.cs
- TimeEnumHelper.cs
- RemoteArgument.cs
- LogExtent.cs
- HandlerMappingMemo.cs
- MessageSecurityOverHttp.cs
- AssociationEndMember.cs
- QueryCursorEventArgs.cs
- PriorityItem.cs
- UICuesEvent.cs
- WrappedIUnknown.cs
- TemplateControlCodeDomTreeGenerator.cs
- HttpChannelFactory.cs
- TransformConverter.cs
- DbExpressionVisitor_TResultType.cs
- DataTableExtensions.cs
- SpellerStatusTable.cs
- CssStyleCollection.cs
- ObjectQueryProvider.cs
- Floater.cs
- TextSpan.cs
- UidManager.cs
- UserInitiatedRoutedEventPermission.cs
- EdmError.cs
- JsonObjectDataContract.cs
- TransformProviderWrapper.cs
- Encoder.cs
- PartManifestEntry.cs
- RelOps.cs
- ExtensionSimplifierMarkupObject.cs
- Rect.cs
- RemotingConfiguration.cs
- LassoHelper.cs
- KeyedHashAlgorithm.cs
- XmlSchemaResource.cs
- HttpDictionary.cs