Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / StrokeDescriptor.cs / 1 / 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
- Permission.cs
- DrawingCollection.cs
- Events.cs
- ChildChangedEventArgs.cs
- GuidConverter.cs
- RecordManager.cs
- References.cs
- SafeRightsManagementSessionHandle.cs
- ConstNode.cs
- _NegoState.cs
- UniqueCodeIdentifierScope.cs
- FormViewModeEventArgs.cs
- RefreshInfo.cs
- Metadata.cs
- ReadOnlyCollection.cs
- GridItemCollection.cs
- SafeThreadHandle.cs
- BufferModeSettings.cs
- EraserBehavior.cs
- SystemMulticastIPAddressInformation.cs
- ClientCultureInfo.cs
- ProcessHostFactoryHelper.cs
- _SslStream.cs
- _ProxyChain.cs
- HwndSource.cs
- CheckBoxPopupAdapter.cs
- FontCacheLogic.cs
- Attributes.cs
- LineServicesCallbacks.cs
- PlanCompiler.cs
- ButtonBase.cs
- SQLBytesStorage.cs
- MarkupObject.cs
- LicenseProviderAttribute.cs
- Attributes.cs
- ConfigurationPermission.cs
- QEncodedStream.cs
- Exception.cs
- SqlServer2KCompatibilityAnnotation.cs
- ObjectKeyFrameCollection.cs
- SyncOperationState.cs
- SelectedGridItemChangedEvent.cs
- Camera.cs
- ExpressionBuilder.cs
- DataTablePropertyDescriptor.cs
- SpotLight.cs
- TableStyle.cs
- CDSsyncETWBCLProvider.cs
- XmlChoiceIdentifierAttribute.cs
- Zone.cs
- DateTimeUtil.cs
- ToolStripSystemRenderer.cs
- TransformValueSerializer.cs
- SessionStateSection.cs
- DataGridPreparingCellForEditEventArgs.cs
- AuthenticatingEventArgs.cs
- Transform3DGroup.cs
- CaretElement.cs
- TcpClientCredentialType.cs
- PointCollectionConverter.cs
- RepeatButton.cs
- ScrollData.cs
- PeerObject.cs
- AssemblyBuilder.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- Models.cs
- NumericUpDown.cs
- DesignerTransaction.cs
- MdiWindowListItemConverter.cs
- Stroke.cs
- FlowDocumentReaderAutomationPeer.cs
- ObjectStateFormatter.cs
- EntityExpressionVisitor.cs
- ConnectionStringSettings.cs
- BlobPersonalizationState.cs
- SqlTriggerContext.cs
- ValuePatternIdentifiers.cs
- TextTreeText.cs
- AggregateNode.cs
- DnsPermission.cs
- AmbiguousMatchException.cs
- SerializationHelper.cs
- SqlDataReaderSmi.cs
- MD5CryptoServiceProvider.cs
- XmlTextReaderImpl.cs
- BulletedList.cs
- OleDbParameter.cs
- BitmapFrame.cs
- Component.cs
- TableRowCollection.cs
- ZipIOCentralDirectoryFileHeader.cs
- Bits.cs
- IndependentlyAnimatedPropertyMetadata.cs
- SchemaDeclBase.cs
- RequestValidator.cs
- XmlSchemaGroupRef.cs
- Decorator.cs
- BooleanAnimationBase.cs
- X509Certificate.cs
- ListViewInsertEventArgs.cs