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
- ObjectSet.cs
- ControlValuePropertyAttribute.cs
- SequenceDesigner.xaml.cs
- TreeNode.cs
- ObjectDataSourceWizardForm.cs
- AdjustableArrowCap.cs
- Relationship.cs
- ListManagerBindingsCollection.cs
- RewritingSimplifier.cs
- HierarchicalDataBoundControlAdapter.cs
- SharedPersonalizationStateInfo.cs
- ExceptQueryOperator.cs
- UnsafeNativeMethods.cs
- PointLightBase.cs
- IPGlobalProperties.cs
- RadioButtonBaseAdapter.cs
- CodeAssignStatement.cs
- NumberFormatInfo.cs
- ArrayElementGridEntry.cs
- TreeNodeBinding.cs
- SocketPermission.cs
- FigureParaClient.cs
- CodeAttributeArgument.cs
- PriorityBindingExpression.cs
- JavaScriptObjectDeserializer.cs
- HTMLTextWriter.cs
- errorpatternmatcher.cs
- SqlMetaData.cs
- Container.cs
- FileDialogPermission.cs
- UserPersonalizationStateInfo.cs
- Track.cs
- GeneralTransform.cs
- DateTimeConstantAttribute.cs
- ThicknessKeyFrameCollection.cs
- WindowsRegion.cs
- ItemsChangedEventArgs.cs
- XmlILStorageConverter.cs
- ReaderContextStackData.cs
- AssemblyFilter.cs
- LayoutTableCell.cs
- EdmError.cs
- ScriptingProfileServiceSection.cs
- FormsIdentity.cs
- PassportIdentity.cs
- IncrementalReadDecoders.cs
- BuilderPropertyEntry.cs
- RtfToken.cs
- BinaryParser.cs
- WebGetAttribute.cs
- ControlCachePolicy.cs
- InstanceNotReadyException.cs
- LogStream.cs
- RsaSecurityToken.cs
- DtdParser.cs
- RoutedEventArgs.cs
- GridViewColumnCollection.cs
- StickyNoteContentControl.cs
- XPathNavigatorKeyComparer.cs
- _BaseOverlappedAsyncResult.cs
- MailDefinition.cs
- UIPropertyMetadata.cs
- UTF8Encoding.cs
- WSDualHttpSecurity.cs
- CodeDomSerializerException.cs
- RelationshipSet.cs
- BitmapEffectCollection.cs
- AsyncCompletedEventArgs.cs
- AssemblyInfo.cs
- XsltFunctions.cs
- _LoggingObject.cs
- CreatingCookieEventArgs.cs
- EmptyQuery.cs
- QueryPageSettingsEventArgs.cs
- StorageSetMapping.cs
- SyndicationDeserializer.cs
- BitmapCodecInfoInternal.cs
- HttpCapabilitiesSectionHandler.cs
- ZipIOExtraField.cs
- ModelTreeEnumerator.cs
- RemotingHelper.cs
- WindowsFormsEditorServiceHelper.cs
- ActivityInstanceReference.cs
- BitStream.cs
- WebPartsPersonalization.cs
- SymLanguageVendor.cs
- HttpWebRequestElement.cs
- XmlComplianceUtil.cs
- SchemaTypeEmitter.cs
- PeerChannelFactory.cs
- WindowsTitleBar.cs
- XmlPreloadedResolver.cs
- EngineSite.cs
- TableLayoutSettingsTypeConverter.cs
- AppLevelCompilationSectionCache.cs
- metadatamappinghashervisitor.cs
- Lease.cs
- IImplicitResourceProvider.cs
- MenuBase.cs
- SoapWriter.cs