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
- XmlSchemaImporter.cs
- InputBuffer.cs
- PackageRelationship.cs
- SoapAttributeAttribute.cs
- METAHEADER.cs
- ListViewUpdateEventArgs.cs
- GACIdentityPermission.cs
- CfgRule.cs
- XamlPointCollectionSerializer.cs
- RbTree.cs
- TextFormatterImp.cs
- DataIdProcessor.cs
- TraceUtility.cs
- FieldValue.cs
- DockingAttribute.cs
- ApplicationHost.cs
- FixedStringLookup.cs
- Error.cs
- SendActivityEventArgs.cs
- LayoutTableCell.cs
- CompositeScriptReferenceEventArgs.cs
- PropertyChangedEventArgs.cs
- AttributeTableBuilder.cs
- PrivacyNoticeBindingElement.cs
- DateTimeOffsetConverter.cs
- WeakHashtable.cs
- DataSourceView.cs
- ConfigurationElementProperty.cs
- Oci.cs
- DbDataReader.cs
- CommandField.cs
- AssemblyBuilderData.cs
- ManagedFilter.cs
- StrokeCollection2.cs
- ExpressionBindings.cs
- CodeConditionStatement.cs
- CheckBoxFlatAdapter.cs
- HttpResponseInternalWrapper.cs
- HandoffBehavior.cs
- Exception.cs
- SystemDropShadowChrome.cs
- InstanceKeyCompleteException.cs
- ReferencedType.cs
- RedistVersionInfo.cs
- ResourceAssociationTypeEnd.cs
- EditorBrowsableAttribute.cs
- XamlStream.cs
- ConstructorNeedsTagAttribute.cs
- RepeaterItemEventArgs.cs
- TdsParserStaticMethods.cs
- ProfileManager.cs
- CompleteWizardStep.cs
- SoapAttributeOverrides.cs
- WebPartActionVerb.cs
- ThreadInterruptedException.cs
- RealProxy.cs
- WebPartManagerInternals.cs
- EdmConstants.cs
- TargetFrameworkAttribute.cs
- TypeTypeConverter.cs
- MasterPageCodeDomTreeGenerator.cs
- CustomErrorsSection.cs
- webproxy.cs
- BindUriHelper.cs
- EntityContainerAssociationSet.cs
- SmtpFailedRecipientsException.cs
- TextLineBreak.cs
- BuildProviderAppliesToAttribute.cs
- ApplicationFileParser.cs
- KeyPressEvent.cs
- ACE.cs
- OpacityConverter.cs
- PropertyGridEditorPart.cs
- AppLevelCompilationSectionCache.cs
- DesignSurface.cs
- XmlSchemas.cs
- HttpCapabilitiesEvaluator.cs
- TypeSystem.cs
- ScaleTransform3D.cs
- ApplicationDirectoryMembershipCondition.cs
- XmlNodeWriter.cs
- TypeElementCollection.cs
- PageTheme.cs
- NativeCppClassAttribute.cs
- _UncName.cs
- GlyphElement.cs
- SafeNativeMethods.cs
- StoreContentChangedEventArgs.cs
- BaseDataBoundControl.cs
- IIS7WorkerRequest.cs
- DispatcherEventArgs.cs
- HttpListenerRequest.cs
- UInt32Storage.cs
- IdleTimeoutMonitor.cs
- Scalars.cs
- DesignerDataConnection.cs
- SecurityElement.cs
- OwnerDrawPropertyBag.cs
- BindStream.cs
- SimpleFieldTemplateFactory.cs