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
- ElementMarkupObject.cs
- Char.cs
- StorageAssociationTypeMapping.cs
- PeerFlooder.cs
- SkinBuilder.cs
- ZipIOLocalFileBlock.cs
- SQLInt32.cs
- EdmToObjectNamespaceMap.cs
- RadioButton.cs
- SimpleExpression.cs
- SqlDataSourceCommandEventArgs.cs
- ImageDrawing.cs
- DSACryptoServiceProvider.cs
- KnownIds.cs
- ConfigurationStrings.cs
- DataSourceControl.cs
- EntityDesignPluralizationHandler.cs
- NTAccount.cs
- MetadataCacheItem.cs
- DiagnosticsElement.cs
- DataMemberConverter.cs
- CodeTypeDeclarationCollection.cs
- PackageProperties.cs
- NumberSubstitution.cs
- SessionSwitchEventArgs.cs
- TextStore.cs
- BuildProvider.cs
- CannotUnloadAppDomainException.cs
- XmlBindingWorker.cs
- _KerberosClient.cs
- MatrixTransform.cs
- embossbitmapeffect.cs
- MemoryRecordBuffer.cs
- StreamWriter.cs
- DataGridHelper.cs
- CompilationSection.cs
- StandardBindingOptionalReliableSessionElement.cs
- OptimalTextSource.cs
- ISessionStateStore.cs
- Subtract.cs
- SmiEventStream.cs
- OleDbTransaction.cs
- MarshalByRefObject.cs
- SqlConnectionStringBuilder.cs
- SharedPersonalizationStateInfo.cs
- MessageQueueTransaction.cs
- GridViewCancelEditEventArgs.cs
- Stack.cs
- ISAPIRuntime.cs
- DataServiceSaveChangesEventArgs.cs
- CalendarDataBindingHandler.cs
- MDIClient.cs
- KeyValueConfigurationCollection.cs
- ContentPresenter.cs
- RepeatEnumerable.cs
- ChannelServices.cs
- DeviceSpecificDesigner.cs
- Certificate.cs
- X509UI.cs
- EdmComplexTypeAttribute.cs
- LineSegment.cs
- OdbcReferenceCollection.cs
- SystemWebSectionGroup.cs
- OperationCanceledException.cs
- Column.cs
- Helpers.cs
- ExpandCollapseProviderWrapper.cs
- AccessorTable.cs
- DataServiceKeyAttribute.cs
- MD5HashHelper.cs
- FormCollection.cs
- CodeDOMUtility.cs
- DataSourceXmlSubItemAttribute.cs
- WindowsGraphicsWrapper.cs
- ThreadAttributes.cs
- util.cs
- PeerTransportBindingElement.cs
- SHA512Managed.cs
- AppModelKnownContentFactory.cs
- DataStorage.cs
- AlphaSortedEnumConverter.cs
- PropertySegmentSerializer.cs
- ScriptIgnoreAttribute.cs
- NotifyInputEventArgs.cs
- BufferedGraphicsContext.cs
- TypeForwardedToAttribute.cs
- SessionPageStateSection.cs
- PropertyFilter.cs
- ViewPort3D.cs
- XsdValidatingReader.cs
- FacetDescriptionElement.cs
- ZoomPercentageConverter.cs
- PageSetupDialog.cs
- ThicknessConverter.cs
- InkCanvasAutomationPeer.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- EventTask.cs
- SemanticBasicElement.cs
- LayoutEditorPart.cs
- BitmapEffectGeneralTransform.cs